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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29c7e2d442c717e58d641969227b8157c745bfe4 | 200 | js | JavaScript | client/src/reducers/index.js | FullmerJake/redux-store | 8ce5331ecc5c530d043d50ca46e7843271c1e745 | [
"MIT"
] | null | null | null | client/src/reducers/index.js | FullmerJake/redux-store | 8ce5331ecc5c530d043d50ca46e7843271c1e745 | [
"MIT"
] | null | null | null | client/src/reducers/index.js | FullmerJake/redux-store | 8ce5331ecc5c530d043d50ca46e7843271c1e745 | [
"MIT"
] | null | null | null | import { combineReducers } from 'redux';
import commerceReducer from './commerceReducer.js';
const allReducers = combineReducers(
{
commerce: commerceReducer
}
);
export default allReducers; | 20 | 51 | 0.75 |
29c8abfece474f2dc629800f9c73eed64c262fa2 | 40 | js | JavaScript | index.js | obsidiansoft-io/carousel-view | 9f4e0b1d6bf438689e3270c90a58f50b8c92ca74 | [
"MIT"
] | null | null | null | index.js | obsidiansoft-io/carousel-view | 9f4e0b1d6bf438689e3270c90a58f50b8c92ca74 | [
"MIT"
] | null | null | null | index.js | obsidiansoft-io/carousel-view | 9f4e0b1d6bf438689e3270c90a58f50b8c92ca74 | [
"MIT"
] | null | null | null | 'use strict'
import'./carousel-view.js'; | 20 | 27 | 0.725 |
29ca759ed4465c930bd9da844204d381672c99ee | 2,084 | js | JavaScript | project-frontend/src/index.js | kolosdf/ProyectoBases | a5e102883c872df23138d783a3b4b6df751f55bc | [
"MIT"
] | null | null | null | project-frontend/src/index.js | kolosdf/ProyectoBases | a5e102883c872df23138d783a3b4b6df751f55bc | [
"MIT"
] | 3 | 2019-04-08T14:06:53.000Z | 2019-07-15T00:16:13.000Z | project-frontend/src/index.js | kolosdf/ProyectoBases | a5e102883c872df23138d783a3b4b6df751f55bc | [
"MIT"
] | 1 | 2019-09-23T15:00:44.000Z | 2019-09-23T15:00:44.000Z | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import MainAppPage from './PagesComponents/MainAppPage';
import { Switch, BrowserRouter, Route} from 'react-router-dom';
import LoginUserPage from './PagesComponents/LoginUserPage';
import LoginConduPage from './PagesComponents/LoginConduPage';
import MainUserPage from './PagesComponents/MainUserPage';
import MainConduPage from './PagesComponents/MainConduPage';
import SignInUserPage from './PagesComponents/SignInUserPage';
import SignInConduPage from './PagesComponents/SignInDriverPage';
import ConduMiTaxiPage from './PagesComponents/ConduMiTaxiPage';
import ConduMiTaxiAddPage from './PagesComponents/ConduMiTaxiAddPage';
import ConduUbication from './PagesComponents/ConduUbication';
class Login extends React.Component {
render() {
return (
<BrowserRouter>
<Switch>
<Route exact path='/' component={ () => <MainAppPage/>} />
<Route exact path='/SignIn/User' component={ () => <SignInUserPage /> } />
<Route exact path='/User/Main' component={ () => <MainUserPage /> } />
<Route exact path='/User' component={ () => <LoginUserPage /> } />
<Route exact path='/SignIn/Driver' component={ () => <SignInConduPage /> } />
<Route exact path='/Driver/Main/MiTaxi' component={ () => <ConduMiTaxiPage /> } />
<Route exact path='/Driver/Main/MiTaxi/Map' component={ () => <ConduUbication /> } />
<Route exact path='/Driver/Main/MiTaxi/AddTaxi' component={ () => <ConduMiTaxiAddPage /> } />
<Route exact path='/Driver/Main' component={ () => <MainConduPage /> } />
<Route exact path='/Driver' component={ () => <LoginConduPage /> } />
<Route path='*' component={ () => <MainAppPage />} />
</Switch>
</BrowserRouter>
);
}
}
// ========================================
ReactDOM.render(
<Login />,
document.getElementById('root')
);
| 45.304348 | 105 | 0.608925 |
29cb7e994da2c0d77279175aa9f6804df353c234 | 3,383 | js | JavaScript | lib/index.js | leizongmin/lei-selector | b79c03c4c38b5f7b17204253fddc3bd7331c3b8a | [
"MIT"
] | null | null | null | lib/index.js | leizongmin/lei-selector | b79c03c4c38b5f7b17204253fddc3bd7331c3b8a | [
"MIT"
] | 1 | 2017-12-21T04:04:47.000Z | 2017-12-21T04:04:47.000Z | lib/index.js | leizongmin/lei-selector | b79c03c4c38b5f7b17204253fddc3bd7331c3b8a | [
"MIT"
] | null | null | null | 'use strict';
/**
* lei-selector
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
const Selector = require('./selector');
class LeiSelector extends Selector {
eq(index) {
return this.create(this[index]);
}
lt(index) {
return this.create(this.toArray().slice(0, index));
}
gt(index) {
return this.create(this.toArray().slice(index + 1));
}
text(value) {
if (arguments.length > 0) {
this.each(el => {
el.innerText = value;
});
}
return this.toArray().map(el => el.innerText).join('\n');
}
html(value) {
if (arguments.length > 0) {
this.each(el => {
el.innerHTML = value;
});
}
return this.toArray().map(el => el.innerHTML).join('\n');
}
remove() {
this.each(el => el.remove());
return this;
}
setStyle(name, value) {
return this.each(el => {
el.style[name] = value;
});
}
getStyle(name) {
return this[0] && this[0].style[name];
}
css(name, value) {
if (arguments.length > 1) {
// css(name, value);
return this.setStyle(name, value);
} else if (arguments.length === 1) {
if (typeof name === 'string') {
// css('name')
return this.getStyle(name);
}
// css({ name: value })
const obj = arguments[0];
for (const i in obj) {
this.setStyle(i, obj[i]);
}
return this;
}
throw new Error('invalid argument number of css()');
}
show() {
this.setStyle('display', '');
return this;
}
hide() {
this.setStyle('display', 'none');
return this;
}
prop(name, value) {
if (arguments.length > 1) {
// prop(name, value);
return this.setProp(name, value);
} else if (arguments.length === 1) {
if (typeof name === 'string') {
// prop('name')
return this.getProp(name);
}
// prop({ name: value })
const obj = arguments[0];
for (const i in obj) {
this.setProp(i, obj[i]);
}
return this;
}
throw new Error('invalid argument number of prop()');
}
setProp(name, value) {
return this.each(el => {
el.setAttribute(name, value);
});
}
getProp(name) {
return this[0] && this[0].getAttribute(name);
}
data(name, value) {
if (arguments.length > 1) {
// data(name, value);
return this.setData(name, value);
} else if (arguments.length === 1) {
if (typeof name === 'string') {
// data('name')
return this.getData(name);
}
// data({ name: value })
const obj = arguments[0];
for (const i in obj) {
this.setData(i, obj[i]);
}
return this;
}
// data()
return this[0] && this[0].dataset;
}
setData(name, value) {
return this.each(el => {
el.dataset[name] = value;
});
}
getData(name) {
return this[0] && this[0].dataset[name];
}
append(child) {
if (this[0]) {
const sel = this.create(child);
sel.each(el => this[0].appendChild(el));
}
return this;
}
on(type, fn) {
return this.each(el => el.addEventListener(type, (event) => {
fn.call(el, event);
}));
}
once(type, fn) {
this.on(type, fn);
return this.each(el => el.addEventListener(type, () => {
el.removeEventListener(type, fn);
}));
}
}
module.exports = LeiSelector;
| 19.9 | 65 | 0.526456 |
29cd32932b6de30344106c13aefa6cbaba8f13f1 | 1,039 | js | JavaScript | src/data-publication/constants/dynamic-dataset.js | BarakStout/hmda-frontend | 61eeae7f08afbda710c9c74265a9b4baef5428d8 | [
"CC0-1.0"
] | 8 | 2020-01-15T18:43:46.000Z | 2021-08-18T18:08:05.000Z | src/data-publication/constants/dynamic-dataset.js | BarakStout/hmda-frontend | 61eeae7f08afbda710c9c74265a9b4baef5428d8 | [
"CC0-1.0"
] | 676 | 2019-12-10T23:09:33.000Z | 2022-03-31T20:24:49.000Z | src/data-publication/constants/dynamic-dataset.js | BarakStout/hmda-frontend | 61eeae7f08afbda710c9c74265a9b4baef5428d8 | [
"CC0-1.0"
] | 16 | 2019-11-08T14:03:56.000Z | 2021-03-10T22:28:12.000Z | export const DYNAMIC_DATASET = {
2020: {
lar : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2020/2020_lar.zip',
ts : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2020/2020_ts.zip',
},
2019: {
lar : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2019/2019_lar.zip',
ts : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2019/2019_ts.zip',
},
2018: {
lar : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2018/2018_lar.zip',
ts : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/2018/2018_ts.zip',
},
2017: {
lar : 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/dynamic_lar_ultimate_2017.txt',
ts: 'https://s3.amazonaws.com/cfpb-hmda-public/prod/dynamic-data/dynamic_ts_ultimate_2017.txt',
lar_spec : 'https://github.com/cfpb/hmda-platform/blob/v1.x/Documents/2017_Dynamic_LAR_Spec.csv',
ts_spec : 'https://github.com/cfpb/hmda-platform/blob/v1.x/Documents/2017_Dynamic_TS_Spec.csv'
},
}
| 49.47619 | 102 | 0.714148 |
29cddb1d36ce73ee46580ff46b39a0b4f43d5d65 | 1,187 | js | JavaScript | topologies/store-recsys-selections.js | ErikNovak/X5GON-preprocessing-pipeline | 7d37911ea42f6048473d4c7215a2b3f6a8077597 | [
"BSD-2-Clause"
] | 1 | 2021-06-18T15:49:14.000Z | 2021-06-18T15:49:14.000Z | topologies/store-recsys-selections.js | ErikNovak/X5GON-preprocessing-pipeline | 7d37911ea42f6048473d4c7215a2b3f6a8077597 | [
"BSD-2-Clause"
] | null | null | null | topologies/store-recsys-selections.js | ErikNovak/X5GON-preprocessing-pipeline | 7d37911ea42f6048473d4c7215a2b3f6a8077597 | [
"BSD-2-Clause"
] | 1 | 2020-11-11T15:20:53.000Z | 2020-11-11T15:20:53.000Z | // configurations
const { default: config } = require("../dist/config/config");
module.exports = {
general: {
heartbeat: 2000,
pass_binary_messages: true
},
spouts: [
{
name: "kafka.recsys.selection",
type: "inproc",
working_dir: "./components/spouts",
cmd: "kafka_spout.js",
init: {
kafka: {
host: config.kafka.host,
topic: "STORE_RECSYS_SELECTION",
clientId: "STORE_RECSYS_SELECTION",
groupId: `${config.kafka.groupId}_STORE_RECSYS_SELECTION`,
high_water: 100,
low_water: 10
}
}
}
],
bolts: [
{
name: "store.pg.recsys.selection",
type: "inproc",
working_dir: "./components/bolts",
cmd: "pg_store_recsys_selections_bolt.js",
inputs: [
{
source: "kafka.recsys.selection"
}
],
init: {
pg: config.pg
}
}
],
variables: {}
};
| 26.377778 | 78 | 0.429655 |
29ce0de5ee64a04c43710451224200aa1499e03a | 737 | js | JavaScript | maps/icon-outline-local-taxi-element/index.js | AgeOfLearning/material-design-icons | b1da14a0e8a7011358bf4453c127d9459420394f | [
"Apache-2.0"
] | null | null | null | maps/icon-outline-local-taxi-element/index.js | AgeOfLearning/material-design-icons | b1da14a0e8a7011358bf4453c127d9459420394f | [
"Apache-2.0"
] | null | null | null | maps/icon-outline-local-taxi-element/index.js | AgeOfLearning/material-design-icons | b1da14a0e8a7011358bf4453c127d9459420394f | [
"Apache-2.0"
] | null | null | null | import styles from './template.css';
import template from './template';
import AoflElement from '@aofl/web-components/aofl-element';
/**
* @summary IconOutlineLocalTaxiElement
* @class IconOutlineLocalTaxiElement
* @extends {AoflElement}
*/
class IconOutlineLocalTaxiElement extends AoflElement {
/**
* Creates an instance of IconOutlineLocalTaxiElement.
*/
constructor() {
super();
}
/**
* @readonly
*/
static get is() {
return 'icon-outline-local-taxi';
}
/**
*
* @return {Object}
*/
render() {
return super.render(template, [styles]);
}
}
window.customElements.define(IconOutlineLocalTaxiElement.is, IconOutlineLocalTaxiElement);
export default IconOutlineLocalTaxiElement;
| 19.918919 | 90 | 0.697422 |
29ced05a93de340a109519533b1734b8cb76536f | 2,694 | js | JavaScript | src/main/webapp/assets/_default/js/doctor_prescription_medicine.js | carlocorradini/cup | f2169b1b50614be7e1291676e979ef721a54188a | [
"MIT"
] | 6 | 2019-09-22T16:15:12.000Z | 2020-03-02T15:29:38.000Z | src/main/webapp/assets/_default/js/doctor_prescription_medicine.js | carlocorradini/cup | f2169b1b50614be7e1291676e979ef721a54188a | [
"MIT"
] | null | null | null | src/main/webapp/assets/_default/js/doctor_prescription_medicine.js | carlocorradini/cup | f2169b1b50614be7e1291676e979ef721a54188a | [
"MIT"
] | 3 | 2019-12-16T17:31:22.000Z | 2021-03-28T10:36:17.000Z | "use strict";
// === PAGE READY ===
$(document).ready(() => {
// Enable prescription Medicine Functionality
prescriptionMedicineConfig();
});
function prescriptionMedicineConfig() {
const pMedicine = {
$form: $("#prescription-medicine-form"),
$dropdownPatient: $("#prescription-medicine-patient-dropdown"),
$dropdownMedicine: $("#prescription-medicine-medicine-dropdown"),
$inputQuantity: $("#prescription-medicine-quantity-input"),
$button: $("#prescription-medicine-button")
};
const prescription = {
patientId: null,
medicineId: null,
quantity: null
};
const patientId = window.UTIL.URL.getParams().patientId;
pMedicine.$form.submit(function () {
return false;
});
pMedicine.$dropdownPatient.dropdown({
clearable: true,
onChange: function (value, text, $item) {
prescription.patientId = value;
}
});
// Set the Default Patient if present
if (window.UTIL.NUMBER.isNumber(patientId)) {
pMedicine.$dropdownPatient.dropdown("set selected", patientId);
prescription.patientId = patientId;
}
pMedicine.$dropdownMedicine.dropdown({
clearable: true,
onChange: function (value, text, $item) {
prescription.medicineId = value;
}
});
pMedicine.$inputQuantity.on("change paste keyup", function () {
const quantity = $(this).val();
if (UTIL.NUMBER.isNumber(quantity)) {
prescription.quantity = quantity;
}
});
pMedicine.$button.click(function () {
if (UTIL.NUMBER.isNumber(prescription.patientId) && UTIL.NUMBER.isNumber(prescription.medicineId) && UTIL.NUMBER.isNumber(prescription.quantity)) {
pMedicine.$form.removeClass("warning success").addClass("loading");
$.ajax({
type: "POST",
url: window.CONTEXT_PATH + "/service/restricted/doctor/prescription_medicine",
dataType: "json",
contentType: "application/json",
data: JSON.stringify(prescription),
success: function (data) {
pMedicine.$form.removeClass("loading");
if (data.error === 0)
pMedicine.$form.addClass("success");
else
pMedicine.$form.addClass("warning");
},
error: function () {
console.error("Unable to Prescribe a Medicine");
}
});
} else {
pMedicine.$form.removeClass("success").addClass("warning");
}
});
} | 34.101266 | 155 | 0.567929 |
29cf0c004b532219e9c355dab21722e77b315ea4 | 10,462 | js | JavaScript | src/hooks/index.js | CGQAQ/sokoban | c444218f8ee4117467437ebc7ae88266d7c83890 | [
"MIT"
] | 6 | 2019-05-11T14:46:07.000Z | 2021-11-16T12:43:13.000Z | src/hooks/index.js | CGQAQ/sokoban | c444218f8ee4117467437ebc7ae88266d7c83890 | [
"MIT"
] | 8 | 2020-07-17T00:55:52.000Z | 2022-02-26T10:43:56.000Z | src/hooks/index.js | CGQAQ/sokoban | c444218f8ee4117467437ebc7ae88266d7c83890 | [
"MIT"
] | null | null | null | import { useState, useEffect, useMemo } from 'react';
import { ObjType, PlayerOrientation } from '../lib/constants';
import { genTiles, dataToTile } from '../lib/resourses';
import getMapData from '../lvl/index';
import _ from 'lodash';
export function useInit({ setGameData, setLevel }) {
useEffect(() => {
setLevel(1);
// eslint-disable-next-line
}, []);
}
const MoveDirection = PlayerOrientation;
export function useKey(concernedKey, gap) {
const [counter, setCounter] = useState(0);
let inter = null;
if (!gap) gap = 240;
const keydownHandler = function(ev) {
// console.log(inter, ev.code, concernedKey);
if (!inter && ev.code === concernedKey) {
if (!inter) {
setCounter(c => c + 1);
}
inter = setInterval(() => {
setCounter(c => c + 1);
}, gap);
}
};
const keyupHandler = function(ev) {
if (ev.code === concernedKey) {
setCounter(0);
clearInterval(inter);
inter = null;
}
};
useEffect(() => {
window.addEventListener('keydown', keydownHandler);
window.addEventListener('keyup', keyupHandler);
return () => {
window.removeEventListener('keydown', keydownHandler);
window.removeEventListener('keydown', keyupHandler);
};
}, []);
return counter;
}
function findIndexofMapData(data, target) {
if (!data) return [-1, -1];
return data.reduce(
(a, b, i) => {
const result = b.findIndex(v => {
// v === target
if (target instanceof Array) {
for (let item of target) {
if (item === v) {
return true;
}
}
return false;
} else {
if (v === target) {
return true;
}
return false;
}
});
if (result !== -1) {
return [i, result];
}
if (a[0] !== -1 && a[1] !== -1) {
return a;
}
return [-1, -1];
},
[-1, -1]
);
}
// function exchange(a, b, getter) {
// const data = _.cloneDeep(getter);
// [data[a[0]][a[1]], data[b[0]][b[1]]] = [data[b[0]][b[1]], data[a[0]][a[1]]];
// return data;
// }
function move(moveDirection, playerPosition, mapData, setMapData) {
let a, b;
let [x, y] = playerPosition;
switch (moveDirection) {
case MoveDirection.up:
a = -1;
b = 0;
break;
case MoveDirection.down:
a = 1;
b = 0;
break;
case MoveDirection.left:
a = 0;
b = -1;
break;
case MoveDirection.right:
a = 0;
b = 1;
break;
default:
break;
}
let [nx, ny] = [x + a, y + b];
let dest = -1;
if (
nx >= mapData.length ||
nx < 0 ||
(ny >= mapData[nx].length || ny < 0)
) {
// console.log(x, y, nx, mapData.length, ny, mapData.length);
dest = -1;
} else {
dest = mapData[nx][ny];
}
if (dest !== ObjType.block) {
// it's possible to be ground, point(add together) and box
// console.log('???', dest);
if (dest === -1) return;
if (dest === ObjType.ground) {
const newData = _.cloneDeep(mapData);
newData[nx][ny] = ObjType.player;
if (mapData[x][y] === ObjType.point + ObjType.player) {
newData[x][y] = ObjType.point;
} else {
newData[x][y] = ObjType.ground;
}
// setMapData(exchange([x, y], [nx, ny], mapData));
setMapData(newData);
} else if (
dest === ObjType.box ||
dest === ObjType.box + ObjType.point
) {
// see if box can be push
const [nnx, nny] = [nx + a, ny + b];
if (mapData[nnx][nny] === ObjType.ground) {
// ground in front of the box, which can be pushed
const newData = _.cloneDeep(mapData);
newData[nnx][nny] = ObjType.box;
if (mapData[x][y] === ObjType.point + ObjType.player) {
if (dest === ObjType.box + ObjType.point) {
newData[nx][ny] = ObjType.player + ObjType.point;
} else {
newData[nx][ny] = ObjType.player;
}
newData[x][y] = ObjType.point;
} else {
// setMapData(
// exchange(
// [x, y],
// [nx, ny],
// exchange([nnx, nny], [nx, ny], mapData),
// ),
// );
newData[x][y] = ObjType.ground;
if (dest === ObjType.box + ObjType.point) {
newData[nx][ny] = ObjType.player + ObjType.point;
} else {
newData[nx][ny] = ObjType.player;
}
}
setMapData(newData);
} else if (mapData[nnx][nny] === ObjType.point) {
const newData = _.cloneDeep(mapData);
newData[nnx][nny] = ObjType.box + ObjType.point;
if (dest === ObjType.box) {
newData[nx][ny] = ObjType.player;
} else if (dest === ObjType.box + ObjType.point) {
newData[nx][ny] = ObjType.player + ObjType.point;
}
if (newData[x][y] === ObjType.point + ObjType.player) {
newData[x][y] = ObjType.point;
} else {
newData[x][y] = ObjType.ground;
}
setMapData(newData);
}
} else if (dest === ObjType.point) {
// will step on the point after move
const newData = _.cloneDeep(mapData);
newData[nx][ny] = ObjType.point + ObjType.player;
if (mapData[x][y] === ObjType.point + ObjType.player) {
newData[x][y] = ObjType.point;
} else {
newData[x][y] = ObjType.ground;
}
setMapData(newData);
}
// else if (dest === ) {
// const newData = _.cloneDeep(mapData);
// newData[nx][ny] = ObjType.point + ObjType.player;
// if (mapData[x][y] === ObjType.point + ObjType.player) {
// newData[x][y] = ObjType.point;
// } else {
// newData[x][y] = ObjType.ground;
// }
// setMapData(newData);
// }
}
}
export function useMove(keys, mapData, setMapData, playerPosition) {
useEffect(() => {
if (!mapData) return;
const [upKey, downKey, leftKey, rightKey] = keys;
if (upKey > 0) {
move(MoveDirection.up, playerPosition, mapData, setMapData);
}
if (downKey > 0) {
move(MoveDirection.down, playerPosition, mapData, setMapData);
}
if (leftKey > 0) {
move(MoveDirection.left, playerPosition, mapData, setMapData);
}
if (rightKey > 0) {
move(MoveDirection.right, playerPosition, mapData, setMapData);
}
}, [keys]);
}
export function useDatacenter() {
const [dataCenter, setDataCenter] = useState(null);
const [totalLevels, setTotalLevels] = useState(null);
useEffect(() => {
getMapData().then(data => {
setDataCenter(data.levels);
setTotalLevels(data.total);
});
return () => setDataCenter(null);
}, []);
return [dataCenter, totalLevels];
}
export function useGamedata(dataCenter, level) {
const [unit, setUnit] = useState(null);
const [width, setWidth] = useState(null);
const [height, setHeight] = useState(null);
const [mapData, setMapData] = useState(null);
useEffect(() => {
if (!!dataCenter && !!level) {
setUnit(dataCenter[level - 1].unit);
setWidth(dataCenter[level - 1].width);
setHeight(dataCenter[level - 1].height);
setMapData(dataCenter[level - 1].data);
}
return () => {
setUnit(null);
setWidth(null);
setHeight(null);
setMapData(null);
};
}, [dataCenter, level]);
return [unit, width, height, mapData, setMapData];
}
export function useRenderdata(mapData, tiles, playerOrientation) {
const renderData = useMemo(() => {
if (!!mapData && mapData instanceof Array) {
if (!tiles) return;
return mapData.map(a => {
return a.map(b => dataToTile(b, tiles, playerOrientation));
});
}
return null;
// return () => setRenderData(null);
}, [mapData, tiles]);
return renderData;
}
export function useTiles(level) {
const [tiles, setTiles] = useState();
useEffect(() => {
setTiles(genTiles());
}, [level]);
return tiles;
}
export function usePlayerPosition(mapData) {
const [playerPosition, setPlayerPosition] = useState([-1, -1]);
useEffect(() => {
if (!mapData) return;
setPlayerPosition(
findIndexofMapData(mapData, [
ObjType.player,
ObjType.player + ObjType.point
])
);
}, [mapData]);
return playerPosition;
}
export function objCounter(mapData, obj) {
if (!mapData) return -1;
let counter = 0;
for (let x of mapData) {
for (let y of x) {
if (obj instanceof Array) {
for (let z of obj) {
if (z === y) {
counter++;
}
}
} else {
if (y === obj) {
counter++;
}
}
}
}
return counter;
}
export function usePoints(mapData) {
const points = useMemo(() => {
return objCounter(mapData, [
ObjType.point,
ObjType.player + ObjType.point
]);
}, [mapData]);
return points;
}
| 29.977077 | 80 | 0.464347 |
29d05a49f0595e4d912717184d602366b1064331 | 1,980 | js | JavaScript | db/pgtwotables-queries.js | SDC-WeGot/recommendations | 67dc2d992f76f821b34af6ae1457a80b8e4d0c61 | [
"MIT"
] | null | null | null | db/pgtwotables-queries.js | SDC-WeGot/recommendations | 67dc2d992f76f821b34af6ae1457a80b8e4d0c61 | [
"MIT"
] | null | null | null | db/pgtwotables-queries.js | SDC-WeGot/recommendations | 67dc2d992f76f821b34af6ae1457a80b8e4d0c61 | [
"MIT"
] | null | null | null | const pg = require('pg');
// Provide connection string for the postgreSQL client, port generally is default one i.e. 5432:
// var connectionString = "postgres://userName:password@serverName/ip:port/nameOfDatabase";
var connectionString = "postgres://localhost:5432/sagat_twotables";
// Instantiate the client for postgres database
var pgClient = new pg.Client(connectionString);
pgClient.connect();
let queryPG = async (identifier, callback) => {
// Connect to database
// var result = await pgClient.query('SELECT * FROM restaurants where place_id = ' + identifier + ";");
try {
var result = await pgClient.query('SELECT * FROM restaurants INNER JOIN nearby ON restaurants.place_id = nearby.recommended WHERE nearby.place_id = ' + identifier + ';');
callback(result.rows);
} catch(err) {
console.log(`Error = ${err}`);
}
};
let randomIndexGenerator = (max) => {
return Math.floor(Math.random() * max);
};
var startTime = new Date().getTime();
// queryPG(randomIndexGenerator(10000000), (data) => {
// // console.log('data = ', data);
// let endTime = new Date().getTime();
// console.log(`Time = ${endTime - startTime}`)
// });
let queryThousandTimes = () => {
for (var i = 0; i < 1000; i++) {
let randomIndex = randomIndexGenerator(10000000);
queryPG(randomIndex, (data) => {
console.log(data.length);
});
if (i === 999) {
var endTime = new Date().getTime();
console.log(
`${i + 1} random queries, time elapsed for postgres, 3 table format = ${endTime - startTime}`,
);
}
}
};
queryThousandTimes(); //
// pgClient.end();
// -- don't use *, be specific with fields- restaurants.longitude
// SELECT * FROM restaurants INNER JOIN nearby ON restaurants.place_id = nearby.recommended WHERE nearby.place_id = 1;
// SELECT * FROM restaurants INNER JOIN nearby ON restaurants.place_id = nearby.recommended INNER JOIN photos on photos.place_id = nearby.recommended WHERE nearby.place_id = 1;
| 36.666667 | 176 | 0.675253 |
29d09c9e1b072f8453832142fea6295f31e98151 | 4,439 | js | JavaScript | src/apps/maha/admin/components/dashboard/daterangefield/index.js | ccetc/mahaplatform.com | 6e8610fe6e835e071492784655dbb5502863d031 | [
"MIT"
] | null | null | null | src/apps/maha/admin/components/dashboard/daterangefield/index.js | ccetc/mahaplatform.com | 6e8610fe6e835e071492784655dbb5502863d031 | [
"MIT"
] | null | null | null | src/apps/maha/admin/components/dashboard/daterangefield/index.js | ccetc/mahaplatform.com | 6e8610fe6e835e071492784655dbb5502863d031 | [
"MIT"
] | null | null | null | import DateField from '@admin/components/form/datefield'
import Dropdown from '@admin/components/form/dropdown'
import PropTypes from 'prop-types'
import moment from 'moment'
import React from 'react'
class DateRangeField extends React.PureComponent {
static propTypes = {
defaultValue: PropTypes.object,
value: PropTypes.object,
onBusy: PropTypes.func,
onChange: PropTypes.func,
onReady: PropTypes.func,
onValid: PropTypes.func
}
static defaultProps = {
onBusy: () => {},
onChange: () => {},
onReady: () => {},
onValid: () => {}
}
state = {
daterange: null
}
render() {
const { daterange } = this.state
if(!daterange) return null
return (
<div className="maha-daterangefield">
<div className="maha-daterangefield-type">
<Dropdown { ...this._getType() } />
</div>
{ daterange.type === 'custom' &&
<div className="maha-daterangefield-dates">
<div className="maha-daterangefield-date">
<DateField { ...this._getStart() } />
</div>
<div className="maha-daterangefield-date">
<DateField { ...this._getEnd() } />
</div>
</div>
}
<div className="maha-daterangefield-step">
<Dropdown { ...this._getStep() } />
</div>
</div>
)
}
componentDidMount() {
const defaultValue = this._getDefaultValue()
this._handleSet(defaultValue)
this.props.onReady()
}
componentDidUpdate(prevProps, prevState) {
const { daterange } = this.state
const { value } = this.props
if(!_.isEqual(daterange, prevState.daterange)) {
this._handleChange()
}
if(!_.isEqual(value, prevProps.value)) {
this._handleSet(value)
}
}
_getDefaultValue() {
const { defaultValue, value } = this.props
return !_.isNil(defaultValue) ? defaultValue : !_.isNil(value) ? value : null
}
_getType() {
const { daterange } = this.state
return {
options: [
{ value: '30_days', text: 't(Last 30 days)' },
{ value: '60_days', text: 't(Last 60 days)' },
{ value: '90_days', text: 't(Last 90 days)' },
{ value: 'this_week', text: 't(This Week)' },
{ value: 'last_week', text: 't(Last Week)' },
{ value: 'this_month', text: 't(This Month)' },
{ value: 'last_month', text: 't(Last Month)' },
{ value: 'this_quarter', text: 't(This Quarter)' },
{ value: 'last_quarter', text: 't(Last Quarter)' },
{ value: 'this_year', text: 't(This Year)' },
{ value: 'last_year', text: 't(Last Year)' },
{ value: 'custom', text: 't(Custom)' }
],
value: daterange.type,
onChange: this._handleUpdate.bind(this, 'type')
}
}
_getStart() {
const { daterange } = this.state
return {
value: daterange.start,
onChange: this._handleUpdate.bind(this, 'start')
}
}
_getStep() {
const { daterange } = this.state
return {
options: [
{ value: 'day', text: 't(Grouped By Day)' },
{ value: 'week', text: 't(Grouped By Week)' },
{ value: 'quarter', text: 't(Grouped By Quarter)' },
{ value: 'month', text: 't(Grouped By Month)' },
{ value: 'year', text: 't(Grouped By Year)' }
],
value: daterange.step,
onChange: this._handleUpdate.bind(this, 'step')
}
}
_getEnd() {
const { daterange } = this.state
return {
value: daterange.end,
onChange: this._handleUpdate.bind(this, 'end')
}
}
_handleChange() {
const { end, start, step, type } = this.state.daterange
this.props.onChange({
type,
step,
...type === 'custom' ? { start, end } : {}
})
}
_handleSet(daterange) {
this.setState({
daterange: {
type: '30_days',
step: 'day',
start: moment().subtract(30, 'days').format('YYYY-MM-DD'),
end: moment().format('YYYY-MM-DD'),
...daterange ? {
type: daterange.type,
step: daterange.step,
...daterange.type === 'custom' ? {
start: daterange.start,
end: daterange.end
} : {}
} : {}
}
})
}
_handleUpdate(key, value) {
const { daterange } = this.state
this.setState({
daterange: {
...daterange,
[key]: value
}
})
}
}
export default DateRangeField
| 26.111765 | 81 | 0.5508 |
29d16b0b16a40c4ca4be032e4e2621c40c26ca13 | 1,190 | js | JavaScript | tasks05.12/dataParseMethod.js | albertBarsegyan/armenianCodeAcademy | a25c812fc6d0bab16939cb192dc19dbc88a90b88 | [
"ISC"
] | null | null | null | tasks05.12/dataParseMethod.js | albertBarsegyan/armenianCodeAcademy | a25c812fc6d0bab16939cb192dc19dbc88a90b88 | [
"ISC"
] | 3 | 2021-05-26T12:38:36.000Z | 2021-06-27T16:00:56.000Z | tasks05.12/dataParseMethod.js | albertBarsegyan/armenianCodeAcademy | a25c812fc6d0bab16939cb192dc19dbc88a90b88 | [
"ISC"
] | null | null | null | let data = {
name: 'mike',
age: 25,
file4: 'img',
email1: 'asd@mail.ru',
email2: 'ert@mail.ru',
email4: 'zxc@mail.ru',
file1: 'jpg',
file2: 'png',
file3: 'svg',
email3: 'qwe@mail.ru',
file11: 'vs',
};
function sortObject(object) {
let keys = Object.keys(object)
.sort()
.reduce((acc, item, index) => {
acc[item] = object[item];
return acc;
}, {});
return keys;
}
function parseDataReducer(defaultData) {
let data = Object.entries(sortObject(defaultData));
let a = [];
let parsed = data.reduce(
(acc, item, index, array) => {
let repeated = '';
if (/([0-9])+$/g.test(item[0])) {
repeated = item[0].replace(/([0-9])+$/g, '');
}
if (repeated !== acc.lastRep) {
a = [];
}
if (
item[0].includes(repeated) &&
/[0-9]/.test(item[0][item[0].length - 1])
) {
a.push(item[1]);
acc[repeated] = [...a];
acc.lastRep = repeated;
} else {
acc[item[0]] = item[1];
}
return acc;
},
{
lastRep: '',
}
);
return parsed;
}
// console.log(parseDataReducer(data));
console.log(parseDataReducer(data));
| 19.508197 | 53 | 0.505042 |
29d25526146891dab8803aab1e46d494a3227354 | 2,718 | js | JavaScript | server/config/db/objects.js | filipmadej/ibmwatson-nlc-groundtruth-filipnewv2 | 21ea28163406dddbc769019439912bb17a4f61fb | [
"Apache-2.0"
] | null | null | null | server/config/db/objects.js | filipmadej/ibmwatson-nlc-groundtruth-filipnewv2 | 21ea28163406dddbc769019439912bb17a4f61fb | [
"Apache-2.0"
] | null | null | null | server/config/db/objects.js | filipmadej/ibmwatson-nlc-groundtruth-filipnewv2 | 21ea28163406dddbc769019439912bb17a4f61fb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
'use strict';
/* eslint no-underscore-dangle:0 */
/**
* Creates and manipulates documents for storing in Cloudant.
*
* Expected schemas:
*
* classes
* {
* _id : <id of the class>,
* _rev : <version of the class>,
* schema : 'class',
* tenant : <ID of the tenant the class is in>,
* name : <class name>,
* description : <short description of class>
* }
*
* texts
* {
* _id : <id of the text>,
* _rev : <version of the text>,
* schema : 'text',
* tenant : <ID of the tenant the text is in>,
* value : <text value>,
* classes : [<class ID>...]
* }
*
*
*
* @module ibmwatson-nlc-groundtruth/config/db/objects
* @author Andy Stoneberg
*/
// external dependencies
var uuid = require('node-uuid');
// ----------------------------------------------------------
// Prepare objects for storing as a Cloudant document
// ----------------------------------------------------------
/**
* Creates an object to represent a class for storing in Cloudant.
*
* @param {String} tenant - the tenant to store the class in
* @param {Object} attrs - attributes of the class to store
* @returns {Object} class object
*/
module.exports.prepareClassInfo = function prepareClassInfo (tenant, attrs) {
var classification = {
_id : attrs.id ? attrs.id : uuid.v1(),
tenant : tenant,
schema : 'class',
name : attrs.name,
description : attrs.description
};
return classification;
};
/**
* Creates an object to represent a text for storing in Cloudant.
*
* @param {String} tenant - the tenant to store the text in
* @param {Object} attrs - attributes of the text to store
* @returns {Object} text object
*/
module.exports.prepareTextInfo = function prepareTextInfo (tenant, attrs) {
var text = {
_id : attrs.id ? attrs.id : uuid.v1(),
tenant : tenant,
schema : 'text',
value : attrs.value
};
if (attrs.classes) {
text.classes = attrs.classes;
}
return text;
};
| 27.454545 | 77 | 0.590508 |
29d2ba1c5d8e2d0734e2e7e07a2f5b913b603b6e | 2,796 | js | JavaScript | src/components/RegisterPage/RegisterPage.js | SitcomSaxophone/Climb-On-Solo-Project | d6b7acbdae1b3816153cad4ab5ec43080f916e20 | [
"MIT"
] | null | null | null | src/components/RegisterPage/RegisterPage.js | SitcomSaxophone/Climb-On-Solo-Project | d6b7acbdae1b3816153cad4ab5ec43080f916e20 | [
"MIT"
] | null | null | null | src/components/RegisterPage/RegisterPage.js | SitcomSaxophone/Climb-On-Solo-Project | d6b7acbdae1b3816153cad4ab5ec43080f916e20 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Button from '@material-ui/core/Button';
import Input from '@material-ui/core/Input';
import '../LoginPage/LoginPage.css';
class RegisterPage extends Component {
state = {
username: '',
password: '',
};
registerUser = (event) => {
event.preventDefault();
if (this.state.username && this.state.password) {
this.props.dispatch({
type: 'REGISTER',
payload: {
username: this.state.username,
password: this.state.password,
},
});
} else {
this.props.dispatch({ type: 'REGISTRATION_INPUT_ERROR' });
}
} // end registerUser
handleInputChangeFor = propertyName => (event) => {
this.setState({
[propertyName]: event.target.value,
});
}
render() {
return (
<div className="loginView">
{this.props.errors.registrationMessage && (
<h2
className="alert"
role="alert"
>
{this.props.errors.registrationMessage}
</h2>
)}
<form onSubmit={this.registerUser}>
<h1 className="loginHeader">Register User</h1>
<div>
<label htmlFor="username">
<Input
className="loginInput"
placeholder="Username"
type="text"
name="username"
value={this.state.username}
onChange={this.handleInputChangeFor('username')}
/>
</label>
</div>
<div>
<label htmlFor="password">
<Input
className="loginInput"
placeholder="Password"
type="password"
name="password"
value={this.state.password}
onChange={this.handleInputChangeFor('password')}
/>
</label>
</div>
<div>
<Button
className="register"
type="submit"
name="submit"
value="Register"
>
Register
</Button>
</div>
</form>
<center>
<Button
type="button"
className="link-button"
onClick={() => { this.props.dispatch({ type: 'SET_TO_LOGIN_MODE' }) }}
>
Login
</Button>
</center>
</div>
);
}
}
// Instead of taking everything from state, we just want the error messages.
// if you wanted you could write this code like this:
// const mapStateToProps = ({errors}) => ({ errors });
const mapStateToProps = state => ({
errors: state.errors,
});
export default connect(mapStateToProps)(RegisterPage);
| 26.377358 | 82 | 0.508226 |
29d303746f8b92d851adc042dee2aa524db1c618 | 4,228 | js | JavaScript | data/5887.js | stas-vilchik/bdd-ml | 2a254419a7c40c2e9b48625be8ca78721f786d2b | [
"MIT"
] | null | null | null | data/5887.js | stas-vilchik/bdd-ml | 2a254419a7c40c2e9b48625be8ca78721f786d2b | [
"MIT"
] | null | null | null | data/5887.js | stas-vilchik/bdd-ml | 2a254419a7c40c2e9b48625be8ca78721f786d2b | [
"MIT"
] | null | null | null | {
if (props.x === 318) {
return React.createElement(
"div",
{
className: "_3pzj",
style: {
height: 40,
position: "absolute",
width: 721,
zIndex: 2,
transform: "translate3d(0px,0px,0)",
backfaceVisibility: "hidden"
}
},
React.createElement(FixedDataTableCell143, {
x: 317,
key: "cell_0"
})
);
}
if (props.x === 332) {
return React.createElement(
"div",
{
className: "_3pzj",
style: {
height: 40,
position: "absolute",
width: 1845,
zIndex: 0,
transform: "translate3d(0px,0px,0)",
backfaceVisibility: "hidden"
}
},
React.createElement(FixedDataTableCell143, {
x: 322,
key: "cell_0"
}),
React.createElement(FixedDataTableCell143, {
x: 325,
key: "cell_1"
}),
React.createElement(FixedDataTableCell143, {
x: 328,
key: "cell_2"
}),
React.createElement(FixedDataTableCell143, {
x: 331,
key: "cell_3"
})
);
}
if (props.x === 367) {
return React.createElement(
"div",
{
className: "_3pzj",
style: {
height: 25,
position: "absolute",
width: 721,
zIndex: 2,
transform: "translate3d(0px,0px,0)",
backfaceVisibility: "hidden"
}
},
React.createElement(FixedDataTableCell143, {
x: 339,
key: "cell_0"
}),
React.createElement(FixedDataTableCell143, {
x: 344,
key: "cell_1"
}),
React.createElement(FixedDataTableCell143, {
x: 350,
key: "cell_2"
}),
React.createElement(FixedDataTableCell143, {
x: 356,
key: "cell_3"
}),
React.createElement(FixedDataTableCell143, {
x: 361,
key: "cell_4"
}),
React.createElement(FixedDataTableCell143, {
x: 366,
key: "cell_5"
})
);
}
if (props.x === 455) {
return React.createElement(
"div",
{
className: "_3pzj",
style: {
height: 25,
position: "absolute",
width: 1845,
zIndex: 0,
transform: "translate3d(0px,0px,0)",
backfaceVisibility: "hidden"
}
},
React.createElement(FixedDataTableCell143, {
x: 373,
key: "cell_0"
}),
React.createElement(FixedDataTableCell143, {
x: 378,
key: "cell_1"
}),
React.createElement(FixedDataTableCell143, {
x: 383,
key: "cell_2"
}),
React.createElement(FixedDataTableCell143, {
x: 388,
key: "cell_3"
}),
React.createElement(FixedDataTableCell143, {
x: 393,
key: "cell_4"
}),
React.createElement(FixedDataTableCell143, {
x: 398,
key: "cell_5"
}),
React.createElement(FixedDataTableCell143, {
x: 403,
key: "cell_6"
}),
React.createElement(FixedDataTableCell143, {
x: 408,
key: "cell_7"
}),
React.createElement(FixedDataTableCell143, {
x: 413,
key: "cell_8"
}),
React.createElement(FixedDataTableCell143, {
x: 418,
key: "cell_9"
}),
React.createElement(FixedDataTableCell143, {
x: 423,
key: "cell_10"
}),
React.createElement(FixedDataTableCell143, {
x: 428,
key: "cell_11"
}),
React.createElement(FixedDataTableCell143, {
x: 433,
key: "cell_12"
}),
React.createElement(FixedDataTableCell143, {
x: 438,
key: "cell_13"
}),
React.createElement(FixedDataTableCell143, {
x: 443,
key: "cell_14"
}),
React.createElement(FixedDataTableCell143, {
x: 448,
key: "cell_15"
}),
React.createElement(FixedDataTableCell143, {
x: 451,
key: "cell_16"
}),
React.createElement(FixedDataTableCell143, {
x: 454,
key: "cell_17"
})
);
}
}
| 22.731183 | 50 | 0.498108 |
29d33189f5a69a218cba0e4274d546457a9965f2 | 668 | js | JavaScript | gulpfile.js | TwitchSeventeen/Spacing-CSS | 3165e4806f05a6a1f66f096729d7de155a48b6d0 | [
"MIT"
] | null | null | null | gulpfile.js | TwitchSeventeen/Spacing-CSS | 3165e4806f05a6a1f66f096729d7de155a48b6d0 | [
"MIT"
] | null | null | null | gulpfile.js | TwitchSeventeen/Spacing-CSS | 3165e4806f05a6a1f66f096729d7de155a48b6d0 | [
"MIT"
] | null | null | null | const gulp = require('gulp');
const sass = require('gulp-sass');
const rename = require("gulp-rename");
gulp.task('default', function() {
gulp.watch('src/**/*.scss', ['sass']);
});
gulp.task('sass', function() {
return gulp.src('src/**/*.scss')
.pipe(sass({
outputStyle: 'compact'
}))
.pipe(gulp.dest('dist/'))
});
gulp.task('minify', function() {
return gulp.src('src/**/*.scss')
.pipe(sass({
outputStyle: 'compressed'
}))
.pipe(rename(function (path) {
path.basename += '.min'
}))
.pipe(gulp.dest('dist/'))
});
gulp.task('build', ['sass', 'minify']); | 23.857143 | 42 | 0.51497 |
29d39c50998b88b0c9be75617a9c367bc46a7aeb | 627 | js | JavaScript | lib/resources/cloudcast.js | patrickkfkan/mixcloud-fetch | 7be6f7c622c47f7afd21af7a890e4176dc8a1ea2 | [
"MIT"
] | null | null | null | lib/resources/cloudcast.js | patrickkfkan/mixcloud-fetch | 7be6f7c622c47f7afd21af7a890e4176dc8a1ea2 | [
"MIT"
] | null | null | null | lib/resources/cloudcast.js | patrickkfkan/mixcloud-fetch | 7be6f7c622c47f7afd21af7a890e4176dc8a1ea2 | [
"MIT"
] | null | null | null | const graphql = require('../graphql');
const BaseResource = require('./base');
class Cloudcast extends BaseResource {
async getInfo() {
const cloudcastId = this.getKey();
const variables = { cloudcastId };
const query = graphql.getQuery('cloudcast', 'info');
return graphql.fetch(query, variables).then( result =>
graphql.parse(result)
);
}
// TODO:
// getListeners
// getSimilar
// getComments
// getFavorites (list of users who favorited this)
}
function from(cloudcastId) {
return new Cloudcast(cloudcastId);
}
module.exports = from; | 23.222222 | 63 | 0.626794 |
29d4be83af02ecd0b703d76b6dcc2c7cb0b44982 | 118 | js | JavaScript | app/main.js | svpernova09/conference-desk-electron | bcbab9d386b9cc839547d11e57dbe94f49d178ab | [
"MIT"
] | null | null | null | app/main.js | svpernova09/conference-desk-electron | bcbab9d386b9cc839547d11e57dbe94f49d178ab | [
"MIT"
] | null | null | null | app/main.js | svpernova09/conference-desk-electron | bcbab9d386b9cc839547d11e57dbe94f49d178ab | [
"MIT"
] | null | null | null | const {app, BrowserWindow, dialog, Menu} = require('electron');
const fs = require('fs');
const windows = new Set();
| 23.6 | 63 | 0.677966 |
29d5fe690c74c5bb485795668fba53503a886c39 | 350 | js | JavaScript | resources/assets/js/routes.js | leexikang/RollCall | dde2c1cb0a20da7474ff6ffcb560e0f38e56670a | [
"MIT"
] | null | null | null | resources/assets/js/routes.js | leexikang/RollCall | dde2c1cb0a20da7474ff6ffcb560e0f38e56670a | [
"MIT"
] | null | null | null | resources/assets/js/routes.js | leexikang/RollCall | dde2c1cb0a20da7474ff6ffcb560e0f38e56670a | [
"MIT"
] | null | null | null | import router from 'vue-router';
let routes =[
{
path: '/posts',
component: require('./components/Posts')
},
{
path: '/posts/create',
component: require('./components/PostForm')
},
{
path: '/posts/:id/edit',
component: require('./components/PostForm')
}
];
export default new router({
routes,
linkActiveClass: 'is-active'
});
| 14.583333 | 45 | 0.637143 |
29d7d0267ce4d7decea9d90d24e3ae2dbc84fa2d | 1,176 | js | JavaScript | test.js | shroudedcode/gamepad-info | 443b8113197d924aaf8098ba6a1558f6a7c50b7d | [
"MIT"
] | 1 | 2019-01-04T22:11:58.000Z | 2019-01-04T22:11:58.000Z | test.js | shroudedcode/gamepad-info | 443b8113197d924aaf8098ba6a1558f6a7c50b7d | [
"MIT"
] | 3 | 2019-07-11T17:07:43.000Z | 2019-12-29T15:29:43.000Z | test.js | shroudedcode/gamepad-info | 443b8113197d924aaf8098ba6a1558f6a7c50b7d | [
"MIT"
] | null | null | null | const {expect} = require('chai')
const {describe, it} = require('mocha')
const g = require('.')
describe('The `gamepad-info` package', () => {
it('should export a function', () => {
expect(g).to.be.a('function')
})
it('should throw when a non-gamepad object is passed in', () => {
expect(() => g({})).to.throw()
})
describe('should, when called with an ID string in the style of', () => {
for (const [browser, input] of [
['Firefox', '045e-0719-Xbox 360 Wireless Receiver'],
['Chrome / Chromium', 'Xbox 360 Wireless Receiver (Vendor: 045e Product: 0719)']
]) {
describe(browser, () => {
const result = g(input)
it('correctly extract the vendor ID', () => {
expect(result.vendorId).to.equal('045e')
})
it('return a vendor name if possible', () => {
expect(result.vendor).to.equal('microsoft')
})
it('correctly extract the product ID', () => {
expect(result.productId).to.equal('0719')
})
it('correctly extract the name', () => {
expect(result.name).to.equal('Xbox 360 Wireless Receiver')
})
})
}
})
})
| 28.682927 | 86 | 0.55102 |
29d88d23f74115eb36ec32fb5d5f23d0abaae153 | 6,632 | js | JavaScript | concat.js | takagotch/o1177 | 7790e297b0ec309beb777a16efbeabd4768f8ddf | [
"MIT"
] | 1 | 2016-07-15T19:16:32.000Z | 2016-07-15T19:16:32.000Z | concat.js | takagotch/o1177 | 7790e297b0ec309beb777a16efbeabd4768f8ddf | [
"MIT"
] | null | null | null | concat.js | takagotch/o1177 | 7790e297b0ec309beb777a16efbeabd4768f8ddf | [
"MIT"
] | null | null | null | /**
* HOSTS file concatenator.
*
* This script loads files from a folder that each contain host entries
* and concatenates all host entries to an output file without duplicate
* entries.
*/
module.exports = {
// filesystem
_fs : require( "fs" ),
// list of registered events
_events : {},
// module options
_opt : {
scanFrom : "./hosts",
saveTo : "./build/hosts.txt",
allowHosts : "./allow.txt",
hostIp : "127.0.0.1",
lineSpace : "\t",
lineBreak : "\n",
},
// parse data loaded from a hosts file into an object of unique entries
_parseData : function ( data )
{
var hosts = {};
if( typeof data === "string" )
{
data = data.replace( /\#.*?$/gim, "" ); // comments
data = data.replace( /(255\.255\.255\.255|127\.0\.0\.1|0\.0\.0\.0|::1|fe[\w\:\%]+)/gim, "" ); // ips
data = data.replace( /(^|[\r\n]+)?\.?(localhost|localdomain|local|broadcasthost)[^\.].*$/gim, "" ); // localhosts
data = data.replace( /[\r\n\t\s]+/gim, "\n" ).trim(); // empty lines
data.split( "\n" ).forEach( function( host )
{
var key = host.replace( /[^a-zA-Z0-9]+/gm, "" ),
name = host.replace( /[\r\n\t\s\uFEFF\xA0]+/g, "" );
if( key && name && !/^([\d\.]+)$/.test( name ) )
{
hosts[ key ] = name;
}
});
}
return hosts;
},
// merge two lists of loaded hosts data together
_mergeData : function ( obj, merge )
{
if( typeof obj === "object" && typeof merge === "object" )
{
for( var key in merge )
{
if( merge.hasOwnProperty( key ) )
{
obj[ key ] = merge[ key ];
}
}
}
return obj;
},
// filter list of scanned folder contents to only include text files
_filterFiles : function ( files )
{
var output = [];
if( Array.isArray( files ) )
{
files.forEach( function( file )
{
if( /\.(txt)$/i.test( file ) )
{
output.push( file );
}
});
}
return output;
},
// build final list of processed hosts to string
_buildOutput : function ( hosts, allow )
{
var output = "";
if( typeof hosts === "object" )
{
for( var key in hosts )
{
if( hosts.hasOwnProperty( key ) !== true ) continue;
if( typeof allow === "object" && allow.hasOwnProperty( key ) ) continue;
output += this._opt.hostIp + this._opt.lineSpace + hosts[ key ] + this._opt.lineBreak;
}
}
return output;
},
// trigger all handlers for a registered event
_trigger : function()
{
var event = ( arguments.length ) ? [].shift.apply( arguments ) : "";
if( event && this._events.hasOwnProperty( event ) )
{
for( var i = 0; i < this._events[ event ].length; i++ )
{
this._events[ event ][ i ].apply( this, arguments );
}
return true;
}
return false;
},
// trigger all handlers for a registered event to filter content data
_filter : function( event, content )
{
if( event && this._events.hasOwnProperty( event ) )
{
for( var i = 0; i < this._events[ event ].length; i++ )
{
content = this._events[ event ][ i ].call( this, content, this._opt );
}
}
return content;
},
// register an event handler
on : function( event, handler )
{
if( event && typeof event === "string" && typeof handler === "function" )
{
if( Array.isArray( this._events[ event ] ) !== true )
{
this._events[ event ] = [];
}
this._events[ event ].push( handler );
}
return this;
},
// run concat operation
run : function ( options )
{
var _fs = this._fs,
_trigger = this._trigger.bind( this ),
_filter = this._filter.bind( this ),
_parseData = this._parseData.bind( this ),
_mergeData = this._mergeData.bind( this ),
_filterFiles = this._filterFiles.bind( this ),
_buildOutput = this._buildOutput.bind( this ),
_opt = this._mergeData( this._opt, options );
// trigger start event
_trigger( "start", _opt );
// load list of allowed hosts
_fs.readFile( _opt.allowHosts, "utf8", function( e, data )
{
if( e ) _trigger( "error", "Falied to load file: "+ _opt.allowHosts );
var allow = _parseData( data ),
hosts = {},
total = 0,
count = 1,
data = "";
// scan files from input directory
_fs.readdir( _opt.scanFrom, function( e, files )
{
if( e ) _trigger( "error", "Falied scan files from: "+ _opt.scanFrom );
files = _filterFiles( files );
total = files.length;
// process each file
files.forEach( function( file )
{
// ready file data
_fs.readFile( _opt.scanFrom +"/"+ file, "utf8", function( e, data )
{
if( e ) _trigger( "error", "Falied read file data from: "+ _opt.scanFrom +"/"+ file );
hosts = _mergeData( hosts, _parseData( data ) );
if( count === total )
{
// build output data
data = _buildOutput( hosts, allow );
data = _filter( "build", data );
// write final data to file
_fs.writeFile( _opt.saveTo, data, function( e )
{
if( e ) _trigger( "error", "Failed to save output file to: "+ _opt.saveTo );
else _trigger( "finish", _opt );
});
}
count++;
});
});
});
});
},
};
| 31.43128 | 125 | 0.44029 |
29d891a9f6a40a6b8135d63d73f2c07ea5c82213 | 443 | js | JavaScript | assets/js/appCadastro.js | LucasTaborda99/AEP-1 | 4bdaeee563e2813ac757105c9d1953b36faa132d | [
"MIT"
] | 2 | 2021-09-18T17:07:02.000Z | 2021-11-01T18:56:07.000Z | assets/js/appCadastro.js | LucasTaborda99/AEP-1 | 4bdaeee563e2813ac757105c9d1953b36faa132d | [
"MIT"
] | null | null | null | assets/js/appCadastro.js | LucasTaborda99/AEP-1 | 4bdaeee563e2813ac757105c9d1953b36faa132d | [
"MIT"
] | null | null | null | /* ESBOÇO DE FUNÇÕES:
CRIAR VALIDADOR
PÁGINA DE CADASTRADO COM SUCESSO com endereço para pag de login
.*/
function paisSelecionado() {
pais = document.getElementById('pais').value
if (pais == 1) {
new dgCidadesEstados({
cidade: document.getElementById('cidade'),
estado: document.getElementById('estado'),
estadoVal: '',
cidadeVal: ''
})
}
}
| 22.15 | 64 | 0.568849 |
29d925651f0d2ecda528e084ce107c9f4de966fd | 2,157 | js | JavaScript | docs/src/pages/parts/card.js | risuney/molecule-css | 633464a169b86755b8f8be72190dc2d4551006e8 | [
"MIT"
] | 1 | 2022-03-28T17:02:00.000Z | 2022-03-28T17:02:00.000Z | docs/src/pages/parts/card.js | risuney/molecule-css | 633464a169b86755b8f8be72190dc2d4551006e8 | [
"MIT"
] | 1 | 2021-05-31T10:17:27.000Z | 2021-06-06T12:25:47.000Z | docs/src/pages/parts/card.js | risuney/molecule-css | 633464a169b86755b8f8be72190dc2d4551006e8 | [
"MIT"
] | null | null | null | import React, { useEffect } from "react"
import Layout from "../../components/layout"
import Seo from "../../components/seo"
import Hero from "../../components/hero"
import Section from "../../components/section"
import ExImg from "../../static/image.png"
import "./../molecule-page.css"
import hljs from 'highlight.js/lib/core';
import xml from 'highlight.js/lib/languages/xml';
import 'highlight.js/styles/atom-one-dark.css';
hljs.registerLanguage('xml', xml);
const Card = () => {
useEffect(() => {
hljs.initHighlighting();
hljs.initHighlighting.called = false;
});
return (
<Layout>
<Seo title="Card" description="Parts that flexibly deform" />
<Hero title="Card" desc="Parts that flexibly deform" />
<Section sectionTitle="Side by side">
<div className="cards">
<div className="card">Card 1</div>
<div className="card">Card 2</div>
<div className="card">Card 3</div>
<div className="card">Card 4</div>
</div>
<pre>
<code className="language-html">
{`
<div class="cards">
<div class="card">Card 1</div>
<div class="card">Card 2</div>
<div class="card">Card 3</div>
<div class="card">Card 4</div>
</div>
`}
</code>
</pre>
</Section>
<Section sectionTitle="Sizes">
<div className="card size-small">Small</div>
<div className="card size-medium">Medium</div>
<div className="card size-large">Large</div>
<pre>
<code className="language-html">
{`
<div class="card size-small">Small</div>
<div class="card size-medium">Medium</div>
<div class="card size-large">Large</div>
`}
</code>
</pre>
</Section>
<Section sectionTitle="Visual card">
<div className="card size-medium has-visual">
<div className="card-visual">
<img src={ExImg} alt="Example" />
</div>
<div className="card-body">
<p className="size-4">Visual card</p>
<p>This is visual card</p>
</div>
</div>
</Section>
</Layout>
)
}
export default Card
| 29.547945 | 67 | 0.579045 |
29d978ec45eb4fc0ad7e1b0ce95538fe63fd9440 | 1,090 | js | JavaScript | src/theme-provider/index.js | CAAPIM/react-themer | 544fcf376e29cb3213fb863893f56e0531244738 | [
"MIT"
] | 1 | 2020-06-03T15:39:31.000Z | 2020-06-03T15:39:31.000Z | src/theme-provider/index.js | CAAPIM/react-themer | 544fcf376e29cb3213fb863893f56e0531244738 | [
"MIT"
] | 62 | 2017-01-13T20:28:47.000Z | 2020-06-02T23:47:20.000Z | src/theme-provider/index.js | CAAPIM/react-themer | 544fcf376e29cb3213fb863893f56e0531244738 | [
"MIT"
] | 1 | 2017-09-14T22:33:26.000Z | 2017-09-14T22:33:26.000Z | /**
* Copyright (c) 2017 CA. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
// @flow
import React from 'react';
import PropTypes from 'prop-types';
import { themer } from 'ca-ui-themer';
type Props = {
theme: Object,
themer?: ?Object,
children?: ?React.Element<*>,
};
const OnlyChildren = ({ children }) => (
children ?
React.Children.only(children) :
null
);
export default class ThemeProvider extends React.Component {
static childContextTypes = {
theme: PropTypes.object,
};
getChildContext() {
return {
theme: this.props.theme,
};
}
componentWillMount() {
const themerInstance = this.props.themer || themer;
// Fetch the resolved Component and theme from the themerInstance
this.resolvedAttrs = themerInstance.resolveAttributes(OnlyChildren, [this.props.theme]);
}
props: Props;
resolvedAttrs: Object = {};
render() {
return React.createElement(this.resolvedAttrs.snippet, {}, this.props.children);
}
}
| 20.961538 | 92 | 0.678899 |
29db4f4e894951700080d88bf5630e46971ba36c | 60 | js | JavaScript | packages/dsv-website/public/docs/api/array/swap/config.js | youngwinds/data-structure-visualization | 0d30e05811c3ed4215289e69befbea9df9ea5eb3 | [
"MIT"
] | 2 | 2022-02-17T14:35:00.000Z | 2022-02-17T14:42:36.000Z | packages/dsv-website/public/docs/api/array/swap/config.js | youngwinds/data-structure-visualization | 0d30e05811c3ed4215289e69befbea9df9ea5eb3 | [
"MIT"
] | 1 | 2022-02-18T05:07:07.000Z | 2022-02-18T05:19:06.000Z | packages/dsv-website/public/docs/api/tree/swap/config.js | youngwinds/data-structure-visualization | 0d30e05811c3ed4215289e69befbea9df9ea5eb3 | [
"MIT"
] | null | null | null | module.exports = {
'zh-CN': 'swap',
'en-US': 'swap',
};
| 12 | 18 | 0.483333 |
29dc5d31026bcb08c131949fa509b6323327b46c | 1,018 | js | JavaScript | services/purchaseService.js | lawrencechen0921/smart-fridge-1 | 42ba9a4e49c784485d284ee2c14e4072c5071145 | [
"MIT"
] | 11 | 2017-08-14T08:43:37.000Z | 2022-01-17T13:06:18.000Z | services/purchaseService.js | lawrencechen0921/smart-fridge-1 | 42ba9a4e49c784485d284ee2c14e4072c5071145 | [
"MIT"
] | 4 | 2017-08-14T08:41:03.000Z | 2017-11-03T16:06:40.000Z | services/purchaseService.js | lawrencechen0921/smart-fridge-1 | 42ba9a4e49c784485d284ee2c14e4072c5071145 | [
"MIT"
] | 3 | 2017-08-18T09:05:57.000Z | 2019-09-25T11:54:59.000Z | const Client = require('./databaseService');
function getPurchasesForUser(userId) {
return Client.query({
text: 'SELECT * FROM purchases WHERE user_id = $1 ORDER BY timestamp DESC;',
values: [userId]
})
.then(function(result) {
return result.rows;
});
}
function getPurchases() {
return Client.query({
text: 'SELECT * FROM purchases;',
})
.then(function(result) {
return result.rows;
});
}
function createPurchaseForUserId(userId) {
return Client.query({
text: 'INSERT INTO purchases(user_id, price_cents, timestamp) VALUES($1, $2, $3) RETURNING *;',
values: [userId, 100, new Date()]
})
.then(function(result) {
return result.rows[0];
});
}
function deletePurchasesForUserId(userId) {
return Client.query({
text: 'DELETE FROM purchases WHERE user_id = $1;',
values: [userId]
});
}
module.exports = {
getPurchasesForUser,
getPurchases,
createPurchaseForUserId,
deletePurchasesForUserId
};
| 22.622222 | 101 | 0.640472 |
29dcb0f0cff0884990dd9265024d6555e9ad0640 | 10,838 | js | JavaScript | src/gameObjects/actor/actor.js | smiley405/one-punch-1000-demons | 48c4948263850a6eae17fb4a9b82f5bc73e205ff | [
"MIT"
] | null | null | null | src/gameObjects/actor/actor.js | smiley405/one-punch-1000-demons | 48c4948263850a6eae17fb4a9b82f5bc73e205ff | [
"MIT"
] | null | null | null | src/gameObjects/actor/actor.js | smiley405/one-punch-1000-demons | 48c4948263850a6eae17fb4a9b82f5bc73e205ff | [
"MIT"
] | 1 | 2021-09-13T09:49:36.000Z | 2021-09-13T09:49:36.000Z | import { BEHAVIOUR_STATES, FLIP_H_SIDE } from "../../const";
import { GameObject } from "../../gameObject";
export function Actor(_root, container) {
var DEFAULT_GRAVITY = 0.9;
var e = new GameObject(_root, container).init();
this._update = e.update;
return Object.assign(e, this, {
init: function() {
this.skin = null;
this.body = null;
this.attackHitArea = null;
this.health = 10;
this.damage = 1;
this.speedX = 3;
this.speedY = 1;
this.vx = this.speedX;
this.vy = 0;
this.ax = 0;
this.ay = 0;
this.gravity = DEFAULT_GRAVITY;
this.jumpForce = 8;
this.isOnGround = false;
this.isFalling = false;
this.isJumping = false;
this.isAttack = false;
this.isTakeDamage = false;
this.isPowerAttack = false;
this.isPowerAttackUsed = false;
this.isAllowAttack = true;
this.timeouts.allowAttack = null;
this.flipH = FLIP_H_SIDE.RIGHT.value;
this.isDead = false;
this.ignoreWallNameForCollision = "";
this.activeBehaviourState = BEHAVIOUR_STATES.NONE;
return this;
},
/**
*
* @param {string} spriteName
* @param {ga.rectangle} options - optional, ga.rectangle( ...param ) plus, {flipH}
*/
create: function(spriteName, options) {
if (!this.skin) {
options = options || {};
this.skin = this.createSprite(spriteName);
this.skin.onAnimationComplete = this.onSkinAnimationComplete.bind(this);
var width = options.width || this.skin.halfWidth;
var height = options.height || this.skin.height;
this.body = this.g.rectangle(width, height, options.fillStyle, options.strokeStyle, options.lineWidth, options.x, options.y);
this.body.visible = false;
this.container.addChild(this.skin);
this.container.addChild(this.body);
this.addToHitAreaWatchList([this.body]);
this.updateSkinToBody();
if (options.flipH) {
this.flip(options.flipH);
}
}
},
/**
*
* @param {ga.rectangle} options
*/
createAttackHitArea: function(options) {
options = options || {};
var width = options.width || this.body.width;
var height = options.height || this.body.halfHeight;
this.attackHitArea = this.g.rectangle(width, height, options.fillStyle, options.strokeStyle, options.lineWidth, options.x, options.y);
this.container.addChild(this.attackHitArea);
this.addToHitAreaWatchList([this.attackHitArea]);
this.updateAttackHitAreaToBody();
},
isFlipH: function() {
return Boolean(this.flipH === FLIP_H_SIDE.LEFT.value);
},
/**
*
* @param {string|number} side - ["right" or "left"] or [1 or -1]
*/
flip: function(side) {
side = isNaN(side) ? side : this.getFlipHSide(side);
switch(side) {
case FLIP_H_SIDE.RIGHT.side:
this.flipH = FLIP_H_SIDE.RIGHT.value;
if ( this.skin.scaleX < 0 ) {
this.skin.scaleX *= -1;
}
break;
case FLIP_H_SIDE.LEFT.side:
this.flipH = FLIP_H_SIDE.LEFT.value;
if ( this.skin.scaleX > 0 ) {
this.skin.scaleX *= -1;
}
break;
}
},
getFlipHSide: function(sideByNumber) {
return (sideByNumber === FLIP_H_SIDE.LEFT.value ? FLIP_H_SIDE.LEFT.side : FLIP_H_SIDE.RIGHT.side);
},
updateToGravity: function() {
this.vy += this.ay;
this.vy += this.gravity;
this.body.y += this.vy;
},
updateBodyVelocityX: function() {
this.vx += this.ax;
this.body.x += this.vx;
},
updateOnGroundCommonProps: function() {
this.gravity = DEFAULT_GRAVITY;
this.isJumping = false;
this.isFalling = false;
},
vsPlatforms: function(platforms) {
for (var i = 0; i < platforms.length; i++) {
var platform = platforms[i];
var testResult = this.g.hitTest({
target: platform,
source: this.body
});
if (testResult.hit) {
if (testResult.side === "bottom" && this.vy >= 0) {
this.isOnGround = true;
this.isFalling = false;
this.isJumping = false;
this.body.y = platform.y - this.body.height;
this.vy = -this.gravity;
} else if (testResult.side === "top" && this.vy <= 0) {
this.vy = 0;
} else if (testResult.side === "right" && this.vx >= 0) {
this.x = platform.x - this.width;
this.vx = 0;
} else if (testResult.side === "left" && this.vx <= 0) {
this.x = platform.x + platform.width;
this.vx = 0;
}
if (testResult.side !== "bottom" && this.vy > 0) {
this.isOnGround = false;
}
}
}
},
vsWalls: function() {
for (var i = 0; i < this._root.background.walls.length; i++) {
var wall = this._root.background.walls[i];
if (this.ignoreWallNameForCollision === wall.name) { return; }
var testResult = this.g.hitTest({
target: wall,
source: this.body
});
if (testResult.hit) {
if (testResult.side === "right" && this.vx >= 0) {
this.flip(FLIP_H_SIDE.LEFT.side);
} else if (testResult.side === "left" && this.vx <= 0) {
this.flip(FLIP_H_SIDE.RIGHT.side);
}
}
}
},
attack: function(attackAnimationName) {
if (this.isOnGround) {
this.playAnimation(this.skin, attackAnimationName);
this.isAttack = true;
this.isAllowAttack = false;
this.killTimeout("allowAttack");
}
},
getReversedFlipH: function(flipH) {
flipH = flipH || this.flipH;
return flipH === FLIP_H_SIDE.RIGHT.value ? FLIP_H_SIDE.LEFT.value : FLIP_H_SIDE.RIGHT.value;
},
forceJump: function(force, animation) {
var upForce = force || this.jumpForce;
animation = animation || "jump";
this.vy = -upForce;
this.isOnGround = false;
this.isJumping = true;
this.playAnimation(this.skin, animation);
},
receiveDamage: function(amount, dieFlipHSide, jumpForce) {
jumpForce = jumpForce || 3;
this.health -= amount;
this.isTakeDamage = true;
this.forceJump(jumpForce, "hurt");
if( this.health <= 0 ) {
this.kill( dieFlipHSide );
} else {
this.playAnimation(this.skin, "hurt");
}
},
showSkinBody: function(visible) {
this.skin.visible = visible;
this.body.visible = visible;
},
removeSkinBody: function() {
this.skin.parent.removeChild(this.skin);
this.body.parent.removeChild(this.body);
},
forceMoveTo: function(forceFlipHSide, distance) {
this.body.x = distance;
this.flip(forceFlipHSide);
},
kill: function(dieFlipHSide) {
this.isDead = true;
this.playAnimation(this.skin, "die");
if (dieFlipHSide) {
this.flip(dieFlipHSide);
}
this.middlewareOnKill();
},
checkMaxGroundFall: function() {
if (!this.isDead && this.body.y > this._root.background.ground.y){
this.receiveDamage(this.health);
}
},
getSafestMoveXRange: function(body, flipH, targetRange, wall1, wall2) {
wall1 = wall1 || this._root.background.wall1;
wall2 = wall2 || this._root.background.wall2;
var wall1RightEnd = wall1.x + wall1.width;
var wall2LeftEnd = wall2.x;
var x = body.x + targetRange * flipH;
if (x <= wall1RightEnd) {
x = wall1RightEnd + body.width;
}
if (x >= wall2LeftEnd) {
x = wall2LeftEnd - body.width;
}
return x;
},
onCompleteAttack: function(duration, callback, isFirstResetAttack, isForceReset) {
isFirstResetAttack = isFirstResetAttack !== undefined ? isFirstResetAttack : true;
if (this.isAttack || isForceReset) {
if (isFirstResetAttack) {
this.isAttack = false;
this.middlewareOnCompleteAttack();
}
this.timeouts.allowAttack = setTimeout(function() {
this.isAllowAttack = true;
this.isAttack = false;
if (callback) {
callback();
}
}.bind(this), duration);
}
},
updateSkinToBody: function() {
if (this.skin) {
this.skin.x = this.body.x - this.body.halfWidth;
this.skin.y = this.body.y;
}
},
updateAttackHitAreaToBody: function() {
if (this.attackHitArea) {
this.attackHitArea.x = this.isFlipH() ? this.body.x - this.body.width : this.body.centerX;
this.attackHitArea.y = this.body.y;
this.attackHitArea.visible = !this.isDead && this.isAttack && this._root.config.debug;
}
},
update: function(isSyncWithGameOver) {
this._update(true);
this.checkMaxGroundFall();
this.onUpdate();
},
onUpdate: function(){},
middlewareOnCompleteAttack: function() {},
middlewareOnKill: function() {},
onSkinAnimationComplete: function() {}
});
}
| 36.247492 | 146 | 0.488374 |
29dde0c010559c6d3e371d28dde8a93f391fc39c | 280 | js | JavaScript | src/pages/404.js | SharanSMenon/gatsby-bootcamp | 43e4c0968debfa5018cc81e5cf2ca0eb39275746 | [
"MIT"
] | null | null | null | src/pages/404.js | SharanSMenon/gatsby-bootcamp | 43e4c0968debfa5018cc81e5cf2ca0eb39275746 | [
"MIT"
] | null | null | null | src/pages/404.js | SharanSMenon/gatsby-bootcamp | 43e4c0968debfa5018cc81e5cf2ca0eb39275746 | [
"MIT"
] | null | null | null | import React from 'react';
import Layout from '../components/layout'
import { Link } from 'gatsby';
export default (props) => {
return (
<Layout>
<h1>404 Error. Page not found.</h1>
<p><Link to="/">Head Home</Link></p>
</Layout>
)
} | 25.454545 | 48 | 0.542857 |
29df426b12b0fc077f01554b19ab3a2a9d63b98c | 1,871 | js | JavaScript | firefox/ff.js | leftlogic/remote-debug | 8efbee6f0bacd4ae067f9cbd895c7011a47a878d | [
"MIT"
] | 17 | 2015-01-01T10:38:36.000Z | 2021-12-17T03:16:36.000Z | firefox/ff.js | leftlogic/remote-debug | 8efbee6f0bacd4ae067f9cbd895c7011a47a878d | [
"MIT"
] | null | null | null | firefox/ff.js | leftlogic/remote-debug | 8efbee6f0bacd4ae067f9cbd895c7011a47a878d | [
"MIT"
] | null | null | null | var net = require('net');
var build_packet = function (packet) {
var packet_str = JSON.stringify(packet);
return '' + packet_str.length + ':' + packet_str;
};
var write = function (client, packet) {
console.log("OUT:", build_packet(packet));
console.log("\n");
client.write(build_packet(packet));
};
var get_tabs = function (client) {
write(client, {
to: "root",
type: "listTabs"
});
};
var attach = function (client, actor) {
write(client, {
to: actor,
type: "attach"
});
};
var detach = function (client, actor) {
write(client, {
to: actor,
type: "detach"
});
};
var get_frames = function (client, actor) {
write(client, {
to: actor,
type: "frames"
});
};
var resume = function (client, actor) {
write(client, {
to: actor,
type: "resume"
});
};
var interrupt = function (client, actor) {
write(client, {
to: actor,
type: "interrupt"
});
};
var start_listeners = function (client, actor) {
write(client, {
to: actor,
type: "startListeners",
listeners: ["ConsoleAPI"]
});
};
var evaluate_js = function (client, actor, js) {
write(client, {
to: actor,
type: "evaluateJS",
text: js
});
};
var opts = {
host: 'localhost',
port: 6002
};
var client = net.connect(opts, function() {
console.log('client connected');
});
client.on('data', function(data) {
var data_str = data.toString();
var packet = JSON.parse(data_str.slice(data_str.indexOf(':') + 1));
console.log(packet);
console.log('\n\n');
if( packet.applicationType === "browser" ) {
get_tabs(client);
}
if( packet.tabs ) {
start_listeners(client, packet.tabs[1].consoleActor);
}
if( packet.nativeConsoleAPI ) {
evaluate_js(client, packet.from, 'document.title = "Hello.";');
}
});
client.on('end', function() {
console.log('client disconnected');
}); | 18.89899 | 69 | 0.608765 |
29e0263c9e906c9c640c3402e2a7888df5509150 | 2,243 | js | JavaScript | js/todo.js | apostkor/Aydo | a40950c8e3f079177399e4f556e27e1c6e5c1367 | [
"MIT"
] | null | null | null | js/todo.js | apostkor/Aydo | a40950c8e3f079177399e4f556e27e1c6e5c1367 | [
"MIT"
] | null | null | null | js/todo.js | apostkor/Aydo | a40950c8e3f079177399e4f556e27e1c6e5c1367 | [
"MIT"
] | null | null | null | const todoinput = todoForm.querySelector('input'),
list = document.querySelector('.js-list');
let datalist = [];
function saveDatalist(datalist) {
localStorage.setItem('currentList', JSON.stringify(datalist));
}
function handleClick(e) {
const todoQeus = document.querySelector('.todoQeus');
const todoHead = todoForm.querySelector('.todoHead');
const parentButton = e.target.parentNode;
// datalist = datalist.filter(function (data) {
// return data.data != e.target.previousSibling.data;
// })
datalist = [];
localStorage.setItem('currentList', datalist);
todoQeus.classList.remove('hiding');
todoinput.classList.remove('hiding');
todoHead.remove();
parentButton.remove();
}
function createlist(value) {
const li = document.createElement('li');
const span = document.createElement('span');
const btn = document.createElement('button');
span.innerHTML = value;
btn.innerHTML = '×';
list.appendChild(li);
li.appendChild(span);
li.appendChild(btn);
btn.addEventListener('click', handleClick);
}
function createHead() {
const todoQeus = document.querySelector('.todoQeus');
const todoHead = document.createElement('h1');
todoHead.innerHTML = 'TODAY';
todoHead.className = 'todoHead';
todoQeus.classList.add('hiding');
todoinput.classList.add('hiding');
todoForm.appendChild(todoHead);
}
function handleTodoSubmit(e) {
e.preventDefault();
if(todoinput.value === ''){
alert('입력값이 없습니다');
}else {
createlist(todoinput.value);
const addList = {
data: todoinput.value
}
datalist.push(addList);
saveDatalist(datalist);
todoinput.value = '';
createHead();
}
}
function paintingList(currentList) {
createHead();
currentList.forEach(function (data) {
createlist(data.data);
})
datalist = currentList;
}
function getList() {
const currentList = localStorage.getItem('currentList');
if (currentList !== null && currentList !== '') {
paintingList(JSON.parse(currentList));
}
}
function init() {
getList();
todoForm.addEventListener('submit', handleTodoSubmit)
}
init(); | 26.702381 | 66 | 0.650022 |
29e05de991aa4ef2a697fa863c44a913b67ef1f6 | 1,079 | js | JavaScript | esm/server.js | podlomar/kodim-cms | 786b5b895d9f677dcb2a941b2f9999a8f34deba9 | [
"MIT"
] | null | null | null | esm/server.js | podlomar/kodim-cms | 786b5b895d9f677dcb2a941b2f9999a8f34deba9 | [
"MIT"
] | null | null | null | esm/server.js | podlomar/kodim-cms | 786b5b895d9f677dcb2a941b2f9999a8f34deba9 | [
"MIT"
] | null | null | null | import express from 'express';
export class CmsApp {
constructor(cms) {
this.handleGetEntry = async (req, res) => {
var _a;
const provider = this.getProviderByPath((_a = req.params[0]) !== null && _a !== void 0 ? _a : '');
res.json(await provider.fetch());
};
this.handleGetAsset = async (req, res) => {
const lastSlashIndex = req.params[0].lastIndexOf('/');
const fileName = req.params[0].slice(lastSlashIndex + 1);
const providerPath = req.params[0].slice(0, lastSlashIndex);
const assetPath = this.getProviderByPath(providerPath).asset(fileName);
res.sendFile(assetPath);
};
this.cms = cms;
this.router = express.Router();
this.router.get(['/content/kurzy', '/content/kurzy/*'], this.handleGetEntry);
this.router.get(['/assets/kurzy', '/assets/kurzy/*'], this.handleGetAsset);
}
getProviderByPath(path) {
const links = path.split('/');
return this.cms.getRoot().search(...links);
}
}
| 41.5 | 110 | 0.578313 |
29e07439318751a72ba36d42a3d90915c962e432 | 397 | js | JavaScript | src/views/index.js | tinas/kodilan-mobile-draft | 075e8b781a3e22e9886db532c7788f6cb48f5c7f | [
"MIT"
] | null | null | null | src/views/index.js | tinas/kodilan-mobile-draft | 075e8b781a3e22e9886db532c7788f6cb48f5c7f | [
"MIT"
] | null | null | null | src/views/index.js | tinas/kodilan-mobile-draft | 075e8b781a3e22e9886db532c7788f6cb48f5c7f | [
"MIT"
] | null | null | null | import TodayPostsView from './today'
import ThisWeekPostsView from './this-week'
import ThisMonthPostsView from './this-month'
import AllPostsView from './all'
import DetailView from './detail'
import SearchView from './search'
import SearchResultView from './search-result'
export { TodayPostsView, ThisWeekPostsView, ThisMonthPostsView, AllPostsView, DetailView, SearchView, SearchResultView }
| 39.7 | 120 | 0.803526 |
6121c2968891f8abf19b6c78f21a577c7b6da8ff | 191 | js | JavaScript | template/src/apis/api.config.js | scdmn/demo-template-shared-pure | ad15509f6ab83e971e7123140fff4d01033cace3 | [
"MIT"
] | null | null | null | template/src/apis/api.config.js | scdmn/demo-template-shared-pure | ad15509f6ab83e971e7123140fff4d01033cace3 | [
"MIT"
] | null | null | null | template/src/apis/api.config.js | scdmn/demo-template-shared-pure | ad15509f6ab83e971e7123140fff4d01033cace3 | [
"MIT"
] | null | null | null | import {apiFactory} from '@smart-link/context';
import * as mocks from './mocks';
const apiConfig = {
mock: false,
mocks,
};
const api = apiFactory(apiConfig);
export default api;
| 15.916667 | 47 | 0.675393 |
6122a64c84af7dd59b1d76abcf81b921844f2ca2 | 900 | js | JavaScript | plugins/gatsby-source-random/gatsby-node.js | pfeilbr/gatsbyjs-playground | 5f952d3ac1576cc130975c1524a97e104d9a2772 | [
"MIT"
] | null | null | null | plugins/gatsby-source-random/gatsby-node.js | pfeilbr/gatsbyjs-playground | 5f952d3ac1576cc130975c1524a97e104d9a2772 | [
"MIT"
] | 2 | 2021-03-09T01:20:37.000Z | 2021-05-08T07:03:54.000Z | plugins/gatsby-source-random/gatsby-node.js | pfeilbr/gatsbyjs-playground | 5f952d3ac1576cc130975c1524a97e104d9a2772 | [
"MIT"
] | null | null | null | exports.sourceNodes = (
{ actions, createNodeId, createContentDigest },
configOptions
) => {
const { createNode } = actions
// Gatsby adds a configOption that's not needed for this plugin, delete it
delete configOptions.plugins
const items = [
{
id: 0,
name: "car",
},
{
id: 1,
name: "truck",
},
]
const processItem = item => {
const nodeId = createNodeId(`random-item-${item.id}`)
const nodeContent = JSON.stringify(item)
const nodeData = Object.assign({}, item, {
id: nodeId,
parent: null,
children: [],
internal: {
type: `RandomItem`,
content: nodeContent,
contentDigest: createContentDigest(item),
},
})
return nodeData
}
items.forEach(item => createNode(processItem(item)))
// plugin code goes here...
console.log("Testing my plugin", configOptions)
}
| 21.428571 | 76 | 0.601111 |
61231ee603537ad82005382720682f027e922c98 | 2,418 | js | JavaScript | Programo/src/script.js | AcamicaDWFS/Clase_29_Promesas | 7e7bc9e84c600484e63816647101ea6ea85d45eb | [
"MIT"
] | null | null | null | Programo/src/script.js | AcamicaDWFS/Clase_29_Promesas | 7e7bc9e84c600484e63816647101ea6ea85d45eb | [
"MIT"
] | null | null | null | Programo/src/script.js | AcamicaDWFS/Clase_29_Promesas | 7e7bc9e84c600484e63816647101ea6ea85d45eb | [
"MIT"
] | null | null | null | //Creación de promesas
//ejemplo de promesa resuelta
let promise1 = new Promise((resolve, reject) => {
// resolve y reject
setTimeout(function () {
resolve("La promesa fue resuelta");
}, 250);
setTimeout(function () {
reject("La promesa se rechazo");
}, 350);
});
//console.info(promise1);
promise1.then((successMessage) => {
console.info("Respuesta de promesa1: " + successMessage);
}).catch((errorMessage) => {
console.info("Error de promesa1: " + errorMessage);
});
//Ejemplo sincrono para compara
let successMessage;
setTimeout(function () {
successMessage = "Promesa resuelta!";
}, 250);
console.log('Respuesta síncrona: ' + successMessage);
// ejemplo promesa rechazada
//let promise2 = new Promise((resolve, reject) => {
// resolve y reject
// setTimeout(function () {
// resolve("La promesa fue resuelta");
// }, 350);
// setTimeout(function () {
// reject("La promesa se rechazo");
// }, 250);
// try {
// código correcto
// resolve("ok");
// } catch (error) {
// reject(error);
// }
//});
//console.info(promise2);
/* promise2.then((successMessage) => {
console.info("Respuesta de promesa1: " + successMessage);
}).catch((errorMessage) => {
console.info("Error de promesa1: " + errorMessage);
}); */
//ejemplo de promesa pendiente que termina resolviéndose
let promesa3 = new Promise((resolve, reject) => {
console.log("pending...");
setTimeout(function () {
if (true) {
resolve("Promesa resuelta!");
} else {
reject("Promesa rechazada!");
}
}, 3500);
});
promesa3.then((successMessage) => {
console.log('Respuesta de promesa3: ' + successMessage);
}).catch((errorMessage) => {
console.log("¡Error de promesa3! " + errorMessage);
});
// ejemplo de fetch con promesa
let imgCtn = document.getElementById('imgCtn');
console.info(imgCtn);
function getDogImg(url) {
fetch(url)
.then(response => response.json())
.then(json => {
//console.log(json);
let dogImg = document.createElement('img');
dogImg.setAttribute('src', json.message);
dogImg.style.width = '300px';
imgCtn.appendChild(dogImg);
}).catch(err => {
console.error('fetch failed', err);
});
}
getDogImg("https://dog.ceo/api/breeds/image/random");
| 26.282609 | 61 | 0.599256 |
612389d63f0b919ae9ecb8c46f131a8af3dcf633 | 1,030 | js | JavaScript | test/api/multi-tenancy.test.js | e-part/open-community-app | 96bda621c281fc6142b1d344847a83c4205c2a4b | [
"MIT"
] | 1 | 2018-02-10T14:50:05.000Z | 2018-02-10T14:50:05.000Z | test/api/multi-tenancy.test.js | e-part/open-community-app | 96bda621c281fc6142b1d344847a83c4205c2a4b | [
"MIT"
] | null | null | null | test/api/multi-tenancy.test.js | e-part/open-community-app | 96bda621c281fc6142b1d344847a83c4205c2a4b | [
"MIT"
] | null | null | null | /**
* Created by yotam on 28/06/2016.
*/
var config = require('../config');
var assert = require('assert');
var supertest = require('supertest');
var status = require('http-status');
var u = require('../utils/utils');
describe('Multi tenancy', function () {
describe('with admin session', function () {
it('should try to get a post that exists on a different customer', function (done) {
supertest(app).get(config.apiPrefix + '/posts/' + config.PUBLISHED_POST_ID)
.set('authorization', config.ADMIN_TOKEN)
.end(function (err, res) {
assert.equal(res.status, status.OK);
done();
});
});
it('should try to get a post that exists on a different customer', function (done) {
supertest(app).get(config.apiPrefix + '/posts/' + config.POST_WITH_A_DIFFERENT_CUSTOMER_ID)
.set('authorization', config.ADMIN_TOKEN)
.end(function (err, res) {
assert.equal(res.status, status.NOT_FOUND);
done();
});
});
});
});
| 31.212121 | 97 | 0.613592 |
61241bb0023f85c077c643bbe5d47fcbb533471a | 1,251 | js | JavaScript | docs/html/search/functions_a.js | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 11 | 2015-03-24T07:01:07.000Z | 2021-04-09T13:03:31.000Z | docs/html/search/functions_a.js | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 9 | 2015-03-25T01:18:46.000Z | 2018-07-23T18:09:16.000Z | docs/html/search/functions_a.js | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 9 | 2015-01-30T17:47:28.000Z | 2018-07-23T16:50:03.000Z | var searchData=
[
['leaveeditor_566',['LeaveEditor',['../classEditor.html#a301b54d2bcc16c99309fc00f78f31741',1,'Editor']]],
['leavegame_567',['LeaveGame',['../classLiving.html#a411ca30e86e7a019f4a4a7f6ae55876a',1,'Living::LeaveGame()'],['../classPlayer.html#ac093642a5a8baa6e420959bb7c45d834',1,'Player::LeaveGame()']]],
['linehandler_568',['LineHandler',['../classLineHandler.html#a73d23031a235ccfb33025d407ac3ea39',1,'LineHandler']]],
['list_569',['List',['../classEditor.html#a9747fcb89861d7363844d54e287f82e4',1,'Editor']]],
['listaddresses_570',['ListAddresses',['../classBanList.html#a59590e2eb3a600f101ceb06873936ce7',1,'BanList']]],
['listcommands_571',['ListCommands',['../classAlias.html#a9d4893efdba7ef4daac1ddb89b411754',1,'Alias']]],
['listen_572',['Listen',['../classListener.html#a3639a1bed3573819b9c2eb7f7defd0ca',1,'Listener::Listen()'],['../classServer.html#a59569ee2063947ac613808958a450e49',1,'Server::Listen()']]],
['load_573',['Load',['../classConfiguration.html#a41c52ac2962920e0ff1404f48dd29a68',1,'Configuration::Load()'],['../classEditor.html#a0fd6c1771841f7529c4478c0b7c8fbc8',1,'Editor::Load()']]],
['lookargs_574',['LookArgs',['../classLookArgs.html#a04b3dec73927c6826932f28b98f817bb',1,'LookArgs']]]
];
| 96.230769 | 198 | 0.747402 |
612459386496f2f7aa6a6af7dc60d17c6d9858fe | 166 | js | JavaScript | exercicios-js/fundamentos/1-organizacao.js | mdcg/curso-web-moderno-cod3r | 355184b2678274f025c79ee23096f41de27d68df | [
"MIT"
] | null | null | null | exercicios-js/fundamentos/1-organizacao.js | mdcg/curso-web-moderno-cod3r | 355184b2678274f025c79ee23096f41de27d68df | [
"MIT"
] | null | null | null | exercicios-js/fundamentos/1-organizacao.js | mdcg/curso-web-moderno-cod3r | 355184b2678274f025c79ee23096f41de27d68df | [
"MIT"
] | null | null | null | console.log("Uma sentença de código")
// Blocos
{
{
console.long("Olá"); // Podem terminar com ;
console.log("Mundo!") // Padrão do curso
}
} | 18.444444 | 52 | 0.560241 |
6125aebc8930153ed8c1be353e51c668818d93ee | 6,041 | js | JavaScript | node_modules/elation-share/scripts/targets/facebook.js | aadityavaze/janusweb-prac | 17ffd59d9c2f2b43dfa7a0fd2d077590f6d7dabe | [
"MIT"
] | null | null | null | node_modules/elation-share/scripts/targets/facebook.js | aadityavaze/janusweb-prac | 17ffd59d9c2f2b43dfa7a0fd2d077590f6d7dabe | [
"MIT"
] | null | null | null | node_modules/elation-share/scripts/targets/facebook.js | aadityavaze/janusweb-prac | 17ffd59d9c2f2b43dfa7a0fd2d077590f6d7dabe | [
"MIT"
] | null | null | null | elation.require(["share.targets.base"], function() {
elation.component.add("share.targets.facebook", function() {
this.init = function() {
this.name = 'facebook';
this.types = ['*'];
this.logo = 'facebook.png';
this.addclass('share_picker_facebook');
this.clientid = this.args.clientid;
this.initialized = false;
this.authResponse = false;
this.uploads = [];
this.finished = [];
}
this.auth = function() {
return new Promise(elation.bind(this, function(resolve, reject) {
if (!this.initialized) {
this.loadScript().then(elation.bind(this, function() {
this.login().then(elation.bind(this, function() { resolve(this.authResponse); }));
}));
} else {
this.login().then(elation.bind(this, function() { resolve(this.authResponse); }));
}
}));
}
this.login = function() {
return new Promise(elation.bind(this, function(resolve, reject) {
FB.login(elation.bind(this, function(response) {
if (response.authResponse) {
this.authResponse = response.authResponse;
resolve(this.authResponse);
} else {
this.authResponse = false;
reject();
}
}), {scope: 'public_profile,user_photos,publish_actions'});
}));
}
this.share = function(data) {
return new Promise(elation.bind(this, function(resolve, reject) {
if (!this.authResponse) {
this.auth().then(elation.bind(this, function() {
this.uploadImage(data).then(resolve, reject);
}));
} else {
this.uploadImage(data).then(resolve, reject);
}
}));
}
this.loadScript = function() {
return new Promise(elation.bind(this, function(resolve, reject) {
window.fbAsyncInit = elation.bind(this, function() {
FB.init({
appId : this.clientid,
xfbml : false,
version : 'v2.8',
status : true
});
this.initialized = true;
resolve();
});
if (window.FB) {
fbAsyncInit();
} else {
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}
}));
}
this.sharePage = function(data) {
return new Promise(elation.bind(this, function(resolve, reject) {
var url = document.location.href;
FB.ui({method: 'share', href: url}, function(response) {
resolve(response);
})
}));
}
this.getAPIData = function(data) {
var datablob = this.Uint8ArrayToBlob(data.image, data.type);
var formdata = new FormData();
formdata.append("source", datablob);
formdata.append("allow_spherical_photo", true);
//formdata.append("caption", data.name); // Facebook says we're not actually allowed to use this parameter
formdata.append("published", true);
formdata.append("temporary", false);
return formdata;
}
this.getAPIUploadURL = function(data) {
var url = 'https://graph.facebook.com/me/photos?access_token=' + this.authResponse.accessToken;
return url;
}
this.getAPIUploadRequests = function(data) {
var posturl = this.getAPIUploadURL(data),
apidata = this.getAPIData(data),
headers = {}; //elation.utils.merge(this.getAPIHeaders(data), this.getAPIUploadHeaders(data));
var requests = [
{ type: 'POST', url: posturl, data: apidata, headers: headers }
];
return requests;
}
this.uploadImage = function(data) {
return new Promise(elation.bind(this, function(resolve, reject) {
var requests = this.getAPIUploadRequests(data);
var upload = elation.share.upload({data: data, requests: requests, append: this, target: this});
this.uploads.push(upload);
elation.events.add(upload, 'upload_complete', elation.bind(this, function(ev) { var response = this.upload_complete(ev); resolve(upload, response); }));
elation.events.add(upload, 'upload_failed', elation.bind(this, function(ev) { this.upload_failed(ev); reject(upload); }));
this.refresh();
upload.refresh();
/*
elation.net.post('https://graph.facebook.com/me/photos?access_token=' + this.authResponse.accessToken, formdata, {
callback: function(data) {
// TODO - we need to create the proper objects and pass them here
if (!data.error) {
resolve(data);
} else {
reject(data);
}
}
});
*/
}));
}
this.upload_complete = function(ev) {
var upload = ev.target;
var idx = this.uploads.indexOf(upload);
if (idx != -1) {
this.uploads.splice(idx, 1);
this.finished.push(upload);
setTimeout(elation.bind(this, function(upload) { upload.addclass('state_removing'); }, upload), 4000);
setTimeout(elation.bind(this, function(upload) { upload.reparent(false); this.refresh(); if (this.uploads.length == 0) elation.events.fire({element: this, type: 'content_hide'}); }, upload), 6000);
}
}
this.upload_failed = function(ev) {
var upload = ev.target;
var idx = this.uploads.indexOf(upload);
if (idx != -1) {
this.uploads.splice(idx, 1);
this.failed.push(upload);
}
}
this.parseAPIResponse = function(data, file) {
var json = JSON.parse(data);
return new Promise(function(resolve, reject) {
resolve(json);
});
}
this.refresh = function() {
elation.events.fire({element: this, type: 'content_update'});
}
}, elation.share.targets.base);
});
| 36.173653 | 205 | 0.578216 |
6126e948edad237ef8c012977d74e64f31a3233f | 29,945 | js | JavaScript | angularJsDemo2/milestone-120/angular/app/scripts/controllers/icons.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | angularJsDemo2/milestone-120/angular/app/scripts/controllers/icons.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | angularJsDemo2/milestone-120/angular/app/scripts/controllers/icons.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | 'use strict';
function iconsCtrl() {
var vm = this;
vm.iconsList = {
'icons': [{
title: '23 New Icons in 4.6',
ficons: ['fa-american-sign-language-interpreting', 'fa-asl-interpreting', 'fa-assistive-listening-systems', 'fa-audio-description', 'fa-blind', 'fa-braille', 'fa-deaf', 'fa-deafness', 'fa-envira', 'fa-gitlab', 'fa-glide', 'fa-glide-g', 'fa-hard-of-hearing', 'fa-low-vision', 'fa-question-circle-o', 'fa-sign-language', 'fa-signing', 'fa-snapchat', 'fa-snapchat-ghost', 'fa-snapchat-square', 'fa-universal-access', 'fa-viadeo', 'fa-viadeo-square', 'fa-volume-control-phone', 'fa-wheelchair-alt', 'fa-wpbeginner', 'fa-wpforms']
}, {
title: 'Web Application Icons',
ficons: ['fa-adjust', 'fa-american-sign-language-interpreting', 'fa-anchor', 'fa-archive', 'fa-area-chart', 'fa-arrows', 'fa-arrows-h', 'fa-arrows-v', 'fa-asl-interpreting', 'fa-assistive-listening-systems', 'fa-asterisk', 'fa-at', 'fa-audio-description', 'fa-automobile', 'fa-balance-scale', 'fa-ban', 'fa-bank', 'fa-bar-chart', 'fa-bar-chart-o', 'fa-barcode', 'fa-bars', 'fa-battery-0', 'fa-battery-1', 'fa-battery-2', 'fa-battery-3', 'fa-battery-4', 'fa-battery-empty', 'fa-battery-full', 'fa-battery-half', 'fa-battery-quarter', 'fa-battery-three-quarters', 'fa-bed', 'fa-beer', 'fa-bell', 'fa-bell-o', 'fa-bell-slash', 'fa-bell-slash-o', 'fa-bicycle', 'fa-binoculars', 'fa-birthday-cake', 'fa-blind', 'fa-bluetooth', 'fa-bluetooth-b', 'fa-bolt', 'fa-bomb', 'fa-book', 'fa-bookmark', 'fa-bookmark-o', 'fa-braille', 'fa-briefcase', 'fa-bug', 'fa-building', 'fa-building-o', 'fa-bullhorn', 'fa-bullseye', 'fa-bus', 'fa-cab', 'fa-calculator', 'fa-calendar', 'fa-calendar-check-o', 'fa-calendar-minus-o', 'fa-calendar-o', 'fa-calendar-plus-o', 'fa-calendar-times-o', 'fa-camera', 'fa-camera-retro', 'fa-car', 'fa-caret-square-o-down', 'fa-caret-square-o-left', 'fa-caret-square-o-right', 'fa-caret-square-o-up', 'fa-cart-arrow-down', 'fa-cart-plus', 'fa-cc', 'fa-certificate', 'fa-check', 'fa-check-circle', 'fa-check-circle-o', 'fa-check-square', 'fa-check-square-o', 'fa-child', 'fa-circle', 'fa-circle-o', 'fa-circle-o-notch', 'fa-circle-thin', 'fa-clock-o', 'fa-clone', 'fa-close', 'fa-cloud', 'fa-cloud-download', 'fa-cloud-upload', 'fa-code', 'fa-code-fork', 'fa-coffee', 'fa-cog', 'fa-cogs', 'fa-comment', 'fa-comment-o', 'fa-commenting', 'fa-commenting-o', 'fa-comments', 'fa-comments-o', 'fa-compass', 'fa-copyright', 'fa-creative-commons', 'fa-credit-card', 'fa-credit-card-alt', 'fa-crop', 'fa-crosshairs', 'fa-cube', 'fa-cubes', 'fa-cutlery', 'fa-dashboard', 'fa-database', 'fa-deaf', 'fa-deafness', 'fa-desktop', 'fa-diamond', 'fa-dot-circle-o', 'fa-download', 'fa-edit', 'fa-ellipsis-h', 'fa-ellipsis-v', 'fa-envelope', 'fa-envelope-o', 'fa-envelope-square', 'fa-eraser', 'fa-exchange', 'fa-exclamation', 'fa-exclamation-circle', 'fa-exclamation-triangle', 'fa-external-link', 'fa-external-link-square', 'fa-eye', 'fa-eye-slash', 'fa-eyedropper', 'fa-fax', 'fa-feed', 'fa-female', 'fa-fighter-jet', 'fa-file-archive-o', 'fa-file-audio-o', 'fa-file-code-o', 'fa-file-excel-o', 'fa-file-image-o', 'fa-file-movie-o', 'fa-file-pdf-o', 'fa-file-photo-o', 'fa-file-picture-o', 'fa-file-powerpoint-o', 'fa-file-sound-o', 'fa-file-video-o', 'fa-file-word-o', 'fa-file-zip-o', 'fa-film', 'fa-filter', 'fa-fire', 'fa-fire-extinguisher', 'fa-flag', 'fa-flag-checkered', 'fa-flag-o', 'fa-flash', 'fa-flask', 'fa-folder', 'fa-folder-o', 'fa-folder-open', 'fa-folder-open-o', 'fa-frown-o', 'fa-futbol-o', 'fa-gamepad', 'fa-gavel', 'fa-gear', 'fa-gears', 'fa-gift', 'fa-glass', 'fa-globe', 'fa-graduation-cap', 'fa-group', 'fa-hand-grab-o', 'fa-hand-lizard-o', 'fa-hand-paper-o', 'fa-hand-peace-o', 'fa-hand-pointer-o', 'fa-hand-rock-o', 'fa-hand-scissors-o', 'fa-hand-spock-o', 'fa-hand-stop-o', 'fa-hard-of-hearing', 'fa-hashtag', 'fa-hdd-o', 'fa-headphones', 'fa-heart', 'fa-heart-o', 'fa-heartbeat', 'fa-history', 'fa-home', 'fa-hotel', 'fa-hourglass', 'fa-hourglass-1', 'fa-hourglass-2', 'fa-hourglass-3', 'fa-hourglass-end', 'fa-hourglass-half', 'fa-hourglass-o', 'fa-hourglass-start', 'fa-i-cursor', 'fa-image', 'fa-inbox', 'fa-industry', 'fa-info', 'fa-info-circle', 'fa-institution', 'fa-key', 'fa-keyboard-o', 'fa-language', 'fa-laptop', 'fa-leaf', 'fa-legal', 'fa-lemon-o', 'fa-level-down', 'fa-level-up', 'fa-life-bouy', 'fa-life-buoy', 'fa-life-ring', 'fa-life-saver', 'fa-lightbulb-o', 'fa-line-chart', 'fa-location-arrow', 'fa-lock', 'fa-low-vision', 'fa-magic', 'fa-magnet', 'fa-mail-forward', 'fa-mail-reply', 'fa-mail-reply-all', 'fa-male', 'fa-map', 'fa-map-marker', 'fa-map-o', 'fa-map-pin', 'fa-map-signs', 'fa-meh-o', 'fa-microphone', 'fa-microphone-slash', 'fa-minus', 'fa-minus-circle', 'fa-minus-square', 'fa-minus-square-o', 'fa-mobile', 'fa-mobile-phone', 'fa-money', 'fa-moon-o', 'fa-mortar-board', 'fa-motorcycle', 'fa-mouse-pointer', 'fa-music', 'fa-navicon', 'fa-newspaper-o', 'fa-object-group', 'fa-object-ungroup', 'fa-paint-brush', 'fa-paper-plane', 'fa-paper-plane-o', 'fa-paw', 'fa-pencil', 'fa-pencil-square', 'fa-pencil-square-o', 'fa-percent', 'fa-phone', 'fa-phone-square', 'fa-photo', 'fa-picture-o', 'fa-pie-chart', 'fa-plane', 'fa-plug', 'fa-plus', 'fa-plus-circle', 'fa-plus-square', 'fa-plus-square-o', 'fa-power-off', 'fa-print', 'fa-puzzle-piece', 'fa-qrcode', 'fa-question', 'fa-question-circle', 'fa-question-circle-o', 'fa-quote-left', 'fa-quote-right', 'fa-random', 'fa-recycle', 'fa-refresh', 'fa-registered', 'fa-remove', 'fa-reorder', 'fa-reply', 'fa-reply-all', 'fa-retweet', 'fa-road', 'fa-rocket', 'fa-rss', 'fa-rss-square', 'fa-search', 'fa-search-minus', 'fa-search-plus', 'fa-send', 'fa-send-o', 'fa-server', 'fa-share', 'fa-share-alt', 'fa-share-alt-square', 'fa-share-square', 'fa-share-square-o', 'fa-shield', 'fa-ship', 'fa-shopping-bag', 'fa-shopping-basket', 'fa-shopping-cart', 'fa-sign-in', 'fa-sign-language', 'fa-sign-out', 'fa-signal', 'fa-signing', 'fa-sitemap', 'fa-sliders', 'fa-smile-o', 'fa-soccer-ball-o', 'fa-sort', 'fa-sort-alpha-asc', 'fa-sort-alpha-desc', 'fa-sort-amount-asc', 'fa-sort-amount-desc', 'fa-sort-asc', 'fa-sort-desc', 'fa-sort-down', 'fa-sort-numeric-asc', 'fa-sort-numeric-desc', 'fa-sort-up', 'fa-space-shuttle', 'fa-spinner', 'fa-spoon', 'fa-square', 'fa-square-o', 'fa-star', 'fa-star-half', 'fa-star-half-empty', 'fa-star-half-full', 'fa-star-half-o', 'fa-star-o', 'fa-sticky-note', 'fa-sticky-note-o', 'fa-street-view', 'fa-suitcase', 'fa-sun-o', 'fa-support', 'fa-tablet', 'fa-tachometer', 'fa-tag', 'fa-tags', 'fa-tasks', 'fa-taxi', 'fa-television', 'fa-terminal', 'fa-thumb-tack', 'fa-thumbs-down', 'fa-thumbs-o-down', 'fa-thumbs-o-up', 'fa-thumbs-up', 'fa-ticket', 'fa-times', 'fa-times-circle', 'fa-times-circle-o', 'fa-tint', 'fa-toggle-down', 'fa-toggle-left', 'fa-toggle-off', 'fa-toggle-on', 'fa-toggle-right', 'fa-toggle-up', 'fa-trademark', 'fa-trash', 'fa-trash-o', 'fa-tree', 'fa-trophy', 'fa-truck', 'fa-tty', 'fa-tv', 'fa-umbrella', 'fa-universal-access', 'fa-university', 'fa-unlock', 'fa-unlock-alt', 'fa-unsorted', 'fa-upload', 'fa-user', 'fa-user-plus', 'fa-user-secret', 'fa-user-times', 'fa-users', 'fa-video-camera', 'fa-volume-control-phone', 'fa-volume-down', 'fa-volume-off', 'fa-volume-up', 'fa-warning', 'fa-wheelchair', 'fa-wheelchair-alt', 'fa-wifi', 'fa-wrench']
}, {
title: 'Accessibility Icons',
ficons: ['fa-american-sign-language-interpreting', 'fa-asl-interpreting', 'fa-assistive-listening-systems', 'fa-audio-description', 'fa-blind', 'fa-braille', 'fa-cc', 'fa-deaf', 'fa-deafness', 'fa-hard-of-hearing', 'fa-low-vision', 'fa-question-circle-o', 'fa-sign-language', 'fa-signing', 'fa-tty', 'fa-universal-access', 'fa-volume-control-phone', 'fa-wheelchair', 'fa-wheelchair-alt']
}, {
title: 'Hand Icons',
ficons: ['fa-hand-grab-o', 'fa-hand-lizard-o', 'fa-hand-o-down', 'fa-hand-o-left', 'fa-hand-o-right', 'fa-hand-o-up', 'fa-hand-paper-o', 'fa-hand-peace-o', 'fa-hand-pointer-o', 'fa-hand-rock-o', 'fa-hand-scissors-o', 'fa-hand-spock-o', 'fa-hand-stop-o', 'fa-thumbs-down', 'fa-thumbs-o-down', 'fa-thumbs-o-up', 'fa-thumbs-up']
}, {
title: 'Transportation Icons',
ficons: ['fa-ambulance', 'fa-automobile', 'fa-bicycle', 'fa-bus', 'fa-cab', 'fa-car', 'fa-fighter-jet', 'fa-motorcycle', 'fa-plane', 'fa-rocket', 'fa-ship', 'fa-space-shuttle', 'fa-subway', 'fa-taxi', 'fa-train', 'fa-truck', 'fa-wheelchair']
}, {
title: 'Gender Icons',
ficons: ['fa-genderless', 'fa-intersex', 'fa-mars', 'fa-mars-double', 'fa-mars-stroke', 'fa-mars-stroke-h', 'fa-mars-stroke-v', 'fa-mercury', 'fa-neuter', 'fa-transgender', 'fa-transgender-alt', 'fa-venus', 'fa-venus-double', 'fa-venus-mars']
}, {
title: 'File Type Icons',
ficons: ['fa-file', 'fa-file-archive-o', 'fa-file-audio-o', 'fa-file-code-o', 'fa-file-excel-o', 'fa-file-image-o', 'fa-file-movie-o', 'fa-file-o', 'fa-file-pdf-o', 'fa-file-photo-o', 'fa-file-picture-o', 'fa-file-powerpoint-o', 'fa-file-sound-o', 'fa-file-text', 'fa-file-text-o', 'fa-file-video-o', 'fa-file-word-o', 'fa-file-zip-o']
}, {
title: 'Spinner Icons',
ficons: ['fa-info-circle', 'fa-circle-o-notch', 'fa-cog', 'fa-gear', 'fa-refresh', 'fa-spinner']
}, {
title: 'Form Control Icons',
ficons: ['fa-check-square', 'fa-check-square-o', 'fa-circle', 'fa-circle-o', 'fa-dot-circle-o', 'fa-minus-square', 'fa-minus-square-o', 'fa-plus-square', 'fa-plus-square-o', 'fa-square', 'fa-square-o']
}, {
title: 'Payment Icons',
ficons: ['fa-cc-amex', 'fa-cc-diners-club', 'fa-cc-discover', 'fa-cc-jcb', 'fa-cc-mastercard', 'fa-cc-paypal', 'fa-cc-stripe', 'fa-cc-visa', 'fa-credit-card', 'fa-credit-card-alt', 'fa-google-wallet', 'fa-paypal']
}, {
title: 'Chart Icons',
ficons: ['fa-area-chart', 'fa-bar-chart', 'fa-bar-chart-o', 'fa-line-chart', 'fa-pie-chart']
}, {
title: 'Currency Icons',
ficons: ['fa-bitcoin', 'fa-btc', 'fa-cny', 'fa-dollar', 'fa-eur', 'fa-euro', 'fa-gbp', 'fa-gg', 'fa-gg-circle', 'fa-ils', 'fa-inr', 'fa-jpy', 'fa-krw', 'fa-money', 'fa-rmb', 'fa-rouble', 'fa-rub', 'fa-ruble', 'fa-rupee', 'fa-shekel', 'fa-sheqel', 'fa-try', 'fa-turkish-lira', 'fa-usd', 'fa-won', 'fa-yen']
}, {
title: 'Text Editor Icons',
ficons: ['fa-align-center', 'fa-align-justify', 'fa-align-left', 'fa-align-right', 'fa-bold', 'fa-chain', 'fa-chain-broken', 'fa-clipboard', 'fa-columns', 'fa-copy', 'fa-cut', 'fa-dedent', 'fa-eraser', 'fa-file', 'fa-file-o', 'fa-file-text', 'fa-file-text-o', 'fa-files-o', 'fa-floppy-o', 'fa-font', 'fa-header', 'fa-indent', 'fa-italic', 'fa-link', 'fa-list', 'fa-list-alt', 'fa-list-ol', 'fa-list-ul', 'fa-outdent', 'fa-paperclip', 'fa-paragraph', 'fa-paste', 'fa-repeat', 'fa-rotate-left', 'fa-rotate-right', 'fa-save', 'fa-scissors', 'fa-strikethrough', 'fa-subscript', 'fa-superscript', 'fa-table', 'fa-text-height', 'fa-text-width', 'fa-th', 'fa-th-large', 'fa-th-list', 'fa-underline', 'fa-undo', 'fa-unlink']
}, {
title: 'Directional Icons',
ficons: ['fa-angle-double-down', 'fa-angle-double-left', 'fa-angle-double-right', 'fa-angle-double-up', 'fa-angle-down', 'fa-angle-left', 'fa-angle-right', 'fa-angle-up', 'fa-arrow-circle-down', 'fa-arrow-circle-left', 'fa-arrow-circle-o-down', 'fa-arrow-circle-o-left', 'fa-arrow-circle-o-right', 'fa-arrow-circle-o-up', 'fa-arrow-circle-right', 'fa-arrow-circle-up', 'fa-arrow-down', 'fa-arrow-left', 'fa-arrow-right', 'fa-arrow-up', 'fa-arrows', 'fa-arrows-alt', 'fa-arrows-h', 'fa-arrows-v', 'fa-caret-down', 'fa-caret-left', 'fa-caret-right', 'fa-caret-square-o-down', 'fa-caret-square-o-left', 'fa-caret-square-o-right', 'fa-caret-square-o-up', 'fa-caret-up', 'fa-chevron-circle-down', 'fa-chevron-circle-left', 'fa-chevron-circle-right', 'fa-chevron-circle-up', 'fa-chevron-down', 'fa-chevron-left', 'fa-chevron-right', 'fa-chevron-up', 'fa-exchange', 'fa-hand-o-down', 'fa-hand-o-left', 'fa-hand-o-right', 'fa-hand-o-up', 'fa-long-arrow-down', 'fa-long-arrow-left', 'fa-long-arrow-right', 'fa-long-arrow-up', 'fa-toggle-down', 'fa-toggle-left', 'fa-toggle-right', 'fa-toggle-up']
}, {
title: 'Video Player Icons',
ficons: ['fa-arrows-alt', 'fa-backward', 'fa-compress', 'fa-eject', 'fa-expand', 'fa-fast-backward', 'fa-fast-forward', 'fa-forward', 'fa-pause', 'fa-pause-circle', 'fa-pause-circle-o', 'fa-play', 'fa-play-circle', 'fa-play-circle-o', 'fa-random', 'fa-step-backward', 'fa-step-forward', 'fa-stop', 'fa-stop-circle', 'fa-stop-circle-o', 'fa-youtube-play']
}, {
title: 'Brand Icons',
ficons: ['fa-500px', 'fa-adn', 'fa-amazon', 'fa-android', 'fa-angellist', 'fa-apple', 'fa-behance', 'fa-behance-square', 'fa-bitbucket', 'fa-bitbucket-square', 'fa-bitcoin', 'fa-black-tie', 'fa-bluetooth', 'fa-bluetooth-b', 'fa-btc', 'fa-buysellads', 'fa-cc-amex', 'fa-cc-diners-club', 'fa-cc-discover', 'fa-cc-jcb', 'fa-cc-mastercard', 'fa-cc-paypal', 'fa-cc-stripe', 'fa-cc-visa', 'fa-chrome', 'fa-codepen', 'fa-codiepie', 'fa-connectdevelop', 'fa-contao', 'fa-css3', 'fa-dashcube', 'fa-delicious', 'fa-deviantart', 'fa-digg', 'fa-dribbble', 'fa-dropbox', 'fa-drupal', 'fa-edge', 'fa-empire', 'fa-envira', 'fa-expeditedssl', 'fa-facebook', 'fa-facebook-f', 'fa-facebook-official', 'fa-facebook-square', 'fa-firefox', 'fa-flickr', 'fa-fonticons', 'fa-fort-awesome', 'fa-forumbee', 'fa-foursquare', 'fa-ge', 'fa-get-pocket', 'fa-gg', 'fa-gg-circle', 'fa-git', 'fa-git-square', 'fa-github', 'fa-github-alt', 'fa-github-square', 'fa-gitlab', 'fa-gittip', 'fa-glide', 'fa-glide-g', 'fa-google', 'fa-google-plus', 'fa-google-plus-square', 'fa-google-wallet', 'fa-gratipay', 'fa-hacker-news', 'fa-houzz', 'fa-html5', 'fa-instagram', 'fa-internet-explorer', 'fa-ioxhost', 'fa-joomla', 'fa-jsfiddle', 'fa-lastfm', 'fa-lastfm-square', 'fa-leanpub', 'fa-linkedin', 'fa-linkedin-square', 'fa-linux', 'fa-maxcdn', 'fa-meanpath', 'fa-medium', 'fa-mixcloud', 'fa-modx', 'fa-odnoklassniki', 'fa-odnoklassniki-square', 'fa-opencart', 'fa-openid', 'fa-opera', 'fa-optin-monster', 'fa-pagelines', 'fa-paypal', 'fa-pied-piper', 'fa-pied-piper-alt', 'fa-pinterest', 'fa-pinterest-p', 'fa-pinterest-square', 'fa-product-hunt', 'fa-qq', 'fa-ra', 'fa-rebel', 'fa-reddit', 'fa-reddit-alien', 'fa-reddit-square', 'fa-renren', 'fa-safari', 'fa-scribd', 'fa-sellsy', 'fa-share-alt', 'fa-share-alt-square', 'fa-shirtsinbulk', 'fa-simplybuilt', 'fa-skyatlas', 'fa-skype', 'fa-slack', 'fa-slideshare', 'fa-snapchat', 'fa-snapchat-ghost', 'fa-snapchat-square', 'fa-soundcloud', 'fa-spotify', 'fa-stack-exchange', 'fa-stack-overflow', 'fa-steam', 'fa-steam-square', 'fa-stumbleupon', 'fa-stumbleupon-circle', 'fa-tencent-weibo', 'fa-trello', 'fa-tripadvisor', 'fa-tumblr', 'fa-tumblr-square', 'fa-twitch', 'fa-twitter', 'fa-twitter-square', 'fa-usb', 'fa-viacoin', 'fa-viadeo', 'fa-viadeo-square', 'fa-vimeo', 'fa-vimeo-square', 'fa-vine', 'fa-vk', 'fa-wechat', 'fa-weibo', 'fa-weixin', 'fa-whatsapp', 'fa-wikipedia-w', 'fa-windows', 'fa-wordpress', 'fa-wpbeginner', 'fa-wpforms', 'fa-xing', 'fa-xing-square', 'fa-y-combinator', 'fa-y-combinator-square', 'fa-yahoo', 'fa-yc', 'fa-yc-square', 'fa-yelp', 'fa-youtube', 'fa-youtube-play', 'fa-youtube-square']
}, {
title: 'Medical Icons',
ficons: ['fa-ambulance', 'fa-h-square', 'fa-heart', 'fa-heart-o', 'fa-heartbeat', 'fa-hospital-o', 'fa-medkit', 'fa-plus-square', 'fa-stethoscope', 'fa-user-md', 'fa-wheelchair']
}]
};
vm.iconsMaterial = {
'icons': ['3d_rotation', 'ac_unit', 'access_alarm', 'access_alarms', 'access_time', 'accessibility', 'accessible', 'account_balance', 'account_balance_wallet', 'account_box', 'account_circle', 'adb', 'add', 'add_a_photo', 'add_alarm', 'add_alert', 'add_box', 'add_circle', 'add_circle_outline', 'add_location', 'add_shopping_cart', 'add_to_photos', 'add_to_queue', 'adjust', 'airline_seat_flat', 'airline_seat_flat_angled', 'airline_seat_individual_suite', 'airline_seat_legroom_extra', 'airline_seat_legroom_normal', 'airline_seat_legroom_reduced', 'airline_seat_recline_extra', 'airline_seat_recline_normal', 'airplanemode_active', 'airplanemode_inactive', 'airplay', 'airport_shuttle', 'alarm', 'alarm_add', 'alarm_off', 'alarm_on', 'album', 'all_inclusive', 'all_out', 'android', 'announcement', 'apps', 'archive', 'arrow_back', 'arrow_downward', 'arrow_drop_down', 'arrow_drop_down_circle', 'arrow_drop_up', 'arrow_forward', 'arrow_upward', 'art_track', 'aspect_ratio', 'assessment', 'assignment', 'assignment_ind', 'assignment_late', 'assignment_return', 'assignment_returned', 'assignment_turned_in', 'assistant', 'assistant_photo', 'attach_file', 'attach_money', 'attachment', 'audiotrack', 'autorenew', 'av_timer', 'backspace', 'backup', 'battery_alert', 'battery_charging_full', 'battery_full', 'battery_std', 'battery_unknown', 'beach_access', 'beenhere', 'block', 'bluetooth', 'bluetooth_audio', 'bluetooth_connected', 'bluetooth_disabled', 'bluetooth_searching', 'blur_circular', 'blur_linear', 'blur_off', 'blur_on', 'book', 'bookmark', 'bookmark_border', 'border_all', 'border_bottom', 'border_clear', 'border_color', 'border_horizontal', 'border_inner', 'border_left', 'border_outer', 'border_right', 'border_style', 'border_top', 'border_vertical', 'branding_watermark', 'brightness_1', 'brightness_2', 'brightness_3', 'brightness_4', 'brightness_5', 'brightness_6', 'brightness_7', 'brightness_auto', 'brightness_high', 'brightness_low', 'brightness_medium', 'broken_image', 'brush', 'bubble_chart', 'bug_report', 'build', 'burst_mode', 'business', 'business_center', 'cached', 'cake', 'call', 'call_end', 'call_made', 'call_merge', 'call_missed', 'call_missed_outgoing', 'call_received', 'call_split', 'call_to_action', 'camera', 'camera_alt', 'camera_enhance', 'camera_front', 'camera_rear', 'camera_roll', 'cancel', 'card_giftcard', 'card_membership', 'card_travel', 'casino', 'cast', 'cast_connected', 'center_focus_strong', 'center_focus_weak', 'change_history', 'chat', 'chat_bubble', 'chat_bubble_outline', 'check', 'check_box', 'check_box_outline_blank', 'check_circle', 'chevron_left', 'chevron_right', 'child_care', 'child_friendly', 'chrome_reader_mode', 'class', 'clear', 'clear_all', 'close', 'closed_caption', 'cloud', 'cloud_circle', 'cloud_done', 'cloud_download', 'cloud_off', 'cloud_queue', 'cloud_upload', 'code', 'collections', 'collections_bookmark', 'color_lens', 'colorize', 'comment', 'compare', 'compare_arrows', 'computer', 'confirmation_number', 'contact_mail', 'contact_phone', 'contacts', 'content_copy', 'content_cut', 'content_paste', 'control_point', 'control_point_duplicate', 'copyright', 'create', 'create_new_folder', 'credit_card', 'crop', 'crop_16_9', 'crop_3_2', 'crop_5_4', 'crop_7_5', 'crop_din', 'crop_free', 'crop_landscape', 'crop_original', 'crop_portrait', 'crop_rotate', 'crop_square', 'dashboard', 'data_usage', 'date_range', 'dehaze', 'delete', 'delete_forever', 'delete_sweep', 'description', 'desktop_mac', 'desktop_windows', 'details', 'developer_board', 'developer_mode', 'device_hub', 'devices', 'devices_other', 'dialer_sip', 'dialpad', 'directions', 'directions_bike', 'directions_boat', 'directions_bus', 'directions_car', 'directions_railway', 'directions_run', 'directions_subway', 'directions_transit', 'directions_walk', 'disc_full', 'dns', 'do_not_disturb', 'do_not_disturb_alt', 'do_not_disturb_off', 'do_not_disturb_on', 'dock', 'domain', 'done', 'done_all', 'donut_large', 'donut_small', 'drafts', 'drag_handle', 'drive_eta', 'dvr', 'edit', 'edit_location', 'eject', 'email', 'enhanced_encryption', 'equalizer', 'error', 'error_outline', 'euro_symbol', 'ev_station', 'event', 'event_available', 'event_busy', 'event_note', 'event_seat', 'exit_to_app', 'expand_less', 'expand_more', 'explicit', 'explore', 'exposure', 'exposure_neg_1', 'exposure_neg_2', 'exposure_plus_1', 'exposure_plus_2', 'exposure_zero', 'extension', 'face', 'fast_forward', 'fast_rewind', 'favorite', 'favorite_border', 'featured_play_list', 'featured_video', 'feedback', 'fiber_dvr', 'fiber_manual_record', 'fiber_new', 'fiber_pin', 'fiber_smart_record', 'file_download', 'file_upload', 'filter', 'filter_1', 'filter_2', 'filter_3', 'filter_4', 'filter_5', 'filter_6', 'filter_7', 'filter_8', 'filter_9', 'filter_9_plus', 'filter_b_and_w', 'filter_center_focus', 'filter_drama', 'filter_frames', 'filter_hdr', 'filter_list', 'filter_none', 'filter_tilt_shift', 'filter_vintage', 'find_in_page', 'find_replace', 'fingerprint', 'first_page', 'fitness_center', 'flag', 'flare', 'flash_auto', 'flash_off', 'flash_on', 'flight', 'flight_land', 'flight_takeoff', 'flip', 'flip_to_back', 'flip_to_front', 'folder', 'folder_open', 'folder_shared', 'folder_special', 'font_download', 'format_align_center', 'format_align_justify', 'format_align_left', 'format_align_right', 'format_bold', 'format_clear', 'format_color_fill', 'format_color_reset', 'format_color_text', 'format_indent_decrease', 'format_indent_increase', 'format_italic', 'format_line_spacing', 'format_list_bulleted', 'format_list_numbered', 'format_paint', 'format_quote', 'format_shapes', 'format_size', 'format_strikethrough', 'format_textdirection_l_to_r', 'format_textdirection_r_to_l', 'format_underlined', 'forum', 'forward', 'forward_10', 'forward_30', 'forward_5', 'free_breakfast', 'fullscreen', 'fullscreen_exit', 'functions', 'g_translate', 'gamepad', 'games', 'gavel', 'gesture', 'get_app', 'gif', 'golf_course', 'gps_fixed', 'gps_not_fixed', 'gps_off', 'grade', 'gradient', 'grain', 'graphic_eq', 'grid_off', 'grid_on', 'group', 'group_add', 'group_work', 'hd', 'hdr_off', 'hdr_on', 'hdr_strong', 'hdr_weak', 'headset', 'headset_mic', 'healing', 'hearing', 'help', 'help_outline', 'high_quality', 'highlight', 'highlight_off', 'history', 'home', 'hot_tub', 'hotel', 'hourglass_empty', 'hourglass_full', 'http', 'https', 'image', 'image_aspect_ratio', 'import_contacts', 'import_export', 'important_devices', 'inbox', 'indeterminate_check_box', 'info', 'info_outline', 'input', 'insert_chart', 'insert_comment', 'insert_drive_file', 'insert_emoticon', 'insert_invitation', 'insert_link', 'insert_photo', 'invert_colors', 'invert_colors_off', 'iso', 'keyboard', 'keyboard_arrow_down', 'keyboard_arrow_left', 'keyboard_arrow_right', 'keyboard_arrow_up', 'keyboard_backspace', 'keyboard_capslock', 'keyboard_hide', 'keyboard_return', 'keyboard_tab', 'keyboard_voice', 'kitchen', 'label', 'label_outline', 'landscape', 'language', 'laptop', 'laptop_chromebook', 'laptop_mac', 'laptop_windows', 'last_page', 'launch', 'layers', 'layers_clear', 'leak_add', 'leak_remove', 'lens', 'library_add', 'library_books', 'library_music', 'lightbulb_outline', 'line_style', 'line_weight', 'linear_scale', 'link', 'linked_camera', 'list', 'live_help', 'live_tv', 'local_activity', 'local_airport', 'local_atm', 'local_bar', 'local_cafe', 'local_car_wash', 'local_convenience_store', 'local_dining', 'local_drink', 'local_florist', 'local_gas_station', 'local_grocery_store', 'local_hospital', 'local_hotel', 'local_laundry_service', 'local_library', 'local_mall', 'local_movies', 'local_offer', 'local_parking', 'local_pharmacy', 'local_phone', 'local_pizza', 'local_play', 'local_post_office', 'local_printshop', 'local_see', 'local_shipping', 'local_taxi', 'location_city', 'location_disabled', 'location_off', 'location_on', 'location_searching', 'lock', 'lock_open', 'lock_outline', 'looks', 'looks_3', 'looks_4', 'looks_5', 'looks_6', 'looks_one', 'looks_two', 'loop', 'loupe', 'low_priority', 'loyalty', 'mail', 'mail_outline', 'map', 'markunread', 'markunread_mailbox', 'memory', 'menu', 'merge_type', 'message', 'mic', 'mic_none', 'mic_off', 'mms', 'mode_comment', 'mode_edit', 'monetization_on', 'money_off', 'monochrome_photos', 'mood', 'mood_bad', 'more', 'more_horiz', 'more_vert', 'motorcycle', 'mouse', 'move_to_inbox', 'movie', 'movie_creation', 'movie_filter', 'multiline_chart', 'music_note', 'music_video', 'my_location', 'nature', 'nature_people', 'navigate_before', 'navigate_next', 'navigation', 'near_me', 'network_cell', 'network_check', 'network_locked', 'network_wifi', 'new_releases', 'next_week', 'nfc', 'no_encryption', 'no_sim', 'not_interested', 'note', 'note_add', 'notifications', 'notifications_active', 'notifications_none', 'notifications_off', 'notifications_paused', 'offline_pin', 'ondemand_video', 'opacity', 'open_in_browser', 'open_in_new', 'open_with', 'pages', 'pageview', 'palette', 'pan_tool', 'panorama', 'panorama_fish_eye', 'panorama_horizontal', 'panorama_vertical', 'panorama_wide_angle', 'party_mode', 'pause', 'pause_circle_filled', 'pause_circle_outline', 'payment', 'people', 'people_outline', 'perm_camera_mic', 'perm_contact_calendar', 'perm_data_setting', 'perm_device_information', 'perm_identity', 'perm_media', 'perm_phone_msg', 'perm_scan_wifi', 'person', 'person_add', 'person_outline', 'person_pin', 'person_pin_circle', 'personal_video', 'pets', 'phone', 'phone_android', 'phone_bluetooth_speaker', 'phone_forwarded', 'phone_in_talk', 'phone_iphone', 'phone_locked', 'phone_missed', 'phone_paused', 'phonelink', 'phonelink_erase', 'phonelink_lock', 'phonelink_off', 'phonelink_ring', 'phonelink_setup', 'photo', 'photo_album', 'photo_camera', 'photo_filter', 'photo_library', 'photo_size_select_actual', 'photo_size_select_large', 'photo_size_select_small', 'picture_as_pdf', 'picture_in_picture', 'picture_in_picture_alt', 'pie_chart', 'pie_chart_outlined', 'pin_drop', 'place', 'play_arrow', 'play_circle_filled', 'play_circle_outline', 'play_for_work', 'playlist_add', 'playlist_add_check', 'playlist_play', 'plus_one', 'poll', 'polymer', 'pool', 'portable_wifi_off', 'portrait', 'power', 'power_input', 'power_settings_new', 'pregnant_woman', 'present_to_all', 'print', 'priority_high', 'public', 'publish', 'query_builder', 'question_answer', 'queue', 'queue_music', 'queue_play_next', 'radio', 'radio_button_checked', 'radio_button_unchecked', 'rate_review', 'receipt', 'recent_actors', 'record_voice_over', 'redeem', 'redo', 'refresh', 'remove', 'remove_circle', 'remove_circle_outline', 'remove_from_queue', 'remove_red_eye', 'remove_shopping_cart', 'reorder', 'repeat', 'repeat_one', 'replay', 'replay_10', 'replay_30', 'replay_5', 'reply', 'reply_all', 'report', 'report_problem', 'restaurant', 'restaurant_menu', 'restore', 'restore_page', 'ring_volume', 'room', 'room_service', 'rotate_90_degrees_ccw', 'rotate_left', 'rotate_right', 'rounded_corner', 'router', 'rowing', 'rss_feed', 'rv_hookup', 'satellite', 'save', 'scanner', 'schedule', 'school', 'screen_lock_landscape', 'screen_lock_portrait', 'screen_lock_rotation', 'screen_rotation', 'screen_share', 'sd_card', 'sd_storage', 'search', 'security', 'select_all', 'send', 'sentiment_dissatisfied', 'sentiment_neutral', 'sentiment_satisfied', 'sentiment_very_dissatisfied', 'sentiment_very_satisfied', 'settings', 'settings_applications', 'settings_backup_restore', 'settings_bluetooth', 'settings_brightness', 'settings_cell', 'settings_ethernet', 'settings_input_antenna', 'settings_input_component', 'settings_input_composite', 'settings_input_hdmi', 'settings_input_svideo', 'settings_overscan', 'settings_phone', 'settings_power', 'settings_remote', 'settings_system_daydream', 'settings_voice', 'share', 'shop', 'shop_two', 'shopping_basket', 'shopping_cart', 'short_text', 'show_chart', 'shuffle', 'signal_cellular_4_bar', 'signal_cellular_connected_no_internet_4_bar', 'signal_cellular_no_sim', 'signal_cellular_null', 'signal_cellular_off', 'signal_wifi_4_bar', 'signal_wifi_4_bar_lock', 'signal_wifi_off', 'sim_card', 'sim_card_alert', 'skip_next', 'skip_previous', 'slideshow', 'slow_motion_video', 'smartphone', 'smoke_free', 'smoking_rooms', 'sms', 'sms_failed', 'snooze', 'sort', 'sort_by_alpha', 'spa', 'space_bar', 'speaker', 'speaker_group', 'speaker_notes', 'speaker_notes_off', 'speaker_phone', 'spellcheck', 'star', 'star_border', 'star_half', 'stars', 'stay_current_landscape', 'stay_current_portrait', 'stay_primary_landscape', 'stay_primary_portrait', 'stop', 'stop_screen_share', 'storage', 'store', 'store_mall_directory', 'straighten', 'streetview', 'strikethrough_s', 'style', 'subdirectory_arrow_left', 'subdirectory_arrow_right', 'subject', 'subscriptions', 'subtitles', 'subway', 'supervisor_account', 'surround_sound', 'swap_calls', 'swap_horiz', 'swap_vert', 'swap_vertical_circle', 'switch_camera', 'switch_video', 'sync', 'sync_disabled', 'sync_problem', 'system_update', 'system_update_alt', 'tab', 'tab_unselected', 'tablet', 'tablet_android', 'tablet_mac', 'tag_faces', 'tap_and_play', 'terrain', 'text_fields', 'text_format', 'textsms', 'texture', 'theaters', 'thumb_down', 'thumb_up', 'thumbs_up_down', 'time_to_leave', 'timelapse', 'timeline', 'timer', 'timer_10', 'timer_3', 'timer_off', 'title', 'toc', 'today', 'toll', 'tonality', 'touch_app', 'toys', 'track_changes', 'traffic', 'train', 'tram', 'transfer_within_a_station', 'transform', 'translate', 'trending_down', 'trending_flat', 'trending_up', 'tune', 'turned_in', 'turned_in_not', 'tv', 'unarchive', 'undo', 'unfold_less', 'unfold_more', 'update', 'usb', 'verified_user', 'vertical_align_bottom', 'vertical_align_center', 'vertical_align_top', 'vibration', 'video_call', 'video_label', 'video_library', 'videocam', 'videocam_off', 'videogame_asset', 'view_agenda', 'view_array', 'view_carousel', 'view_column', 'view_comfy', 'view_compact', 'view_day', 'view_headline', 'view_list', 'view_module', 'view_quilt', 'view_stream', 'view_week', 'vignette', 'visibility', 'visibility_off', 'voice_chat', 'voicemail', 'volume_down', 'volume_mute', 'volume_off', 'volume_up', 'vpn_key', 'vpn_lock', 'wallpaper', 'warning', 'watch', 'watch_later', 'wb_auto', 'wb_cloudy', 'wb_incandescent', 'wb_iridescent', 'wb_sunny', 'wc', 'web', 'web_asset', 'weekend', 'whatshot', 'widgets', 'wifi', 'wifi_lock', 'wifi_tethering', 'work', 'wrap_text', 'youtube_searched_for', 'zoom_in', 'zoom_out']
};
}
angular.module('app').controller('iconsCtrl', iconsCtrl); | 460.692308 | 14,422 | 0.686592 |
612706644d8041160de0b6df590a127283ccab45 | 4,982 | js | JavaScript | src/components/Home.js | teambitflip/plothole-dashboard | 1239f76d99e9c018085a3b425d13c45631d5a770 | [
"MIT"
] | null | null | null | src/components/Home.js | teambitflip/plothole-dashboard | 1239f76d99e9c018085a3b425d13c45631d5a770 | [
"MIT"
] | null | null | null | src/components/Home.js | teambitflip/plothole-dashboard | 1239f76d99e9c018085a3b425d13c45631d5a770 | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
import firebaseapp from '../firebase'
import logo from '../logo.png'
import './home.css'
export class Home extends Component {
getSubmissionData = () => {
const database = firebaseapp.database()
database.ref("/results").on('value', (data) => {
this.fillTable(data.val())
})
}
fillTable = (data) => {
// Clear inner html
document.getElementById("severity1_cards").innerHTML = ""
document.getElementById("severity2_cards").innerHTML = ""
document.getElementById("severity3_cards").innerHTML = ""
// fill column according to severity
Object.keys(data).forEach((uid) => {
let result = data[uid]
let severity = result["severity"]
if(severity === 1) {
this.addToSeverity2Table(result)
} else if (severity === 2) {
this.addToSeverity2Table(result)
} else if (severity === 3) {
this.addToSeverity3Table(result)
} else {
//console.log("-1 severity")
this.addToSeverity1Table(result)
}
})
}
addToSeverity1Table = (data) => {
let html_data = this.getCardHTML(
data["gps_coordinates"],
Math.floor(data["validity"]),
data["img_link"], "Low")
document.getElementById("severity1_cards").innerHTML += html_data
}
addToSeverity2Table = (data) => {
let html_data = this.getCardHTML(
data["gps_coordinates"],
Math.floor(data["validity"]),
data["img_link"], "Medium to High")
document.getElementById("severity2_cards").innerHTML += html_data
}
addToSeverity3Table = (data) => {
let html_data = this.getCardHTML(
data["gps_coordinates"],
Math.floor(data["validity"]),
data["img_link"], "Extremely High")
document.getElementById("severity3_cards").innerHTML += html_data
}
// Card Template HTML
getCardHTML = (gps_coordinates, validity, image_link, priority) => {
let card_html = `
<div class="card" style="width: 100%">
<iframe
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyArr8VXow5emvehdROfhZ7YcItqSBBNYbQ&q=${gps_coordinates}&zoom=18" allowfullscreen>
</iframe>
<img src=${image_link} style="width: 10rem; padding: 1rem">
<div class="card-body" style="text-align: left;">
<h5 class="card-title">Validity: ${validity}%</h5>
<h6 class="card-subtitle mb-2 text-muted">${priority} Priority</h6>
<br>
<a target="_blank" href="${image_link}" class="card-link">Image Link</a>
</div>
</div>
<br>
`
return card_html
}
render() {
this.getSubmissionData()
return (
<div>
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
<a className="navbar-brand" href="https://www.google.com" style={{fontFamily: 'Rubik, sans-serif', fontSize: '1.5rem'}}>
Plothole by Team Bitflip
</a>
</nav>
<br></br>
<div>
<img src={logo} alt="logo" style={{width: '10rem', float: 'left', padding: '0.5rem', paddingLeft: '2rem'}}></img>
<br></br>
<h1 style={headerStyle}>Plothole - Admin Dashboard</h1>
</div>
<br></br>
<br></br>
<br></br>
<div className='column-container'>
<div id="severityGrid_1" style={{padding: '3rem'}}>
<h3 style={severityGridHeader}>Severity 1</h3>
<br></br>
<div id="severity1_cards"></div>
</div>
<div id="severityGrid_2" style={{padding: '3rem'}}>
<h3 style={severityGridHeader}>Severity 2</h3>
<br></br>
<div id="severity2_cards"></div>
</div>
<div id="severityGrid_3" style={{padding: '3rem'}}>
<h3 style={severityGridHeader}>Severity 3</h3>
<br></br>
<div id="severity3_cards"></div>
</div>
</div>
</div>
)
}
}
export default Home
const severityGridHeader = {
fontFamily: 'Rubik, sans-serif',
fontWeight : '300'
}
const headerStyle = {
fontFamily: 'Rubik, sans-serif',
fontWeight: '300'
} | 33.662162 | 158 | 0.491168 |
61274172a01d1dc8113ea99fd73dc89a8a478b96 | 1,866 | js | JavaScript | src/pages/partials/Service.js | mrios/demo-casadeuco | bad3bac36e3337d201c6e6d89a5812055ca6252c | [
"MIT"
] | null | null | null | src/pages/partials/Service.js | mrios/demo-casadeuco | bad3bac36e3337d201c6e6d89a5812055ca6252c | [
"MIT"
] | null | null | null | src/pages/partials/Service.js | mrios/demo-casadeuco | bad3bac36e3337d201c6e6d89a5812055ca6252c | [
"MIT"
] | null | null | null | import React, { Component, PropTypes } from 'react';
import { Col , Row } from 'antd';
import { BodyText, IconX } from './../../theme/Components';
class Service extends Component {
constructor(props) {
super(props);
}
render() {
const colStyles = {
xs: { span: 24 },
lg: { span: 8}
}
return (
<div className={ this.props.toggleClass }>
<BodyText>
<Row style={ {width: '100%' } }>
<Col className="service-wraper" xs={ colStyles.xs } lg={ colStyles.lg }>
<div className="service-icon-wrapper">
<IconX type={ this.props.serviceTupla[0].icon }/>
</div>
<div className="service-title">{ this.props.serviceTupla[0].title }</div>
</Col>
<Col className="service-wraper" xs={ colStyles.xs } lg={ colStyles.lg }>
<div className="service-icon-wrapper">
<IconX type={ this.props.serviceTupla[1].icon }/>
</div>
<div className="service-title">{ this.props.serviceTupla[1].title }</div>
</Col>
<Col className="service-wraper" xs={ colStyles.xs } lg={ colStyles.lg }>
<div className="service-icon-wrapper">
<IconX type={ this.props.serviceTupla[2].icon }/>
</div>
<div className="service-title">{ this.props.serviceTupla[2].title }</div>
</Col>
</Row>
</BodyText>
</div>
);
}
}
export default Service;
| 37.32 | 101 | 0.433548 |
6128ff3a1c557c17b0a04e65081de95eef185cdb | 5,652 | js | JavaScript | resources/mirui/js/views/mirui-dashboard-transaction.js | mirui-dev/mirui_v2 | 09c661390978fe52886062ec2d8b2f71c435197f | [
"MIT"
] | null | null | null | resources/mirui/js/views/mirui-dashboard-transaction.js | mirui-dev/mirui_v2 | 09c661390978fe52886062ec2d8b2f71c435197f | [
"MIT"
] | null | null | null | resources/mirui/js/views/mirui-dashboard-transaction.js | mirui-dev/mirui_v2 | 09c661390978fe52886062ec2d8b2f71c435197f | [
"MIT"
] | null | null | null |
transactionControl = function(level, isInjected, isProcess){
if(!isInjected && isProcess){
transactionBuffer(true);
if(level == 'checkout'){
transactionServer(false);
}else if(level == 'payment'){
if(transactionPaymentInputControl(true)){
transactionServer(transactionPaymentInputControl(true));
}else{
transactionBuffer(10);
}
}else if(level == 'complete'){
transactionInject(level);
}
}else if(!isInjected){
// at landing
transactionBuffer(true);
transactionInject(level);
}else if(isInjected && level){
var progressCount = 10;
if(level == 'payment'){
// progressCount = 40;
}else if(level == 'complete'){
progressCount = false;
}
setTimeout(function(){
transactionBuffer(progressCount);
document.getElementById('transaction-content-progress-label').innerHTML = level.toUpperCase();
}, 750);
}
}
transactionInject = function(file){
if(file){
fetch(root + "dashboard/include/" + 'transaction-' + file + '.php', {
method: 'post'
})
.then(var01 => var01.text())
.then(function(var01){
document.getElementById('transaction-content-container').innerHTML = var01;
if(file == 'checkout'){
var coinConsume = (cartCounter()*5);
var message = "You have " + cartCounter() + " movie(s) in cart";
if(user['coin'] >= coinConsume){
message += " ready for checkout. ";
var buttonText = "PAY WITH " + coinConsume + " COINS";
}else{
message += ", however your coins balance is low. "
var buttonText = "ADD COIN FIRST ._>";
document.getElementById('transaction-content-checkout-prompt-next').classList.add('disabled');
}
document.getElementById('transaction-content-checkout-summary-text').innerHTML = message;
document.getElementById('transaction-content-checkout-prompt-next').innerHTML = buttonText;
}
transactionControl(file, true);
})
.catch(function(var01){
console.log(var01);
});
}
}
transactionBuffer = function(isLoop){
if(isLoop === true){
document.getElementById('transaction-content-container').classList.add('disabled');
// document.getElementById('dashboard-content-sub-nav-childnode-back').classList.add('disabled');
// contentSubAllowsEscape = false;
}else{
document.getElementById('transaction-content-container').classList.remove('disabled');
// document.getElementById('dashboard-content-sub-nav-childnode-back').classList.remove('disabled');
// contentSubAllowsEscape = true;
}
transactionBufferProgress(isLoop);
}
transactionBufferProgress = function(progress){
if(progress === true){
document.getElementById('transaction-content-progress-bar').classList.add('isBuffering');
}else{
document.getElementById('transaction-content-progress-bar').classList.remove('isBuffering');
if(progress === false){
document.getElementById('transaction-content-progress-bar').style.setProperty('width', '100%');
}else{
document.getElementById('transaction-content-progress-bar').style.setProperty('width', progress + '%');
}
}
}
transactionPaymentControl = function(){
}
transactionPaymentInputControl = function(mode, type){
var nodeCoin = document.getElementById('transaction-content-payment-coin');
var nodeCNumber = document.getElementById('transaction-content-payment-cnumber');
var nodeCDate = document.getElementById('transaction-content-payment-cdate');
var nodeCCVV = document.getElementById('transaction-content-payment-ccvv');
if(mode == 'input' && type){
// format card number
if(type == 'cnumber'){
nodeCNumber.value = nodeCNumber.value.trim();
if(nodeCNumber.value.length == 4 || nodeCNumber.value.length == 9 || nodeCNumber.value.length == 14){
nodeCNumber.value += ' ';
}
// for(var i = 0, j = 1; i < nodeCNumber.value.length; i++){
// if(i == (4*j)+1){
// nodeCNumber.value[i-1] += ' ';
// i++;j++;
// }
// }
}else if(type == 'cdate'){
nodeCDate.value = nodeCDate.value.trim();
if(nodeCDate.value.length == 2){
nodeCDate.value += '/';
}
}else if(type == 'ccvv'){
nodeCCVV.value = nodeCCVV.value.trim();
}else if(type == 'coin'){
nodeCoin.value = nodeCoin.value.trim();
}
}else if(mode === true){
if(parseInt(nodeCoin.value) < 5 || nodeCoin.value == ''){
injectNoti('<p>Minimum topup amount of coin is 5. </p>', null, 6000);
}else if(parseInt(nodeCoin.value) && parseInt(nodeCNumber.value) && parseInt(nodeCDate.value) && parseInt(nodeCCVV.value) && nodeCNumber.value.length == nodeCNumber.getAttribute('maxlength') && nodeCDate.value.length == nodeCDate.getAttribute('maxlength') && nodeCCVV.value.length == nodeCCVV.getAttribute('maxlength')){
return parseInt(nodeCoin.value);
}else{
injectNoti('<p>Invalid payment details. Ensure that payment details are correct. </p>', null, 6000);
}
return false;
}
}
| 42.179104 | 328 | 0.585456 |
612d75cb6c79d70e97af57b2ca2e4afd78ad9a8f | 288,388 | js | JavaScript | docs/scripts/site.min.js | akucharik/oculo | 26cf1f447c7ea9b72d33dca51b8f58a6128154a5 | [
"MIT"
] | 4 | 2019-02-11T21:34:22.000Z | 2021-06-08T14:56:11.000Z | docs/scripts/site.min.js | akucharik/oculo | 26cf1f447c7ea9b72d33dca51b8f58a6128154a5 | [
"MIT"
] | 1 | 2017-08-11T08:55:22.000Z | 2017-08-12T09:48:04.000Z | docs/scripts/site.min.js | akucharik/oculo | 26cf1f447c7ea9b72d33dca51b8f58a6128154a5 | [
"MIT"
] | 1 | 2017-08-11T08:50:16.000Z | 2017-08-11T08:50:16.000Z | !function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,function(e){var n=t[i][1][e];return o(n?n:e)},c,c.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){!function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){function e(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=p[n])?t:"0"<=n&&"7">=n?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return 32>e?(16>e?"\\x0":"\\x")+e.toString(16):(e=String.fromCharCode(e),"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e)}function r(e){var r=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=[];var o="^"===r[0],a=["["];o&&a.push("^");for(var o=o?1:0,i=r.length;o<i;++o){var s=r[o];if(/\\[bdsw]/i.test(s))a.push(s);else{var u,s=t(s);o+2<i&&"-"===r[o+1]?(u=t(r[o+2]),o+=2):u=s,e.push([s,u]),65>u||122<s||(65>u||90<s||e.push([32|Math.max(65,s),32|Math.min(u,90)]),97>u||122<s||e.push([Math.max(97,s)&-33,Math.min(u,122)&-33]))}}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],i=[],o=0;o<e.length;++o)s=e[o],s[0]<=i[1]+1?i[1]=Math.max(i[1],s[1]):r.push(i=s);for(o=0;o<r.length;++o)s=r[o],a.push(n(s[0])),s[1]>s[0]&&(s[1]+1>s[0]&&a.push("-"),a.push(n(s[1])));return a.push("]"),a.join("")}function o(e){for(var t=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),o=t.length,s=[],u=0,l=0;u<o;++u){var c=t[u];"("===c?++l:"\\"===c.charAt(0)&&(c=+c.substring(1))&&(c<=l?s[c]=-1:t[u]=n(c))}for(u=1;u<s.length;++u)-1===s[u]&&(s[u]=++a);for(l=u=0;u<o;++u)c=t[u],"("===c?(++l,s[l]||(t[u]="(?:")):"\\"===c.charAt(0)&&(c=+c.substring(1))&&c<=l&&(t[u]="\\"+s[c]);for(u=0;u<o;++u)"^"===t[u]&&"^"!==t[u+1]&&(t[u]="");if(e.ignoreCase&&i)for(u=0;u<o;++u)c=t[u],e=c.charAt(0),2<=c.length&&"["===e?t[u]=r(c):"\\"!==e&&(t[u]=c.replace(/[a-zA-Z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(e&-33,32|e)+"]"}));return t.join("")}for(var a=0,i=!1,s=!1,u=0,l=e.length;u<l;++u){var c=e[u];if(c.ignoreCase)s=!0;else if(/[a-z]/i.test(c.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){i=!0,s=!1;break}}for(var p={b:8,t:9,n:10,v:11,f:12,r:13},d=[],u=0,l=e.length;u<l;++u){if(c=e[u],c.global||c.multiline)throw Error(""+c);d.push("(?:"+o(c)+")")}return new RegExp(d.join("|"),s?"gi":"g")}function t(e,t){function n(e){var u=e.nodeType;if(1==u){if(!r.test(e.className)){for(u=e.firstChild;u;u=u.nextSibling)n(u);u=e.nodeName.toLowerCase(),"br"!==u&&"li"!==u||(o[s]="\n",i[s<<1]=a++,i[s++<<1|1]=e)}}else 3!=u&&4!=u||(u=e.nodeValue,u.length&&(u=t?u.replace(/\r\n?/g,"\n"):u.replace(/[ \t\r\n]+/g," "),o[s]=u,i[s<<1]=a,a+=u.length,i[s++<<1|1]=e))}var r=/(?:^|\s)nocode(?:\s|$)/,o=[],a=0,i=[],s=0;return n(e),{a:o.join("").replace(/\n$/,""),c:i}}function n(e,t,n,r,o){n&&(e={h:e,l:1,j:null,m:null,a:n,c:null,i:t,g:null},r(e),o.push.apply(o,e.g))}function r(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling)var r=n.nodeType,t=1===r?t?e:n:3===r&&b.test(n.nodeValue)?e:t;return t===e?void 0:t}function o(t,r){function o(e){for(var t=e.i,l=e.h,c=[t,"pln"],p=0,d=e.a.match(a)||[],f={},m=0,h=d.length;m<h;++m){var v,y=d[m],g=f[y],b=void 0;if("string"==typeof g)v=!1;else{var _=i[y.charAt(0)];if(_)b=y.match(_[1]),g=_[0];else{for(v=0;v<s;++v)if(_=r[v],b=y.match(_[1])){g=_[0];break}b||(g="pln")}!(v=5<=g.length&&"lang-"===g.substring(0,5))||b&&"string"==typeof b[1]||(v=!1,g="src"),v||(f[y]=g)}if(_=p,p+=y.length,v){v=b[1];var C=y.indexOf(v),E=C+v.length;b[2]&&(E=y.length-b[2].length,C=E-v.length),g=g.substring(5),n(l,t+_,y.substring(0,C),o,c),n(l,t+_+C,v,u(g,v),c),n(l,t+_+E,y.substring(E),o,c)}else c.push(t+_,g)}e.g=c}var a,i={};!function(){for(var n=t.concat(r),o=[],s={},u=0,l=n.length;u<l;++u){var c=n[u],p=c[3];if(p)for(var d=p.length;0<=--d;)i[p.charAt(d)]=c;c=c[1],p=""+c,s.hasOwnProperty(p)||(o.push(c),s[p]=null)}o.push(/[\0-\uffff]/),a=e(o)}();var s=r.length;return o}function a(e){var t=[],n=[];e.tripleQuotedStrings?t.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var r=e.hashComments;if(r&&(e.cStyleComments?(1<r?t.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push(["com",/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\r\n]*/,null]),n.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null])),r=e.regexLiterals){var a=(r=1<r?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+a+")*(?:\\x5D|$))+/")+")")])}return(r=e.types)&&n.push(["typ",r]),r=(""+e.keywords).replace(/^ | $/g,""),r.length&&n.push(["kwd",new RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push(["pln",/^\s+/,null," \r\n\t "]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(r),null]),o(t,n)}function i(e,t,n){function r(e){var t=e.nodeType;if(1!=t||a.test(e.className)){if((3==t||4==t)&&n){var u=e.nodeValue,l=u.match(i);l&&(t=u.substring(0,l.index),e.nodeValue=t,(u=u.substring(l.index+l[0].length))&&e.parentNode.insertBefore(s.createTextNode(u),e.nextSibling),o(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)o(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function o(e){function t(e,n){var r=n?e.cloneNode(!1):e,o=e.parentNode;if(o){var o=t(o,1),a=e.nextSibling;o.appendChild(r);for(var i=a;i;i=a)a=i.nextSibling,o.appendChild(i)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;e=t(e.nextSibling,0);for(var n;(n=e.parentNode)&&1===n.nodeType;)e=n;l.push(e)}for(var a=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,s=e.ownerDocument,u=s.createElement("li");e.firstChild;)u.appendChild(e.firstChild);for(var l=[u],c=0;c<l.length;++c)r(l[c]);t===(0|t)&&l[0].setAttribute("value",t);var p=s.createElement("ol");p.className="linenums",t=Math.max(0,t-1|0)||0;for(var c=0,d=l.length;c<d;++c)u=l[c],u.className="L"+(c+t)%10,u.firstChild||u.appendChild(s.createTextNode(" ")),p.appendChild(u);e.appendChild(p)}function s(e,t){for(var n=t.length;0<=--n;){var r=t[n];C.hasOwnProperty(r)?c.console&&console.warn("cannot override language handler %s",r):C[r]=e}}function u(e,t){return e&&C.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),C[e]}function l(e){var n=e.j;try{var r=t(e.h,e.l),o=r.a;e.a=o,e.c=r.c,e.i=0,u(n,o)(e);var a=/\bMSIE\s(\d+)/.exec(navigator.userAgent),a=a&&8>=+a[1],n=/\n/g,i=e.a,s=i.length,r=0,l=e.c,p=l.length,o=0,d=e.g,f=d.length,m=0;d[f]=s;var h,v;for(v=h=0;v<f;)d[v]!==d[v+2]?(d[h++]=d[v++],d[h++]=d[v++]):v+=2;for(f=h,v=h=0;v<f;){for(var y=d[v],g=d[v+1],b=v+2;b+2<=f&&d[b+1]===g;)b+=2;d[h++]=y,d[h++]=g,v=b}d.length=h;var _=e.h;e="",_&&(e=_.style.display,_.style.display="none");try{for(;o<p;){var C,E=l[o+2]||s,w=d[m+2]||s,b=Math.min(E,w),x=l[o+1];if(1!==x.nodeType&&(C=i.substring(r,b))){a&&(C=C.replace(n,"\r")),x.nodeValue=C;var P=x.ownerDocument,T=P.createElement("span");T.className=d[m+1];var O=x.parentNode;O.replaceChild(T,x),T.appendChild(x),r<E&&(l[o+1]=x=P.createTextNode(i.substring(b,E)),O.insertBefore(x,T.nextSibling))}r=b,r>=E&&(o+=2),r>=w&&(m+=2)}}finally{_&&(_.style.display=e)}}catch(e){c.console&&console.log(e&&e.stack||e)}}var c=window,p=["break,continue,do,else,for,if,return,while"],d=[[p,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],f=[d,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[d,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],h=[d,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],d=[d,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],v=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],y=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],p=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],g=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b=/\S/,_=a({keywords:[f,h,m,d,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",v,y,p],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),C={};s(_,["default-code"]),s(o([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" ")),s(o([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),s(o([],[["atv",/^[\s\S]+/]]),["uq.val"]),s(a({keywords:f,hashComments:!0,cStyleComments:!0,types:g}),"c cc cpp cxx cyc m".split(" ")),s(a({keywords:"null,true,false"}),["json"]),s(a({keywords:h,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:g}),["cs"]),s(a({keywords:m,cStyleComments:!0}),["java"]),s(a({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),s(a({keywords:v,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),s(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),s(a({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),s(a({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),s(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),s(o([],[["str",/^[\s\S]+/]]),["regex"]);var E=c.PR={createSimpleLexer:o,registerLangHandler:s,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:c.prettyPrintOne=function(e,t,n){n=n||!1,t=t||null;var r=document.createElement("div");return r.innerHTML="<pre>"+e+"</pre>",r=r.firstChild,n&&i(r,n,!0),l({j:t,m:n,h:r,l:1,a:null,i:null,c:null,g:null}),r.innerHTML},prettyPrint:c.prettyPrint=function(e,t){function n(){for(var t=c.PR_SHOULD_USE_CONTINUATION?f.now()+250:1/0;m<s.length&&f.now()<t;m++){for(var o=s[m],u=C,p=o;p=p.previousSibling;){var d=p.nodeType,E=(7===d||8===d)&&p.nodeValue;if(E?!/^\??prettify\b/.test(E):3!==d||/\S/.test(p.nodeValue))break;if(E){u={},E.replace(/\b(\w+)=([\w:.%+-]+)/g,function(e,t,n){u[t]=n});break}}if(p=o.className,(u!==C||v.test(p))&&!y.test(p)){for(d=!1,E=o.parentNode;E;E=E.parentNode)if(_.test(E.tagName)&&E.className&&v.test(E.className)){d=!0;break}if(!d){if(o.className+=" prettyprinted",d=u.lang,!d){var w,d=p.match(h);!d&&(w=r(o))&&b.test(w.tagName)&&(d=w.className.match(h)),d&&(d=d[1])}if(g.test(o.tagName))E=1;else var E=o.currentStyle,x=a.defaultView,E=(E=E?E.whiteSpace:x&&x.getComputedStyle?x.getComputedStyle(o,null).getPropertyValue("white-space"):0)&&"pre"===E.substring(0,3);x=u.linenums,(x="true"===x||+x)||(x=!!(x=p.match(/\blinenums\b(?::(\d+))?/))&&(!x[1]||!x[1].length||+x[1])),x&&i(o,x,E),l({j:d,h:o,m:x,l:E,a:null,i:null,c:null,g:null})}}}m<s.length?c.setTimeout(n,250):"function"==typeof e&&e()}for(var o=t||document.body,a=o.ownerDocument||document,o=[o.getElementsByTagName("pre"),o.getElementsByTagName("code"),o.getElementsByTagName("xmp")],s=[],u=0;u<o.length;++u)for(var p=0,d=o[u].length;p<d;++p)s.push(o[u][p]);var o=null,f=Date;f.now||(f={now:function(){return+new Date}});var m=0,h=/\blang(?:uage)?-([\w.]+)(?!\S)/,v=/\bprettyprint\b/,y=/\bprettyprinted\b/,g=/pre|xmp/i,b=/^code$/i,_=/^(?:pre|code|xmp)$/i,C={};n()}},f=c.define;"function"==typeof f&&f.amd&&f("google-code-prettify",[],function(){return E})}()}()},{}],2:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":9}],3:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],4:[function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],5:[function(e,t,n){"use strict";function r(e){return o(e.replace(a,"ms-"))}var o=e("./camelize"),a=/^-ms-/;t.exports=r},{"./camelize":4}],6:[function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=e("./isTextNode");t.exports=r},{"./isTextNode":19}],7:[function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?i(!1):void 0,"number"!=typeof t?i(!1):void 0,0===t||t-1 in e?void 0:i(!1),"function"==typeof e.callee?i(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function a(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var i=e("./invariant");t.exports=a},{"./invariant":17}],8:[function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=l;l?void 0:u(!1);var o=r(e),a=o&&s(o);if(a){n.innerHTML=a[1]+e+a[2];for(var c=a[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),i(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var a=e("./ExecutionEnvironment"),i=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),u=e("./invariant"),l=a.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=o},{"./ExecutionEnvironment":3,"./createArrayFromMixed":7,"./getMarkupWrap":13,"./invariant":17}],9:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],10:[function(e,t,n){"use strict";var r={};t.exports=r},{}],11:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}t.exports=r},{}],12:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],13:[function(e,t,n){"use strict";function r(e){return i?void 0:a(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="<link />":i.innerHTML="<"+e+"></"+e+">",s[e]=!i.firstChild),s[e]?d[e]:null}var o=e("./ExecutionEnvironment"),a=e("./invariant"),i=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),t.exports=r},{"./ExecutionEnvironment":3,"./invariant":17}],14:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],15:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],16:[function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=e("./hyphenate"),a=/^ms-/;t.exports=r},{"./hyphenate":15}],17:[function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,s,u],p=0;l=new Error(t.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};t.exports=r},{}],18:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],19:[function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":18}],20:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],21:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":3}],22:[function(e,t,n){"use strict";var r,o=e("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},t.exports=r},{"./performance":21}],23:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;t.exports=o},{}],24:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o=r;t.exports=o},{"./emptyFunction":9}],25:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||o[i[s]]||n&&n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},{}],26:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},{}],27:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),a=r(o,"DataView");t.exports=a},{"./_getNative":90,"./_root":129}],28:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_hashClear"),a=e("./_hashDelete"),i=e("./_hashGet"),s=e("./_hashHas"),u=e("./_hashSet");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_hashClear":97,"./_hashDelete":98,"./_hashGet":99,"./_hashHas":100,"./_hashSet":101}],29:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_listCacheClear"),a=e("./_listCacheDelete"),i=e("./_listCacheGet"),s=e("./_listCacheHas"),u=e("./_listCacheSet");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_listCacheClear":110,"./_listCacheDelete":111,"./_listCacheGet":112,"./_listCacheHas":113,"./_listCacheSet":114}],30:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),a=r(o,"Map");t.exports=a},{"./_getNative":90,"./_root":129}],31:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_mapCacheClear"),a=e("./_mapCacheDelete"),i=e("./_mapCacheGet"),s=e("./_mapCacheHas"),u=e("./_mapCacheSet");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_mapCacheClear":115,"./_mapCacheDelete":116,"./_mapCacheGet":117,"./_mapCacheHas":118,"./_mapCacheSet":119}],32:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),a=r(o,"Promise");t.exports=a},{"./_getNative":90,"./_root":129}],33:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),a=r(o,"Set");t.exports=a},{"./_getNative":90,"./_root":129}],34:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=e("./_MapCache"),a=e("./_setCacheAdd"),i=e("./_setCacheHas");r.prototype.add=r.prototype.push=a,r.prototype.has=i,t.exports=r},{"./_MapCache":31,"./_setCacheAdd":130,"./_setCacheHas":131}],35:[function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=e("./_ListCache"),a=e("./_stackClear"),i=e("./_stackDelete"),s=e("./_stackGet"),u=e("./_stackHas"),l=e("./_stackSet");r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=s,r.prototype.has=u,r.prototype.set=l,t.exports=r},{"./_ListCache":29,"./_stackClear":135,"./_stackDelete":136,"./_stackGet":137,"./_stackHas":138,"./_stackSet":139}],36:[function(e,t,n){var r=e("./_root"),o=r.Symbol;t.exports=o},{"./_root":129}],37:[function(e,t,n){var r=e("./_root"),o=r.Uint8Array;t.exports=o},{"./_root":129}],38:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),a=r(o,"WeakMap");t.exports=a},{"./_getNative":90,"./_root":129}],39:[function(e,t,n){function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=r},{}],40:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}t.exports=r},{}],41:[function(e,t,n){function r(e,t){var n=i(e),r=!n&&a(e),c=!n&&!r&&s(e),d=!n&&!r&&!c&&l(e),f=n||r||c||d,m=f?o(e.length,String):[],h=m.length;for(var v in e)!t&&!p.call(e,v)||f&&("length"==v||c&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,h))||m.push(v);return m}var o=e("./_baseTimes"),a=e("./isArguments"),i=e("./isArray"),s=e("./isBuffer"),u=e("./_isIndex"),l=e("./isTypedArray"),c=Object.prototype,p=c.hasOwnProperty;t.exports=r},{"./_baseTimes":72,"./_isIndex":103,"./isArguments":149,"./isArray":150,"./isBuffer":152,"./isTypedArray":159}],42:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=r},{}],43:[function(e,t,n){function r(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}t.exports=r},{}],44:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],45:[function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=e("./eq");t.exports=r},{"./eq":145}],46:[function(e,t,n){var r=e("./_baseForOwn"),o=e("./_createBaseEach"),a=o(r);t.exports=a},{"./_baseForOwn":49,"./_createBaseEach":80}],47:[function(e,t,n){function r(e,t,n,i,s){var u=-1,l=e.length;for(n||(n=a),s||(s=[]);++u<l;){var c=e[u];t>0&&n(c)?t>1?r(c,t-1,n,i,s):o(s,c):i||(s[s.length]=c)}return s}var o=e("./_arrayPush"),a=e("./_isFlattenable");t.exports=r},{"./_arrayPush":43,"./_isFlattenable":102}],48:[function(e,t,n){var r=e("./_createBaseFor"),o=r();t.exports=o},{"./_createBaseFor":81}],49:[function(e,t,n){function r(e,t){return e&&o(e,t,a)}var o=e("./_baseFor"),a=e("./keys");t.exports=r},{"./_baseFor":48,"./keys":160}],50:[function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[a(t[n++])];return n&&n==r?e:void 0}var o=e("./_castPath"),a=e("./_toKey");t.exports=r},{"./_castPath":76,"./_toKey":141}],51:[function(e,t,n){function r(e,t,n){var r=t(e);return a(e)?r:o(r,n(e))}var o=e("./_arrayPush"),a=e("./isArray");t.exports=r},{"./_arrayPush":43,"./isArray":150}],52:[function(e,t,n){function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?a(e):i(e)}var o=e("./_Symbol"),a=e("./_getRawTag"),i=e("./_objectToString"),s="[object Null]",u="[object Undefined]",l=o?o.toStringTag:void 0;t.exports=r},{"./_Symbol":36,"./_getRawTag":92,"./_objectToString":126}],53:[function(e,t,n){function r(e,t){return null!=e&&t in Object(e)}t.exports=r},{}],54:[function(e,t,n){function r(e){return a(e)&&o(e)==i}var o=e("./_baseGetTag"),a=e("./isObjectLike"),i="[object Arguments]";t.exports=r},{"./_baseGetTag":52,"./isObjectLike":156}],55:[function(e,t,n){function r(e,t,n,i,s){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:o(e,t,n,i,r,s))}var o=e("./_baseIsEqualDeep"),a=e("./isObjectLike");t.exports=r},{"./_baseIsEqualDeep":56,"./isObjectLike":156}],56:[function(e,t,n){function r(e,t,n,r,v,g){var b=l(e),_=l(t),C=b?m:u(e),E=_?m:u(t);C=C==f?h:C,E=E==f?h:E;var w=C==h,x=E==h,P=C==E;if(P&&c(e)){if(!c(t))return!1;b=!0,w=!1}if(P&&!w)return g||(g=new o),b||p(e)?a(e,t,n,r,v,g):i(e,t,C,n,r,v,g);if(!(n&d)){var T=w&&y.call(e,"__wrapped__"),O=x&&y.call(t,"__wrapped__");if(T||O){var M=T?e.value():e,I=O?t.value():t;return g||(g=new o),v(M,I,n,r,g)}}return!!P&&(g||(g=new o),s(e,t,n,r,v,g))}var o=e("./_Stack"),a=e("./_equalArrays"),i=e("./_equalByTag"),s=e("./_equalObjects"),u=e("./_getTag"),l=e("./isArray"),c=e("./isBuffer"),p=e("./isTypedArray"),d=1,f="[object Arguments]",m="[object Array]",h="[object Object]",v=Object.prototype,y=v.hasOwnProperty;t.exports=r},{"./_Stack":35,"./_equalArrays":83,"./_equalByTag":84,"./_equalObjects":85,"./_getTag":94,"./isArray":150,"./isBuffer":152,"./isTypedArray":159}],57:[function(e,t,n){function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var p=n[u];if(c&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++u<l;){p=n[u];var d=p[0],f=e[d],m=p[1];if(c&&p[2]){if(void 0===f&&!(d in e))return!1}else{var h=new o;if(r)var v=r(f,m,d,e,t,h);if(!(void 0===v?a(m,f,i|s,r,h):v))return!1}}return!0}var o=e("./_Stack"),a=e("./_baseIsEqual"),i=1,s=2;t.exports=r},{"./_Stack":35,"./_baseIsEqual":55}],58:[function(e,t,n){function r(e){if(!i(e)||a(e))return!1;var t=o(e)?m:l;return t.test(s(e))}var o=e("./isFunction"),a=e("./_isMasked"),i=e("./isObject"),s=e("./_toSource"),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,d=c.toString,f=p.hasOwnProperty,m=RegExp("^"+d.call(f).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"./_isMasked":107,"./_toSource":142,"./isFunction":153,"./isObject":155}],59:[function(e,t,n){function r(e){return i(e)&&a(e.length)&&!!R[o(e)]}var o=e("./_baseGetTag"),a=e("./isLength"),i=e("./isObjectLike"),s="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",p="[object Error]",d="[object Function]",f="[object Map]",m="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",_="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",P="[object Int16Array]",T="[object Int32Array]",O="[object Uint8Array]",M="[object Uint8ClampedArray]",I="[object Uint16Array]",S="[object Uint32Array]",R={};R[E]=R[w]=R[x]=R[P]=R[T]=R[O]=R[M]=R[I]=R[S]=!0,R[s]=R[u]=R[_]=R[l]=R[C]=R[c]=R[p]=R[d]=R[f]=R[m]=R[h]=R[v]=R[y]=R[g]=R[b]=!1,t.exports=r},{"./_baseGetTag":52,"./isLength":154,"./isObjectLike":156}],60:[function(e,t,n){function r(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?a(e[0],e[1]):o(e):u(e)}var o=e("./_baseMatches"),a=e("./_baseMatchesProperty"),i=e("./identity"),s=e("./isArray"),u=e("./property");t.exports=r},{"./_baseMatches":63,"./_baseMatchesProperty":64,"./identity":148,"./isArray":150,"./property":163
}],61:[function(e,t,n){function r(e){if(!o(e))return a(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=e("./_isPrototype"),a=e("./_nativeKeys"),i=Object.prototype,s=i.hasOwnProperty;t.exports=r},{"./_isPrototype":108,"./_nativeKeys":124}],62:[function(e,t,n){function r(e,t){var n=-1,r=a(e)?Array(e.length):[];return o(e,function(e,o,a){r[++n]=t(e,o,a)}),r}var o=e("./_baseEach"),a=e("./isArrayLike");t.exports=r},{"./_baseEach":46,"./isArrayLike":151}],63:[function(e,t,n){function r(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}var o=e("./_baseIsMatch"),a=e("./_getMatchData"),i=e("./_matchesStrictComparable");t.exports=r},{"./_baseIsMatch":57,"./_getMatchData":89,"./_matchesStrictComparable":121}],64:[function(e,t,n){function r(e,t){return s(e)&&u(t)?l(c(e),t):function(n){var r=a(n,e);return void 0===r&&r===t?i(n,e):o(t,r,p|d)}}var o=e("./_baseIsEqual"),a=e("./get"),i=e("./hasIn"),s=e("./_isKey"),u=e("./_isStrictComparable"),l=e("./_matchesStrictComparable"),c=e("./_toKey"),p=1,d=2;t.exports=r},{"./_baseIsEqual":55,"./_isKey":105,"./_isStrictComparable":109,"./_matchesStrictComparable":121,"./_toKey":141,"./get":146,"./hasIn":147}],65:[function(e,t,n){function r(e,t,n){var r=-1;t=o(t.length?t:[c],u(a));var p=i(e,function(e,n,a){var i=o(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return s(p,function(e,t){return l(e,t,n)})}var o=e("./_arrayMap"),a=e("./_baseIteratee"),i=e("./_baseMap"),s=e("./_baseSortBy"),u=e("./_baseUnary"),l=e("./_compareMultiple"),c=e("./identity");t.exports=r},{"./_arrayMap":42,"./_baseIteratee":60,"./_baseMap":62,"./_baseSortBy":71,"./_baseUnary":74,"./_compareMultiple":78,"./identity":148}],66:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}t.exports=r},{}],67:[function(e,t,n){function r(e){return function(t){return o(t,e)}}var o=e("./_baseGet");t.exports=r},{"./_baseGet":50}],68:[function(e,t,n){function r(e,t){return e+o(a()*(t-e+1))}var o=Math.floor,a=Math.random;t.exports=r},{}],69:[function(e,t,n){function r(e,t){return i(a(e,t,o),e+"")}var o=e("./identity"),a=e("./_overRest"),i=e("./_setToString");t.exports=r},{"./_overRest":128,"./_setToString":133,"./identity":148}],70:[function(e,t,n){var r=e("./constant"),o=e("./_defineProperty"),a=e("./identity"),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;t.exports=i},{"./_defineProperty":82,"./constant":143,"./identity":148}],71:[function(e,t,n){function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=r},{}],72:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],73:[function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return a(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var o=e("./_Symbol"),a=e("./_arrayMap"),i=e("./isArray"),s=e("./isSymbol"),u=1/0,l=o?o.prototype:void 0,c=l?l.toString:void 0;t.exports=r},{"./_Symbol":36,"./_arrayMap":42,"./isArray":150,"./isSymbol":158}],74:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],75:[function(e,t,n){function r(e,t){return e.has(t)}t.exports=r},{}],76:[function(e,t,n){function r(e,t){return o(e)?e:a(e,t)?[e]:i(s(e))}var o=e("./isArray"),a=e("./_isKey"),i=e("./_stringToPath"),s=e("./toString");t.exports=r},{"./_isKey":105,"./_stringToPath":140,"./isArray":150,"./toString":170}],77:[function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e===e,i=o(e),s=void 0!==t,u=null===t,l=t===t,c=o(t);if(!u&&!c&&!i&&e>t||i&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||u&&n&&a||!s&&a||!l)return-1}return 0}var o=e("./isSymbol");t.exports=r},{"./isSymbol":158}],78:[function(e,t,n){function r(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,u=n.length;++r<s;){var l=o(a[r],i[r]);if(l){if(r>=u)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}var o=e("./_compareAscending");t.exports=r},{"./_compareAscending":77}],79:[function(e,t,n){var r=e("./_root"),o=r["__core-js_shared__"];t.exports=o},{"./_root":129}],80:[function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&r(s[i],i,s)!==!1;);return n}}var o=e("./isArrayLike");t.exports=r},{"./isArrayLike":151}],81:[function(e,t,n){function r(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(n(a[u],u,a)===!1)break}return t}}t.exports=r},{}],82:[function(e,t,n){var r=e("./_getNative"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=o},{"./_getNative":90}],83:[function(e,t,n){function r(e,t,n,r,l,c){var p=n&s,d=e.length,f=t.length;if(d!=f&&!(p&&f>d))return!1;var m=c.get(e);if(m&&c.get(t))return m==t;var h=-1,v=!0,y=n&u?new o:void 0;for(c.set(e,t),c.set(t,e);++h<d;){var g=e[h],b=t[h];if(r)var _=p?r(b,g,h,t,e,c):r(g,b,h,e,t,c);if(void 0!==_){if(_)continue;v=!1;break}if(y){if(!a(t,function(e,t){if(!i(y,t)&&(g===e||l(g,e,n,r,c)))return y.push(t)})){v=!1;break}}else if(g!==b&&!l(g,b,n,r,c)){v=!1;break}}return c.delete(e),c.delete(t),v}var o=e("./_SetCache"),a=e("./_arraySome"),i=e("./_cacheHas"),s=1,u=2;t.exports=r},{"./_SetCache":34,"./_arraySome":44,"./_cacheHas":75}],84:[function(e,t,n){function r(e,t,n,r,o,w,P){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!w(new a(e),new a(t)));case d:case f:case v:return i(+e,+t);case m:return e.name==t.name&&e.message==t.message;case y:case b:return e==t+"";case h:var T=u;case g:var O=r&c;if(T||(T=l),e.size!=t.size&&!O)return!1;var M=P.get(e);if(M)return M==t;r|=p,P.set(e,t);var I=s(T(e),T(t),r,o,w,P);return P.delete(e),I;case _:if(x)return x.call(e)==x.call(t)}return!1}var o=e("./_Symbol"),a=e("./_Uint8Array"),i=e("./eq"),s=e("./_equalArrays"),u=e("./_mapToArray"),l=e("./_setToArray"),c=1,p=2,d="[object Boolean]",f="[object Date]",m="[object Error]",h="[object Map]",v="[object Number]",y="[object RegExp]",g="[object Set]",b="[object String]",_="[object Symbol]",C="[object ArrayBuffer]",E="[object DataView]",w=o?o.prototype:void 0,x=w?w.valueOf:void 0;t.exports=r},{"./_Symbol":36,"./_Uint8Array":37,"./_equalArrays":83,"./_mapToArray":120,"./_setToArray":132,"./eq":145}],85:[function(e,t,n){function r(e,t,n,r,i,u){var l=n&a,c=o(e),p=c.length,d=o(t),f=d.length;if(p!=f&&!l)return!1;for(var m=p;m--;){var h=c[m];if(!(l?h in t:s.call(t,h)))return!1}var v=u.get(e);if(v&&u.get(t))return v==t;var y=!0;u.set(e,t),u.set(t,e);for(var g=l;++m<p;){h=c[m];var b=e[h],_=t[h];if(r)var C=l?r(_,b,h,t,e,u):r(b,_,h,e,t,u);if(!(void 0===C?b===_||i(b,_,n,r,u):C)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w)&&(y=!1)}return u.delete(e),u.delete(t),y}var o=e("./_getAllKeys"),a=1,i=Object.prototype,s=i.hasOwnProperty;t.exports=r},{"./_getAllKeys":87}],86:[function(e,t,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],87:[function(e,t,n){function r(e){return o(e,i,a)}var o=e("./_baseGetAllKeys"),a=e("./_getSymbols"),i=e("./keys");t.exports=r},{"./_baseGetAllKeys":51,"./_getSymbols":93,"./keys":160}],88:[function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=e("./_isKeyable");t.exports=r},{"./_isKeyable":106}],89:[function(e,t,n){function r(e){for(var t=a(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,o(i)]}return t}var o=e("./_isStrictComparable"),a=e("./keys");t.exports=r},{"./_isStrictComparable":109,"./keys":160}],90:[function(e,t,n){function r(e,t){var n=a(e,t);return o(n)?n:void 0}var o=e("./_baseIsNative"),a=e("./_getValue");t.exports=r},{"./_baseIsNative":58,"./_getValue":95}],91:[function(e,t,n){var r=e("./_overArg"),o=r(Object.getPrototypeOf,Object);t.exports=o},{"./_overArg":127}],92:[function(e,t,n){function r(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[u]=n:delete e[u]),o}var o=e("./_Symbol"),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=o?o.toStringTag:void 0;t.exports=r},{"./_Symbol":36}],93:[function(e,t,n){var r=e("./_arrayFilter"),o=e("./stubArray"),a=Object.prototype,i=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return i.call(e,t)}))}:o;t.exports=u},{"./_arrayFilter":40,"./stubArray":166}],94:[function(e,t,n){var r=e("./_DataView"),o=e("./_Map"),a=e("./_Promise"),i=e("./_Set"),s=e("./_WeakMap"),u=e("./_baseGetTag"),l=e("./_toSource"),c="[object Map]",p="[object Object]",d="[object Promise]",f="[object Set]",m="[object WeakMap]",h="[object DataView]",v=l(r),y=l(o),g=l(a),b=l(i),_=l(s),C=u;(r&&C(new r(new ArrayBuffer(1)))!=h||o&&C(new o)!=c||a&&C(a.resolve())!=d||i&&C(new i)!=f||s&&C(new s)!=m)&&(C=function(e){var t=u(e),n=t==p?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return h;case y:return c;case g:return d;case b:return f;case _:return m}return t}),t.exports=C},{"./_DataView":27,"./_Map":30,"./_Promise":32,"./_Set":33,"./_WeakMap":38,"./_baseGetTag":52,"./_toSource":142}],95:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],96:[function(e,t,n){function r(e,t,n){t=o(t,e);for(var r=-1,c=t.length,p=!1;++r<c;){var d=l(t[r]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++r!=c?p:(c=null==e?0:e.length,!!c&&u(c)&&s(d,c)&&(i(e)||a(e)))}var o=e("./_castPath"),a=e("./isArguments"),i=e("./isArray"),s=e("./_isIndex"),u=e("./isLength"),l=e("./_toKey");t.exports=r},{"./_castPath":76,"./_isIndex":103,"./_toKey":141,"./isArguments":149,"./isArray":150,"./isLength":154}],97:[function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=e("./_nativeCreate");t.exports=r},{"./_nativeCreate":123}],98:[function(e,t,n){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=r},{}],99:[function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===a?void 0:n}return s.call(t,e)?t[e]:void 0}var o=e("./_nativeCreate"),a="__lodash_hash_undefined__",i=Object.prototype,s=i.hasOwnProperty;t.exports=r},{"./_nativeCreate":123}],100:[function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}var o=e("./_nativeCreate"),a=Object.prototype,i=a.hasOwnProperty;t.exports=r},{"./_nativeCreate":123}],101:[function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?a:t,this}var o=e("./_nativeCreate"),a="__lodash_hash_undefined__";t.exports=r},{"./_nativeCreate":123}],102:[function(e,t,n){function r(e){return i(e)||a(e)||!!(s&&e&&e[s])}var o=e("./_Symbol"),a=e("./isArguments"),i=e("./isArray"),s=o?o.isConcatSpreadable:void 0;t.exports=r},{"./_Symbol":36,"./isArguments":149,"./isArray":150}],103:[function(e,t,n){function r(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=r},{}],104:[function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?a(n)&&i(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=e("./eq"),a=e("./isArrayLike"),i=e("./_isIndex"),s=e("./isObject");t.exports=r},{"./_isIndex":103,"./eq":145,"./isArrayLike":151,"./isObject":155}],105:[function(e,t,n){function r(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}var o=e("./isArray"),a=e("./isSymbol"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"./isArray":150,"./isSymbol":158}],106:[function(e,t,n){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}t.exports=r},{}],107:[function(e,t,n){function r(e){return!!a&&a in e}var o=e("./_coreJsData"),a=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=r},{"./_coreJsData":79}],108:[function(e,t,n){function r(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||o;return e===n}var o=Object.prototype;t.exports=r},{}],109:[function(e,t,n){function r(e){return e===e&&!o(e)}var o=e("./isObject");t.exports=r},{"./isObject":155}],110:[function(e,t,n){function r(){this.__data__=[],this.size=0}t.exports=r},{}],111:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():i.call(t,n,1),--this.size,!0}var o=e("./_assocIndexOf"),a=Array.prototype,i=a.splice;t.exports=r},{"./_assocIndexOf":45}],112:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":45}],113:[function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":45}],114:[function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":45}],115:[function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(i||a),string:new o}}var o=e("./_Hash"),a=e("./_ListCache"),i=e("./_Map");t.exports=r},{"./_Hash":28,"./_ListCache":29,"./_Map":30}],116:[function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=e("./_getMapData");t.exports=r},{"./_getMapData":88}],117:[function(e,t,n){function r(e){return o(this,e).get(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":88}],118:[function(e,t,n){function r(e){return o(this,e).has(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":88}],119:[function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=e("./_getMapData");t.exports=r},{"./_getMapData":88}],120:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=r},{}],121:[function(e,t,n){function r(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}t.exports=r},{}],122:[function(e,t,n){function r(e){var t=o(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}var o=e("./memoize"),a=500;t.exports=r},{"./memoize":161}],123:[function(e,t,n){var r=e("./_getNative"),o=r(Object,"create");t.exports=o},{"./_getNative":90}],124:[function(e,t,n){var r=e("./_overArg"),o=r(Object.keys,Object);t.exports=o},{"./_overArg":127}],125:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof n&&n&&!n.nodeType&&n,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u},{"./_freeGlobal":86}],126:[function(e,t,n){function r(e){return a.call(e)}var o=Object.prototype,a=o.toString;t.exports=r},{}],127:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],128:[function(e,t,n){function r(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=a(r.length-t,0),u=Array(s);++i<s;)u[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(u),o(e,this,l)}}var o=e("./_apply"),a=Math.max;t.exports=r},{"./_apply":39}],129:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();t.exports=a},{"./_freeGlobal":86}],130:[function(e,t,n){function r(e){return this.__data__.set(e,o),this}var o="__lodash_hash_undefined__";t.exports=r},{}],131:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],132:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=r},{}],133:[function(e,t,n){var r=e("./_baseSetToString"),o=e("./_shortOut"),a=o(r);t.exports=a},{"./_baseSetToString":70,"./_shortOut":134}],134:[function(e,t,n){function r(e){var t=0,n=0;return function(){var r=i(),s=a-(r-n);if(n=r,s>0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var o=800,a=16,i=Date.now;t.exports=r},{}],135:[function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=e("./_ListCache");t.exports=r},{"./_ListCache":29}],136:[function(e,t,n){function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=r},{}],137:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],138:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],139:[function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!a||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(r)}return n.set(e,t),this.size=n.size,this}var o=e("./_ListCache"),a=e("./_Map"),i=e("./_MapCache"),s=200;t.exports=r},{"./_ListCache":29,"./_Map":30,"./_MapCache":31}],140:[function(e,t,n){var r=e("./_memoizeCapped"),o=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r(function(e){var t=[];return o.test(e)&&t.push(""),e.replace(a,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});t.exports=s},{"./_memoizeCapped":122}],141:[function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}var o=e("./isSymbol"),a=1/0;t.exports=r},{"./isSymbol":158}],142:[function(e,t,n){function r(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var o=Function.prototype,a=o.toString;t.exports=r},{}],143:[function(e,t,n){function r(e){return function(){return e}}t.exports=r},{}],144:[function(e,t,n){function r(e,t,n){function r(t){var n=g,r=b;return g=b=void 0,x=t,C=e.apply(r,n)}function c(e){return x=e,E=setTimeout(f,t),P?r(e):C}function p(e){var n=e-w,r=e-x,o=t-n;return T?l(o,_-r):o}function d(e){var n=e-w,r=e-x;return void 0===w||n>=t||n<0||T&&r>=_}function f(){var e=a();return d(e)?m(e):void(E=setTimeout(f,p(e)))}function m(e){return E=void 0,O&&g?r(e):(g=b=void 0,C)}function h(){void 0!==E&&clearTimeout(E),x=0,g=w=b=E=void 0}function v(){return void 0===E?C:m(a())}function y(){var e=a(),n=d(e);if(g=arguments,b=this,w=e,n){if(void 0===E)return c(w);if(T)return E=setTimeout(f,t),r(w)}return void 0===E&&(E=setTimeout(f,t)),C}var g,b,_,C,E,w,x=0,P=!1,T=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=i(t)||0,o(n)&&(P=!!n.leading,T="maxWait"in n,_=T?u(i(n.maxWait)||0,t):_,O="trailing"in n?!!n.trailing:O),y.cancel=h,y.flush=v,y}var o=e("./isObject"),a=e("./now"),i=e("./toNumber"),s="Expected a function",u=Math.max,l=Math.min;t.exports=r},{"./isObject":155,"./now":162,"./toNumber":169}],145:[function(e,t,n){function r(e,t){return e===t||e!==e&&t!==t}t.exports=r},{}],146:[function(e,t,n){function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=e("./_baseGet");t.exports=r},{"./_baseGet":50}],147:[function(e,t,n){function r(e,t){return null!=e&&a(e,t,o)}var o=e("./_baseHasIn"),a=e("./_hasPath");t.exports=r},{"./_baseHasIn":53,"./_hasPath":96}],148:[function(e,t,n){function r(e){return e}t.exports=r},{}],149:[function(e,t,n){var r=e("./_baseIsArguments"),o=e("./isObjectLike"),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};t.exports=u},{"./_baseIsArguments":54,"./isObjectLike":156}],150:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],151:[function(e,t,n){function r(e){return null!=e&&a(e.length)&&!o(e)}var o=e("./isFunction"),a=e("./isLength");t.exports=r},{"./isFunction":153,"./isLength":154}],152:[function(e,t,n){var r=e("./_root"),o=e("./stubFalse"),a="object"==typeof n&&n&&!n.nodeType&&n,i=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===a,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||o;t.exports=c},{"./_root":129,"./stubFalse":167}],153:[function(e,t,n){function r(e){if(!a(e))return!1;var t=o(e);return t==s||t==u||t==i||t==l}var o=e("./_baseGetTag"),a=e("./isObject"),i="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";t.exports=r},{"./_baseGetTag":52,"./isObject":155}],154:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}var o=9007199254740991;t.exports=r},{}],155:[function(e,t,n){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.exports=r},{}],156:[function(e,t,n){function r(e){return null!=e&&"object"==typeof e}t.exports=r},{}],157:[function(e,t,n){function r(e){if(!i(e)||o(e)!=s)return!1;var t=a(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var o=e("./_baseGetTag"),a=e("./_getPrototype"),i=e("./isObjectLike"),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,p=l.hasOwnProperty,d=c.call(Object);t.exports=r},{"./_baseGetTag":52,"./_getPrototype":91,"./isObjectLike":156}],158:[function(e,t,n){function r(e){return"symbol"==typeof e||a(e)&&o(e)==i}var o=e("./_baseGetTag"),a=e("./isObjectLike"),i="[object Symbol]";t.exports=r},{"./_baseGetTag":52,"./isObjectLike":156}],159:[function(e,t,n){var r=e("./_baseIsTypedArray"),o=e("./_baseUnary"),a=e("./_nodeUtil"),i=a&&a.isTypedArray,s=i?o(i):r;t.exports=s},{"./_baseIsTypedArray":59,"./_baseUnary":74,"./_nodeUtil":125}],160:[function(e,t,n){function r(e){return i(e)?o(e):a(e)}var o=e("./_arrayLikeKeys"),a=e("./_baseKeys"),i=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":41,"./_baseKeys":61,"./isArrayLike":151}],161:[function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(r.Cache||o),n}var o=e("./_MapCache"),a="Expected a function";r.Cache=o,t.exports=r},{"./_MapCache":31}],162:[function(e,t,n){var r=e("./_root"),o=function(){return r.Date.now()};t.exports=o},{"./_root":129}],163:[function(e,t,n){function r(e){return i(e)?o(s(e)):a(e)}var o=e("./_baseProperty"),a=e("./_basePropertyDeep"),i=e("./_isKey"),s=e("./_toKey");t.exports=r},{"./_baseProperty":66,"./_basePropertyDeep":67,"./_isKey":105,"./_toKey":141}],164:[function(e,t,n){function r(e,t,n){if(n&&"boolean"!=typeof n&&a(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=i(e),void 0===t?(t=e,e=0):t=i(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var c=l();return u(e+c*(t-e+s("1e-"+((c+"").length-1))),t)}return o(e,t)}var o=e("./_baseRandom"),a=e("./_isIterateeCall"),i=e("./toFinite"),s=parseFloat,u=Math.min,l=Math.random;t.exports=r},{"./_baseRandom":68,"./_isIterateeCall":104,"./toFinite":168}],165:[function(e,t,n){var r=e("./_baseFlatten"),o=e("./_baseOrderBy"),a=e("./_baseRest"),i=e("./_isIterateeCall"),s=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});t.exports=s},{"./_baseFlatten":47,"./_baseOrderBy":65,"./_baseRest":69,"./_isIterateeCall":104}],166:[function(e,t,n){function r(){return[]}t.exports=r},{}],167:[function(e,t,n){function r(){return!1}t.exports=r},{}],168:[function(e,t,n){function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===a||e===-a){var t=e<0?-1:1;return t*i}return e===e?e:0}var o=e("./toNumber"),a=1/0,i=1.7976931348623157e308;t.exports=r},{"./toNumber":169}],169:[function(e,t,n){function r(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?p(e.slice(2),n?2:8):u.test(e)?i:+e}var o=e("./isObject"),a=e("./isSymbol"),i=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;t.exports=r},{"./isObject":155,"./isSymbol":158}],170:[function(e,t,n){function r(e){return null==e?"":o(e)}var o=e("./_baseToString");t.exports=r},{"./_baseToString":73}],171:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)i.call(n,c)&&(u[c]=n[c]);if(a){o=a(n);for(var p=0;p<o.length;p++)s.call(n,o[p])&&(u[o[p]]=n[o[p]])}}return u}},{}],172:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function s(){v&&m&&(v=!1,m.length?h=m.concat(h):y=-1,h.length&&u())}function u(){if(!v){var e=a(s);v=!0;for(var t=h.length;t;){for(m=h,h=[];++y<t;)m&&m[y].run();y=-1,t=h.length}m=null,v=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var p,d,f=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(e){p=r}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(e){d=o}}();var m,h=[],v=!1,y=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||v||a(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],173:[function(e,t,n){"use strict";t.exports=e("./lib/ReactDOM")},{"./lib/ReactDOM":203}],174:[function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};t.exports=r},{}],175:[function(e,t,n){"use strict";var r=e("./ReactDOMComponentTree"),o=e("fbjs/lib/focusNode"),a={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};t.exports=a},{"./ReactDOMComponentTree":206,"fbjs/lib/focusNode":11}],176:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case"topCompositionStart":return T.compositionStart;case"topCompositionEnd":return T.compositionEnd;case"topCompositionUpdate":return T.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===b}function s(e,t){switch(e){case"topKeyUp":return g.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==b;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,r){var o,l;if(_?o=a(e):M?s(e,n)&&(o=T.compositionEnd):i(e,n)&&(o=T.compositionStart),!o)return null;w&&(M||o!==T.compositionStart?o===T.compositionEnd&&M&&(l=M.getData()):M=h.getPooled(r));var c=v.getPooled(o,t,n,r);if(l)c.data=l;else{var p=u(n);null!==p&&(c.data=p)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return u(t);case"topKeyPress":var n=t.which;return n!==x?null:(O=!0,P);case"topTextInput":var r=t.data;return r===P&&O?null:r;default:return null}}function p(e,t){if(M){if("topCompositionEnd"===e||!_&&s(e,t)){var n=M.getData();return h.release(M),M=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!o(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function d(e,t,n,r){var o;if(o=E?c(e,n):p(e,n),!o)return null;var a=y.getPooled(T.beforeInput,t,n,r);return a.data=o,f.accumulateTwoPhaseDispatches(a),a}var f=e("./EventPropagators"),m=e("fbjs/lib/ExecutionEnvironment"),h=e("./FallbackCompositionState"),v=e("./SyntheticCompositionEvent"),y=e("./SyntheticInputEvent"),g=[9,13,27,32],b=229,_=m.canUseDOM&&"CompositionEvent"in window,C=null;m.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var E=m.canUseDOM&&"TextEvent"in window&&!C&&!r(),w=m.canUseDOM&&(!_||C&&C>8&&C<=11),x=32,P=String.fromCharCode(x),T={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},O=!1,M=null,I={eventTypes:T,extractEvents:function(e,t,n,r){return[l(e,t,n,r),d(e,t,n,r)]}};t.exports=I},{"./EventPropagators":192,"./FallbackCompositionState":193,"./SyntheticCompositionEvent":257,"./SyntheticInputEvent":261,"fbjs/lib/ExecutionEnvironment":3}],177:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,
strokeWidth:!0},a=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){a.forEach(function(t){o[r(t,e)]=o[e]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:i};t.exports=s},{}],178:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("fbjs/lib/ExecutionEnvironment"),a=(e("./ReactInstrumentation"),e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),i=e("fbjs/lib/hyphenateStyleName"),s=e("fbjs/lib/memoizeStringOnly"),u=(e("fbjs/lib/warning"),s(function(e){return i(e)})),l=!1,c="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];null!=o&&(n+=u(r)+":",n+=a(r,o,t)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var i in t)if(t.hasOwnProperty(i)){var s=a(i,t[i],n);if("float"!==i&&"cssFloat"!==i||(i=c),s)o[i]=s;else{var u=l&&r.shorthandPropertyExpansions[i];if(u)for(var p in u)o[p]="";else o[i]=""}}}};t.exports=d},{"./CSSProperty":177,"./ReactInstrumentation":235,"./dangerousStyleValue":274,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/camelizeStyleName":5,"fbjs/lib/hyphenateStyleName":16,"fbjs/lib/memoizeStringOnly":20,"fbjs/lib/warning":24}],179:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("./reactProdInvariant"),a=e("./PooledClass"),i=(e("fbjs/lib/invariant"),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?o("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());t.exports=a.addPoolingTo(i)},{"./PooledClass":197,"./reactProdInvariant":293,"fbjs/lib/invariant":17}],180:[function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=w.getPooled(O.change,I,e,x(e));b.accumulateTwoPhaseDispatches(t),E.batchedUpdates(a,t)}function a(e){g.enqueueEvents(e),g.processEventQueue(!1)}function i(e,t){M=e,I=t,M.attachEvent("onchange",o)}function s(){M&&(M.detachEvent("onchange",o),M=null,I=null)}function u(e,t){if("topChange"===e)return t}function l(e,t,n){"topFocus"===e?(s(),i(t,n)):"topBlur"===e&&s()}function c(e,t){M=e,I=t,S=e.value,R=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(M,"value",D),M.attachEvent?M.attachEvent("onpropertychange",d):M.addEventListener("propertychange",d,!1)}function p(){M&&(delete M.value,M.detachEvent?M.detachEvent("onpropertychange",d):M.removeEventListener("propertychange",d,!1),M=null,I=null,S=null,R=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==S&&(S=t,o(e))}}function f(e,t){if("topInput"===e)return t}function m(e,t,n){"topFocus"===e?(p(),c(t,n)):"topBlur"===e&&p()}function h(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&M&&M.value!==S)return S=M.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t){if("topClick"===e)return t}var g=e("./EventPluginHub"),b=e("./EventPropagators"),_=e("fbjs/lib/ExecutionEnvironment"),C=e("./ReactDOMComponentTree"),E=e("./ReactUpdates"),w=e("./SyntheticEvent"),x=e("./getEventTarget"),P=e("./isEventSupported"),T=e("./isTextInputElement"),O={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},M=null,I=null,S=null,R=null,N=!1;_.canUseDOM&&(N=P("change")&&(!document.documentMode||document.documentMode>8));var k=!1;_.canUseDOM&&(k=P("input")&&(!document.documentMode||document.documentMode>11));var D={get:function(){return R.get.call(this)},set:function(e){S=""+e,R.set.call(this,e)}},A={eventTypes:O,extractEvents:function(e,t,n,o){var a,i,s=t?C.getNodeFromInstance(t):window;if(r(s)?N?a=u:i=l:T(s)?k?a=f:(a=h,i=m):v(s)&&(a=y),a){var c=a(e,t);if(c){var p=w.getPooled(O.change,c,n,o);return p.type="change",b.accumulateTwoPhaseDispatches(p),p}}i&&i(e,s,t)}};t.exports=A},{"./EventPluginHub":189,"./EventPropagators":192,"./ReactDOMComponentTree":206,"./ReactUpdates":250,"./SyntheticEvent":259,"./getEventTarget":282,"./isEventSupported":290,"./isTextInputElement":291,"fbjs/lib/ExecutionEnvironment":3}],181:[function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){c.insertTreeBefore(e,t,n)}function a(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):h(e,t,n)}function i(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var a=o.nextSibling;if(h(e,o,r),o===n)break;o=a}}function u(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function l(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&h(r,document.createTextNode(n),o):n?(m(o,n),u(r,o,t)):u(r,e,t)}var c=e("./DOMLazyTree"),p=e("./Danger"),d=(e("./ReactDOMComponentTree"),e("./ReactInstrumentation"),e("./createMicrosoftUnsafeLocalFunction")),f=e("./setInnerHTML"),m=e("./setTextContent"),h=d(function(e,t,n){e.insertBefore(t,n)}),v=p.dangerouslyReplaceNodeWithMarkup,y={dangerouslyReplaceNodeWithMarkup:v,replaceDelimitedText:l,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":o(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":a(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":f(e,s.content);break;case"TEXT_CONTENT":m(e,s.content);break;case"REMOVE_NODE":i(e,s.fromNode)}}}};t.exports=y},{"./DOMLazyTree":182,"./Danger":186,"./ReactDOMComponentTree":206,"./ReactInstrumentation":235,"./createMicrosoftUnsafeLocalFunction":273,"./setInnerHTML":295,"./setTextContent":296}],182:[function(e,t,n){"use strict";function r(e){if(v){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)y(t,n[r],null);else null!=e.html?p(t,e.html):null!=e.text&&f(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function a(e,t){v?e.children.push(t):e.node.appendChild(t.node)}function i(e,t){v?e.html=t:p(e.node,t)}function s(e,t){v?e.text=t:f(e.node,t)}function u(){return this.node.nodeName}function l(e){return{node:e,children:[],html:null,text:null,toString:u}}var c=e("./DOMNamespaces"),p=e("./setInnerHTML"),d=e("./createMicrosoftUnsafeLocalFunction"),f=e("./setTextContent"),m=1,h=11,v="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),y=d(function(e,t,n){t.node.nodeType===h||t.node.nodeType===m&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===c.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});l.insertTreeBefore=y,l.replaceChildWithTree=o,l.queueChild=a,l.queueHTML=i,l.queueText=s,t.exports=l},{"./DOMNamespaces":183,"./createMicrosoftUnsafeLocalFunction":273,"./setInnerHTML":295,"./setTextContent":296}],183:[function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=r},{}],184:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e("./reactProdInvariant"),a=(e("fbjs/lib/invariant"),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){s.properties.hasOwnProperty(p)?o("48",p):void 0;var d=p.toLowerCase(),f=n[p],m={attributeName:d,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:r(f,t.MUST_USE_PROPERTY),hasBooleanValue:r(f,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(f,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(f,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(f,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(m.hasBooleanValue+m.hasNumericValue+m.hasOverloadedBooleanValue<=1?void 0:o("50",p),u.hasOwnProperty(p)){var h=u[p];m.attributeName=h}i.hasOwnProperty(p)&&(m.attributeNamespace=i[p]),l.hasOwnProperty(p)&&(m.propertyName=l[p]),c.hasOwnProperty(p)&&(m.mutationMethod=c[p]),s.properties[p]=m}}}),i=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:i,ATTRIBUTE_NAME_CHAR:i+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:a};t.exports=s},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],185:[function(e,t,n){"use strict";function r(e){return!!l.hasOwnProperty(e)||!u.hasOwnProperty(e)&&(s.test(e)?(l[e]=!0,!0):(u[e]=!0,!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var a=e("./DOMProperty"),i=(e("./ReactDOMComponentTree"),e("./ReactInstrumentation"),e("./quoteAttributeValueForBrowser")),s=(e("fbjs/lib/warning"),new RegExp("^["+a.ATTRIBUTE_NAME_START_CHAR+"]["+a.ATTRIBUTE_NAME_CHAR+"]*$")),u={},l={},c={createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+i(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return a.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(a.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+i(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+i(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+i(t):""},setValueForProperty:function(e,t,n){var r=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(r){var i=r.mutationMethod;if(i)i(e,n);else{if(o(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}}}else if(a.isCustomAttribute(t))return void c.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?e[o]=!1:e[o]=""}else e.removeAttribute(n.attributeName)}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};t.exports=c},{"./DOMProperty":184,"./ReactDOMComponentTree":206,"./ReactInstrumentation":235,"./quoteAttributeValueForBrowser":292,"fbjs/lib/warning":24}],186:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=e("./DOMLazyTree"),a=e("fbjs/lib/ExecutionEnvironment"),i=e("fbjs/lib/createNodesFromMarkup"),s=e("fbjs/lib/emptyFunction"),u=(e("fbjs/lib/invariant"),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(a.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=i(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});t.exports=u},{"./DOMLazyTree":182,"./reactProdInvariant":293,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/createNodesFromMarkup":8,"fbjs/lib/emptyFunction":9,"fbjs/lib/invariant":17}],187:[function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=r},{}],188:[function(e,t,n){"use strict";var r=e("./EventPropagators"),o=e("./ReactDOMComponentTree"),a=e("./SyntheticMouseEvent"),i={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:i,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,p;if("topMouseOut"===e){c=t;var d=n.relatedTarget||n.toElement;p=d?o.getClosestInstanceFromNode(d):null}else c=null,p=t;if(c===p)return null;var f=null==c?u:o.getNodeFromInstance(c),m=null==p?u:o.getNodeFromInstance(p),h=a.getPooled(i.mouseLeave,c,n,s);h.type="mouseleave",h.target=f,h.relatedTarget=m;var v=a.getPooled(i.mouseEnter,p,n,s);return v.type="mouseenter",v.target=m,v.relatedTarget=f,r.accumulateEnterLeaveDispatches(h,v,c,p),[h,v]}};t.exports=s},{"./EventPropagators":192,"./ReactDOMComponentTree":206,"./SyntheticMouseEvent":263}],189:[function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var a=e("./reactProdInvariant"),i=e("./EventPluginRegistry"),s=e("./EventPluginUtils"),u=e("./ReactErrorUtils"),l=e("./accumulateInto"),c=e("./forEachAccumulated"),p=(e("fbjs/lib/invariant"),{}),d=null,f=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},m=function(e){return f(e,!0)},h=function(e){return f(e,!1)},v=function(e){return"."+e._rootNodeID},y={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?a("94",t,typeof n):void 0;var r=v(e),o=p[t]||(p[t]={});o[r]=n;var s=i.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(o(t,e._currentElement.type,e._currentElement.props))return null;var r=v(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];if(r){var o=v(e);delete r[o]}},deleteAllListeners:function(e){var t=v(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,r){for(var o,a=i.plugins,s=0;s<a.length;s++){var u=a[s];if(u){var c=u.extractEvents(e,t,n,r);c&&(o=l(o,c))}}return o},enqueueEvents:function(e){e&&(d=l(d,e))},processEventQueue:function(e){var t=d;d=null,e?c(t,m):c(t,h),d?a("95"):void 0,u.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};t.exports=y},{"./EventPluginRegistry":190,"./EventPluginUtils":191,"./ReactErrorUtils":226,"./accumulateInto":270,"./forEachAccumulated":278,"./reactProdInvariant":293,"fbjs/lib/invariant":17}],190:[function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1?void 0:i("96",e),!l.plugins[n]){t.extractEvents?void 0:i("97",e),l.plugins[n]=t;var r=t.eventTypes;for(var a in r)o(r[a],t,a)?void 0:i("98",a,e)}}}function o(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?i("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a(s,t,n)}return!0}return!!e.registrationName&&(a(e.registrationName,t,n),!0)}function a(e,t,n){l.registrationNameModules[e]?i("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=e("./reactProdInvariant"),s=(e("fbjs/lib/invariant"),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?i("101"):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?i("102",n):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],191:[function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function a(e){return"topMouseDown"===e||"topTouchStart"===e}function i(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(r),t?h.invokeGuardedCallbackWithCatch(o,n,e):h.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)i(e,t,n[o],r[o]);else n&&i(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function u(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function l(e){var t=u(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?m("103"):void 0,e.currentTarget=t?y.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function p(e){return!!e._dispatchListeners}var d,f,m=e("./reactProdInvariant"),h=e("./ReactErrorUtils"),v=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{injectComponentTree:function(e){d=e},injectTreeTraversal:function(e){f=e}}),y={isEndish:r,isMoveish:o,isStartish:a,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:l,hasDispatches:p,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return f.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return f.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return f.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return f.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,o){return f.traverseEnterLeave(e,t,n,r,o)},injection:v};t.exports=y},{"./ReactErrorUtils":226,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24}],192:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function o(e,t,n){var o=r(e,n,t);o&&(n._dispatchListeners=h(n._dispatchListeners,o),n._dispatchInstances=h(n._dispatchInstances,e))}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(e._targetInst,o,e)}function i(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?m.getParentInstance(t):null;m.traverseTwoPhase(n,o,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(e,r);o&&(n._dispatchListeners=h(n._dispatchListeners,o),n._dispatchInstances=h(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function l(e){v(e,a)}function c(e){v(e,i)}function p(e,t,n,r){m.traverseEnterLeave(n,r,s,e,t)}function d(e){v(e,u)}var f=e("./EventPluginHub"),m=e("./EventPluginUtils"),h=e("./accumulateInto"),v=e("./forEachAccumulated"),y=(e("fbjs/lib/warning"),f.getListener),g={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};t.exports=g},{"./EventPluginHub":189,"./EventPluginUtils":191,"./accumulateInto":270,"./forEachAccumulated":278,"fbjs/lib/warning":24}],193:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e("object-assign"),a=e("./PooledClass"),i=e("./getTextContentAccessor");o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),a.addPoolingTo(r),t.exports=r},{"./PooledClass":197,"./getTextContentAccessor":287,"object-assign":171}],194:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_PROPERTY,a=r.injection.HAS_BOOLEAN_VALUE,i=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:a,allowTransparency:0,alt:0,as:0,async:a,autoComplete:0,autoPlay:a,capture:a,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|a,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:a,coords:0,crossOrigin:0,data:0,dateTime:0,default:a,defer:a,dir:0,disabled:a,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:a,formTarget:0,frameBorder:0,headers:0,height:0,hidden:a,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:a,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|a,muted:o|a,name:0,nonce:0,noValidate:a,open:a,optimum:0,pattern:0,placeholder:0,playsInline:a,poster:0,preload:0,profile:0,radioGroup:0,readOnly:a,referrerPolicy:0,rel:0,required:a,reversed:a,role:0,rows:s,rowSpan:i,sandbox:0,scope:0,scoped:a,scrolling:0,seamless:a,selected:o|a,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:i,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:a,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=l},{"./DOMProperty":184}],195:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var a={escape:r,unescape:o};t.exports=a},{}],196:[function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?s("87"):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?s("88"):void 0}function a(e){r(e),null!=e.checked||null!=e.onChange?s("89"):void 0}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./reactProdInvariant"),u=e("react/lib/React"),l=e("./ReactPropTypesSecret"),c=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.PropTypes.func},d={},f={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var o=p[r](t,r,e,"prop",null,l);if(o instanceof Error&&!(o.message in d)){d[o.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=f},{"./ReactPropTypesSecret":243,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/React":309}],197:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=(e("fbjs/lib/invariant"),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r),a}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,c=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=l),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:a,threeArgumentPooler:i,fourArgumentPooler:s};t.exports=d},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],198:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,h)||(e[h]=f++,p[e[h]]={}),p[e[h]]}var o,a=e("object-assign"),i=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),u=e("./ViewportMetrics"),l=e("./getVendorPrefixedEventName"),c=e("./isEventSupported"),p={},d=!1,f=0,m={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},h="_reactListenersID"+String(Math.random()).slice(2),v=a({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),a=i.registrationNameDependencies[e],s=0;s<a.length;s++){var u=a[s];o.hasOwnProperty(u)&&o[u]||("topWheel"===u?c("wheel")?v.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):c("mousewheel")?v.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):v.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===u?c("scroll",!0)?v.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):v.ReactEventListener.trapBubbledEvent("topScroll","scroll",v.ReactEventListener.WINDOW_HANDLE):"topFocus"===u||"topBlur"===u?(c("focus",!0)?(v.ReactEventListener.trapCapturedEvent("topFocus","focus",n),v.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):c("focusin")&&(v.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),v.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):m.hasOwnProperty(u)&&v.ReactEventListener.trapBubbledEvent(u,m[u],n),o[u]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=v.supportsEventPageXY()),!o&&!d){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}}});t.exports=v},{"./EventPluginRegistry":190,"./ReactEventEmitterMixin":227,"./ViewportMetrics":269,"./getVendorPrefixedEventName":288,
"./isEventSupported":290,"object-assign":171}],199:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=a(t,!0))}var o=e("./ReactReconciler"),a=e("./instantiateReactComponent"),i=(e("./KeyEscapeUtils"),e("./shouldUpdateReactComponent")),s=e("./traverseAllChildren");e("fbjs/lib/warning");"undefined"!=typeof n&&n.env,1;var u={instantiateChildren:function(e,t,n,o){if(null==e)return null;var a={};return s(e,r,a),a},updateChildren:function(e,t,n,r,s,u,l,c,p){if(t||e){var d,f;for(d in t)if(t.hasOwnProperty(d)){f=e&&e[d];var m=f&&f._currentElement,h=t[d];if(null!=f&&i(m,h))o.receiveComponent(f,h,s,c),t[d]=f;else{f&&(r[d]=o.getHostNode(f),o.unmountComponent(f,!1));var v=a(h,!0);t[d]=v;var y=o.mountComponent(v,s,u,l,c,p);n.push(y)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(f=e[d],r[d]=o.getHostNode(f),o.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}};t.exports=u}).call(this,e("_process"))},{"./KeyEscapeUtils":195,"./ReactReconciler":245,"./instantiateReactComponent":289,"./shouldUpdateReactComponent":297,"./traverseAllChildren":298,_process:172,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],200:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./ReactDOMIDOperations"),a={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=a},{"./DOMChildrenOperations":181,"./ReactDOMIDOperations":210}],201:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=(e("fbjs/lib/invariant"),!1),a={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r("104"):void 0,a.replaceNodeWithMarkup=e.replaceNodeWithMarkup,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=a},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],202:[function(e,t,n){"use strict";function r(e){}function o(e,t){}function a(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=e("./reactProdInvariant"),u=e("object-assign"),l=e("react/lib/React"),c=e("./ReactComponentEnvironment"),p=e("react/lib/ReactCurrentOwner"),d=e("./ReactErrorUtils"),f=e("./ReactInstanceMap"),m=(e("./ReactInstrumentation"),e("./ReactNodeTypes")),h=e("./ReactReconciler"),v=e("fbjs/lib/emptyObject"),y=(e("fbjs/lib/invariant"),e("fbjs/lib/shallowEqual")),g=e("./shouldUpdateReactComponent"),b=(e("fbjs/lib/warning"),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var _=1,C={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){this._context=u,this._mountOrder=_++,this._hostParent=t,this._hostContainerInfo=n;var c,p=this._currentElement.props,d=this._processContext(u),m=this._currentElement.type,h=e.getUpdateQueue(),y=a(m),g=this._constructComponent(y,p,d,h);y||null!=g&&null!=g.render?i(m)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(c=g,o(m,c),null===g||g===!1||l.isValidElement(g)?void 0:s("105",m.displayName||m.name||"Component"),g=new r(m),this._compositeType=b.StatelessFunctional);g.props=p,g.context=d,g.refs=v,g.updater=h,this._instance=g,f.set(g,this);var C=g.state;void 0===C&&(g.state=C=null),"object"!=typeof C||Array.isArray(C)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var E;return E=g.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,u):this.performInitialMount(c,t,n,e,u),g.componentDidMount&&e.getReactMountReady().enqueue(g.componentDidMount,g),E},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var a,i=r.checkpoint();try{a=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(i),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),i=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(i),a=this.performInitialMount(e,t,n,r,o)}return a},performInitialMount:function(e,t,n,r,o){var a=this._instance,i=0;a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),void 0===e&&(e=this._renderValidatedComponent());var s=m.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==m.EMPTY);this._renderedComponent=u;var l=h.mountComponent(u,r,t,n,this._processChildContext(o),i);return l},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in t)o in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",o);return u({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var a=this._instance;null==a?s("136",this.getName()||"ReactCompositeComponent"):void 0;var i,u=!1;this._context===o?i=a.context:(i=this._processContext(o),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&a.componentWillReceiveProps&&a.componentWillReceiveProps(c,i);var p=this._processPendingState(c,i),d=!0;this._pendingForceUpdate||(a.shouldComponentUpdate?d=a.shouldComponentUpdate(c,p,i):this._compositeType===b.PureClass&&(d=!y(l,c)||!y(a.state,p))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,p,i,e,o)):(this._currentElement=n,this._context=o,a.props=c,a.state=p,a.context=i)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var a=u({},o?r[0]:n.state),i=o?1:0;i<r.length;i++){var s=r[i];u(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,r,o,a){var i,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(i=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(t,n,r),this._currentElement=e,this._context=a,l.props=t,l.state=n,l.context=r,this._updateRenderedComponent(o,a),c&&o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,i,s,u),l)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent(),a=0;if(g(r,o))h.receiveComponent(n,o,e,this._processChildContext(t));else{var i=h.getHostNode(n);h.unmountComponent(n,!1);var s=m.getType(o);this._renderedNodeType=s;var u=this._instantiateReactComponent(o,s!==m.EMPTY);this._renderedComponent=u;var l=h.mountComponent(u,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),a);this._replaceNodeWithMarkup(i,l,n)}},_replaceNodeWithMarkup:function(e,t,n){c.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=t.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==b.StatelessFunctional){p.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{p.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||e===!1||l.isValidElement(e)?void 0:s("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?s("110"):void 0;var r=t.getPublicInstance(),o=n.refs===v?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===b.StatelessFunctional?null:e},_instantiateReactComponent:null};t.exports=C},{"./ReactComponentEnvironment":201,"./ReactErrorUtils":226,"./ReactInstanceMap":234,"./ReactInstrumentation":235,"./ReactNodeTypes":240,"./ReactReconciler":245,"./checkReactTypeSpec":272,"./reactProdInvariant":293,"./shouldUpdateReactComponent":297,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/shallowEqual":23,"fbjs/lib/warning":24,"object-assign":171,"react/lib/React":309,"react/lib/ReactCurrentOwner":314}],203:[function(e,t,n){"use strict";var r=e("./ReactDOMComponentTree"),o=e("./ReactDefaultInjection"),a=e("./ReactMount"),i=e("./ReactReconciler"),s=e("./ReactUpdates"),u=e("./ReactVersion"),l=e("./findDOMNode"),c=e("./getHostComponentFromComposite"),p=e("./renderSubtreeIntoContainer");e("fbjs/lib/warning");o.inject();var d={findDOMNode:l,render:a.render,unmountComponentAtNode:a.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?r.getNodeFromInstance(e):null}},Mount:a,Reconciler:i});t.exports=d},{"./ReactDOMComponentTree":206,"./ReactDOMInvalidARIAHook":212,"./ReactDOMNullInputValuePropHook":213,"./ReactDOMUnknownPropertyHook":220,"./ReactDefaultInjection":223,"./ReactInstrumentation":235,"./ReactMount":238,"./ReactReconciler":245,"./ReactUpdates":250,"./ReactVersion":251,"./findDOMNode":276,"./getHostComponentFromComposite":283,"./renderSubtreeIntoContainer":294,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/warning":24}],204:[function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(Y[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?h("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?h("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&V in t.dangerouslySetInnerHTML?void 0:h("61")),null!=t.style&&"object"!=typeof t.style?h("62",r(e)):void 0)}function a(e,t,n,r){if(!(r instanceof k)){var o=e._hostContainerInfo,a=o._node&&o._node.nodeType===z,s=a?o._node:o._ownerDocument;U(t,s),r.getReactMountReady().enqueue(i,{inst:e,registrationName:t,listener:n})}}function i(){var e=this;w.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;M.postMountWrapper(e)}function u(){var e=this;R.postMountWrapper(e)}function l(){var e=this;I.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:h("63");var t=L(e);switch(t?void 0:h("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in W)W.hasOwnProperty(n)&&e._wrapperState.listeners.push(P.trapBubbledEvent(n,W[n],t));break;case"source":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t),P.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",t),P.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",t)]}}function p(){S.postUpdateWrapper(this)}function d(e){X.call(Q,e)||($.test(e)?void 0:h("65",e),Q[e]=!0)}function f(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var h=e("./reactProdInvariant"),v=e("object-assign"),y=e("./AutoFocusUtils"),g=e("./CSSPropertyOperations"),b=e("./DOMLazyTree"),_=e("./DOMNamespaces"),C=e("./DOMProperty"),E=e("./DOMPropertyOperations"),w=e("./EventPluginHub"),x=e("./EventPluginRegistry"),P=e("./ReactBrowserEventEmitter"),T=e("./ReactDOMComponentFlags"),O=e("./ReactDOMComponentTree"),M=e("./ReactDOMInput"),I=e("./ReactDOMOption"),S=e("./ReactDOMSelect"),R=e("./ReactDOMTextarea"),N=(e("./ReactInstrumentation"),e("./ReactMultiChild")),k=e("./ReactServerRenderingTransaction"),D=(e("fbjs/lib/emptyFunction"),e("./escapeTextContentForBrowser")),A=(e("fbjs/lib/invariant"),e("./isEventSupported"),e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),T),j=w.deleteListener,L=O.getNodeFromInstance,U=P.listenTo,F=x.registrationNameModules,B={string:!0,number:!0},H="style",V="__html",K={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,W={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},G={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),$=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},X={}.hasOwnProperty,Z=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var a=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":M.mountWrapper(this,a,t),a=M.getHostProps(this,a),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,a,t),a=I.getHostProps(this,a);break;case"select":S.mountWrapper(this,a,t),a=S.getHostProps(this,a),e.getReactMountReady().enqueue(c,this);break;case"textarea":R.mountWrapper(this,a,t),a=R.getHostProps(this,a),e.getReactMountReady().enqueue(c,this)}o(this,a);var i,p;null!=t?(i=t._namespaceURI,p=t._tag):n._tag&&(i=n._namespaceURI,p=n._tag),(null==i||i===_.svg&&"foreignobject"===p)&&(i=_.html),i===_.html&&("svg"===this._tag?i=_.svg:"math"===this._tag&&(i=_.mathml)),this._namespaceURI=i;var d;if(e.useCreateElement){var f,m=n._ownerDocument;if(i===_.html)if("script"===this._tag){var h=m.createElement("div"),v=this._currentElement.type;h.innerHTML="<"+v+"></"+v+">",f=h.removeChild(h.firstChild)}else f=a.is?m.createElement(this._currentElement.type,a.is):m.createElement(this._currentElement.type);else f=m.createElementNS(i,this._currentElement.type);O.precacheNode(this,f),this._flags|=A.hasCachedChildNodes,this._hostParent||E.setAttributeForRoot(f),this._updateDOMProperties(null,a,e);var g=b(f);this._createInitialChildren(e,a,r,g),d=g}else{var C=this._createOpenTagMarkupAndPutListeners(e,a),w=this._createContentMarkup(e,a,r);d=!w&&q[this._tag]?C+"/>":C+">"+w+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(F.hasOwnProperty(r))o&&a(this,r,o,e);else{r===H&&(o&&(o=this._previousStyleCopy=v({},t.style)),o=g.createMarkupForStyles(o,this));var i=null;null!=this._tag&&f(this._tag,t)?K.hasOwnProperty(r)||(i=E.createMarkupForCustomAttribute(r,o)):i=E.createMarkupForProperty(r,o),i&&(n+=" "+i)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+E.createMarkupForRoot()),n+=" "+E.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var a=B[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)r=D(a);else if(null!=i){var s=this.mountChildren(i,e,n);r=s.join("")}}return G[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var a=B[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)""!==a&&b.queueText(r,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),u=0;u<s.length;u++)b.queueChild(r,s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var a=t.props,i=this._currentElement.props;switch(this._tag){case"input":a=M.getHostProps(this,a),i=M.getHostProps(this,i);break;case"option":a=I.getHostProps(this,a),i=I.getHostProps(this,i);break;case"select":a=S.getHostProps(this,a),i=S.getHostProps(this,i);break;case"textarea":a=R.getHostProps(this,a),i=R.getHostProps(this,i)}switch(o(this,i),this._updateDOMProperties(a,i,e),this._updateDOMChildren(a,i,e,r),this._tag){case"input":M.updateWrapper(this);break;case"textarea":R.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(p,this)}},_updateDOMProperties:function(e,t,n){var r,o,i;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===H){var s=this._previousStyleCopy;for(o in s)s.hasOwnProperty(o)&&(i=i||{},i[o]="");this._previousStyleCopy=null}else F.hasOwnProperty(r)?e[r]&&j(this,r):f(this._tag,e)?K.hasOwnProperty(r)||E.deleteValueForAttribute(L(this),r):(C.properties[r]||C.isCustomAttribute(r))&&E.deleteValueForProperty(L(this),r);for(r in t){var u=t[r],l=r===H?this._previousStyleCopy:null!=e?e[r]:void 0;if(t.hasOwnProperty(r)&&u!==l&&(null!=u||null!=l))if(r===H)if(u?u=this._previousStyleCopy=v({},u):this._previousStyleCopy=null,l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(i=i||{},i[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(i=i||{},i[o]=u[o])}else i=u;else if(F.hasOwnProperty(r))u?a(this,r,u,n):l&&j(this,r);else if(f(this._tag,t))K.hasOwnProperty(r)||E.setValueForAttribute(L(this),r,u);else if(C.properties[r]||C.isCustomAttribute(r)){var c=L(this);null!=u?E.setValueForProperty(c,r,u):E.deleteValueForProperty(c,r)}}i&&g.setValueForStyles(L(this),i,this)},_updateDOMChildren:function(e,t,n,r){var o=B[typeof e.children]?e.children:null,a=B[typeof t.children]?t.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,l=null!=a?null:t.children,c=null!=o||null!=i,p=null!=a||null!=s;null!=u&&null==l?this.updateChildren(null,n,r):c&&!p&&this.updateTextContent(""),null!=a?o!==a&&this.updateTextContent(""+a):null!=s?i!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,r)},getHostNode:function(){return L(this)},unmountComponent:function(e){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"html":case"head":case"body":h("66",this._tag)}this.unmountChildren(e),O.uncacheNode(this),w.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return L(this)}},v(m.prototype,m.Mixin,N.Mixin),t.exports=m},{"./AutoFocusUtils":175,"./CSSPropertyOperations":178,"./DOMLazyTree":182,"./DOMNamespaces":183,"./DOMProperty":184,"./DOMPropertyOperations":185,"./EventPluginHub":189,"./EventPluginRegistry":190,"./ReactBrowserEventEmitter":198,"./ReactDOMComponentFlags":205,"./ReactDOMComponentTree":206,"./ReactDOMInput":211,"./ReactDOMOption":214,"./ReactDOMSelect":215,"./ReactDOMTextarea":218,"./ReactInstrumentation":235,"./ReactMultiChild":239,"./ReactServerRenderingTransaction":247,"./escapeTextContentForBrowser":275,"./isEventSupported":290,"./reactProdInvariant":293,"./validateDOMNesting":299,"fbjs/lib/emptyFunction":9,"fbjs/lib/invariant":17,"fbjs/lib/shallowEqual":23,"fbjs/lib/warning":24,"object-assign":171}],205:[function(e,t,n){"use strict";var r={hasCachedChildNodes:1};t.exports=r},{}],206:[function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(m)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){var n=o(e);n._hostNode=t,t[v]=n}function i(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function s(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var u=n[s],l=o(u)._domID;if(0!==l){for(;null!==i;i=i.nextSibling)if(r(i,l)){a(u,i);continue e}p("32",l)}}e._flags|=h.hasCachedChildNodes}}function u(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[v]);e=t.pop())n=r,t.length&&s(r,e);return n}function l(e){var t=u(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?p("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:p("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var p=e("./reactProdInvariant"),d=e("./DOMProperty"),f=e("./ReactDOMComponentFlags"),m=(e("fbjs/lib/invariant"),d.ID_ATTRIBUTE_NAME),h=f,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),y={getClosestInstanceFromNode:u,getInstanceFromNode:l,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:a,uncacheNode:i};t.exports=y},{"./DOMProperty":184,"./ReactDOMComponentFlags":205,"./reactProdInvariant":293,"fbjs/lib/invariant":17}],207:[function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(e("./validateDOMNesting"),9);t.exports=r},{"./validateDOMNesting":299}],208:[function(e,t,n){"use strict";var r=e("object-assign"),o=e("./DOMLazyTree"),a=e("./ReactDOMComponentTree"),i=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(i.prototype,{mountComponent:function(e,t,n,r){var i=n._idCounter++;this._domID=i,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return a.precacheNode(this,l),o(l)}return e.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return a.getNodeFromInstance(this)},unmountComponent:function(){a.uncacheNode(this)}}),t.exports=i},{"./DOMLazyTree":182,"./ReactDOMComponentTree":206,"object-assign":171}],209:[function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};t.exports=r},{}],210:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./ReactDOMComponentTree"),a={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};t.exports=a},{"./DOMChildrenOperations":181,"./ReactDOMComponentTree":206}],211:[function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);c.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var i=l.getNodeFromInstance(this),s=i;s.parentNode;)s=s.parentNode;for(var p=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<p.length;d++){var f=p[d];if(f!==i&&f.form===i.form){var m=l.getInstanceFromNode(f);m?void 0:a("90"),c.asap(r,m)}}}return n}var a=e("./reactProdInvariant"),i=e("object-assign"),s=e("./DOMPropertyOperations"),u=e("./LinkedValueUtils"),l=e("./ReactDOMComponentTree"),c=e("./ReactUpdates"),p=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{getHostProps:function(e,t){var n=u.getValue(t),r=u.getChecked(t),o=i({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return o},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&s.setValueForProperty(l.getNodeFromInstance(e),"checked",n||!1);var r=l.getNodeFromInstance(e),o=u.getValue(t);if(null!=o){var a=""+o;a!==r.value&&(r.value=a)}else null==t.value&&null!=t.defaultValue&&r.defaultValue!==""+t.defaultValue&&(r.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(r.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=l.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}});t.exports=p},{"./DOMPropertyOperations":185,"./LinkedValueUtils":196,"./ReactDOMComponentTree":206,"./ReactUpdates":250,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":171}],212:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=(e("react/lib/ReactComponentTreeHook"),e("fbjs/lib/warning"),new RegExp("^(aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$"),{onBeforeMountComponent:function(e,t){},onBeforeUpdateComponent:function(e,t){}});t.exports=o},{"./DOMProperty":184,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],213:[function(e,t,n){"use strict";function r(e,t){null!=t&&("input"!==t.type&&"textarea"!==t.type&&"select"!==t.type||null==t.props||null!==t.props.value||o||(o=!0))}var o=(e("react/lib/ReactComponentTreeHook"),e("fbjs/lib/warning"),!1),a={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};t.exports=a},{"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],214:[function(e,t,n){"use strict";function r(e){var t="";return a.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:u||(u=!0))}),t}var o=e("object-assign"),a=e("react/lib/React"),i=e("./ReactDOMComponentTree"),s=e("./ReactDOMSelect"),u=(e("fbjs/lib/warning"),!1),l={mountWrapper:function(e,t,n){var o=null;if(null!=n){var a=n;"optgroup"===a._tag&&(a=a._hostParent),null!=a&&"select"===a._tag&&(o=s.getSelectValueContext(a))}var i=null;if(null!=o){var u;if(u=null!=t.value?t.value+"":r(t.children),i=!1,Array.isArray(o)){for(var l=0;l<o.length;l++)if(""+o[l]===u){i=!0;break}}else i=""+o===u}e._wrapperState={selected:i}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=i.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getHostProps:function(e,t){var n=o({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var a=r(t.children);return a&&(n.children=a),n}};t.exports=l},{"./ReactDOMComponentTree":206,"./ReactDOMSelect":215,"fbjs/lib/warning":24,"object-assign":171,"react/lib/React":309}],215:[function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=s.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,a=u.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<a.length;o++){var i=r.hasOwnProperty(a[o].value);a[o].selected!==i&&(a[o].selected=i)}}else{for(r=""+n,o=0;o<a.length;o++)if(a[o].value===r)return void(a[o].selected=!0);a.length&&(a[0].selected=!0)}}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),l.asap(r,this),n}var i=e("object-assign"),s=e("./LinkedValueUtils"),u=e("./ReactDOMComponentTree"),l=e("./ReactUpdates"),c=(e("fbjs/lib/warning"),!1),p={getHostProps:function(e,t){return i({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=s.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:a.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||c||(c=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=s.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=p},{"./LinkedValueUtils":196,"./ReactDOMComponentTree":206,"./ReactUpdates":250,"fbjs/lib/warning":24,"object-assign":171}],216:[function(e,t,n){"use strict";function r(e,t,n,r){
return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var a=o.text.length,i=a+r;return{start:a,end:i}}function a(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=u?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var p=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),d=p?0:c.toString().length,f=d+l,m=document.createRange();m.setStart(n,o),m.setEnd(a,i);var h=m.collapsed;return{start:h?f:d,end:h?d:f}}function i(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),a=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=l(e,o),u=l(e,a);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=e("fbjs/lib/ExecutionEnvironment"),l=e("./getNodeForCharacterOffset"),c=e("./getTextContentAccessor"),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?o:a,setOffsets:p?i:s};t.exports=d},{"./getNodeForCharacterOffset":286,"./getTextContentAccessor":287,"fbjs/lib/ExecutionEnvironment":3}],217:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=e("object-assign"),a=e("./DOMChildrenOperations"),i=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),u=e("./escapeTextContentForBrowser"),l=(e("fbjs/lib/invariant"),e("./validateDOMNesting"),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,a=" react-text: "+o+" ",l=" /react-text ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(a),d=c.createComment(l),f=i(c.createDocumentFragment());return i.queueChild(f,i(p)),this._stringText&&i.queueChild(f,i(c.createTextNode(this._stringText))),i.queueChild(f,i(d)),s.precacheNode(this,p),this._closingComment=d,f}var m=u(this._stringText);return e.renderToStaticMarkup?m:"<!--"+a+"-->"+m+"<!--"+l+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();a.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=l},{"./DOMChildrenOperations":181,"./DOMLazyTree":182,"./ReactDOMComponentTree":206,"./escapeTextContentForBrowser":275,"./reactProdInvariant":293,"./validateDOMNesting":299,"fbjs/lib/invariant":17,"object-assign":171}],218:[function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return l.asap(r,this),n}var a=e("./reactProdInvariant"),i=e("object-assign"),s=e("./LinkedValueUtils"),u=e("./ReactDOMComponentTree"),l=e("./ReactUpdates"),c=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?a("91"):void 0;var n=i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var i=t.defaultValue,u=t.children;null!=u&&(null!=i?a("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:a("93"),u=u[0]),i=""+u),null==i&&(i=""),r=i}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});t.exports=c},{"./LinkedValueUtils":196,"./ReactDOMComponentTree":206,"./ReactUpdates":250,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":171}],219:[function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,a=t;a;a=a._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var i=n;i--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function a(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function i(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function s(e,t,n,o,a){for(var i=e&&t?r(e,t):null,s=[];e&&e!==i;)s.push(e),e=e._hostParent;for(var u=[];t&&t!==i;)u.push(t),t=t._hostParent;var l;for(l=0;l<s.length;l++)n(s[l],"bubbled",o);for(l=u.length;l-- >0;)n(u[l],"captured",a)}var u=e("./reactProdInvariant");e("fbjs/lib/invariant");t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:a,traverseTwoPhase:i,traverseEnterLeave:s}},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],220:[function(e,t,n){"use strict";function r(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||a(e,t))}var o,a=(e("./DOMProperty"),e("./EventPluginRegistry"),e("react/lib/ReactComponentTreeHook"),e("fbjs/lib/warning"),function(e,t){var n=[];for(var r in t.props){var a=o(t.type,r,e);a||n.push(r)}n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length||n.length>1}),i={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};t.exports=i},{"./DOMProperty":184,"./EventPluginRegistry":190,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],221:[function(e,t,n){"use strict";function r(e,t,n,r,o,a,i,s){try{t.call(n,r,o,a,i,s)}catch(t){E[e]=!0}}function o(e,t,n,o,a,i){for(var s=0;s<C.length;s++){var u=C[s],l=u[e];l&&r(e,l,u,t,n,o,a,i)}}function a(){g.purgeUnmountedComponents(),y.clearHistory()}function i(e){return e.reduce(function(e,t){var n=g.getOwnerID(t),r=g.getParentID(t);return e[t]={displayName:g.getDisplayName(t),text:g.getText(t),updateCount:g.getUpdateCount(t),childIDs:g.getChildIDs(t),ownerID:n||r&&g.getOwnerID(r)||0,parentID:r},e},{})}function s(){var e=M,t=O,n=y.getHistory();if(0===T)return M=0,O=[],void a();if(t.length||n.length){var r=g.getRegisteredIDs();x.push({duration:_()-e,measurements:t||[],operations:n||[],treeSnapshot:i(r)})}a(),M=_(),O=[]}function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]}function l(e,t){0!==T&&(N&&!k&&(k=!0),S=_(),R=0,I=e,N=t)}function c(e,t){0!==T&&(N===t||k||(k=!0),w&&O.push({timerType:t,instanceID:e,duration:_()-S-R}),S=0,R=0,I=null,N=null)}function p(){var e={startTime:S,nestedFlushStartTime:_(),debugID:I,timerType:N};P.push(e),S=0,R=0,I=null,N=null}function d(){var e=P.pop(),t=e.startTime,n=e.nestedFlushStartTime,r=e.debugID,o=e.timerType,a=_()-n;S=t,R+=a,I=r,N=o}function f(e){if(!w||!A)return!1;var t=g.getElement(e);if(null==t||"object"!=typeof t)return!1;var n="string"==typeof t.type;return!n}function m(e,t){if(f(e)){var n=e+"::"+t;D=_(),performance.mark(n)}}function h(e,t){if(f(e)){var n=e+"::"+t,r=g.getDisplayName(e)||"Unknown",o=_();if(o-D>.1){var a=r+" ["+t+"]";performance.measure(a,n)}performance.clearMarks(n),performance.clearMeasures(a)}}var v=e("./ReactInvalidSetStateWarningHook"),y=e("./ReactHostOperationHistoryHook"),g=e("react/lib/ReactComponentTreeHook"),b=e("fbjs/lib/ExecutionEnvironment"),_=e("fbjs/lib/performanceNow"),C=(e("fbjs/lib/warning"),[]),E={},w=!1,x=[],P=[],T=0,O=[],M=0,I=null,S=0,R=0,N=null,k=!1,D=0,A="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks&&"function"==typeof performance.measure&&"function"==typeof performance.clearMeasures,j={addHook:function(e){C.push(e)},removeHook:function(e){for(var t=0;t<C.length;t++)C[t]===e&&(C.splice(t,1),t--)},isProfiling:function(){return w},beginProfiling:function(){w||(w=!0,x.length=0,s(),j.addHook(y))},endProfiling:function(){w&&(w=!1,s(),j.removeHook(y))},getFlushHistory:function(){return x},onBeginFlush:function(){T++,s(),p(),o("onBeginFlush")},onEndFlush:function(){s(),T--,d(),o("onEndFlush")},onBeginLifeCycleTimer:function(e,t){u(e),o("onBeginLifeCycleTimer",e,t),m(e,t),l(e,t)},onEndLifeCycleTimer:function(e,t){u(e),c(e,t),h(e,t),o("onEndLifeCycleTimer",e,t)},onBeginProcessingChildContext:function(){o("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){o("onEndProcessingChildContext")},onHostOperation:function(e){u(e.instanceID),o("onHostOperation",e)},onSetState:function(){o("onSetState")},onSetChildren:function(e,t){u(e),t.forEach(u),o("onSetChildren",e,t)},onBeforeMountComponent:function(e,t,n){u(e),u(n,!0),o("onBeforeMountComponent",e,t,n),m(e,"mount")},onMountComponent:function(e){u(e),h(e,"mount"),o("onMountComponent",e)},onBeforeUpdateComponent:function(e,t){u(e),o("onBeforeUpdateComponent",e,t),m(e,"update")},onUpdateComponent:function(e){u(e),h(e,"update"),o("onUpdateComponent",e)},onBeforeUnmountComponent:function(e){u(e),o("onBeforeUnmountComponent",e),m(e,"unmount")},onUnmountComponent:function(e){u(e),h(e,"unmount"),o("onUnmountComponent",e)},onTestEvent:function(){o("onTestEvent")}};j.addDevtool=j.addHook,j.removeDevtool=j.removeHook,j.addHook(v),j.addHook(g);var L=b.canUseDOM&&window.location.href||"";/[?&]react_perf\b/.test(L)&&j.beginProfiling(),t.exports=j},{"./ReactHostOperationHistoryHook":231,"./ReactInvalidSetStateWarningHook":236,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/performanceNow":22,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],222:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e("object-assign"),a=e("./ReactUpdates"),i=e("./Transaction"),s=e("fbjs/lib/emptyFunction"),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:a.flushBatchedUpdates.bind(a)},c=[l,u];o(r.prototype,i,{getTransactionWrappers:function(){return c}});var p=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,a){var i=d.isBatchingUpdates;return d.isBatchingUpdates=!0,i?e(t,n,r,o,a):p.perform(e,null,t,n,r,o,a)}};t.exports=d},{"./ReactUpdates":250,"./Transaction":268,"fbjs/lib/emptyFunction":9,"object-assign":171}],223:[function(e,t,n){"use strict";function r(){w||(w=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(d),g.EventPluginUtils.injectTreeTraversal(m),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:E,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:C,BeforeInputEventPlugin:a}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(h),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(l),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(v),g.Component.injectEnvironment(c))}var o=e("./ARIADOMPropertyConfig"),a=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),s=e("./DefaultEventPluginOrder"),u=e("./EnterLeaveEventPlugin"),l=e("./HTMLDOMPropertyConfig"),c=e("./ReactComponentBrowserEnvironment"),p=e("./ReactDOMComponent"),d=e("./ReactDOMComponentTree"),f=e("./ReactDOMEmptyComponent"),m=e("./ReactDOMTreeTraversal"),h=e("./ReactDOMTextComponent"),v=e("./ReactDefaultBatchingStrategy"),y=e("./ReactEventListener"),g=e("./ReactInjection"),b=e("./ReactReconcileTransaction"),_=e("./SVGDOMPropertyConfig"),C=e("./SelectEventPlugin"),E=e("./SimpleEventPlugin"),w=!1;t.exports={inject:r}},{"./ARIADOMPropertyConfig":174,"./BeforeInputEventPlugin":176,"./ChangeEventPlugin":180,"./DefaultEventPluginOrder":187,"./EnterLeaveEventPlugin":188,"./HTMLDOMPropertyConfig":194,"./ReactComponentBrowserEnvironment":200,"./ReactDOMComponent":204,"./ReactDOMComponentTree":206,"./ReactDOMEmptyComponent":208,"./ReactDOMTextComponent":217,"./ReactDOMTreeTraversal":219,"./ReactDefaultBatchingStrategy":222,"./ReactEventListener":228,"./ReactInjection":232,"./ReactReconcileTransaction":244,"./SVGDOMPropertyConfig":252,"./SelectEventPlugin":253,"./SimpleEventPlugin":254}],224:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],225:[function(e,t,n){"use strict";var r,o={injectEmptyComponentFactory:function(e){r=e}},a={create:function(e){return r(e)}};a.injection=o,t.exports=a},{}],226:[function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===o&&(o=e)}}var o=null,a={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};t.exports=a},{}],227:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=e("./EventPluginHub"),a={handleTopLevel:function(e,t,n,a){var i=o.extractEvents(e,t,n,a);r(i)}};t.exports=a},{"./EventPluginHub":189}],228:[function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){var t=f(e.nativeEvent),n=p.getClosestInstanceFromNode(t),o=n;do e.ancestors.push(o),o=o&&r(o);while(o);for(var a=0;a<e.ancestors.length;a++)n=e.ancestors[a],h._handleTopLevel(e.topLevelType,n,e.nativeEvent,f(e.nativeEvent))}function i(e){var t=m(window);e(t)}var s=e("object-assign"),u=e("fbjs/lib/EventListener"),l=e("fbjs/lib/ExecutionEnvironment"),c=e("./PooledClass"),p=e("./ReactDOMComponentTree"),d=e("./ReactUpdates"),f=e("./getEventTarget"),m=e("fbjs/lib/getUnboundedScrollPosition");s(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var h={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(e){h._handleTopLevel=e},setEnabled:function(e){h._enabled=!!e},isEnabled:function(){return h._enabled},trapBubbledEvent:function(e,t,n){return n?u.listen(n,t,h.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?u.capture(n,t,h.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=i.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(h._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(a,n)}finally{o.release(n)}}}};t.exports=h},{"./PooledClass":197,"./ReactDOMComponentTree":206,"./ReactUpdates":250,"./getEventTarget":282,"fbjs/lib/EventListener":2,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/getUnboundedScrollPosition":14,"object-assign":171}],229:[function(e,t,n){"use strict";var r={logTopLevelRenders:!1};t.exports=r},{}],230:[function(e,t,n){"use strict";function r(e){return s?void 0:i("111",e.type),new s(e)}function o(e){return new u(e)}function a(e){return e instanceof u}var i=e("./reactProdInvariant"),s=(e("fbjs/lib/invariant"),null),u=null,l={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){u=e}},c={createInternalComponent:r,createInstanceForText:o,isTextComponent:a,injection:l};t.exports=c},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],231:[function(e,t,n){"use strict";var r=[],o={onHostOperation:function(e){r.push(e)},clearHistory:function(){o._preventClearing||(r=[])},getHistory:function(){return r}};t.exports=o},{}],232:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=e("./EventPluginHub"),a=e("./EventPluginUtils"),i=e("./ReactComponentEnvironment"),s=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),l=e("./ReactHostComponent"),c=e("./ReactUpdates"),p={Component:i.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventPluginUtils:a.injection,EventEmitter:u.injection,HostComponent:l.injection,Updates:c.injection};t.exports=p},{"./DOMProperty":184,"./EventPluginHub":189,"./EventPluginUtils":191,"./ReactBrowserEventEmitter":198,"./ReactComponentEnvironment":201,"./ReactEmptyComponent":225,"./ReactHostComponent":230,"./ReactUpdates":250}],233:[function(e,t,n){"use strict";function r(e){return a(document.documentElement,e)}var o=e("./ReactDOMSelection"),a=e("fbjs/lib/containsNode"),i=e("fbjs/lib/focusNode"),s=e("fbjs/lib/getActiveElement"),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),i(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",r-n),a.select()}else o.setOffsets(e,t)}};t.exports=u},{"./ReactDOMSelection":216,"fbjs/lib/containsNode":6,"fbjs/lib/focusNode":11,"fbjs/lib/getActiveElement":12}],234:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],235:[function(e,t,n){"use strict";var r=null;t.exports={debugTool:r}},{"./ReactDebugTool":221}],236:[function(e,t,n){"use strict";var r,o,a=(e("fbjs/lib/warning"),{onBeginProcessingChildContext:function(){r=!0},onEndProcessingChildContext:function(){r=!1},onSetState:function(){o()}});t.exports=a},{"fbjs/lib/warning":24}],237:[function(e,t,n){"use strict";var r=e("./adler32"),o=/\/?>/,a=/^<\!\-\-/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return a.test(e)?e:e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};t.exports=i},{"./adler32":271}],238:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===D?e.documentElement:e.firstChild:null}function a(e){return e.getAttribute&&e.getAttribute(R)||""}function i(e,t,n,r,o){var a;if(C.logTopLevelRenders){var i=e._currentElement.props.child,s=i.type;a="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(a)}var u=x.mountComponent(e,n,null,b(e,t),o,0);a&&console.timeEnd(a),e._renderedComponent._topLevelWrapper=e,F._mountImageIntoNode(u,t,e,r,n)}function s(e,t,n,r){var o=T.ReactReconcileTransaction.getPooled(!n&&_.useCreateElement);o.perform(i,null,e,t,o,n,r),T.ReactReconcileTransaction.release(o)}function u(e,t,n){for(x.unmountComponent(e,n),t.nodeType===D&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function l(e){var t=o(e);if(t){var n=g.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function c(e){return!(!e||e.nodeType!==k&&e.nodeType!==D&&e.nodeType!==A)}function p(e){var t=o(e),n=t&&g.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function d(e){var t=p(e);return t?t._hostContainerInfo._topLevelWrapper:null}var f=e("./reactProdInvariant"),m=e("./DOMLazyTree"),h=e("./DOMProperty"),v=e("react/lib/React"),y=e("./ReactBrowserEventEmitter"),g=(e("react/lib/ReactCurrentOwner"),e("./ReactDOMComponentTree")),b=e("./ReactDOMContainerInfo"),_=e("./ReactDOMFeatureFlags"),C=e("./ReactFeatureFlags"),E=e("./ReactInstanceMap"),w=(e("./ReactInstrumentation"),e("./ReactMarkupChecksum")),x=e("./ReactReconciler"),P=e("./ReactUpdateQueue"),T=e("./ReactUpdates"),O=e("fbjs/lib/emptyObject"),M=e("./instantiateReactComponent"),I=(e("fbjs/lib/invariant"),e("./setInnerHTML")),S=e("./shouldUpdateReactComponent"),R=(e("fbjs/lib/warning"),h.ID_ATTRIBUTE_NAME),N=h.ROOT_ATTRIBUTE_NAME,k=1,D=9,A=11,j={},L=1,U=function(){this.rootID=L++};U.prototype.isReactComponent={},U.prototype.render=function(){return this.props.child},U.isReactTopLevelWrapper=!0;var F={TopLevelWrapper:U,_instancesByReactRootID:j,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return F.scrollMonitor(r,function(){P.enqueueElementInternal(e,t,n),o&&P.enqueueCallbackInternal(e,o)}),e},_renderNewRootComponent:function(e,t,n,r){c(t)?void 0:f("37"),y.ensureScrollValueMonitoring();var o=M(e,!1);T.batchedUpdates(s,o,t,n,r);var a=o._instance.rootID;return j[a]=o,o},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&E.has(e)?void 0:f("38"),F._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){P.validateCallback(r,"ReactDOM.render"),v.isValidElement(t)?void 0:f("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var i,s=v.createElement(U,{child:t});if(e){var u=E.get(e);i=u._processChildContext(u._context)}else i=O;var c=d(n);if(c){var p=c._currentElement,m=p.props.child;if(S(m,t)){var h=c._renderedComponent.getPublicInstance(),y=r&&function(){r.call(h)};return F._updateRootComponent(c,s,i,n,y),h}F.unmountComponentAtNode(n)}var g=o(n),b=g&&!!a(g),_=l(n),C=b&&!c&&!_,w=F._renderNewRootComponent(s,n,C,i)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=d(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(N);return!1}return delete j[t._instance.rootID],T.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,a,i){if(c(t)?void 0:f("41"),a){var s=o(t);if(w.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,u);var p=e,d=r(p,l),h=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);t.nodeType===D?f("42",h):void 0}if(t.nodeType===D?f("43"):void 0,i.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);m.insertTreeBefore(t,e,null)}else I(t,e),g.precacheNode(n,t.firstChild)}};t.exports=F},{"./DOMLazyTree":182,"./DOMProperty":184,"./ReactBrowserEventEmitter":198,"./ReactDOMComponentTree":206,"./ReactDOMContainerInfo":207,"./ReactDOMFeatureFlags":209,"./ReactFeatureFlags":229,"./ReactInstanceMap":234,"./ReactInstrumentation":235,"./ReactMarkupChecksum":237,"./ReactReconciler":245,"./ReactUpdateQueue":249,"./ReactUpdates":250,"./instantiateReactComponent":289,"./reactProdInvariant":293,"./setInnerHTML":295,"./shouldUpdateReactComponent":297,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/React":309,"react/lib/ReactCurrentOwner":314}],239:[function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function a(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function i(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function l(e,t){p.processChildrenUpdates(e,t)}var c=e("./reactProdInvariant"),p=e("./ReactComponentEnvironment"),d=(e("./ReactInstanceMap"),e("./ReactInstrumentation"),e("react/lib/ReactCurrentOwner"),e("./ReactReconciler")),f=e("./ReactChildReconciler"),m=(e("fbjs/lib/emptyFunction"),e("./flattenChildren")),h=(e("fbjs/lib/invariant"),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,a){var i,s=0;return i=m(t,s),f.updateChildren(e,i,n,r,o,this,this._hostContainerInfo,a,s),i},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],a=0;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],u=0,l=d.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=a++,o.push(l)}return o},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[s(e)];l(this,r)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[i(e)];l(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},a=[],i=this._reconcilerUpdateChildren(r,e,a,o,t,n);if(i||r){var s,c=null,p=0,f=0,m=0,h=null;for(s in i)if(i.hasOwnProperty(s)){var v=r&&r[s],y=i[s];v===y?(c=u(c,this.moveChild(v,h,p,f)),f=Math.max(v._mountIndex,f),v._mountIndex=p):(v&&(f=Math.max(v._mountIndex,f)),c=u(c,this._mountChildAtIndex(y,a[m],h,p,t,n)),m++),p++,h=d.getHostNode(y)}for(s in o)o.hasOwnProperty(s)&&(c=u(c,this._unmountChild(r[s],o[s])));c&&l(this,c),this._renderedChildren=i}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return a(e,t)},_mountChildAtIndex:function(e,t,n,r,o,a){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}});t.exports=h},{"./ReactChildReconciler":199,"./ReactComponentEnvironment":201,"./ReactInstanceMap":234,"./ReactInstrumentation":235,"./ReactReconciler":245,"./flattenChildren":277,"./reactProdInvariant":293,"fbjs/lib/emptyFunction":9,"fbjs/lib/invariant":17,"react/lib/ReactCurrentOwner":314}],240:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=e("react/lib/React"),a=(e("fbjs/lib/invariant"),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?a.EMPTY:o.isValidElement(e)?"function"==typeof e.type?a.COMPOSITE:a.HOST:void r("26",e)}});t.exports=a},{"./reactProdInvariant":293,"fbjs/lib/invariant":17,"react/lib/React":309}],241:[function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=e("./reactProdInvariant"),a=(e("fbjs/lib/invariant"),{addComponentAsRefTo:function(e,t,n){r(n)?void 0:o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)?void 0:o("120");var a=n.getPublicInstance();a&&a.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});t.exports=a},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],242:[function(e,t,n){"use strict";var r={};t.exports=r},{}],243:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],244:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=a.getPooled(null),this.useCreateElement=e}var o=e("object-assign"),a=e("./CallbackQueue"),i=e("./PooledClass"),s=e("./ReactBrowserEventEmitter"),u=e("./ReactInputSelection"),l=(e("./ReactInstrumentation"),e("./Transaction")),c=e("./ReactUpdateQueue"),p={initialize:u.getSelectionInformation,close:u.restoreSelection},d={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},m=[p,d,f],h={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return c},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,l,h),i.addPoolingTo(r),t.exports=r},{"./CallbackQueue":179,"./PooledClass":197,"./ReactBrowserEventEmitter":198,"./ReactInputSelection":233,"./ReactInstrumentation":235,"./ReactUpdateQueue":249,"./Transaction":268,"object-assign":171}],245:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e("./ReactRef"),a=(e("./ReactInstrumentation"),e("fbjs/lib/warning"),{mountComponent:function(e,t,n,o,a,i){var s=e.mountComponent(t,n,o,a,i);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=o.shouldUpdateRefs(i,t);s&&o.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});t.exports=a},{"./ReactInstrumentation":235,"./ReactRef":246,"fbjs/lib/warning":24}],246:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var a=e("./ReactOwner"),i={};i.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},i.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"==typeof e&&(n=e.ref,r=e._owner);var o=null,a=null;return null!==t&&"object"==typeof t&&(o=t.ref,a=t._owner),n!==o||"string"==typeof o&&a!==r},i.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&o(n,e,t._owner)}},t.exports=i},{"./ReactOwner":241}],247:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var o=e("object-assign"),a=e("./PooledClass"),i=e("./Transaction"),s=(e("./ReactInstrumentation"),e("./ReactServerUpdateQueue")),u=[],l={enqueue:function(){}},c={getTransactionWrappers:function(){return u;
},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,i,c),a.addPoolingTo(r),t.exports=r},{"./PooledClass":197,"./ReactInstrumentation":235,"./ReactServerUpdateQueue":248,"./Transaction":268,"object-assign":171}],248:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){}var a=e("./ReactUpdateQueue"),i=(e("fbjs/lib/warning"),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&a.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?a.enqueueForceUpdate(e):o(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?a.enqueueReplaceState(e,t):o(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?a.enqueueSetState(e,t):o(e,"setState")},e}());t.exports=i},{"./ReactUpdateQueue":249,"fbjs/lib/warning":24}],249:[function(e,t,n){"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function a(e,t){var n=s.get(e);if(!n){return null}return n}var i=e("./reactProdInvariant"),s=(e("react/lib/ReactCurrentOwner"),e("./ReactInstanceMap")),u=(e("./ReactInstrumentation"),e("./ReactUpdates")),l=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=a(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=a(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=a(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=a(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?i("122",t,o(e)):void 0}});t.exports=l},{"./ReactInstanceMap":234,"./ReactInstrumentation":235,"./ReactUpdates":250,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactCurrentOwner":314}],250:[function(e,t,n){"use strict";function r(){O.ReactReconcileTransaction&&C?void 0:c("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function a(e,t,n,o,a,i){return r(),C.batchedUpdates(e,t,n,o,a,i)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?c("124",t,y.length):void 0,y.sort(i),g++;for(var n=0;n<t;n++){var r=y[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var a;if(m.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),a="React update: "+s.getName(),console.time(a)}if(h.performUpdateIfNecessary(r,e.reconcileTransaction,g),a&&console.timeEnd(a),o)for(var u=0;u<o.length;u++)e.callbackQueue.enqueue(o[u],r.getPublicInstance())}}function u(e){return r(),C.isBatchingUpdates?(y.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=g+1))):void C.batchedUpdates(u,e)}function l(e,t){C.isBatchingUpdates?void 0:c("125"),b.enqueue(e,t),_=!0}var c=e("./reactProdInvariant"),p=e("object-assign"),d=e("./CallbackQueue"),f=e("./PooledClass"),m=e("./ReactFeatureFlags"),h=e("./ReactReconciler"),v=e("./Transaction"),y=(e("fbjs/lib/invariant"),[]),g=0,b=d.getPooled(),_=!1,C=null,E={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),P()):y.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[E,w];p(o.prototype,v,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return v.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(o);var P=function(){for(;y.length||_;){if(y.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(_){_=!1;var t=b;b=d.getPooled(),t.notifyAll(),d.release(t)}}},T={injectReconcileTransaction:function(e){e?void 0:c("126"),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:c("127"),"function"!=typeof e.batchedUpdates?c("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?c("129"):void 0,C=e}},O={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:u,flushBatchedUpdates:P,injection:T,asap:l};t.exports=O},{"./CallbackQueue":179,"./PooledClass":197,"./ReactFeatureFlags":229,"./ReactReconciler":245,"./Transaction":268,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"object-assign":171}],251:[function(e,t,n){"use strict";t.exports="15.4.2"},{}],252:[function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},a={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){a.Properties[e]=0,o[e]&&(a.DOMAttributeNames[e]=o[e])}),t.exports=a},{}],253:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(g||null==h||h!==c())return null;var n=r(h);if(!y||!d(y,n)){y=n;var o=l.getPooled(m.select,v,e,t);return o.type="select",o.target=h,a.accumulateTwoPhaseDispatches(o),o}return null}var a=e("./EventPropagators"),i=e("fbjs/lib/ExecutionEnvironment"),s=e("./ReactDOMComponentTree"),u=e("./ReactInputSelection"),l=e("./SyntheticEvent"),c=e("fbjs/lib/getActiveElement"),p=e("./isTextInputElement"),d=e("fbjs/lib/shallowEqual"),f=i.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},h=null,v=null,y=null,g=!1,b=!1,_={eventTypes:m,extractEvents:function(e,t,n,r){if(!b)return null;var a=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(a)||"true"===a.contentEditable)&&(h=a,v=t,y=null);break;case"topBlur":h=null,v=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};t.exports=_},{"./EventPropagators":192,"./ReactDOMComponentTree":206,"./ReactInputSelection":233,"./SyntheticEvent":259,"./isTextInputElement":291,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/getActiveElement":12,"fbjs/lib/shallowEqual":23}],254:[function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var a=e("./reactProdInvariant"),i=e("fbjs/lib/EventListener"),s=e("./EventPropagators"),u=e("./ReactDOMComponentTree"),l=e("./SyntheticAnimationEvent"),c=e("./SyntheticClipboardEvent"),p=e("./SyntheticEvent"),d=e("./SyntheticFocusEvent"),f=e("./SyntheticKeyboardEvent"),m=e("./SyntheticMouseEvent"),h=e("./SyntheticDragEvent"),v=e("./SyntheticTouchEvent"),y=e("./SyntheticTransitionEvent"),g=e("./SyntheticUIEvent"),b=e("./SyntheticWheelEvent"),_=e("fbjs/lib/emptyFunction"),C=e("./getEventCharCode"),E=(e("fbjs/lib/invariant"),{}),w={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};E[e]=o,w[r]=o});var x={},P={eventTypes:E,extractEvents:function(e,t,n,r){var o=w[e];if(!o)return null;var i;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":i=p;break;case"topKeyPress":if(0===C(n))return null;case"topKeyDown":case"topKeyUp":i=f;break;case"topBlur":case"topFocus":i=d;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=m;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=h;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=v;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=l;break;case"topTransitionEnd":i=y;break;case"topScroll":i=g;break;case"topWheel":i=b;break;case"topCopy":case"topCut":case"topPaste":i=c}i?void 0:a("86",e);var u=i.getPooled(o,t,n,r);return s.accumulateTwoPhaseDispatches(u),u},didPutListener:function(e,t,n){if("onClick"===t&&!o(e._tag)){var a=r(e),s=u.getNodeFromInstance(e);x[a]||(x[a]=i.listen(s,"click",_))}},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);x[n].remove(),delete x[n]}}};t.exports=P},{"./EventPropagators":192,"./ReactDOMComponentTree":206,"./SyntheticAnimationEvent":255,"./SyntheticClipboardEvent":256,"./SyntheticDragEvent":258,"./SyntheticEvent":259,"./SyntheticFocusEvent":260,"./SyntheticKeyboardEvent":262,"./SyntheticMouseEvent":263,"./SyntheticTouchEvent":264,"./SyntheticTransitionEvent":265,"./SyntheticUIEvent":266,"./SyntheticWheelEvent":267,"./getEventCharCode":279,"./reactProdInvariant":293,"fbjs/lib/EventListener":2,"fbjs/lib/emptyFunction":9,"fbjs/lib/invariant":17}],255:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":259}],256:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":259}],257:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a={data:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":259}],258:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),a={dataTransfer:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticMouseEvent":263}],259:[function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];s?this[a]=s(n):"target"===a?this.target=r:this[a]=n[a]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return u?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}var o=e("object-assign"),a=e("./PooledClass"),i=e("fbjs/lib/emptyFunction"),s=(e("fbjs/lib/warning"),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var i=new r;o(i,e.prototype),e.prototype=i,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,a.addPoolingTo(e,a.fourArgumentPooler)},a.addPoolingTo(r,a.fourArgumentPooler),t.exports=r},{"./PooledClass":197,"fbjs/lib/emptyFunction":9,"fbjs/lib/warning":24,"object-assign":171}],260:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),a={relatedTarget:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":266}],261:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a={data:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":259}],262:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),a=e("./getEventCharCode"),i=e("./getEventKey"),s=e("./getEventModifierState"),u={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{"./SyntheticUIEvent":266,"./getEventCharCode":279,"./getEventKey":280,"./getEventModifierState":281}],263:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),a=e("./ViewportMetrics"),i=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":266,"./ViewportMetrics":269,"./getEventModifierState":281}],264:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),a=e("./getEventModifierState"),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:a};o.augmentClass(r,i),t.exports=r},{"./SyntheticUIEvent":266,"./getEventModifierState":281}],265:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":259}],266:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),a=e("./getEventTarget"),i={view:function(e){if(e.view)return e.view;var t=a(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":259,"./getEventTarget":282}],267:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),a={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticMouseEvent":263}],268:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=(e("fbjs/lib/invariant"),{}),a={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,a,i,s,u){this.isInTransaction()?r("27"):void 0;var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,o,a,i,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var a,i=t[n],s=this.wrapperInitData[n];try{a=!0,s!==o&&i.close&&i.close.call(this,s),a=!1}finally{if(a)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};t.exports=a},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],269:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],270:[function(e,t,n){"use strict";function r(e,t){return null==t?o("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=e("./reactProdInvariant");e("fbjs/lib/invariant");t.exports=r},{"./reactProdInvariant":293,"fbjs/lib/invariant":17}],271:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,a=e.length,i=a&-4;r<i;){for(var s=Math.min(r+4096,i);r<s;r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<a;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;t.exports=r},{}],272:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r,u,l){for(var c in e)if(e.hasOwnProperty(c)){var p;try{"function"!=typeof e[c]?o("84",r||"React class",a[n],c):void 0,p=e[c](t,c,r,n,null,i)}catch(e){p=e}if(p instanceof Error&&!(p.message in s)){s[p.message]=!0}}}var o=e("./reactProdInvariant"),a=e("./ReactPropTypeLocationNames"),i=e("./ReactPropTypesSecret");e("fbjs/lib/invariant"),e("fbjs/lib/warning");"undefined"!=typeof n&&n.env,1;var s={};t.exports=r}).call(this,e("_process"))},{"./ReactPropTypeLocationNames":242,"./ReactPropTypesSecret":243,"./reactProdInvariant":293,_process:172,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],273:[function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};t.exports=r},{}],274:[function(e,t,n){"use strict";function r(e,t,n){var r=null==t||"boolean"==typeof t||""===t;if(r)return"";var o=isNaN(t);if(o||0===t||a.hasOwnProperty(e)&&a[e])return""+t;if("string"==typeof t){t=t.trim()}return t+"px"}var o=e("./CSSProperty"),a=(e("fbjs/lib/warning"),o.isUnitlessNumber);t.exports=r},{"./CSSProperty":177,"fbjs/lib/warning":24}],275:[function(e,t,n){"use strict";function r(e){var t=""+e,n=a.exec(t);if(!n)return t;var r,o="",i=0,s=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==i&&(o+=t.substring(s,i)),s=i+1,o+=r}return s!==i?o+t.substring(s,i):o}function o(e){return"boolean"==typeof e||"number"==typeof e?""+e:r(e)}var a=/["'&<>]/;t.exports=o},{}],276:[function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=i.get(e);return t?(t=s(t),t?a.getNodeFromInstance(t):null):void("function"==typeof e.render?o("44"):o("45",Object.keys(e)))}var o=e("./reactProdInvariant"),a=(e("react/lib/ReactCurrentOwner"),e("./ReactDOMComponentTree")),i=e("./ReactInstanceMap"),s=e("./getHostComponentFromComposite");e("fbjs/lib/invariant"),e("fbjs/lib/warning");t.exports=r},{"./ReactDOMComponentTree":206,"./ReactInstanceMap":234,"./getHostComponentFromComposite":283,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactCurrentOwner":314}],277:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,a=void 0===o[n];a&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return a(e,r,n),n}var a=(e("./KeyEscapeUtils"),e("./traverseAllChildren"));e("fbjs/lib/warning");"undefined"!=typeof n&&n.env,1,t.exports=o}).call(this,e("_process"))},{"./KeyEscapeUtils":195,"./traverseAllChildren":298,_process:172,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":313}],278:[function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}t.exports=r},{}],279:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],280:[function(e,t,n){"use strict";function r(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":279}],281:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=a[e];return!!r&&!!n[r]}function o(e){return r}var a={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],282:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=r},{}],283:[function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=e("./ReactNodeTypes");t.exports=r},{"./ReactNodeTypes":240}],284:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[a]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";t.exports=r},{}],285:[function(e,t,n){"use strict";function r(){return o++}var o=1;t.exports=r},{}],286:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function a(e,t){for(var n=r(e),a=0,i=0;n;){if(3===n.nodeType){if(i=a+n.textContent.length,a<=t&&i>=t)return{node:n,offset:t-a};a=i}n=r(o(n))}}t.exports=a},{}],287:[function(e,t,n){"use strict";function r(){return!a&&o.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var o=e("fbjs/lib/ExecutionEnvironment"),a=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":3}],288:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!i[e])return e;var t=i[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var a=e("fbjs/lib/ExecutionEnvironment"),i={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};a.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete i.animationend.animation,delete i.animationiteration.animation,delete i.animationstart.animation),"TransitionEvent"in window||delete i.transitionend.transition),t.exports=o},{"fbjs/lib/ExecutionEnvironment":3}],289:[function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function a(e,t){var n;if(null===e||e===!1)n=l.create(a);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var d="";d+=r(s._owner),i("130",null==u?u:typeof u,d)}"string"==typeof s.type?n=c.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s);
}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):i("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var i=e("./reactProdInvariant"),s=e("object-assign"),u=e("./ReactCompositeComponent"),l=e("./ReactEmptyComponent"),c=e("./ReactHostComponent"),p=(e("./getNextDebugID"),e("fbjs/lib/invariant"),e("fbjs/lib/warning"),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:a}),t.exports=a},{"./ReactCompositeComponent":202,"./ReactEmptyComponent":225,"./ReactHostComponent":230,"./getNextDebugID":285,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":171}],290:[function(e,t,n){"use strict";function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=e("fbjs/lib/ExecutionEnvironment");a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"fbjs/lib/ExecutionEnvironment":3}],291:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],292:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":275}],293:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=r},{}],294:[function(e,t,n){"use strict";var r=e("./ReactMount");t.exports=r.renderSubtreeIntoContainer},{"./ReactMount":238}],295:[function(e,t,n){"use strict";var r,o=e("fbjs/lib/ExecutionEnvironment"),a=e("./DOMNamespaces"),i=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=e("./createMicrosoftUnsafeLocalFunction"),l=u(function(e,t){if(e.namespaceURI!==a.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}t.exports=l},{"./DOMNamespaces":183,"./createMicrosoftUnsafeLocalFunction":273,"fbjs/lib/ExecutionEnvironment":3}],296:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),a=e("./setInnerHTML"),i=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void a(e,o(t))})),t.exports=i},{"./escapeTextContentForBrowser":275,"./setInnerHTML":295,"fbjs/lib/ExecutionEnvironment":3}],297:[function(e,t,n){"use strict";function r(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}t.exports=r},{}],298:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,a){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(a,e,""===t?c+r(e,0):t),1;var f,m,h=0,v=""===t?c:t+p;if(Array.isArray(e))for(var y=0;y<e.length;y++)f=e[y],m=v+r(f,y),h+=o(f,m,n,a);else{var g=u(e);if(g){var b,_=g.call(e);if(g!==e.entries)for(var C=0;!(b=_.next()).done;)f=b.value,m=v+r(f,C++),h+=o(f,m,n,a);else for(;!(b=_.next()).done;){var E=b.value;E&&(f=E[1],m=v+l.escape(E[0])+p+r(f,0),h+=o(f,m,n,a))}}else if("object"===d){var w="",x=String(e);i("31","[object Object]"===x?"object with keys {"+Object.keys(e).join(", ")+"}":x,w)}}return h}function a(e,t,n){return null==e?0:o(e,"",t,n)}var i=e("./reactProdInvariant"),s=(e("react/lib/ReactCurrentOwner"),e("./ReactElementSymbol")),u=e("./getIteratorFn"),l=(e("fbjs/lib/invariant"),e("./KeyEscapeUtils")),c=(e("fbjs/lib/warning"),"."),p=":";t.exports=a},{"./KeyEscapeUtils":195,"./ReactElementSymbol":224,"./getIteratorFn":284,"./reactProdInvariant":293,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactCurrentOwner":314}],299:[function(e,t,n){"use strict";var r=(e("object-assign"),e("fbjs/lib/emptyFunction")),o=(e("fbjs/lib/warning"),r);t.exports=o},{"fbjs/lib/emptyFunction":9,"fbjs/lib/warning":24,"object-assign":171}],300:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0,n.default=void 0;var s=e("react"),u=e("../utils/storeShape"),l=r(u),c=e("../utils/warning"),p=(r(c),function(e){function t(n,r){o(this,t);var i=a(this,e.call(this,n,r));return i.store=n.store,i}return i(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component));n.default=p,p.propTypes={store:l.default.isRequired,children:s.PropTypes.element.isRequired},p.childContextTypes={store:l.default.isRequired}},{"../utils/storeShape":304,"../utils/warning":305,react:331}],301:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function u(e,t){try{return e.apply(t)}catch(e){return O.value=e,O}}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=Boolean(e),d=e||x,m=void 0;m="function"==typeof t?t:t?(0,y.default)(t):P;var v=n||T,g=r.pure,b=void 0===g||g,_=r.withRef,E=void 0!==_&&_,I=b&&v!==T,S=M++;return function(e){function t(e,t,n){var r=v(e,t,n);return r}var n="Connect("+s(e)+")",r=function(r){function s(e,t){o(this,s);var i=a(this,r.call(this,e,t));i.version=S,i.store=e.store||t.store,(0,w.default)(i.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));var u=i.store.getState();return i.state={storeState:u},i.clearCache(),i}return i(s,r),s.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=d(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=m(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:m,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,h.default)(e,this.stateProps))&&(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,h.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&I&&(0,h.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){l&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){b&&(0,h.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!b||t!==e){if(b&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===O&&(this.statePropsPrecalculationError=O.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,w.default)(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,a=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var i=!0,s=!0;b&&a&&(i=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,l=!1;r?u=!0:i&&(u=this.updateStatePropsIfNeeded()),s&&(l=this.updateDispatchPropsIfNeeded());var d=!0;return d=!!(u||l||t)&&this.updateMergedPropsIfNeeded(),!d&&a?a:(E?this.renderedElement=(0,p.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(e,this.mergedProps),this.renderedElement)},s}(p.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:f.default},r.propTypes={store:f.default},(0,C.default)(r,e)}}n.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.default=l;var p=e("react"),d=e("../utils/storeShape"),f=r(d),m=e("../utils/shallowEqual"),h=r(m),v=e("../utils/wrapActionCreators"),y=r(v),g=e("../utils/warning"),b=(r(g),e("lodash/isPlainObject")),_=(r(b),e("hoist-non-react-statics")),C=r(_),E=e("invariant"),w=r(E),x=function(e){return{}},P=function(e){return{dispatch:e}},T=function(e,t,n){return c({},n,e,t)},O={value:null},M=0},{"../utils/shallowEqual":303,"../utils/storeShape":304,"../utils/warning":305,"../utils/wrapActionCreators":306,"hoist-non-react-statics":25,invariant:26,"lodash/isPlainObject":157,react:331}],302:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.connect=n.Provider=void 0;var o=e("./components/Provider"),a=r(o),i=e("./components/connect"),s=r(i);n.Provider=a.default,n.connect=s.default},{"./components/Provider":300,"./components/connect":301}],303:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a++)if(!o.call(t,n[a])||e[n[a]]!==t[n[a]])return!1;return!0}n.__esModule=!0,n.default=r},{}],304:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("react");n.default=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},{react:331}],305:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],306:[function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}n.__esModule=!0,n.default=r;var o=e("redux")},{redux:337}],307:[function(e,t,n){arguments[4][195][0].apply(n,arguments)},{dup:195}],308:[function(e,t,n){arguments[4][197][0].apply(n,arguments)},{"./reactProdInvariant":329,dup:197,"fbjs/lib/invariant":17}],309:[function(e,t,n){"use strict";var r=e("object-assign"),o=e("./ReactChildren"),a=e("./ReactComponent"),i=e("./ReactPureComponent"),s=e("./ReactClass"),u=e("./ReactDOMFactories"),l=e("./ReactElement"),c=e("./ReactPropTypes"),p=e("./ReactVersion"),d=e("./onlyChild"),f=(e("fbjs/lib/warning"),l.createElement),m=l.createFactory,h=l.cloneElement,v=r,y={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:a,PureComponent:i,createElement:f,cloneElement:h,isValidElement:l.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:m,createMixin:function(e){return e},DOM:u,version:p,__spread:v};t.exports=y},{"./ReactChildren":310,"./ReactClass":311,"./ReactComponent":312,"./ReactDOMFactories":315,"./ReactElement":316,"./ReactElementValidator":318,"./ReactPropTypes":321,"./ReactPureComponent":323,"./ReactVersion":324,"./onlyChild":328,"fbjs/lib/warning":24,"object-assign":171}],310:[function(e,t,n){"use strict";function r(e){return(""+e).replace(_,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function i(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);y(e,a,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,a=e.keyPrefix,i=e.func,s=e.context,u=i.call(s,t,e.count++);Array.isArray(u)?l(u,o,n,v.thatReturnsArgument):null!=u&&(h.isValidElement(u)&&(u=h.cloneAndReplaceKey(u,a+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function l(e,t,n,o,a){var i="";null!=n&&(i=r(n)+"/");var l=s.getPooled(t,i,o,a);y(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function p(e,t,n){return null}function d(e,t){return y(e,p,null)}function f(e){var t=[];return l(e,t,null,v.thatReturnsArgument),t}var m=e("./PooledClass"),h=e("./ReactElement"),v=e("fbjs/lib/emptyFunction"),y=e("./traverseAllChildren"),g=m.twoArgumentPooler,b=m.fourArgumentPooler,_=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},m.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m.addPoolingTo(s,b);var C={forEach:i,map:c,mapIntoWithKeyPrefixInternal:l,count:d,toArray:f};t.exports=C},{"./PooledClass":308,"./ReactElement":316,"./traverseAllChildren":330,"fbjs/lib/emptyFunction":9}],311:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=_.hasOwnProperty(t)?_[t]:null;E.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?d("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?d("74",t):void 0)}function a(e,t){if(t){"function"==typeof t?d("75"):void 0,h.isValidElement(t)?d("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&C.mixins(e,t.mixins);for(var a in t)if(t.hasOwnProperty(a)&&a!==g){var i=t[a],s=n.hasOwnProperty(a);if(o(s,a),C.hasOwnProperty(a))C[a](e,i);else{var c=_.hasOwnProperty(a),p="function"==typeof i,f=p&&!c&&!s&&t.autobind!==!1;if(f)r.push(a,i),n[a]=i;else if(s){var m=_[a];!c||"DEFINE_MANY_MERGED"!==m&&"DEFINE_MANY"!==m?d("77",m,a):void 0,"DEFINE_MANY_MERGED"===m?n[a]=u(n[a],i):"DEFINE_MANY"===m&&(n[a]=l(n[a],i))}else n[a]=i}}}else;}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in C;o?d("78",n):void 0;var a=n in e;a?d("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:d("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?d("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function p(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=c(e,o)}}var d=e("./reactProdInvariant"),f=e("object-assign"),m=e("./ReactComponent"),h=e("./ReactElement"),v=(e("./ReactPropTypeLocationNames"),e("./ReactNoopUpdateQueue")),y=e("fbjs/lib/emptyObject"),g=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),"mixins"),b=[],_={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)a(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=f({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=f({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=f({},e.propTypes,t)},statics:function(e,t){i(e,t)},autobind:function(){}},E={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},w=function(){};f(w.prototype,m.prototype,E);var x={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&p(this),this.props=e,this.context=n,this.refs=y,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?d("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],b.forEach(a.bind(null,t)),a(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:d("83");for(var n in _)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){b.push(e)}}};t.exports=x},{"./ReactComponent":312,"./ReactElement":316,"./ReactNoopUpdateQueue":319,"./ReactPropTypeLocationNames":320,"./reactProdInvariant":329,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":171}],312:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||a}var o=e("./reactProdInvariant"),a=e("./ReactNoopUpdateQueue"),i=(e("./canDefineProperty"),e("fbjs/lib/emptyObject"));e("fbjs/lib/invariant"),e("fbjs/lib/warning");r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?o("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{"./ReactNoopUpdateQueue":319,"./canDefineProperty":325,"./reactProdInvariant":329,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":24}],313:[function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(e){return!1}}function o(e){var t=l(e);if(t){var n=t.childIDs;c(e),n.forEach(o)}}function a(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function i(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=P.getDisplayName(e),r=P.getElement(e),o=P.getOwnerID(e);return o&&(t=P.getDisplayName(o)),a(n,r&&r._source,t)}var u,l,c,p,d,f,m,h=e("./reactProdInvariant"),v=e("./ReactCurrentOwner"),y=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(y){var g=new Map,b=new Set;u=function(e,t){g.set(e,t)},l=function(e){return g.get(e)},c=function(e){g.delete(e)},p=function(){return Array.from(g.keys())},d=function(e){b.add(e)},f=function(e){b.delete(e)},m=function(){return Array.from(b.keys())}}else{var _={},C={},E=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=E(e);_[n]=t},l=function(e){var t=E(e);return _[t]},c=function(e){var t=E(e);delete _[t]},p=function(){return Object.keys(_).map(w)},d=function(e){var t=E(e);C[t]=!0},f=function(e){var t=E(e);delete C[t]},m=function(){return Object.keys(C).map(w)}}var x=[],P={onSetChildren:function(e,t){var n=l(e);n?void 0:h("144"),n.childIDs=t;for(var r=0;r<t.length;r++){var o=t[r],a=l(o);a?void 0:h("140"),null==a.childIDs&&"object"==typeof a.element&&null!=a.element?h("141"):void 0,a.isMounted?void 0:h("71"),null==a.parentID&&(a.parentID=e),a.parentID!==e?h("142",o,a.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var r={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};u(e,r)},onBeforeUpdateComponent:function(e,t){var n=l(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=l(e);t?void 0:h("144"),t.isMounted=!0;var n=0===t.parentID;n&&d(e)},onUpdateComponent:function(e){var t=l(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=l(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&f(e)}x.push(e)},purgeUnmountedComponents:function(){if(!P._preventPurging){for(var e=0;e<x.length;e++){var t=x[e];o(t)}x.length=0}},isMounted:function(e){var t=l(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t="";if(e){var n=i(e),r=e._owner;t+=a(n,e._source,r&&r.getName())}var o=v.current,s=o&&o._debugID;return t+=P.getStackAddendumByID(s)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=P.getParentID(e);return t},getChildIDs:function(e){var t=l(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=P.getElement(e);return t?i(t):null},getElement:function(e){var t=l(e);return t?t.element:null},getOwnerID:function(e){var t=P.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=l(e);return t?t.parentID:null},getSource:function(e){var t=l(e),n=t?t.element:null,r=null!=n?n._source:null;return r},getText:function(e){var t=P.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=l(e);return t?t.updateCount:0},getRootIDs:m,getRegisteredIDs:p};t.exports=P},{"./ReactCurrentOwner":314,"./reactProdInvariant":329,"fbjs/lib/invariant":17,"fbjs/lib/warning":24}],314:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],315:[function(e,t,n){"use strict";var r=e("./ReactElement"),o=r.createFactory,a={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=a},{"./ReactElement":316,"./ReactElementValidator":318}],316:[function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var a=e("object-assign"),i=e("./ReactCurrentOwner"),s=(e("fbjs/lib/warning"),e("./canDefineProperty"),Object.prototype.hasOwnProperty),u=e("./ReactElementSymbol"),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(e,t,n,r,o,a,i){var s={$$typeof:u,type:e,key:t,ref:n,props:i,_owner:a};return s};c.createElement=function(e,t,n){var a,u={},p=null,d=null,f=null,m=null;if(null!=t){r(t)&&(d=t.ref),o(t)&&(p=""+t.key),f=void 0===t.__self?null:t.__self,m=void 0===t.__source?null:t.__source;for(a in t)s.call(t,a)&&!l.hasOwnProperty(a)&&(u[a]=t[a])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var v=Array(h),y=0;y<h;y++)v[y]=arguments[y+2];u.children=v}if(e&&e.defaultProps){var g=e.defaultProps;for(a in g)void 0===u[a]&&(u[a]=g[a])}return c(e,p,d,f,m,i.current,u)},c.createFactory=function(e){var t=c.createElement.bind(null,e);return t.type=e,t},c.cloneAndReplaceKey=function(e,t){var n=c(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},c.cloneElement=function(e,t,n){var u,p=a({},e.props),d=e.key,f=e.ref,m=e._self,h=e._source,v=e._owner;if(null!=t){r(t)&&(f=t.ref,v=i.current),o(t)&&(d=""+t.key);var y;e.type&&e.type.defaultProps&&(y=e.type.defaultProps);for(u in t)s.call(t,u)&&!l.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==y?p[u]=y[u]:p[u]=t[u])}var g=arguments.length-2;if(1===g)p.children=n;else if(g>1){for(var b=Array(g),_=0;_<g;_++)b[_]=arguments[_+2];p.children=b}return c(e.type,d,f,m,h,v,p)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=c},{"./ReactCurrentOwner":314,"./ReactElementSymbol":317,"./canDefineProperty":325,"fbjs/lib/warning":24,"object-assign":171}],317:[function(e,t,n){arguments[4][224][0].apply(n,arguments)},{dup:224}],318:[function(e,t,n){"use strict";function r(){if(u.current){var e=u.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=r();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t=" Check the top-level render call using <"+n+">.")}return t}function a(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=d.uniqueKey||(d.uniqueKey={}),r=o(t);if(!n[r]){n[r]=!0;var a="";e&&e._owner&&e._owner!==u.current&&(a=" It was passed a child from "+e._owner.getName()+".")}}}function i(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];l.isValidElement(r)&&a(r,t)}else if(l.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var o=p(e);if(o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)l.isValidElement(i.value)&&a(i.value,t)}}function s(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&c(t.propTypes,e.props,"prop",n,e,null),"function"==typeof t.getDefaultProps}}var u=e("./ReactCurrentOwner"),l=(e("./ReactComponentTreeHook"),e("./ReactElement")),c=e("./checkReactTypeSpec"),p=(e("./canDefineProperty"),e("./getIteratorFn")),d=(e("fbjs/lib/warning"),{}),f={createElement:function(e,t,n){var o="string"==typeof e||"function"==typeof e;if(!o&&"function"!=typeof e&&"string"!=typeof e){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in."),a+=r()}var u=l.createElement.apply(this,arguments);if(null==u)return u;if(o)for(var c=2;c<arguments.length;c++)i(arguments[c],e);return s(u),u},createFactory:function(e){var t=f.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=l.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)i(arguments[o],r.type);return s(r),r}};t.exports=f},{"./ReactComponentTreeHook":313,"./ReactCurrentOwner":314,"./ReactElement":316,"./canDefineProperty":325,"./checkReactTypeSpec":326,"./getIteratorFn":327,"fbjs/lib/warning":24}],319:[function(e,t,n){"use strict";function r(e,t){}var o=(e("fbjs/lib/warning"),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});t.exports=o},{"fbjs/lib/warning":24}],320:[function(e,t,n){arguments[4][242][0].apply(n,arguments)},{dup:242}],321:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){this.message=e,
this.stack=""}function a(e){function t(t,n,r,a,i,s,u){a=a||T,s=s||r;if(null==n[r]){var l=E[i];return t?new o(null===n[r]?"The "+l+" `"+s+"` is marked as required "+("in `"+a+"`, but its value is `null`."):"The "+l+" `"+s+"` is marked as required in "+("`"+a+"`, but its value is `undefined`.")):null}return e(n,r,a,i,s)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e){function t(t,n,r,a,i,s){var u=t[n],l=g(u);if(l!==e){var c=E[a],p=b(u);return new o("Invalid "+c+" `"+i+"` of type "+("`"+p+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return a(t)}function s(){return a(x.thatReturns(null))}function u(e){function t(t,n,r,a,i){if("function"!=typeof e)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=E[a],l=g(s);return new o("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var p=e(s,c,r,a,i+"["+c+"]",w);if(p instanceof Error)return p}return null}return a(t)}function l(){function e(e,t,n,r,a){var i=e[t];if(!C.isValidElement(i)){var s=E[r],u=g(i);return new o("Invalid "+s+" `"+a+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return a(e)}function c(e){function t(t,n,r,a,i){if(!(t[n]instanceof e)){var s=E[a],u=e.name||T,l=_(t[n]);return new o("Invalid "+s+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return a(t)}function p(e){function t(t,n,a,i,s){for(var u=t[n],l=0;l<e.length;l++)if(r(u,e[l]))return null;var c=E[i],p=JSON.stringify(e);return new o("Invalid "+c+" `"+s+"` of value `"+u+"` "+("supplied to `"+a+"`, expected one of "+p+"."))}return Array.isArray(e)?a(t):x.thatReturnsNull}function d(e){function t(t,n,r,a,i){if("function"!=typeof e)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=g(s);if("object"!==u){var l=E[a];return new o("Invalid "+l+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var c in s)if(s.hasOwnProperty(c)){var p=e(s,c,r,a,i+"."+c,w);if(p instanceof Error)return p}return null}return a(t)}function f(e){function t(t,n,r,a,i){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,r,a,i,w))return null}var l=E[a];return new o("Invalid "+l+" `"+i+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?a(t):x.thatReturnsNull}function m(){function e(e,t,n,r,a){if(!v(e[t])){var i=E[r];return new o("Invalid "+i+" `"+a+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return a(e)}function h(e){function t(t,n,r,a,i){var s=t[n],u=g(s);if("object"!==u){var l=E[a];return new o("Invalid "+l+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in e){var p=e[c];if(p){var d=p(s,c,r,a,i+"."+c,w);if(d)return d}}return null}return a(t)}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||C.isValidElement(e))return!0;var t=P(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function y(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":y(t,e)?"symbol":t}function b(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var C=e("./ReactElement"),E=e("./ReactPropTypeLocationNames"),w=e("./ReactPropTypesSecret"),x=e("fbjs/lib/emptyFunction"),P=e("./getIteratorFn"),T=(e("fbjs/lib/warning"),"<<anonymous>>"),O={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:s(),arrayOf:u,element:l(),instanceOf:c,node:m(),objectOf:d,oneOf:p,oneOfType:f,shape:h};o.prototype=Error.prototype,t.exports=O},{"./ReactElement":316,"./ReactPropTypeLocationNames":320,"./ReactPropTypesSecret":322,"./getIteratorFn":327,"fbjs/lib/emptyFunction":9,"fbjs/lib/warning":24}],322:[function(e,t,n){arguments[4][243][0].apply(n,arguments)},{dup:243}],323:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(){}var a=e("object-assign"),i=e("./ReactComponent"),s=e("./ReactNoopUpdateQueue"),u=e("fbjs/lib/emptyObject");o.prototype=i.prototype,r.prototype=new o,r.prototype.constructor=r,a(r.prototype,i.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{"./ReactComponent":312,"./ReactNoopUpdateQueue":319,"fbjs/lib/emptyObject":10,"object-assign":171}],324:[function(e,t,n){arguments[4][251][0].apply(n,arguments)},{dup:251}],325:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],326:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r,u,l){for(var c in e)if(e.hasOwnProperty(c)){var p;try{"function"!=typeof e[c]?o("84",r||"React class",a[n],c):void 0,p=e[c](t,c,r,n,null,i)}catch(e){p=e}if(p instanceof Error&&!(p.message in s)){s[p.message]=!0}}}var o=e("./reactProdInvariant"),a=e("./ReactPropTypeLocationNames"),i=e("./ReactPropTypesSecret");e("fbjs/lib/invariant"),e("fbjs/lib/warning");"undefined"!=typeof n&&n.env,1;var s={};t.exports=r}).call(this,e("_process"))},{"./ReactComponentTreeHook":313,"./ReactPropTypeLocationNames":320,"./ReactPropTypesSecret":322,"./reactProdInvariant":329,_process:172,"fbjs/lib/invariant":17,"fbjs/lib/warning":24}],327:[function(e,t,n){arguments[4][284][0].apply(n,arguments)},{dup:284}],328:[function(e,t,n){"use strict";function r(e){return a.isValidElement(e)?void 0:o("143"),e}var o=e("./reactProdInvariant"),a=e("./ReactElement");e("fbjs/lib/invariant");t.exports=r},{"./ReactElement":316,"./reactProdInvariant":329,"fbjs/lib/invariant":17}],329:[function(e,t,n){arguments[4][293][0].apply(n,arguments)},{dup:293}],330:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,a){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(a,e,""===t?c+r(e,0):t),1;var f,m,h=0,v=""===t?c:t+p;if(Array.isArray(e))for(var y=0;y<e.length;y++)f=e[y],m=v+r(f,y),h+=o(f,m,n,a);else{var g=u(e);if(g){var b,_=g.call(e);if(g!==e.entries)for(var C=0;!(b=_.next()).done;)f=b.value,m=v+r(f,C++),h+=o(f,m,n,a);else for(;!(b=_.next()).done;){var E=b.value;E&&(f=E[1],m=v+l.escape(E[0])+p+r(f,0),h+=o(f,m,n,a))}}else if("object"===d){var w="",x=String(e);i("31","[object Object]"===x?"object with keys {"+Object.keys(e).join(", ")+"}":x,w)}}return h}function a(e,t,n){return null==e?0:o(e,"",t,n)}var i=e("./reactProdInvariant"),s=(e("./ReactCurrentOwner"),e("./ReactElementSymbol")),u=e("./getIteratorFn"),l=(e("fbjs/lib/invariant"),e("./KeyEscapeUtils")),c=(e("fbjs/lib/warning"),"."),p=":";t.exports=a},{"./KeyEscapeUtils":307,"./ReactCurrentOwner":314,"./ReactElementSymbol":317,"./getIteratorFn":327,"./reactProdInvariant":329,"fbjs/lib/invariant":17,"fbjs/lib/warning":24}],331:[function(e,t,n){"use strict";t.exports=e("./lib/React")},{"./lib/React":309}],332:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i=e(n,r,o),u=i.dispatch,l=[],c={getState:i.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=s.default.apply(void 0,l)(i.dispatch),a({},i,{dispatch:u})}}}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.default=o;var i=e("./compose"),s=r(i)},{"./compose":335}],333:[function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},a=0;a<n.length;a++){var i=n[a],s=e[i];"function"==typeof s&&(o[i]=r(s,t))}return o}n.__esModule=!0,n.default=o},{}],334:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function a(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function i(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var s,u=Object.keys(n);try{a(n)}catch(e){s=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var r=!1,a={},i=0;i<u.length;i++){var l=u[i],c=n[l],p=e[l],d=c(p,t);if("undefined"==typeof d){var f=o(l,t);throw new Error(f)}a[l]=d,r=r||d!==p}return r?a:e}}n.__esModule=!0,n.default=i;var s=e("./createStore"),u=e("lodash/isPlainObject"),l=(r(u),e("./utils/warning"));r(l)},{"./createStore":336,"./utils/warning":338,"lodash/isPlainObject":157}],335:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],o=t.slice(0,-1);return function(){return o.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}n.__esModule=!0,n.default=r},{}],336:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(){y===v&&(y=v.slice())}function a(){return h}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),y.push(e),function(){if(t){t=!1,r();var n=y.indexOf(e);y.splice(n,1)}}}function c(e){if(!(0,i.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,h=m(h,e)}finally{g=!1}for(var t=v=y,n=0;n<t.length;n++)t[n]();return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");m=e,c({type:l.INIT})}function d(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(a())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[u.default]=function(){return this},e}var f;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var m=e,h=t,v=[],y=v,g=!1;return c({type:l.INIT}),f={dispatch:c,subscribe:s,getState:a,replaceReducer:p},f[u.default]=d,f}n.__esModule=!0,n.ActionTypes=void 0,n.default=o;var a=e("lodash/isPlainObject"),i=r(a),s=e("symbol-observable"),u=r(s),l=n.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":157,"symbol-observable":339}],337:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.compose=n.applyMiddleware=n.bindActionCreators=n.combineReducers=n.createStore=void 0;var o=e("./createStore"),a=r(o),i=e("./combineReducers"),s=r(i),u=e("./bindActionCreators"),l=r(u),c=e("./applyMiddleware"),p=r(c),d=e("./compose"),f=r(d),m=e("./utils/warning");r(m);n.createStore=a.default,n.combineReducers=s.default,n.bindActionCreators=l.default,n.applyMiddleware=p.default,n.compose=f.default},{"./applyMiddleware":332,"./bindActionCreators":333,"./combineReducers":334,"./compose":335,"./createStore":336,"./utils/warning":338}],338:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],339:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":340}],340:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var a,i=e("./ponyfill"),s=o(i);a="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof r?r:"undefined"!=typeof t?t:Function("return this")();var u=(0,s.default)(a);n.default=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":341}],341:[function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],342:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={type:{UPDATE_BEHAVIOR_GROUP:"UPDATE_BEHAVIOR_GROUP",UPDATE_BEHAVIOR_GROUP_LIST_VISIBILITY:"UPDATE_BEHAVIOR_GROUP_LIST_VISIBILITY",UPDATE_BOUNDS:"UPDATE_BOUNDS",UPDATE_HEIGHT:"UPDATE_HEIGHT",UPDATE_WIDTH:"UPDATE_WIDTH",UPDATE_POSITION:"UPDATE_POSITION",UPDATE_ROTATION:"UPDATE_ROTATION",UPDATE_ZOOM:"UPDATE_ZOOM",UPDATE_ORIGIN:"UPDATE_ORIGIN",UPDATE_DURATION:"UPDATE_DURATION",UPDATE_EASE:"UPDATE_EASE",UPDATE_SHAKE_INTENSITY:"UPDATE_SHAKE_INTENSITY",UPDATE_SHAKE_DIRECTION:"UPDATE_SHAKE_DIRECTION",UPDATE_SHAKE_EASEIN:"UPDATE_SHAKE_EASEIN",UPDATE_SHAKE_EASEOUT:"UPDATE_SHAKE_EASEOUT"}};r.updateBehaviorGroup=function(e){return{type:r.type.UPDATE_BEHAVIOR_GROUP,group:e}},r.updateBehaviorGroupListVisibility=function(e){return{type:r.type.UPDATE_BEHAVIOR_GROUP_LIST_VISIBILITY,isVisible:e}},r.updateBounds=function(e){return{type:r.type.UPDATE_BOUNDS,bounds:e}},r.updateHeight=function(e){return{type:r.type.UPDATE_HEIGHT,height:e}},r.updateWidth=function(e){return{type:r.type.UPDATE_WIDTH,width:e}},r.updatePosition=function(e){return{type:r.type.UPDATE_POSITION,position:e}},r.updateRotation=function(e){return{type:r.type.UPDATE_ROTATION,rotation:e}},r.updateZoom=function(e){return{type:r.type.UPDATE_ZOOM,zoom:e}},r.updateOrigin=function(e){return{type:r.type.UPDATE_ORIGIN,origin:e}},r.updateDuration=function(e){return{type:r.type.UPDATE_DURATION,duration:e}},r.updateEase=function(e){return{type:r.type.UPDATE_EASE,ease:e}},r.updateShakeIntensity=function(e){return{type:r.type.UPDATE_SHAKE_INTENSITY,intensity:e}},r.updateShakeDirection=function(e){return{type:r.type.UPDATE_SHAKE_DIRECTION,direction:e}},r.updateShakeEaseIn=function(e){return{type:r.type.UPDATE_SHAKE_EASEIN,easeIn:e}},r.updateShakeEaseOut=function(e){return{type:r.type.UPDATE_SHAKE_EASEOUT,easeOut:e}},n.default=r},{}],343:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=new Oculo.Camera({dragToMove:!0,minZoom:.4,wheelToZoom:!0});n.default=r},{}],344:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./camera"),a=r(o),i=e("./data/data"),s=r(i),u=e("./store"),l=r(u),c={animate:function(){var e=l.default.getState(),t=s.default.duration[e.duration];a.default.animate({origin:s.default.origin[e.origin],position:s.default.target[e.position],rotation:parseFloat(e.rotation),zoom:parseFloat(e.zoom)},t,{ease:e.animateEase})},moveTo:function(){var e=l.default.getState(),t=s.default.target[e.position],n=s.default.duration[e.duration];a.default.moveTo(t,n,{ease:e.ease})},pause:function(){a.default.pause()},play:function(){a.default.play()},resume:function(){a.default.resume()},reverse:function(){a.default.reverse()},rotateAt:function(){var e=l.default.getState(),t=s.default.origin[e.origin],n=s.default.duration[e.duration];a.default.rotateAt(parseFloat(e.rotation),t,n,{ease:e.ease})},rotateTo:function(){var e=l.default.getState(),t=s.default.duration[e.duration];a.default.rotateTo(parseFloat(e.rotation),t,{ease:e.ease})},setBounds:function(){var e=l.default.getState();a.default.applyBounds(s.default.bounds[e.bounds]),a.default.render()},setSize:function(){var e=l.default.getState();a.default.setSize(parseFloat(e.width),parseFloat(e.height))},shake:function(){var e=l.default.getState(),t=s.default.shakeIntensity[e.shakeIntensity],n=s.default.duration[e.duration],r=s.default.shakeDirection[e.shakeDirection],o=s.default.ease[e.ease],i=s.default.ease[e.shakeEaseIn],u=s.default.ease[e.shakeEaseOut];a.default.shake(t,n,{shakeDirection:r,shakeEase:o,shakeEaseIn:i,shakeEaseOut:u})},zoomAt:function(){var e=l.default.getState(),t=parseFloat(e.zoom),n=s.default.origin[e.origin],r=s.default.duration[e.duration];a.default.zoomAt(t,n,r,{ease:e.ease})},zoomTo:function(){var e=l.default.getState(),t=parseFloat(e.zoom),n=s.default.duration[e.duration];a.default.zoomTo(t,n,{ease:e.ease})}};n.default=c},{"./camera":343,"./data/data":364,"./store":367}],345:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=e("../containers/textbox"),h=r(m),v=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Position"),a.default.createElement(f.default,{items:s.default.targetList,valueKey:"position",onChange:l.default.updatePosition})),a.default.createElement("div",null,a.default.createElement("label",null,"Rotation"),a.default.createElement(h.default,{valueKey:"rotation",onChange:l.default.updateRotation})),a.default.createElement("div",null,a.default.createElement("label",null,"Zoom"),a.default.createElement(h.default,{valueKey:"zoom",onChange:l.default.updateZoom})),a.default.createElement("div",null,a.default.createElement("label",null,"Origin"),a.default.createElement(f.default,{items:s.default.originList,valueKey:"origin",onChange:l.default.updateOrigin})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.animate},"Animate")))};n.default=v},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../containers/textbox":363,"../data/data":364,react:331}],346:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../containers/behaviorGroup"),p=r(c),d=e("../components/controls"),f=r(d),m=e("../containers/customDropdownList"),h=r(m),v=function(){return a.default.createElement("div",{className:"row"},a.default.createElement("div",{className:"demo-cpanel-behaviors"},a.default.createElement(h.default,{items:s.default.behaviorGroups,itemTextKey:"text",itemValueKey:"value",dataKey:"behaviorGroups",valueKey:"behaviorGroup",listVisibilityKey:"behaviorGroupListIsVisible",onClick:l.default.updateBehaviorGroupListVisibility,onChange:l.default.updateBehaviorGroup}),a.default.createElement(p.default,null)),a.default.createElement("div",{className:"demo-cpanel-controls"},a.default.createElement("h3",{className:"demo-cpanel-header"},"Play Controls"),a.default.createElement(f.default,null)))};n.default=v},{"../actions":342,"../components/controls":349,"../containers/behaviorGroup":360,"../containers/customDropdownList":361,"../data/data":364,react:331}],347:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../components/animateControls"),s=r(i),u=e("../components/bounds"),l=r(u),c=e("../components/moveToControls"),p=r(c),d=e("../components/rotateAtControls"),f=r(d),m=e("../components/rotateToControls"),h=r(m),v=e("../components/setSizeControls"),y=r(v),g=e("../components/shakeControls"),b=r(g),_=e("../components/zoomAtControls"),C=r(_),E=e("../components/zoomToControls"),w=r(E),x=function(e){var t=e.behaviorGroup;return a.default.createElement("div",null,"animate"===t&&a.default.createElement(s.default,null),"bounds"===t&&a.default.createElement(l.default,null),"moveTo"===t&&a.default.createElement(p.default,null),"rotateAt"===t&&a.default.createElement(f.default,null),"rotateTo"===t&&a.default.createElement(h.default,null),"setSize"===t&&a.default.createElement(y.default,null),"shake"===t&&a.default.createElement(b.default,null),"zoomAt"===t&&a.default.createElement(C.default,null),"zoomTo"===t&&a.default.createElement(w.default,null))};x.propTypes={behaviorGroup:a.default.PropTypes.string.isRequired},n.default=x},{"../components/animateControls":345,"../components/bounds":348,"../components/moveToControls":352,"../components/rotateAtControls":353,"../components/rotateToControls":354,"../components/setSizeControls":355,"../components/shakeControls":356,"../components/zoomAtControls":358,"../components/zoomToControls":359,react:331}],348:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Bounds"),a.default.createElement(f.default,{items:s.default.boundsList,valueKey:"bounds",onChange:l.default.updateBounds})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.setBounds},"Set Bounds")))};n.default=m},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../data/data":364,react:331}],349:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../cameraActions"),s=r(i),u=function(){return a.default.createElement("div",{className:"demo-cpanel-controls-actions"},a.default.createElement("button",{type:"button",className:"button",onClick:s.default.pause},"Pause"),a.default.createElement("button",{type:"button",className:"button",onClick:s.default.play},"Play"),a.default.createElement("button",{type:"button",className:"button",onClick:s.default.resume},"Resume"),a.default.createElement("button",{type:"button",className:"button",onClick:s.default.reverse},"Reverse"))};n.default=u},{"../cameraActions":344,react:331}],350:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=function(e){var t=e.items,n=e.itemTextKey,r=e.itemValueKey,o=e.dataKey,i=e.value,u=e.isListVisible,l=e.onItemClick,c=e.onSelectedItemClick;return a.default.createElement("div",{className:"custom-dropdown"},a.default.createElement("span",{className:"custom-dropdown-input",onClick:c},s.default[o][s.default.lookups[o][i]].text," ",a.default.createElement("i",{className:u?"custom-dropdown-arrow fa fa-caret-down fa-rotate-180":"custom-dropdown-arrow fa fa-caret-down"})),a.default.createElement("ul",{className:"custom-dropdown-popup-list no-bullet",style:{display:u?"block":"none"}},t.map(function(e){return a.default.createElement("li",{key:e[r],"data-value":e[r],onClick:l}," ",e[n]," ")})))};u.propTypes={items:a.default.PropTypes.array,itemTextKey:a.default.PropTypes.string,itemValueKey:a.default.PropTypes.string,value:a.default.PropTypes.string.isRequired,listIsVisible:a.default.PropTypes.bool,onChange:a.default.PropTypes.func.isRequired},u.defaultProps={items:[],itemTextKey:"text",itemValueKey:"value"},n.default=u},{"../data/data":364,react:331}],351:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=function(e){var t=e.items,n=e.itemTextKey,r=e.itemValueKey,o=e.value,i=e.onChange;return a.default.createElement("select",{value:o,onChange:i},t.map(function(e){return a.default.createElement("option",{key:e[r],value:e[r]}," ",e[n]," ")}))};i.propTypes={items:a.default.PropTypes.array,itemTextKey:a.default.PropTypes.string,itemValueKey:a.default.PropTypes.string,value:a.default.PropTypes.string.isRequired,onChange:a.default.PropTypes.func.isRequired},i.defaultProps={items:[],itemTextKey:"text",itemValueKey:"value"},n.default=i},{react:331}],352:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Position"),a.default.createElement(f.default,{items:s.default.targetList,valueKey:"position",onChange:l.default.updatePosition})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.moveTo},"Move")))};n.default=m},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../data/data":364,react:331}],353:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=e("../containers/textbox"),h=r(m),v=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Rotation"),a.default.createElement(h.default,{valueKey:"rotation",onChange:l.default.updateRotation})),a.default.createElement("div",null,a.default.createElement("label",null,"Origin"),a.default.createElement(f.default,{items:s.default.originList,valueKey:"origin",onChange:l.default.updateOrigin})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.rotateAt},"Rotate")))};n.default=v},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../containers/textbox":363,"../data/data":364,react:331}],354:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=e("../containers/textbox"),h=r(m),v=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Rotation"),a.default.createElement(h.default,{valueKey:"rotation",onChange:l.default.updateRotation})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.rotateTo},"Rotate")))};n.default=v},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../containers/textbox":363,"../data/data":364,react:331}],355:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=(r(i),e("../actions")),u=r(s),l=e("../cameraActions"),c=r(l),p=e("../containers/textbox"),d=r(p),f=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Width"),a.default.createElement(d.default,{valueKey:"width",onChange:u.default.updateWidth})),a.default.createElement("div",null,a.default.createElement("label",null,"Height"),a.default.createElement(d.default,{valueKey:"height",onChange:u.default.updateHeight})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:c.default.setSize},"Resize")))};n.default=f},{"../actions":342,"../cameraActions":344,"../containers/textbox":363,"../data/data":364,react:331}],356:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Intensity"),a.default.createElement(f.default,{items:s.default.shakeIntensityList,valueKey:"shakeIntensity",onChange:l.default.updateShakeIntensity})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Direction"),a.default.createElement(f.default,{
items:s.default.shakeDirectionList,valueKey:"shakeDirection",onChange:l.default.updateShakeDirection})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease in"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"shakeEaseIn",onChange:l.default.updateShakeEaseIn})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease out"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"shakeEaseOut",onChange:l.default.updateShakeEaseOut})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.shake},"Shake")))};n.default=m},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../data/data":364,react:331}],357:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=function(e){var t=e.value,n=e.onChange;return a.default.createElement("input",{type:"text",value:t,onChange:n})};i.propTypes={value:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.string]).isRequired,onChange:a.default.PropTypes.func},n.default=i},{react:331}],358:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=e("../containers/textbox"),h=r(m),v=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Zoom"),a.default.createElement(h.default,{valueKey:"zoom",onChange:l.default.updateZoom})),a.default.createElement("div",null,a.default.createElement("label",null,"Origin"),a.default.createElement(f.default,{items:s.default.originList,valueKey:"origin",onChange:l.default.updateOrigin})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.zoomAt},"Zoom")))};n.default=v},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../containers/textbox":363,"../data/data":364,react:331}],359:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),a=r(o),i=e("../data/data"),s=r(i),u=e("../actions"),l=r(u),c=e("../cameraActions"),p=r(c),d=e("../containers/dropdownList"),f=r(d),m=e("../containers/textbox"),h=r(m),v=function(){return a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("label",null,"Zoom"),a.default.createElement(h.default,{valueKey:"zoom",onChange:l.default.updateZoom})),a.default.createElement("div",null,a.default.createElement("label",null,"Duration"),a.default.createElement(f.default,{items:s.default.durationList,valueKey:"duration",onChange:l.default.updateDuration})),a.default.createElement("div",null,a.default.createElement("label",null,"Ease"),a.default.createElement(f.default,{items:s.default.easeList,valueKey:"ease",onChange:l.default.updateEase})),a.default.createElement("div",{className:"demo-cpanel-behavior-actions"},a.default.createElement("button",{type:"button",className:"button expanded",onClick:p.default.zoomTo},"Zoom")))};n.default=v},{"../actions":342,"../cameraActions":344,"../containers/dropdownList":362,"../containers/textbox":363,"../data/data":364,react:331}],360:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react-redux"),a=e("../actions"),i=(r(a),e("../components/behaviorGroup")),s=r(i),u=function(e,t){return{behaviorGroup:e.behaviorGroup}},l=(0,o.connect)(u)(s.default);n.default=l},{"../actions":342,"../components/behaviorGroup":347,"react-redux":302}],361:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react-redux"),a=e("../store"),i=r(a),s=e("../components/customDropdownList"),u=r(s),l=function(e,t){return{value:e[t.valueKey],isListVisible:e[t.listVisibilityKey]}},c=function(e,t){var n=i.default.getState;return{onItemClick:function(n){n.nativeEvent.stopImmediatePropagation(),e(t.onChange(n.target.getAttribute("data-value"))),e(t.onClick(!1))},onSelectedItemClick:function(r){r.nativeEvent.stopImmediatePropagation(),e(t.onClick(!n()[t.listVisibilityKey]))}}},p=(0,o.connect)(l,c)(u.default);n.default=p},{"../components/customDropdownList":350,"../store":367,"react-redux":302}],362:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react-redux"),a=e("../actions"),i=(r(a),e("../components/dropdownList")),s=r(i),u=function(e,t){return{value:e[t.valueKey]}},l=function(e,t){return{onChange:function(n){e(t.onChange(n.target.value))}}},c=(0,o.connect)(u,l)(s.default);n.default=c},{"../actions":342,"../components/dropdownList":351,"react-redux":302}],363:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react-redux"),a=e("../actions"),i=(r(a),e("../components/textbox")),s=r(i),u=function(e,t){return{value:e[t.valueKey]}},l=function(e,t){return{onChange:function(n){e(t.onChange(n.target.value))}}},c=(0,o.connect)(u,l)(s.default);n.default=c},{"../actions":342,"../components/textbox":357,"react-redux":302}],364:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0});var a,i=e("lodash/sortBy"),s=r(i),u={lookups:{}};u.scrollItems=[{target:"#anchorDemo",trigger:"#navDemo"},{target:"#anchorGetStarted",trigger:"#navGetStarted"},{target:"#anchorDocumentation",trigger:"#navDocumentation"},{target:0,trigger:"#topDemo"},{target:0,trigger:"#topGetStarted"},{target:0,trigger:"#topDocumentation"}],u.elements=[{atomicNumber:1,name:"Hydrogen",symbol:"H",weight:"1.00794",metalCategory:"Nonmetal",row:1,col:1},{atomicNumber:2,name:"Helium",symbol:"He",weight:"4.002602",metalCategory:"Nonmetal",row:18,col:1},{atomicNumber:3,name:"Lithium",symbol:"Li",weight:"6.941",metalCategory:"Metal",row:1,col:2},{atomicNumber:4,name:"Beryllium",symbol:"Be",weight:"9.012182",metalCategory:"Metal",row:2,col:2},{atomicNumber:5,name:"Boron",symbol:"B",weight:"10.811",metalCategory:"Metalloid",row:13,col:2},{atomicNumber:6,name:"Carbon",symbol:"C",weight:"12.0107",metalCategory:"Nonmetal",row:14,col:2},{atomicNumber:7,name:"Nitrogen",symbol:"N",weight:"14.0067",metalCategory:"Nonmetal",row:15,col:2},{atomicNumber:8,name:"Oxygen",symbol:"O",weight:"15.9994",metalCategory:"Nonmetal",row:16,col:2},{atomicNumber:9,name:"Fluorine",symbol:"F",weight:"18.9984032",metalCategory:"Nonmetal",row:17,col:2},{atomicNumber:10,name:"Neon",symbol:"Ne",weight:"20.1797",metalCategory:"Nonmetal",row:18,col:2},{atomicNumber:11,name:"Sodium",symbol:"Na",weight:"22.98976...",metalCategory:"Metal",row:1,col:3},{atomicNumber:12,name:"Magnesium",symbol:"Mg",weight:"24.305",metalCategory:"Metal",row:2,col:3},{atomicNumber:13,name:"Aluminium",symbol:"Al",weight:"26.9815386",metalCategory:"Metal",row:13,col:3},{atomicNumber:14,name:"Silicon",symbol:"Si",weight:"28.0855",metalCategory:"Metalloid",row:14,col:3},{atomicNumber:15,name:"Phosphorus",symbol:"P",weight:"30.973762",metalCategory:"Nonmetal",row:15,col:3},{atomicNumber:16,name:"Sulfur",symbol:"S",weight:"32.065",metalCategory:"Nonmetal",row:16,col:3},{atomicNumber:17,name:"Chlorine",symbol:"Cl",weight:"35.453",metalCategory:"Nonmetal",row:17,col:3},{atomicNumber:18,name:"Argon",symbol:"Ar",weight:"39.948",metalCategory:"Nonmetal",row:18,col:3},{atomicNumber:19,name:"Potassium",symbol:"K",weight:"39.948",metalCategory:"Metal",row:1,col:4},{atomicNumber:20,name:"Calcium",symbol:"Ca",weight:"40.078",metalCategory:"Metal",row:2,col:4},{atomicNumber:21,name:"Scandium",symbol:"Sc",weight:"44.955912",metalCategory:"Metal",row:3,col:4},{atomicNumber:22,name:"Titanium",symbol:"Ti",weight:"47.867",metalCategory:"Metal",row:4,col:4},{atomicNumber:23,name:"Vanadium",symbol:"V",weight:"50.9415",metalCategory:"Metal",row:5,col:4},{atomicNumber:24,name:"Chromium",symbol:"Cr",weight:"51.9961",metalCategory:"Metal",row:6,col:4},{atomicNumber:25,name:"Manganese",symbol:"Mn",weight:"54.938045",metalCategory:"Metal",row:7,col:4},{atomicNumber:26,name:"Iron",symbol:"Fe",weight:"55.845",metalCategory:"Metal",row:8,col:4},{atomicNumber:27,name:"Cobalt",symbol:"Co",weight:"58.933195",metalCategory:"Metal",row:9,col:4},{atomicNumber:28,name:"Nickel",symbol:"Ni",weight:"58.6934",metalCategory:"Metal",row:10,col:4},{atomicNumber:29,name:"Copper",symbol:"Cu",weight:"63.546",metalCategory:"Metal",row:11,col:4},{atomicNumber:30,name:"Zinc",symbol:"Zn",weight:"65.38",metalCategory:"Metal",row:12,col:4},{atomicNumber:31,name:"Gallium",symbol:"Ga",weight:"69.723",metalCategory:"Metal",row:13,col:4},{atomicNumber:32,name:"Germanium",symbol:"Ge",weight:"72.63",metalCategory:"Metalloid",row:14,col:4},{atomicNumber:33,name:"Arsenic",symbol:"As",weight:"74.9216",metalCategory:"Metalloid",row:15,col:4},{atomicNumber:34,name:"Selenium",symbol:"Se",weight:"78.96",metalCategory:"Nonmetal",row:16,col:4},{atomicNumber:35,name:"Bromine",symbol:"Br",weight:"79.904",metalCategory:"Nonmetal",row:17,col:4},{atomicNumber:36,name:"Krypton",symbol:"Kr",weight:"83.798",metalCategory:"Nonmetal",row:18,col:4},{atomicNumber:37,name:"Rubidium",symbol:"Rb",weight:"85.4678",metalCategory:"Metal",row:1,col:5},{atomicNumber:38,name:"Strontium",symbol:"Sr",weight:"87.62",metalCategory:"Metal",row:2,col:5},{atomicNumber:39,name:"Yttrium",symbol:"Y",weight:"88.90585",metalCategory:"Metal",row:3,col:5},{atomicNumber:40,name:"Zirconium",symbol:"Zr",weight:"91.224",metalCategory:"Metal",row:4,col:5},{atomicNumber:41,name:"Niobium",symbol:"Nb",weight:"92.90628",metalCategory:"Metal",row:5,col:5},{atomicNumber:42,name:"Molybdenum",symbol:"Mo",weight:"95.96",metalCategory:"Metal",row:6,col:5},{atomicNumber:43,name:"Technetium",symbol:"Tc",weight:"(98)",metalCategory:"Metal",row:7,col:5},{atomicNumber:44,name:"Ruthenium",symbol:"Ru",weight:"101.07",metalCategory:"Metal",row:8,col:5},{atomicNumber:45,name:"Rhodium",symbol:"Rh",weight:"102.9055",metalCategory:"Metal",row:9,col:5},{atomicNumber:46,name:"Palladium",symbol:"Pd",weight:"106.42",metalCategory:"Metal",row:10,col:5},{atomicNumber:47,name:"Silver",symbol:"Ag",weight:"107.8682",metalCategory:"Metal",row:11,col:5},{atomicNumber:48,name:"Cadmium",symbol:"Cd",weight:"112.411",metalCategory:"Metal",row:12,col:5},{atomicNumber:49,name:"Indium",symbol:"In",weight:"114.818",metalCategory:"Metal",row:13,col:5},{atomicNumber:50,name:"Tin",symbol:"Sn",weight:"118.71",metalCategory:"Metal",row:14,col:5},{atomicNumber:51,name:"Antimony",symbol:"Sb",weight:"121.76",metalCategory:"Metalloid",row:15,col:5},{atomicNumber:52,name:"Tellurium",symbol:"Te",weight:"127.6",metalCategory:"Metalloid",row:16,col:5},{atomicNumber:53,name:"Iodine",symbol:"I",weight:"126.90447",metalCategory:"Nonmetal",row:17,col:5},{atomicNumber:54,name:"Xenon",symbol:"Xe",weight:"131.293",metalCategory:"Nonmetal",row:18,col:5},{atomicNumber:55,name:"Caesium",symbol:"Cs",weight:"132.9054",metalCategory:"Metal",row:1,col:6},{atomicNumber:56,name:"Barium",symbol:"Ba",weight:"132.9054",metalCategory:"Metal",row:2,col:6},{atomicNumber:"57-71",name:"",symbol:"",weight:"",metalCategory:"Metal",row:3,col:6},{atomicNumber:57,name:"Lanthanum",symbol:"La",weight:"138.90547",metalCategory:"Metal",row:4,col:9},{atomicNumber:58,name:"Cerium",symbol:"Ce",weight:"140.116",metalCategory:"Metal",row:5,col:9},{atomicNumber:59,name:"Praseodymium",symbol:"Pr",weight:"140.90765",metalCategory:"Metal",row:6,col:9},{atomicNumber:60,name:"Neodymium",symbol:"Nd",weight:"144.242",metalCategory:"Metal",row:7,col:9},{atomicNumber:61,name:"Promethium",symbol:"Pm",weight:"(145)",metalCategory:"Metal",row:8,col:9},{atomicNumber:62,name:"Samarium",symbol:"Sm",weight:"150.36",metalCategory:"Metal",row:9,col:9},{atomicNumber:63,name:"Europium",symbol:"Eu",weight:"151.964",metalCategory:"Metal",row:10,col:9},{atomicNumber:64,name:"Gadolinium",symbol:"Gd",weight:"157.25",metalCategory:"Metal",row:11,col:9},{atomicNumber:65,name:"Terbium",symbol:"Tb",weight:"158.92535",metalCategory:"Metal",row:12,col:9},{atomicNumber:66,name:"Dysprosium",symbol:"Dy",weight:"162.5",metalCategory:"Metal",row:13,col:9},{atomicNumber:67,name:"Holmium",symbol:"Ho",weight:"164.93032",metalCategory:"Metal",row:14,col:9},{atomicNumber:68,name:"Erbium",symbol:"Er",weight:"167.259",metalCategory:"Metal",row:15,col:9},{atomicNumber:69,name:"Thulium",symbol:"Tm",weight:"168.93421",metalCategory:"Metal",row:16,col:9},{atomicNumber:70,name:"Ytterbium",symbol:"Yb",weight:"173.054",metalCategory:"Metal",row:17,col:9},{atomicNumber:71,name:"Lutetium",symbol:"Lu",weight:"174.9668",metalCategory:"Metal",row:18,col:9},{atomicNumber:72,name:"Hafnium",symbol:"Hf",weight:"178.49",metalCategory:"Metal",row:4,col:6},{atomicNumber:73,name:"Tantalum",symbol:"Ta",weight:"180.94788",metalCategory:"Metal",row:5,col:6},{atomicNumber:74,name:"Tungsten",symbol:"W",weight:"183.84",metalCategory:"Metal",row:6,col:6},{atomicNumber:75,name:"Rhenium",symbol:"Re",weight:"186.207",metalCategory:"Metal",row:7,col:6},{atomicNumber:76,name:"Osmium",symbol:"Os",weight:"190.23",metalCategory:"Metal",row:8,col:6},{atomicNumber:77,name:"Iridium",symbol:"Ir",weight:"192.217",metalCategory:"Metal",row:9,col:6},{atomicNumber:78,name:"Platinum",symbol:"Pt",weight:"195.084",metalCategory:"Metal",row:10,col:6},{atomicNumber:79,name:"Gold",symbol:"Au",weight:"196.966569",metalCategory:"Metal",row:11,col:6},{atomicNumber:80,name:"Mercury",symbol:"Hg",weight:"200.59",metalCategory:"Metal",row:12,col:6},{atomicNumber:81,name:"Thallium",symbol:"Tl",weight:"204.3833",metalCategory:"Metal",row:13,col:6},{atomicNumber:82,name:"Lead",symbol:"Pb",weight:"207.2",metalCategory:"Metal",row:14,col:6},{atomicNumber:83,name:"Bismuth",symbol:"Bi",weight:"208.9804",metalCategory:"Metal",row:15,col:6},{atomicNumber:84,name:"Polonium",symbol:"Po",weight:"(209)",metalCategory:"Metalloid",row:16,col:6},{atomicNumber:85,name:"Astatine",symbol:"At",weight:"(210)",metalCategory:"Nonmetal",row:17,col:6},{atomicNumber:86,name:"Radon",symbol:"Rn",weight:"(222)",metalCategory:"Nonmetal",row:18,col:6},{atomicNumber:87,name:"Francium",symbol:"Fr",weight:"(223)",metalCategory:"Metal",row:1,col:7},{atomicNumber:88,name:"Radium",symbol:"Ra",weight:"(226)",metalCategory:"Metal",row:2,col:7},{atomicNumber:"89-103",name:"",symbol:"",weight:"",metalCategory:"Metal",row:3,col:7},{atomicNumber:89,name:"Actinium",symbol:"Ac",weight:"(227)",metalCategory:"Metal",row:4,col:10},{atomicNumber:90,name:"Thorium",symbol:"Th",weight:"232.03806",metalCategory:"Metal",row:5,col:10},{atomicNumber:91,name:"Protactinium",symbol:"Pa",weight:"231.0588",metalCategory:"Metal",row:6,col:10},{atomicNumber:92,name:"Uranium",symbol:"U",weight:"238.02891",metalCategory:"Metal",row:7,col:10},{atomicNumber:93,name:"Neptunium",symbol:"Np",weight:"(237)",metalCategory:"Metal",row:8,col:10},{atomicNumber:94,name:"Plutonium",symbol:"Pu",weight:"(244)",metalCategory:"Metal",row:9,col:10},{atomicNumber:95,name:"Americium",symbol:"Am",weight:"(243)",metalCategory:"Metal",row:10,col:10},{atomicNumber:96,name:"Curium",symbol:"Cm",weight:"(247)",metalCategory:"Metal",row:11,col:10},{atomicNumber:97,name:"Berkelium",symbol:"Bk",weight:"(247)",metalCategory:"Metal",row:12,col:10},{atomicNumber:98,name:"Californium",symbol:"Cf",weight:"(251)",metalCategory:"Metal",row:13,col:10},{atomicNumber:99,name:"Einstenium",symbol:"Es",weight:"(252)",metalCategory:"Metal",row:14,col:10},{atomicNumber:100,name:"Fermium",symbol:"Fm",weight:"(257)",metalCategory:"Metal",row:15,col:10},{atomicNumber:101,name:"Mendelevium",symbol:"Md",weight:"(258)",metalCategory:"Metal",row:16,col:10},{atomicNumber:102,name:"Nobelium",symbol:"No",weight:"(259)",metalCategory:"Metal",row:17,col:10},{atomicNumber:103,name:"Lawrencium",symbol:"Lr",weight:"(262)",metalCategory:"Metal",row:18,col:10},{atomicNumber:104,name:"Rutherfordium",symbol:"Rf",weight:"(267)",metalCategory:"Metal",row:4,col:7},{atomicNumber:105,name:"Dubnium",symbol:"Db",weight:"(268)",metalCategory:"Metal",row:5,col:7},{atomicNumber:106,name:"Seaborgium",symbol:"Sg",weight:"(271)",metalCategory:"Metal",row:6,col:7},{atomicNumber:107,name:"Bohrium",symbol:"Bh",weight:"(272)",metalCategory:"Metal",row:7,col:7},{atomicNumber:108,name:"Hassium",symbol:"Hs",weight:"(270)",metalCategory:"Metal",row:8,col:7},{atomicNumber:109,name:"Meitnerium",symbol:"Mt",weight:"(276)",metalCategory:"Metal",row:9,col:7},{atomicNumber:110,name:"Darmstadium",symbol:"Ds",weight:"(281)",metalCategory:"Metal",row:10,col:7},{atomicNumber:111,name:"Roentgenium",symbol:"Rg",weight:"(280)",metalCategory:"Metal",row:11,col:7},{atomicNumber:112,name:"Copernicium",symbol:"Cn",weight:"(285)",metalCategory:"Metal",row:12,col:7},{atomicNumber:113,name:"Nihonium",symbol:"Nh",weight:"(284)",metalCategory:"Metal",row:13,col:7},{atomicNumber:114,name:"Flerovium",symbol:"Fl",weight:"(289)",metalCategory:"Metal",row:14,col:7},{atomicNumber:115,name:"Moscovium",symbol:"Ms",weight:"(288)",metalCategory:"Metal",row:15,col:7},{atomicNumber:116,name:"Livermorium",symbol:"Lv",weight:"(293)",metalCategory:"Metal",row:16,col:7},{atomicNumber:117,name:"Tennessine",symbol:"Ts",weight:"(294)",metalCategory:"Nonmetal",row:17,col:7},{atomicNumber:118,name:"Oganesson",symbol:"Og",weight:"(294)",metalCategory:"Nonmetal",row:18,col:7}],u.elements=(0,s.default)(u.elements,["name"]),u.behaviorGroups=[{text:"Move To",value:"moveTo"},{text:"Rotate To",value:"rotateTo"},{text:"Rotate At",value:"rotateAt"},{text:"Zoom To",value:"zoomTo"},{text:"Zoom At",value:"zoomAt"},{text:"Shake",value:"shake"},{text:"Animate",value:"animate"},{text:"Resize",value:"setSize"},{text:"Bounds",value:"bounds"}],u.lookups.behaviorGroups={moveTo:0,rotateTo:1,rotateAt:2,zoomTo:3,zoomAt:4,shake:5,animate:6,setSize:7,bounds:8},u.lookups.behaviorType={move:u.behaviorGroups[0],rotate:u.behaviorGroups[1],zoom:u.behaviorGroups[2],effect:u.behaviorGroups[4]},u.bounds={None:Oculo.Camera.bounds.NONE,World:Oculo.Camera.bounds.WORLD,WorldEdge:Oculo.Camera.bounds.WORLD_EDGE},u.boundsList=[{text:"None",value:"None"},{text:"World",value:"World"},{text:"World Edge",value:"WorldEdge"}],u.lookups.boundsList={None:0,World:1,WorldEdge:2},u.duration={0:0,.5:.5,1:1,2:2,4:4},u.durationList=[{text:"0",value:"0"},{text:"0.5",value:"0.5"},{text:"1",value:"1"},{text:"2",value:"2"},{text:"4",value:"4"}],u.lookups.durationList={0:0,.5:1,1:2,2:3,4:4},u.ease={None:"","Power1.easeIn":"Power1.easeIn","Power1.easeOut":"Power1.easeOut","Power1.easeInOut":"Power1.easeInOut","Power2.easeIn":"Power2.easeIn","Power2.easeOut":"Power2.easeOut","Power2.easeInOut":"Power2.easeInOut","Power3.easeIn":"Power3.easeIn","Power3.easeOut":"Power3.easeOut","Power3.easeInOut":"Power3.easeInOut","Power4.easeIn":"Power4.easeIn","Power4.easeOut":"Power4.easeOut","Power4.easeInOut":"Power4.easeInOut","Back.easeIn":"Back.easeIn","Back.easeOut":"Back.easeOut","Back.easeInOut":"Back.easeInOut","Elastic.easeIn":"Elastic.easeIn","Elastic.easeOut":"Elastic.easeOut","Elastic.easeInOut":"Elastic.easeInOut","Bounce.easeIn":"Bounce.easeIn","Bounce.easeOut":"Bounce.easeOut","Bounce.easeInOut":"Bounce.easeInOut","Circ.easeIn":"Circ.easeIn","Circ.easeOut":"Circ.easeOut","Circ.easeInOut":"Circ.easeInOut","Expo.easeIn":"Expo.easeIn","Expo.easeOut":"Expo.easeOut","Expo.easeInOut":"Expo.easeInOut","Sine.easeIn":"Sine.easeIn","Sine.easeOut":"Sine.easeOut","Sine.easeInOut":"Sine.easeInOut"},u.easeList=[{text:"None",value:"None"},{text:"Power1.easeIn",value:"Power1.easeIn"},{text:"Power1.easeOut",value:"Power1.easeOut"},{text:"Power1.easeInOut",value:"Power1.easeInOut"},{text:"Power2.easeIn",value:"Power2.easeIn"},{text:"Power2.easeOut",value:"Power2.easeOut"},{text:"Power2.easeInOut",value:"Power2.easeInOut"},{text:"Power3.easeIn",value:"Power3.easeIn"},{text:"Power3.easeOut",value:"Power3.easeOut"},{text:"Power3.easeInOut",value:"Power3.easeInOut"},{text:"Power4.easeIn",value:"Power4.easeIn"},{text:"Power4.easeOut",value:"Power4.easeOut"},{text:"Power4.easeInOut",value:"Power4.easeInOut"},{text:"Back.easeIn",value:"Back.easeIn"},{text:"Back.easeOut",value:"Back.easeOut"},{text:"Back.easeInOut",value:"Back.easeInOut"},{text:"Elastic.easeIn",value:"Elastic.easeIn"},{text:"Elastic.easeOut",value:"Elastic.easeOut"},{text:"Elastic.easeInOut",value:"Elastic.easeInOut"},{text:"Bounce.easeIn",value:"Bounce.easeIn"},{text:"Bounce.easeOut",value:"Bounce.easeOut"},{text:"Bounce.easeInOut",value:"Bounce.easeInOut"},{text:"Circ.easeIn",value:"Circ.easeIn"},{text:"Circ.easeOut",value:"Circ.easeOut"},{text:"Circ.easeInOut",value:"Circ.easeInOut"},{text:"Expo.easeIn",value:"Expo.easeIn"},{text:"Expo.easeOut",value:"Expo.easeOut"},{text:"Expo.easeInOut",value:"Expo.easeInOut"},{text:"Sine.easeIn",value:"Sine.easeIn"},{text:"Sine.easeOut",value:"Sine.easeOut"},{text:"Sine.easeInOut",value:"Sine.easeInOut"}],u.lookups.easeList={None:0,"Power1.easeIn":1,"Power1.easeOut":2,"Power1.easeInOut":3,"Power2.easeIn":4,"Power2.easeOut":5,"Power2.easeInOut":6,"Power3.easeIn":7,"Power3.easeOut":8,"Power3.easeInOut":8,"Power4.easeIn":9,"Power4.easeOut":10,"Power4.easeInOut":11,"Back.easeIn":12,"Back.easeOut":13,"Back.easeInOut":14,"Elastic.easeIn":15,"Elastic.easeOut":16,"Elastic.easeInOut":17,"Bounce.easeIn":18,"Bounce.easeOut":19,"Bounce.easeInOut":20,"Circ.easeIn":21,"Circ.easeOut":22,"Circ.easeInOut":23,"Expo.easeIn":24,"Expo.easeOut":25,"Expo.easeInOut":26,"Sine.easeIn":27,"Sine.easeOut":28,"Sine.easeInOut":29},u.fields={duration:{tag:"input",type:"number"},easeIn:{tag:"select"},easeOut:{data:com.greensock.easing,tag:"select"},intensity:{tag:"input",type:"number"},origin:{tag:"input",type:"text"},position:{tag:"input",type:"text"},rotation:{tag:"input",type:"text"},zoom:{tag:"input",type:"number"}},u.shakeDirection={Both:0,Horizontal:1,Vertical:2},u.shakeDirectionList=[{text:"Both",value:"Both"},{text:"Horizontal",value:"Horizontal"},{text:"Vertical",value:"Vertical"}],u.lookups.shakeDirectionList={Both:0,Horizontal:1,Vertical:2},u.shakeIntensity={0:0,.01:.01,.03:.03,.05:.05,.1:.1,.2:.2},u.shakeIntensityList=[{text:"0",value:"0"},{text:"0.01",value:"0.01"},{text:"0.03",value:"0.03"},{text:"0.05",value:"0.05"},{text:"0.1",value:"0.1"},{text:"0.2",value:"0.2"}],u.lookups.shakeIntensityList=(a={.01:0},o(a,"0.01",1),o(a,"0.03",2),o(a,"0.05",3),o(a,"0.1",4),o(a,"0.2",5),a),u.target={"#box100":"#box100","200,200":{x:200,y:200}},u.elements.forEach(function(e){e.name&&(u.target[e.name]="#"+e.name)}),u.targetList=[],u.elements.forEach(function(e){e.name&&u.targetList.push({text:e.name,value:e.name})}),u.lookups.targetList={},u.targetList.forEach(function(e,t){u.lookups.targetList[e.value]=t}),u.origin={Auto:"auto"},u.elements.forEach(function(e){e.name&&(u.origin[e.name]="#"+e.name)}),u.originList=[{text:"Auto",value:"auto"}],u.elements.forEach(function(e){e.name&&u.originList.push({text:e.name,value:e.name})}),u.lookups.originList={},u.originList.forEach(function(e,t){u.lookups.originList[e.value]=t}),n.default=u},{"lodash/sortBy":165}],365:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./data/data"),a=r(o),i=e("./actions"),s=r(i),u={};u.behaviorGroup=function(e,t){switch(void 0===e&&(e="moveTo"),t.type){case s.default.type.UPDATE_BEHAVIOR_GROUP:return t.group;default:return e}},u.behaviorGroupListIsVisible=function(e,t){switch(void 0===e&&(e=!1),t.type){case s.default.type.UPDATE_BEHAVIOR_GROUP_LIST_VISIBILITY:return t.isVisible;default:return e}},u.bounds=function(e,t){switch(void 0===e&&(e=a.default.boundsList[a.default.lookups.boundsList.None].value),t.type){case s.default.type.UPDATE_BOUNDS:return t.bounds;default:return e}},u.height=function(e,t){switch(void 0===e&&(e="500"),t.type){case s.default.type.UPDATE_HEIGHT:return t.height;default:return e}},u.width=function(e,t){switch(void 0===e&&(e="500"),t.type){case s.default.type.UPDATE_WIDTH:return t.width;default:return e}},u.position=function(e,t){switch(void 0===e&&(e=a.default.targetList[a.default.lookups.targetList.Actinium].value),t.type){case s.default.type.UPDATE_POSITION:return t.position;default:return e}},u.rotation=function(e,t){switch(void 0===e&&(e=0),t.type){case s.default.type.UPDATE_ROTATION:return t.rotation;default:return e}},u.zoom=function(e,t){switch(void 0===e&&(e=1),t.type){case s.default.type.UPDATE_ZOOM:return t.zoom;default:return e}},u.origin=function(e,t){switch(void 0===e&&(e=a.default.originList[a.default.lookups.originList.auto].value),t.type){case s.default.type.UPDATE_ORIGIN:return t.origin;default:return e}},u.duration=function(e,t){switch(void 0===e&&(e=a.default.durationList[a.default.lookups.durationList[1]].value),t.type){case s.default.type.UPDATE_DURATION:return t.duration;default:return e}},u.ease=function(e,t){switch(void 0===e&&(e=a.default.ease.None),t.type){case s.default.type.UPDATE_EASE:return t.ease;default:return e}},u.shakeIntensity=function(e,t){switch(void 0===e&&(e=a.default.shakeIntensityList[a.default.lookups.shakeIntensityList[.05]].value),t.type){case s.default.type.UPDATE_SHAKE_INTENSITY:return t.intensity;default:return e}},u.shakeDirection=function(e,t){switch(void 0===e&&(e=a.default.shakeDirectionList[a.default.lookups.shakeDirectionList.Both].value),t.type){case s.default.type.UPDATE_SHAKE_DIRECTION:return t.direction;default:return e}},u.shakeEaseIn=function(e,t){switch(void 0===e&&(e=a.default.ease.None),t.type){case s.default.type.UPDATE_SHAKE_EASEIN:return t.easeIn;default:return e}},u.shakeEaseOut=function(e,t){switch(void 0===e&&(e=a.default.ease.None),t.type){case s.default.type.UPDATE_SHAKE_EASEOUT:return t.easeOut;default:return e}},u.app=function(e,t){return void 0===e&&(e={}),{behaviorGroup:u.behaviorGroup(e.behaviorGroup,t),behaviorGroupListIsVisible:u.behaviorGroupListIsVisible(e.behaviorGroupListIsVisible,t),bounds:u.bounds(e.bounds,t),height:u.height(e.height,t),width:u.width(e.width,t),position:u.position(e.position,t),rotation:u.rotation(e.rotation,t),zoom:u.zoom(e.zoom,t),origin:u.origin(e.origin,t),duration:u.duration(e.duration,t),ease:u.ease(e.ease,t),shakeIntensity:u.shakeIntensity(e.shakeIntensity,t),shakeDirection:u.shakeDirection(e.shakeDirection,t),shakeEaseIn:u.shakeEaseIn(e.shakeEaseIn,t),shakeEaseOut:u.shakeEaseOut(e.shakeEaseOut,t)}},n.default=u},{"./actions":342,"./data/data":364}],366:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){if(window.innerWidth>=1024)g.default.setSize(600);else{var e=window.getComputedStyle(g.default.view.parentElement.parentElement.parentElement);g.default.setSize(window.innerWidth-parseInt(e.paddingLeft)-parseInt(e.paddingRight))}}var a=e("lodash/debounce"),i=r(a),s=e("lodash/random"),u=r(s),l=e("code-prettify/loader/prettify"),c=(r(l),e("react")),p=r(c),d=e("react-dom"),f=r(d),m=e("react-redux"),h=e("./actions"),v=r(h),y=e("./camera"),g=r(y),b=e("./data/data"),_=r(b),C=e("./store"),E=r(C),w=e("./components/app"),x=r(w);document.getElementById("copyrightYear").innerHTML=(new Date).getFullYear(),window.prettyPrint(),_.default.scrollItems.forEach(function(e){document.querySelector(e.trigger).addEventListener("click",function(){event.preventDefault(),TweenLite.to(window,.7,{scrollTo:e.target,ease:Power2.easeOut})})});var P=document.getElementById("homeBannerGraphic"),T=new TimelineMax({paused:!0}),O=new TimelineMax({repeat:-1});TweenLite.fromTo(P,.75,{opacity:0},{opacity:1,rotation:360,y:-200,ease:Power3.easeOut}),T.to(P,.5,{rotation:function(){return"-="+(0,u.default)(1,3)},ease:Power2.easeOut,force3D:!0}).to(P,1,{rotation:function(){return"+="+(0,u.default)(3,7)},ease:Power3.easeOut,force3D:!0}),O.add(T.tweenFromTo(0,T.duration(),{onComplete:function(){this.target.invalidate()}}),4),O.add(T.tweenFromTo(0,T.duration(),{onComplete:function(){this.target.invalidate()}}),12),O.add(T.tweenFromTo(0,T.duration(),{onComplete:function(){this.target.invalidate()}}),20),g.default.setSize(600,500).setView("#camera"),g.default.addScene("scene1",new Oculo.Scene("#scene1",1350,900)),g.default.addScene("scene2",new Oculo.Scene("#scene2",1827,1215)),g.default.addScene("scene3","#scene3"),_.default.elements.forEach(function(e){var t=document.createElement("div");t.className="element "+e.metalCategory.toLowerCase(),t.setAttribute("id",e.name),t.innerHTML='<div class="element-number">'+e.atomicNumber+'</div><div class="element-symbol">'+e.symbol+'</div><div class="element-name">'+e.name+'</div><div class="element-weight">'+e.weight+"</div>",t.style.top=90*(e.col-1)+"px",t.style.left=75*(e.row-1)+"px",g.default.scenes.get("scene1").view.appendChild(t)}),g.default.setScene("scene1");var M=[{name:"intro",keyframes:[{duration:0,position:function(){return{x:.5*g.default.scene.width,y:.5*g.default.scene.height}},zoom:2,options:{onComplete:function(){this.camera.play("delayedZoomOut")}}}]},{name:"delayedZoomOut",keyframes:[{zoom:.4,duration:.6,options:{ease:Power2.easeInOut,delay:.5}}]}];M.forEach(function(e){g.default.addAnimation(e.name,e)}),o(),window.addEventListener("resize",(0,i.default)(o,200,{maxWait:400})),g.default.render(),g.default.play("intro"),document.addEventListener("click",function(){E.default.dispatch(v.default.updateBehaviorGroupListVisibility(!1))}),f.default.render(p.default.createElement(m.Provider,{store:E.default},p.default.createElement(x.default,null)),document.getElementById("app"));for(var I=15,S=[],R=document.getElementById("homeBannerCircles");I>0;)S.push(document.createElement("div")),I--;S.forEach(function(e){e.className="home-banner-circle",TweenLite.set(e,{opacity:0===(0,u.default)(0,1)?0:(0,u.default)(.01,.05),rotation:.01,scale:(0,u.default)(.1,1),xPercent:-50,yPercent:-50,top:(0,u.default)(30,110)+"%",left:(0,u.default)(0,100)+"%"}),R.appendChild(e),TweenMax.to(e,(0,u.default)(5,10),{opacity:(0,u.default)(.01,.07),delay:(0,u.default)(0,3),repeat:-1,repeatDelay:(0,u.default)(0,3),yoyo:!0,ease:Power1.easeInOut}),TweenMax.to(e,(0,u.default)(10,15),{x:(0,u.default)(-150,150),delay:(0,u.default)(0,3),repeat:-1,repeatDelay:(0,u.default)(0,3),yoyo:!0,ease:Power2.easeInOut}),TweenMax.to(e,(0,u.default)(10,15),{xPercent:(0,u.default)(-80,-20),delay:(0,u.default)(0,3),repeat:-1,repeatDelay:(0,u.default)(0,3),yoyo:!0,ease:Power2.easeInOut}),TweenMax.to(e,(0,u.default)(10,15),{y:(0,u.default)(-150,150),delay:(0,u.default)(0,3),repeat:-1,repeatDelay:(0,u.default)(0,3),yoyo:!0,ease:Power2.easeInOut}),TweenMax.to(e,(0,u.default)(10,15),{yPercent:(0,u.default)(-80,-20),delay:(0,u.default)(0,3),repeat:-1,repeatDelay:(0,u.default)(0,3),yoyo:!0,ease:Power2.easeInOut})})},{"./actions":342,"./camera":343,"./components/app":346,"./data/data":364,"./store":367,"code-prettify/loader/prettify":1,"lodash/debounce":144,"lodash/random":164,react:331,"react-dom":173,"react-redux":302}],367:[function(e,t,n){
"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("redux"),a=e("./reducers"),i=r(a),s=(0,o.createStore)(i.default.app);n.default=s},{"./reducers":365,redux:337}]},{},[366]); | 28,838.8 | 32,066 | 0.712807 |
612f5a2ad63814171d0f7ffd6fd067c007922758 | 1,228 | js | JavaScript | src/bindState.js | 9reeno/react-epic | d814c52a07ae4b0262ea719b8dd79a8bdb2cda7d | [
"MIT"
] | 6 | 2018-11-15T13:04:33.000Z | 2020-10-02T18:35:55.000Z | src/bindState.js | 9reeno/react-epic | d814c52a07ae4b0262ea719b8dd79a8bdb2cda7d | [
"MIT"
] | 22 | 2018-10-03T09:35:55.000Z | 2018-10-19T16:19:20.000Z | src/bindState.js | 9reeno/react-epic | d814c52a07ae4b0262ea719b8dd79a8bdb2cda7d | [
"MIT"
] | 2 | 2018-10-05T19:35:26.000Z | 2018-11-15T09:18:42.000Z | import { combineLatest, isObservable } from 'rxjs'
import { map } from 'rxjs/operators'
import { isFunction } from './isFunction'
export function bindState(states) {
const keys = Object.keys(states)
for (const key of keys) {
const state = states[key]
if (!isFunction(state) && !isObservable(state)) {
console.warn(
`Invalid value ${state} for state ${key}. A state should be an Observable.`
)
}
}
return combineLatest(
/**
* Actually this line is caculated only once, everytime the context
* changes. Which mostly occurs only once in our app.
*/
...keys.filter(key => isObservable(states[key])).map(key =>
states[key].pipe(
map(
/**
* This line cost is medium, one state is re-caculated
* only and if only that state changes. That is the effect
* of combineLastest.
*/
state => ({ [key]: state })
)
)
)
).pipe(
map(
/**
* Only the cost of this line is expensive!
*/
stateWrappers =>
stateWrappers.reduce(
(all, next) => Object.assign(all, next),
{} // Avoid the reuse of one object.
)
)
)
}
| 25.583333 | 83 | 0.560261 |
61307e986eb36dcc9d73603dface2b4711f89b36 | 623 | js | JavaScript | Coati/ideaboard-beamer/src/components/UIcomponents/IdeaCarouselUI/childComponents/SpringComponent.js | TimMaasGeesteranus/Ideaboard | d6d8b6e58159dec3c8f78459b2374ce68ce19409 | [
"MIT"
] | null | null | null | Coati/ideaboard-beamer/src/components/UIcomponents/IdeaCarouselUI/childComponents/SpringComponent.js | TimMaasGeesteranus/Ideaboard | d6d8b6e58159dec3c8f78459b2374ce68ce19409 | [
"MIT"
] | null | null | null | Coati/ideaboard-beamer/src/components/UIcomponents/IdeaCarouselUI/childComponents/SpringComponent.js | TimMaasGeesteranus/Ideaboard | d6d8b6e58159dec3c8f78459b2374ce68ce19409 | [
"MIT"
] | null | null | null | import React from "react";
import {Spring} from "react-spring/renderprops-universal";
class SpringComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
content: this.props.content,
}
}
render() {
let content = this.state.content;
return <div>
<Spring
from={{opacity: 0}}
to={{opacity: 1}}
>
{props => <div style={props}>
{content}
</div>}
</Spring>
</div>
}
}
export default SpringComponent; | 22.25 | 58 | 0.481541 |
6131e0ec34cd5a5714409d42edb888b6bec70770 | 613 | js | JavaScript | src/app/elements/directives/countElementsSelected.js | dubo-dubon-duponey/WebClient | 9e733f522da0cf86281fdffbce44df2bb8704705 | [
"MIT"
] | null | null | null | src/app/elements/directives/countElementsSelected.js | dubo-dubon-duponey/WebClient | 9e733f522da0cf86281fdffbce44df2bb8704705 | [
"MIT"
] | null | null | null | src/app/elements/directives/countElementsSelected.js | dubo-dubon-duponey/WebClient | 9e733f522da0cf86281fdffbce44df2bb8704705 | [
"MIT"
] | null | null | null | /* @ngInject */
function countElementsSelected($rootScope) {
return {
replace: true,
templateUrl: require('../../../templates/elements/countElementsSelected.tpl.html'),
link(scope, element) {
const $btn = element.find('.countElementsSelected-btn-unselect');
const onClick = () => $rootScope.$emit('selectElements', { type: 'all', data: { isChecked: false } });
$btn.on('click', onClick);
scope.$on('$destroy', () => {
$btn.off('click', onClick);
});
}
};
}
export default countElementsSelected;
| 32.263158 | 114 | 0.554649 |
61329bb7a17dde43bb514e3fd85bed4f3e8297e7 | 1,916 | js | JavaScript | public/userapp/controllers/tournaments/TournamentsDebugController.js | aghbit/IF-TMS | 4d8ce4bbb58ee83aea7da244169707f8bfad2bb2 | [
"Apache-2.0"
] | 4 | 2016-12-06T22:30:37.000Z | 2017-07-01T16:54:10.000Z | public/userapp/controllers/tournaments/TournamentsDebugController.js | aghbit/IF-TMS | 4d8ce4bbb58ee83aea7da244169707f8bfad2bb2 | [
"Apache-2.0"
] | null | null | null | public/userapp/controllers/tournaments/TournamentsDebugController.js | aghbit/IF-TMS | 4d8ce4bbb58ee83aea7da244169707f8bfad2bb2 | [
"Apache-2.0"
] | null | null | null | /**
* Created by szymek on 08.03.15.
*/
mainApp.controller('TournamentsDebugController', ['$scope', '$location', '$http', '$stateParams', 'SessionService', 'ngDialog',
function ($scope, $location, $http, $stateParams, SessionService, ngDialog) {
$scope.show = function(type) {
$http.get('/api/tournaments/' + $stateParams.id + "/"+type).
success(function(data, status, headers, config) {
$scope.message = data;
}).error(function(data, status, headers, config, statusText) {
$scope.message = "";
alert(status + " " + data)
});
};
$scope.showcase = function(type) {
$location.url("tournaments/" + $stateParams.id + "/"+type+ "Showcase");
};
$scope.generate = function(type){
$http.post('/api/tournaments/'+$stateParams.id+'/'+type, {"tree":true}).
success(function(data, status, headers, config) {
alert(status + " " + data)
}).
error(function(data, status, headers, config) {
window.alert(status + " " + data)
});
};
$scope.remove = function(type){
$http({
url: '/api/tournaments/' + $stateParams.id + "/"+type,
dataType: 'json',
method: 'DELETE',
data: {
"tree":true
},
headers: {
"Content-Type": "application/json"
}
}).
success(function(data, status, headers, config) {
alert(status + " " + data)
}).
error(function(data, status, headers, config, statusText) {
window.alert(status + " " + data)
});
};
}]); | 34.214286 | 127 | 0.450939 |
61348362cf7a31fb8836893226efccd0061a7cb8 | 5,396 | js | JavaScript | sound.js | surebert/surebert-toolkit | 6a14340ef2d64953bd066335a9b13c8e3ecf15e5 | [
"MIT"
] | null | null | null | sound.js | surebert/surebert-toolkit | 6a14340ef2d64953bd066335a9b13c8e3ecf15e5 | [
"MIT"
] | null | null | null | sound.js | surebert/surebert-toolkit | 6a14340ef2d64953bd066335a9b13c8e3ecf15e5 | [
"MIT"
] | null | null | null | sb.include('flashGate');
/**
@Name: sb.sound
@Author: Paul Visco
@Description: A constructor for creating new sound object instances. Allows javascript to load, play and stop mp3 sounds.
@Param String url The url of the file to play
@Example:
var yellow = new sb.sound(
url : 'yellow.mp3',
debug : true,
onID3 : function(){},
onProgress : function(){}
);
yellow.play();
*/
sb.sound = function(params){
if(!params.url){
throw('You must pass a url to the sb.sound');
}
for(var prop in params){
this[prop] = params[prop];
}
this.id = sb.flashGate.getInterface().sound_create(this.url, this.debug);
sb.sound.sounds[this.id] = this;
};
/**
@Name: sb.sound.sounds
@Description: Used Internally
*/
sb.sound.sounds = [];
/**
@Name: sb.sound.stopAll
@Description: Stops all sounds playing on the page
@Param String url Optional The url of the file to stop
@Example:
sb.sound.stopAll();
//or
sb.sound.stopAll('yellow.mp3');
*/
sb.sound.stopAll = function(url){
url = url || '';
sb.flashGate.getInterface().sounds_stop_all(url);
};
/**
@Name: sb.sound.stopAll
@Description: Sets the global volume of all sounds
@Param Float A float between 0 and 1
@Example:
sb.sound.setGlobalVolume(0.5);
*/
sb.sound.setGlobalVolume = function(volume){
sb.flashGate.getInterface().sounds_set_global_volume(volume);
};
/**
@Name: sb.sound.muteAll
@Description: Mutes all sounds playing on the page
@Param String url Optional The url of the file to mute
@Example:
sb.sound.muteAll();
//or
sb.sound.muteAll('yellow.mp3');
*/
sb.sound.muteAll = function(){
sb.flashGate.getInterface().sounds_mute_all();
};
/**
@Name: sb.sound.muted
@Description: When set to 1, sounds will not play
@Example:
sb.sound.mute = 1;
*/
sb.sound.muted = 0;
/**
@Name: sb.sound.prototype
@Description: The methods of sb.sound instances
*/
sb.sound.prototype = {
duration : -1,
/**
@Name: sb.sound.prototype.url
@Description: String The url of the mp3 file
*/
url : '',
/**
@Name: sb.sound.prototype.id
@Description: Used Internally
*/
id : 0,
/**
@Name: sb.sound.prototype.play
@Param Number position The position to start the file at in milliseconds
@Param Number loops The number of times to repeat the sound
@Description: Plays the sound file
@Example:
mySound.play();
*/
play : function(position, loops){
if(!sb.sound.muted){
position = position || 0;
loops = loops || 0;
return sb.flashGate.getInterface().sound_play(this.id, position, loops);
}
},
/**
@Name: sb.sound.prototype.stop
@Description: Stops the sound file
@Example:
mySound.play();
*/
stop : function(){
return sb.flashGate.getInterface().sound_stop(this.id);
},
/**
@Name: sb.sound.prototype.getPosition
@Description: Gets the current position in milliseconds
@Return: Number return the current position in milliseconds
@Example:
mySound.getPosition();
*/
getPosition : function(){
return sb.flashGate.getInterface().sound_get_position(this.id);
},
/**
@Name: sb.sound.prototype.setPositionPercent
@Description: Moves the playhead to a certain position in percent of total
@Example:
mySound.setPositionPercent(40);
*/
setPositionPercent : function(percent){
return sb.flashGate.getInterface().sound_set_position_percent(this.id, percent);
},
/**
@Name: sb.sound.prototype.getPositionPercent
@Description: Gets the current position in percent of total
@Return: Number return the current position in percent of total
@Example:
mySound.getPositionPercent();
*/
getPositionPercent : function(){
return sb.flashGate.getInterface().sound_get_position_percent(this.id);
},
/**
@Name: sb.sound.prototype.setPosition
@Description: Moves the playhead to a certain position in milliseconds
@Example:
mySound.setPosition(4135);
*/
setPosition : function(position){
return sb.flashGate.getInterface().sound_set_position(this.id, position);
},
/**
@Name: sb.sound.prototype.getVolume
@Description: Gets the current volume
@Return: float between 0 and 1
@Example:
mySound.getVolume();
*/
getVolume : function(volume){
return sb.flashGate.getInterface().sound_get_volume(this.id);
},
/**
@Name: sb.sound.prototype.getVolume
@Description: Gets the current volume
@Param: Float volume between 0 and 1
@Example:
mySound.setVolume(0.5);
*/
setVolume : function(volume){
sb.flashGate.getInterface().sound_set_volume(this.id, volume);
},
/**
@Name: sb.sound.prototype.getPan
@Description: Gets the current pan position
@Return: float between -1 (left) and 1 (right)
@Example:
mySound.getPan();
*/
getPan : function(){
return sb.flashGate.getInterface().sound_get_pan(this.id);
},
/**
@Name: sb.sound.prototype.setPan
@Description: sets the current pan position
@Param: float pan between -1 (left) and 1 (right)
@Example:
mySound.setPan(0.5);
*/
setPan : function(pan){
sb.flashGate.getInterface().sound_set_pan(this.id, pan);
},
/**
@Name: sb.sound.prototype.mute
@Description: sets the volume to zero for this sound but keeps playing
@Example:
mySound.mute();
*/
mute : function(){
this.setVolume(0);
},
//tags.album, tags.year, tags.artist, tags.songName, tags.comment, tags.track, tags.genre
onID3 : function(){},
//song.sizeK, song.bytesLoaded, song.bytesTotal
onLoad : function(){},
//message
onError : function(){},
//song.position, song.length, song.percent
onProgress : function(data){}
}; | 23.46087 | 122 | 0.7096 |
6134e73a2117f7d2c54ec241fb389d607b83b96f | 895 | js | JavaScript | components/About.js | heejeans/lab1-web-portfolio | 44a9775bd85a3fb7751e6edad9cb212648bfe556 | [
"MIT"
] | null | null | null | components/About.js | heejeans/lab1-web-portfolio | 44a9775bd85a3fb7751e6edad9cb212648bfe556 | [
"MIT"
] | null | null | null | components/About.js | heejeans/lab1-web-portfolio | 44a9775bd85a3fb7751e6edad9cb212648bfe556 | [
"MIT"
] | null | null | null | export default function About(about){
return `
<div>
<h1 id="about" class="container animate__animated animate__pulse animate__infinite animate__slow"><br>Joy Son</h1>
<section class="row container">
<p class="col-6 personal text">
<img class="profile" src="${about.photo}" alt="Profile picture" width="369.4" height="450"><br><br>
<b>${about.title}</b><br>${about.info[0]}<br>${about.info[1]}<br>
<a href="${about.links[0]}" target="_blank"><i class="far fa-file-alt"> Resume</i></a> |
<a href="${about.links[1]}" target="_blank"><i class="fab fa-linkedin"></i></a> |
<a href="${about.links[2]}" target="_blank"><i class="fab fa-github"></i></a>
</p>
<p class="col-6 text">
${about.description}
</p>
</section>
</div>`;
} | 49.722222 | 118 | 0.532961 |
613602e46f54d7a516a758252d049c9d9ff3b0cc | 132 | js | JavaScript | src/redux/actions/counterAction.js | rahulbhate/gatsby-react-graphql-dato-project | cbef30f240e154a25096cd9429da3bab871a7f5f | [
"MIT"
] | null | null | null | src/redux/actions/counterAction.js | rahulbhate/gatsby-react-graphql-dato-project | cbef30f240e154a25096cd9429da3bab871a7f5f | [
"MIT"
] | 4 | 2021-09-02T07:41:54.000Z | 2022-02-27T05:14:51.000Z | src/redux/actions/counterAction.js | rahulbhate/gatsby-react-graphql-dato-project | cbef30f240e154a25096cd9429da3bab871a7f5f | [
"MIT"
] | null | null | null | import * as types from "./actionTypes"
export function setCounter(counter) {
return {
type: types.COUNTER,
counter,
}
}
| 16.5 | 38 | 0.666667 |
6136033bac359a5332326e67350b8173dc0f7354 | 5,494 | js | JavaScript | environment.js | jsonxr/envconfig | ff3de059301b6d085b111ea61904d242dc79be99 | [
"MIT"
] | null | null | null | environment.js | jsonxr/envconfig | ff3de059301b6d085b111ea61904d242dc79be99 | [
"MIT"
] | null | null | null | environment.js | jsonxr/envconfig | ff3de059301b6d085b111ea61904d242dc79be99 | [
"MIT"
] | null | null | null | var fs = require('fs');
var path = require('path');
var async = require('async');
var Q = require('q');
function wordwrap( str, width, brk, cut ) {
brk = brk || '\n';
width = width || 75;
cut = cut || false;
if (!str) { return str; }
var regex = '.{1,' +width+ '}(\\s|$)' + (cut ? '|.{' +width+ '}|.+$' : '|\\S+?(\\s|$)');
return str.match( new RegExp(regex, 'g') ).join( brk );
}
function forEachKey(obj, fn) {
var key, value;
if (obj) {
for (key in obj) {
if (obj.hasOwnProperty(key)) {
value = obj[key];
fn(key, value);
}
}
}
}
function parseBool(value) {
if (value === undefined) { return false; }
var str = value.toString().toLowerCase();
return ('true' === str || 'yes' === str)
}
function shellScriptWrap(value) {
if (value.value) { value = value.value };
if (typeof value === 'string') {
return '\'' + value + '\''
} else if( Object.prototype.toString.call(value) === '[object Array]' ) {
return '\'' + value.join(",") + '\''
} else {
return value
}
}
function Environment(defaults) {
var me = Object.create(Environment);
me.defaults = defaults;
// Chec the process.env for overrides
forEachKey(defaults, function (key, variable) {
var value = (variable.value !== undefined) ? variable.value : variable;
var defaultValue = value;
var type = typeof value;
if (process.env[key] !== undefined) {
me[key] = fromString(type, defaultValue, process.env[key]);
} else {
me[key] = defaultValue;
}
});
me.getDirectories = function (callback) {
var directories = [];
var deferred = Q.defer();
function collect(key, cb) {
var value = me.defaults[key];
var isDirectory = value.isDirectory;
if (isDirectory) {
var dir = {
value: me[key],
exists: false
};
fs.lstat(dir.value, function (err, stat) {
if (stat) {
dir.exists = true;
}
directories[key] = dir;
cb();
});
} else {
cb();
}
}
async.each(Object.keys(me.defaults), collect, function (err) {
// If using as a callback, then call it!
if (callback) {
callback(directories);
}
// Resolve promise
deferred.resolve(directories);
})
return deferred.promise;
}
me.getVariables = function () {
var variables = {};
forEachKey(me.defaults, function (key, value) {
var variable = {
value: me[key],
required: value.required,
exists: process.env[key] !== undefined
}
variables[key] = variable;
})
return variables;
}
me.createDirectories = function (callback) {
var deferred = Q.defer();
function createDir(dir, cb) {
if (! dir.exists) {
fs.mkdir(dir.value, function (err) {
cb(err);
});
} else {
cb();
}
}
me.getDirectories(function (directories) {
var keys = Object.keys(directories);
var dirs = keys.map(function(v) { return directories[v]; });
async.eachSeries(dirs, createDir, function (err) {
// If using as a callback, then call it!
if (callback) {
callback(err);
}
// Resolve promise
if (err) {
deferred.reject(err);
} else {
deferred.resolve();
}
})
});
return deferred.promise;
}
me.check = function (options, callback) {
var errors = null;
var deferred = Q.defer();
if (options === undefined) {
callback = null;
options = {};
} else if (typeof options === 'function') {
callback = options;
options = {};
}
function error(name, msg) {
errors = errors || [];
var e = new Error(msg);
e.name = name;
errors.push(e);
}
var variables = null;
// Check all variables are set
variables = me.getVariables();
forEachKey(variables, function (key, variable) {
if (variable.required && !variable.exists) {
error('EnvironmentRequiredError', 'Variable is required: '+key);
}
})
// Make sure directories exist
me.getDirectories(function (directories) {
forEachKey(directories, function (key, dir) {
if (! dir.exists) {
error('EnvironmentDirectoryError', 'Path does not exist: '+key+'="' + path.resolve(dir.value) + '"');
}
})
// Set the name of the errors object
if (errors) {
errors.name = 'EnvironmentErrors';
}
// If callback, call it
if (callback) {
callback(errors);
}
// do the promise
if (! errors) {
deferred.resolve();
} else {
deferred.reject(errors);
}
});
return deferred.promise;
}
return me;
}
function fromString(type, defaultValue, str) {
if (type === 'number') {
return parseFloat(str)
} else if (type === 'boolean') {
return parseBool(str);
} else if( Object.prototype.toString.call(defaultValue) === '[object Array]' ) {
// Array
var arr = str.split(',');
for (var i = 0; i < arr.length; i++) {
arr[i] = arr[i].trim();
}
return arr;
} else {
return str;
}
}
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
module.exports = Environment;
| 23.279661 | 111 | 0.522206 |
61379062a8f33fdc0b5677e3e857dae7fe69d98e | 7,063 | js | JavaScript | js/rogue-bomber.js | shybovycha/shybovycha.github.io | 879162c5b6e00c92eb3a7f661e09dbf671237068 | [
"MIT"
] | null | null | null | js/rogue-bomber.js | shybovycha/shybovycha.github.io | 879162c5b6e00c92eb3a7f661e09dbf671237068 | [
"MIT"
] | 7 | 2020-08-02T09:31:23.000Z | 2022-03-14T22:40:34.000Z | js/rogue-bomber.js | shybovycha/shybovycha.github.io | 879162c5b6e00c92eb3a7f661e09dbf671237068 | [
"MIT"
] | null | null | null | const __startRogueBomber=t=>{const e=t.getContext("2d");e.font="24px courier new";const o=e.measureText("X").width,i=30*o,n=Symbol(0),l=Symbol(1),s=Symbol(2),r=Symbol(3),a=Symbol(4),y=Symbol(5),c=Symbol(6),f=Symbol(7),x=Symbol(8),p=Symbol(9),b=Symbol("ò+1"),m=Symbol("ò+2"),h=Symbol("!+1"),d=Symbol("!+2"),u=Symbol("++1"),v=Symbol("++2"),S=[b,h,u],g=Symbol("l"),w=Symbol("b"),T=Symbol("B"),M=Symbol("i@i"),E=[g],I={[n]:[".","#b3b3b3"],[l]:["#","#a2a2a2"],[s]:["▒","#b76014"],[r]:["@","#000"],[a]:["ó","#000"],[y]:["Ó","#000"],[c]:["*","#ff8920"],[f]:[">","#bebebe"],[x]:[">","#0bacac"],[p]:[">","#2edfdf"],[g]:["l","#fbc546"],[w]:["b","#b05d13"],[T]:["B","#e8c129"],[M]:["@","#c7eeea"],[b]:["ò","#0bacac"],[m]:["ò","#2edfdf"],[h]:["!","#fbb40c"],[d]:["!","#f7c142"],[u]:["+","#307907"],[v]:["+","#52d508"]},_=[],k=11*(o+0)+i;t.style.width=`${k}px`,t.style.height="368px",t.style.overflow="hidden;",t.width=k,t.height=368;const A={position:{x:1,y:1},attributes:{hp:3,speed:1,bombs:10,fires:1,invincible:!1}},$={position:{x:-1,y:-1}};let R={timers:new Set,intervals:new Set,explosionTimers:new Set};const B=new Set,L=new Set,z={[g]:700,[w]:200,[T]:400},C=()=>{if(!0!==A.attributes.invincible&&(A.attributes.hp--,A.attributes.hp>0)){A.attributes.invincible=!0;const t=setInterval(()=>{H(A.position.x,A.position.y,M)},200);setTimeout(()=>{A.attributes.invincible=!1,clearInterval(t)},2e3)}},V={[g]:t=>{const{position:{x:e,y:o},destination:i,path:l}=t;if(i&&(e!==i.x||o!==i.y)&&l.length){const{x:i,y:s}=l.pop();if(A.position.x===e&&A.position.y===o&&C(),_[i][s]===n)return t.position={x:i,y:s},void J()}const s=[];for(let t of _)s.push(t.map(t=>t!==n?Number.MAX_VALUE:0));s[e][o]=1;const r=[],a=[{x:e,y:o}];let y=0;for(;a.length>0;){const{x:t,y:e}=a.pop();r.push({x:t,y:e}),y=Math.max(s[t][e],y),t-1>-1&&0===s[t-1][e]&&(s[t-1][e]=s[t][e]+1,a.unshift({x:t-1,y:e})),t+1<s.length&&0===s[t+1][e]&&(s[t+1][e]=s[t][e]+1,a.unshift({x:t+1,y:e})),e-1>-1&&0===s[t][e-1]&&(s[t][e-1]=s[t][e]+1,a.unshift({x:t,y:e-1})),e+1<s[0].length&&0===s[t][e+1]&&(s[t][e+1]=s[t][e]+1,a.unshift({x:t,y:e+1}))}const{x:c,y:f}=r.find(({x:t,y:e})=>s[t][e]===y),x=[{x:c,y:f}];let p={...x[x.length-1]};for(;s[p.x][p.y]>1;){const t=s[p.x][p.y]-1;if(p.x-1>-1&&s[p.x-1][p.y]===t)x.push({x:p.x-1,y:p.y});else if(p.x+1<s.length&&s[p.x+1][p.y]===t)x.push({x:p.x+1,y:p.y});else if(p.y-1>-1&&s[p.x][p.y-1]===t)x.push({x:p.x,y:p.y-1});else{if(!(p.y+1<s[0].length&&s[p.x][p.y+1]===t)){console.error("pathfinding error ¯\\_(ツ)_/¯");break}x.push({x:p.x,y:p.y+1})}p={...x[x.length-1]}}x.pop(),t.destination={x:c,y:f},t.path=x},[w]:t=>{},[T]:t=>{}},X=(t,e,o)=>{const i={position:{x:t,y:e},type:o},n=setInterval(V[o].bind(null,i),z[o]);i.interval=n,L.add(i)},j=(t,e,o)=>{const i={position:{x:t,y:e},type:o,revealed:!1};i.reveal=(()=>{const n=setTimeout(()=>{const n=setInterval(()=>{H(t,e,{[h]:d,[d]:h,[b]:m,[m]:h,[u]:v,[v]:u}[o])},200);i.interval=n},3e3),l=setTimeout(()=>{N(i)},5e3);i.timer1=n,i.timer2=l,i.revealed=!0}),B.add(i)},G=(t,e)=>{A.position={x:1,y:1},R.timers.forEach(t=>clearTimeout(t)),R.intervals.forEach(t=>clearInterval(t)),R.explosionTimers.forEach(t=>clearTimeout(t)),R.timers.clear(),R.intervals.clear(),R.explosionTimers.clear();let o=0;for(let i=0;i<t;++i){_[i]=[];for(let s=0;s<e;++s)0===i||0===s||i===t-1||s===e-1||i%2==0&&s%2==0?_[i][s]=l:(_[i][s]=n,++o)}$.position={x:-1,y:-1};const i=Math.floor(o/3)+Math.floor(100*Math.random())%(o/3),r=1+Math.floor(10*Math.random())%5;let a=0;for(;a<i;){const o=Math.floor(100*Math.random())%t,i=Math.floor(100*Math.random())%e;_[o][i]!=l&&(1==o&&1==i||2==o&&1==i||1==o&&2==i||(L.size<r?X(o,i,E[Math.floor(100*Math.random())%E.length]):Array.from(L).find(({position:{x:t,y:e}})=>o===t&&i===e)||(-1!==$.position.x&&-1!==$.position.y||($.position={x:o,y:i}),Math.floor(100*Math.random())%2!=0||Array.from(B).find(({position:{x:t,y:e}})=>o===t&&i===e)||j(o,i,S[Math.floor(100*Math.random())%S.length]),_[o][i]=s,++a)))}},N=t=>{const{timer1:e,timer2:o,interval:i,type:n}=t;clearTimeout(e),clearTimeout(o),clearInterval(i),B.delete(t)},O=(t,e)=>{let{position:{x:o,y:i}}=A;o+=t,i+=e,Array.from(L).find(({position:{x:t,y:e}})=>t===o&&e===i)&&C();const n=Array.from(B).find(({position:{x:t,y:e}})=>t===o&&e===i);n&&(t=>{N(t);const{type:e}=t;e===b||e===m?A.attributes.bombs++:e===h||e===d?A.attributes.fires++:e!==u&&e!==v||A.attributes.hp++})(n);const r=_[o][i];if(r===x||r===p)return G(15,11),void J();[s,l,a,y].includes(r)||(A.position={x:o,y:i})},U=(t,e)=>{const o=[s,a,y,c],{fires:i}=A.attributes,r=[{x:t,y:e}];for(let n=t-1;n>-1&&n>t-1-i&&_[n][e]!==l&&(r.push({x:n,y:e}),!o.includes(_[n][e]));--n);for(let n=t+1;n<_.length&&n<t+1+i&&_[n][e]!==l&&(r.push({x:n,y:e}),!o.includes(_[n][e]));++n);for(let n=e-1;n>-1&&n>e-1-i&&_[t][n]!==l&&(r.push({x:t,y:n}),!o.includes(_[t][n]));--n);for(let n=e+1;n<_[0].length&&n<e+1+i&&_[t][n]!==l&&(r.push({x:t,y:n}),!o.includes(_[t][n]));++n);for(let{x:t,y:e}of r){for(let o of L){const{position:{x:i,y:n},interval:l}=o;i===t&&n===e&&(clearInterval(o.interval),L.delete(o))}A.position.x===t&&A.position.y===e&&C();for(let o of B){const{position:{x:i,y:n},reveal:l}=o;i===t&&n===e&&(_[t][e]===s?l.call(null):N(o))}_[t][e]=c,_[t][e]!==a&&_[t][e]!==y||U(t,e)}J();const b=setTimeout(()=>{R.explosionTimers.delete(b);for(let{x:t,y:e}of r)if(t===$.position.x&&e===$.position.y){_[t][e]=f;setInterval(()=>{if(L.size>0)return;const t=_[$.position.x][$.position.y];_[$.position.x][$.position.y]=t===x?p:x},150)}else _[t][e]=n;J()},600);R.explosionTimers.add(b)},q=t=>{const e={72:()=>O(0,-1),74:()=>O(1,0),75:()=>O(-1,0),76:()=>O(0,1),66:()=>(()=>{const{position:{x:t,y:e},attributes:{bombs:o}}=A;if(R.timers.size>=o)return;_[t][e]=a;let i=a;const n=setInterval(()=>{i=i===a?y:a,_[t][e]=i,J()},700),l=setTimeout(()=>{U(t,e),clearInterval(n),R.intervals.delete(n),R.timers.delete(l)},4100);R.intervals.add(n),R.timers.add(l)})()}[t.keyCode];e&&(e.call(null),J())},D=()=>{A.attributes.hp<=0&&(F(),t.parentElement.removeChild(t))},F=()=>{document.removeEventListener("keydown",q)},H=(t,i,n)=>{const[l,s]=I[n];e.clearRect(i*(o+0),23*t,o+0,23),e.font="24px courier new",e.fillStyle=s,e.fillText(l,i*(o+0),23*(t+1))},J=()=>{if(e.clearRect(0,0,k,368),A.attributes.hp<1)(()=>{e.fillStyle="black",e.font="48px courier new";const t=["GAME OVER","---------","click to close"];for(let o=0;o<t.length;++o){const i=t[o],n=e.measureText(i).width;e.fillText(i,k/2-n/2,184+24*o)}})();else{for(let t=0;t<_.length;++t)for(let e=0;e<_[t].length;++e)H(t,e,_[t][e]);H(A.position.x,A.position.y,r);for(const{position:{x:t,y:e},type:o}of L)H(t,e,o);for(const{position:{x:t,y:e},type:o,revealed:i}of B)i&&H(t,e,o);(()=>{e.font="24px courier new",e.fillStyle="#000";const t=[`${I[b][0]} x ${A.attributes.bombs}`,`${I[h][0]} x ${A.attributes.fires}`,`${I[u][0]} x ${A.attributes.hp}`,"-----------","h/l - left/right","j/k - down/up","b - place bomb"];for(let i=0;i<t.length;++i)e.fillText(t[i],(_[0].length+3)*o,24*(2+i))})()}};G(15,11),document.addEventListener("keydown",q),t.addEventListener("click",D),J()};window.__startRogueBomber=__startRogueBomber; | 7,063 | 7,063 | 0.571287 |
6137f3917d2308e0f697b1a85379cbea76f59c2d | 1,966 | js | JavaScript | Build4InformalSector'20/on-lending + access to credit/fundMyFarm/Project/fundmyfarm_client/src/lender/components/Navbar.js | techrityorg/Build4SocialGood | 44eb420b744a1eaa3a87d722fafc2cbd4a36928d | [
"MIT"
] | 1 | 2020-12-27T14:57:39.000Z | 2020-12-27T14:57:39.000Z | Build4InformalSector'20/on-lending + access to credit/fundMyFarm/Project/fundmyfarm_client/src/lender/components/Navbar.js | techrityorg/Build4SocialGood | 44eb420b744a1eaa3a87d722fafc2cbd4a36928d | [
"MIT"
] | 4 | 2020-12-01T02:31:51.000Z | 2020-12-28T06:14:14.000Z | Build4InformalSector'20/on-lending + access to credit/fundMyFarm/Project/fundmyfarm_client/src/lender/components/Navbar.js | techrityorg/Build4SocialGood | 44eb420b744a1eaa3a87d722fafc2cbd4a36928d | [
"MIT"
] | 10 | 2020-12-17T13:06:04.000Z | 2021-02-20T13:59:52.000Z | import React from "react";
import { Link } from "react-router-dom";
import Logo from "../../assets/logo.png";
import "./Navbar.css";
function Navbar() {
return (
<nav class="navbar navbar-expand-lg navbar-light px-0">
<div className="nav-container container-fluid">
<Link class="navbar-brand" to="/lender/overview">
<img src={Logo} alt="Fundmyfarm logo" />
</Link>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a href="" className="nav-link">
Lend
</a>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">
Action
</a>
<a class="dropdown-item" href="#">
Another action
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">
Something else here
</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
);
}
export default Navbar;
| 29.787879 | 74 | 0.474059 |
6138316d5792e01b8da482b2c12bc4be737d6c01 | 1,257 | js | JavaScript | build/tasks/watch.js | MarvelousSoftware/marvelous-aurelia-docs | 33f83550a7b1f40c150700c4866c5ff5fba1ba29 | [
"MIT"
] | 2 | 2016-03-04T18:17:30.000Z | 2016-03-05T15:08:47.000Z | build/tasks/watch.js | MarvelousSoftware/marvelous-aurelia-docs | 33f83550a7b1f40c150700c4866c5ff5fba1ba29 | [
"MIT"
] | 1 | 2017-05-09T23:27:10.000Z | 2017-05-10T18:55:12.000Z | build/tasks/watch.js | MarvelousSoftware/marvelous-aurelia-docs | 33f83550a7b1f40c150700c4866c5ff5fba1ba29 | [
"MIT"
] | null | null | null | var gulp = require('gulp');
var paths = require('../paths');
var browserSync = require('browser-sync');
var runSequence = require('run-sequence');
// outputs changes to files to the console
function reportChange(event) {
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
}
gulp.task('watch', ['serve'], function (callback) {
return runSequence(
'clean-internal-dependencies',
'copy-internal-dependencies',
'build',
'watch-for-local-changes',
'watch-for-external-changes',
callback
);
});
gulp.task('watch-for-external-changes', function () {
return gulp.watch(paths.deps.watch, ['copy-internal-dependencies', browserSync.reload]).on('change', reportChange);
});
gulp.task('watch-for-local-changes', function () {
gulp.watch(paths.source, ['build-system', 'copy-typescript', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.html, ['build-html', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.sass, ['build-sass', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.md, ['copy-markdown', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.csharp, ['copy-csharp', browserSync.reload]).on('change', reportChange);
}); | 39.28125 | 117 | 0.692124 |
61385277304198853a0e9dd42d08d1992005069a | 5,317 | js | JavaScript | modules/nuclide-commons-ui/observeStalls.js | chrisdrackett/atom-ide-ui | 9c79be68c7ea68c2bff1974fd7b6404adb80de4b | [
"BSD-3-Clause"
] | 988 | 2017-09-06T22:43:58.000Z | 2018-12-10T14:56:07.000Z | modules/nuclide-commons-ui/observeStalls.js | UPaul009/atom-ide-ui | 710f8477607d3788aeadcbdd55079925241ce40d | [
"BSD-3-Clause"
] | 313 | 2017-09-12T20:55:37.000Z | 2018-12-05T11:15:30.000Z | modules/nuclide-commons-ui/observeStalls.js | UPaul009/atom-ide-ui | 710f8477607d3788aeadcbdd55079925241ce40d | [
"BSD-3-Clause"
] | 100 | 2017-09-12T20:03:09.000Z | 2018-11-07T12:29:39.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow strict-local
* @format
*/
/* eslint-env browser */
import invariant from 'assert';
import getDisplayName from 'nuclide-commons/getDisplayName';
import {remote} from 'electron';
import {Observable} from 'rxjs';
import {PerformanceObservable} from './observable-dom';
import UniversalDisposable from 'nuclide-commons/UniversalDisposable';
import once from 'nuclide-commons/once';
invariant(remote != null);
// The startup period naturally causes many event loop blockages.
// Don't start checking blockages until some time has passed.
const BLOCKED_GRACE_PERIOD = 30;
// Report all blockages over this threshold.
const BLOCKED_MIN = 100;
// Discard overly long blockages as spurious (e.g. computer was asleep)
const BLOCKED_MAX = 60 * 1000; // 1 minute in ms
// Range padding on either side of long task interval.
// If an intentional block timestamp lies in this range,
// we consider it intentional.
const BLOCKED_RANGE_PADDING = 15;
let intentionalBlockTime = 0;
// Share + cache the observable.
// $FlowFixMe (>=0.85.0) (T35986896) Flow upgrade suppress
const observeStalls = once(
(): Observable<number> => {
const browserWindow = remote.getCurrentWindow();
const onIntentionalBlock = () => {
intentionalBlockTime = performance.now();
};
const blockedEvents = new PerformanceObservable({entryTypes: ['longtask']})
.flattenEntries()
// only count if the window is focused when the task ran long
.filter(() => document.hasFocus())
// discard early longtasks as the app is booting
.filter(() => process.uptime() > BLOCKED_GRACE_PERIOD)
// discard durations that are unrealistically long, or those that aren't
// meaningful enough
.filter(
entry => entry.duration > BLOCKED_MIN && entry.duration < BLOCKED_MAX,
)
// discard events that result from user interaction actually blocking the
// thread when there is no other option (e.g. context menus)
.filter(
entry =>
// did the intentionalblocktime occur between the start and end,
// accounting for some extra padding?
!(
intentionalBlockTime > entry.startTime - BLOCKED_RANGE_PADDING &&
intentionalBlockTime <
entry.startTime + entry.duration + BLOCKED_RANGE_PADDING
),
);
return Observable.using(
() =>
new UniversalDisposable(
// Confirmation dialogs also block the event loop.
// This typically happens when you're about to close an unsaved file.
atom.workspace.onWillDestroyPaneItem(onIntentionalBlock),
// Electron context menus block the event loop.
Observable.fromEvent(browserWindow, 'context-menu')
// There appears to be an race with browser window shutdown where
// the 'context-menu' event fires after window destruction.
// Try to prevent this by removing the event on close.
// https://github.com/facebook/nuclide/issues/1246
.takeUntil(Observable.fromEvent(browserWindow, 'close'))
.subscribe(onIntentionalBlock),
),
() => {
return Observable.merge(
// kick off subscription with a one-time query on start
Observable.of(document.hasFocus()),
Observable.fromEvent(browserWindow, 'focus').mapTo(true),
Observable.fromEvent(browserWindow, 'blur').mapTo(false),
)
.distinctUntilChanged()
.switchMap(
isFocused => (isFocused ? blockedEvents : Observable.empty()),
)
.map(entry => entry.duration);
},
).share();
},
);
export default observeStalls;
/*
* Often times users take an action and can resonably expect a long, blocking task
* to run to completion before they can take action again:
* https://developers.google.com/web/fundamentals/performance/rail#ux
* This is analagous to a web page or app's initial loading, transitioning to
* another significant view, etc.
*
* This is a decorator that wraps a function that pauses in response to user action,
* opting it out of stall observation and forwarding any arguments passed and returning
* the original function's return value.
*
* **Use this cautiously and deliberately, only in situations where it is
* reasonable for a user to expect a pause!**
*
* If the action takes longer than 1s, we still record this as a stall, as it
* fails the RAIL model's definition of responsive loading.
*/
export function intentionallyBlocksInResponseToUserAction<T, U>(
fn: (...args: Array<T>) => U,
): (...args: Array<T>) => U {
const intentionallyBlocks = function(...args: Array<T>) {
const before = performance.now();
const ret = fn.apply(this, args);
if (performance.now() - before < 1000) {
intentionalBlockTime = before;
}
return ret;
};
intentionallyBlocks.displayName = `intentionallyBlocks(${getDisplayName(
fn,
)})`;
return intentionallyBlocks;
}
| 37.181818 | 87 | 0.679707 |
6138ae45472057c88193e1232599e390cbede749 | 1,041 | js | JavaScript | rs.js | swalkinshaw/rs-ssh | 9375e985b303c847fecc1a3eaa955f30e60d5367 | [
"BSD-3-Clause"
] | 4 | 2015-10-27T02:03:13.000Z | 2016-08-22T09:41:39.000Z | rs.js | swalkinshaw/rs-ssh | 9375e985b303c847fecc1a3eaa955f30e60d5367 | [
"BSD-3-Clause"
] | null | null | null | rs.js | swalkinshaw/rs-ssh | 9375e985b303c847fecc1a3eaa955f30e60d5367 | [
"BSD-3-Clause"
] | null | null | null | (function() {
var address, dom_check, dom_ref, init, replace_ssh_event_handler, retry_rate, setup, ssh_button, username, __;
__ = Zepto;
username = 'root';
address = 'td[data-column_name="Public DNS"] a';
ssh_button = 'a[href*="managed_ssh"]';
dom_ref = '.icon_ssh';
retry_rate = 100;
dom_check = function() {
return __(dom_ref).length;
};
setup = function() {
replace_ssh_event_handler();
return __('body').on('DOMNodeInserted', function(e) {
if (dom_check()) return replace_ssh_event_handler();
});
};
replace_ssh_event_handler = function() {
__(ssh_button).removeAttr('data-behaves');
return __('body').on('click', ssh_button, function(e) {
var host;
host = __(this).closest('tr').find(address).text().trim();
window.location = "ssh://" + username + "@" + host;
return false;
});
};
init = function() {
if (dom_check()) {
return setup();
} else {
return setTimeout(init, retry_rate);
}
};
init();
}).call(this);
| 21.6875 | 112 | 0.605187 |
6138f67e476652729017f4a760a62b6b717c7c3e | 29,032 | js | JavaScript | SunBible_wallpaper_img/sw.js | the-sunshining/SunBible_IMG_Library | 6e5806776262cb9c9f0d71fe0b446e9b5541b4b8 | [
"MIT"
] | 1 | 2020-10-01T16:44:45.000Z | 2020-10-01T16:44:45.000Z | SunBible_wallpaper_img/sw.js | the-sunshining/SunBible_IMG_Library | 6e5806776262cb9c9f0d71fe0b446e9b5541b4b8 | [
"MIT"
] | null | null | null | SunBible_wallpaper_img/sw.js | the-sunshining/SunBible_IMG_Library | 6e5806776262cb9c9f0d71fe0b446e9b5541b4b8 | [
"MIT"
] | null | null | null | /*
*
* Copyright 2020 The SunShining All rights reserved.
*
*/
const version = "0.1.04";
const cacheName = 'img-${version}';
self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName).then(cache => {
return cache.addAll([
'/SunBible_IMG_Library/SunBible_wallpaper_img/css/app.css',
'/SunBible_IMG_Library/SunBible_wallpaper_img/css/splash.css',
'/SunBible_IMG_Library/SunBible_wallpaper_img/css/wallpaper.css',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/W.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/wallpaper.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/js/jquery-3.5.1.min.js',
'/SunBible_IMG_Library/SunBible_wallpaper_img/js/app.js',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/Genesis27_28.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/Joshua24_15.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/1_Chronicles4_9-10.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/Isaiah40_28.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/img/John3_16.png',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_1.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_2.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_3.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_4.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_5.jpg',
'/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm1/Psalm1_6.jpg',
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_11-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_2-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_9-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm2/Psalm2_8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm3/Psalm3_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm3/Psalm3_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm3/Psalm3_5-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm3/Psalm3_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm3/Psalm3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm4/Psalm4_8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm5/Psalm5_11-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm5/Psalm5_4-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm5/Psalm5_9-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm5/Psalm5_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm5/Psalm5_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm6/Psalm6_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_10-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_3-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_12-16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_17.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm7/Psalm7_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm8/Psalm8_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm8/Psalm8_2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm8/Psalm8_3-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm8/Psalm8_9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/Psalm8/Psalm8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_10-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_15-16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_3-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_17-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_13-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_19-20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm9_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_12-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_14-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_17-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm10_4-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm11/Psalm11_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm11/Psalm11_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm11/Psalm11_5-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm11/Psalm11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12_5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12_6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm12/Psalm12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm13/Psalm13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm14/Psalm14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm15/Psalm15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16_2-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16_8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16_5-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm16/Psalm16_9-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_10-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_13-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_3-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm17/Psalm17_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_13-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_20-24.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_35-39.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_4-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_25-30.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_40-45.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_9-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_16-19.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_31-34.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm18/Psalm18_46-50.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm19/Psalm19.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm20/Psalm20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm21/Psalm21.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_19-22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_29-31.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_12-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_23-25.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_3-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_26-28.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm22/Psalm22_6-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm23/Psalm23.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm24/Psalm24.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_15-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_12-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_19-21.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm25/Psalm25_8-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm26/Psalm26.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_7-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_11-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm27/Psalm27_4-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm28/Psalm28_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm28/Psalm28_3-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm28/Psalm28_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm28/Psalm28_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm29/Psalm29_10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm29/Psalm29_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm29/Psalm29_7-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm29/Psalm29_11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm29/Psalm29_3-6.png",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_10-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_2-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm30/Psalm30_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_11-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_19-20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_24.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_9-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_21.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_4-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_15-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_22-23.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm31/Psalm31_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_10-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm32/Psalm32_8-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_10-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_20-22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_16-17.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_13-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_18-19.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm33/Psalm33_6-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_11-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_19-20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_21-22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_17.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm34/Psalm34_7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm35/Psalm35_1-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm35/Psalm35_11-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm35/Psalm35_19-28.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm36/Psalm36_10-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm36/Psalm36_1-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm36/Psalm36_5-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_14-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_17-20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_29-33.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_5-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_1-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_21-24.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_34-36.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_9-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_25-28.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm37/Psalm37_37-40.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_11-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_15-18.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_5-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_1-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_19-22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm38/Psalm38_9-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm39/Psalm39_12-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm39/Psalm39_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm39/Psalm39_8-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm39/Psalm39_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm39/Psalm39_5-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_11-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_14-16.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_17.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm40/Psalm40_6-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm41/Psalm41_11-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm41/Psalm41_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm41/Psalm41_4-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm41/Psalm41_7-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm42/Psalm42.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm42/Psalm42_with_n.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm43/Psalm43.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm43/Psalm43_with_n.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_20-22.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_4-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_15-19.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_23-26.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_6-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm44/Psalm44_9-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_13-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_1.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_3-4.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_16-17.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_5-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm45/Psalm45_9-12.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm46/Psalm46_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm46/Psalm46_4-7.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm46/Psalm46_8-11.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm47/Psalm47_1-4.png",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm47/Psalm47_5-9.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm48/Psalm48_1-3.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm48/Psalm48_4-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm48/Psalm48_7-8.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm48/Psalm48_9-14.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm49/Psalm49_11-13.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm49/Psalm49_1-5.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm49/Psalm49_6-10.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm49/Psalm49_14-15.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm49/Psalm49_16-20.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm50/Psalm50_11-23.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm50/Psalm50_1-2.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm50/Psalm50_3-6.jpg",
"/SunBible_IMG_Library/SunBible_wallpaper_img/Psalm_Slides/PsalmPsalm10/Psalm50/Psalm50_7-10.jpg",
])
.then(() => self.skipWaiting());
})
);
});
self.addEventListener('activate', event => {
event.waitUntil(self.clients.claim());
});
self.addEventListener('fetch', event => {
event.respondWith(
caches.open(cacheName)
.then(cache => cache.match(event.request, {ignoreSearch: true}))
.then(response => {
return response || fetch(event.request);
})
);
}); | 78.464865 | 108 | 0.80239 |
6139e12f98cc23ed3e77bb1e0065692240b07696 | 3,383 | js | JavaScript | src/components/LabStaff/LabTestReports/LabTestReports.js | CSE-545-Secure-Hospital-System/Secure-Hospital-System-FE | 4dc718fa410d2e9ce9c073c8529906e304f527e6 | [
"Apache-2.0"
] | null | null | null | src/components/LabStaff/LabTestReports/LabTestReports.js | CSE-545-Secure-Hospital-System/Secure-Hospital-System-FE | 4dc718fa410d2e9ce9c073c8529906e304f527e6 | [
"Apache-2.0"
] | 1 | 2022-03-09T00:59:19.000Z | 2022-03-09T00:59:19.000Z | src/components/LabStaff/LabTestReports/LabTestReports.js | CSE-545-Secure-Hospital-System/Secure-Hospital-System-FE | 4dc718fa410d2e9ce9c073c8529906e304f527e6 | [
"Apache-2.0"
] | null | null | null | import React, { useEffect, useMemo, useState } from "react";
import Table from "../../Table/table.js";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate } from "react-router-dom";
import { Container } from "react-bootstrap";
import { getAllLabReports } from "../../../services/LabReports.services.js";
const LabTestReports = (props) => {
const [data, setData] = useState({ query: "" });
const [labTests, setLabTests] = useState(null);
const [rowData, setRowData] = useState([]);
const [tableData, setTableData] = useState([])
const editableUserInfo = useSelector((state) => state.editableUser);
const user = useSelector((state) => state.user);
const dispatch = useDispatch();
let navigate = useNavigate();
const deleteOnClick = (rowInfo) => {};
const updateReport = (e) => {
navigate("/updateLabTestReport", {state: { report: e}});
};
const viewUser = (e) => {
}
useEffect(() => {
getAllLabReports().then(resp => {
setLabTests(resp.labTest);
const reports = [];
resp.labReports.forEach(report => {
const rep = {...report}
rep['labTestId'] = resp.labTest[report.labTestId].id;
rep['labTestName'] = resp.labTest[report.labTestId].labTestName;
rep['labTestCost'] = resp.labTest[report.labTestId].labTestCost;
reports.push(rep);
});
setTableData(reports);
});
}, []);
const columns = useMemo(() => [
{
Header: "Report ID",
accessor: "id",
},
{
Header: "Patient Name",
accessor: "patientName",
},
{
Header: "Doctor Name",
accessor: "doctorName",
},
{
Header: "Staff Name",
accessor: "labStaffName",
},
{
Header: "LabStaff Notes",
accessor: "labStaffNotes",
},
{
Header: "Test Id",
accessor: "labTestId",
},
{
Header: "Test Name",
accessor: "labTestName",
},
{
Header: "Fee",
accessor: "labTestCost",
},
{
Header: "Result",
accessor: "result",
},
{
Header: "Status",
accessor: "labResultStatus",
},
{
Header: "Manage Reports",
accessor: "manage",
Cell: ({ cell }) => (
user.userData.user.roles[0].role=="LAB_STAFF" && <div>
<button id="Update" disabled={cell.row.values.labResultStatus == "DIAGNOSIED"} onClick={() => updateReport(cell.row.values)}>
{ "Update & Submit"}
</button>
</div>
),
},
]);
return (
<Container>
<h3>Lab Test Reports</h3>
<div>
{/* <form onSubmit={handleSubmit}>
<div className="form-group">
<br />
<input
type="string"
className="form-control"
placeholder="Search"
id="query"
value={data.query}
/>
</div>
<br />
<button type="submit" className="btn btn-dark btn-lg btn-block">
Search
</button>
</form> */}
<br />
</div>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}>
<Table columns={columns} data={tableData} />
</div>
<br />
<br />
<br />
</Container>
);
};
export default LabTestReports;
| 25.059259 | 135 | 0.530299 |
613ae099742ebadfa127b19b88a5be10214be176 | 10,182 | js | JavaScript | tests/unit/index-unit-test.js | carlnordenfelt/lulo-plugin-sns-platform-application | 35c6ab5fd00f5efc6a860661e743932539712108 | [
"MIT"
] | null | null | null | tests/unit/index-unit-test.js | carlnordenfelt/lulo-plugin-sns-platform-application | 35c6ab5fd00f5efc6a860661e743932539712108 | [
"MIT"
] | null | null | null | tests/unit/index-unit-test.js | carlnordenfelt/lulo-plugin-sns-platform-application | 35c6ab5fd00f5efc6a860661e743932539712108 | [
"MIT"
] | null | null | null | 'use strict';
var expect = require('chai').expect;
var mockery = require('mockery');
var sinon = require('sinon');
describe('Index unit tests', function () {
var subject;
var createPlatformApplicationStub = sinon.stub();
var deletePlatformApplicationStub = sinon.stub();
var setPlatformApplicationAttributesStub = sinon.stub();
var event;
before(function () {
mockery.enable({
useCleanCache: true,
warnOnUnregistered: false
});
var awsSdkStub = {
SNS: function () {
this.createPlatformApplication = createPlatformApplicationStub;
this.deletePlatformApplication = deletePlatformApplicationStub;
this.setPlatformApplicationAttributes = setPlatformApplicationAttributesStub;
}
};
mockery.registerMock('aws-sdk', awsSdkStub);
subject = require('../../src/index');
});
beforeEach(function () {
createPlatformApplicationStub.reset().resetBehavior();
createPlatformApplicationStub.yields(undefined, { PlatformApplicationArn: 'Arn' });
deletePlatformApplicationStub.reset().resetBehavior();
deletePlatformApplicationStub.yields();
setPlatformApplicationAttributesStub.reset().resetBehavior();
setPlatformApplicationAttributesStub.yields(undefined);
event = {
ResourceProperties: {
Attributes: {},
Platform: 'Platform',
Name: 'Name'
}
};
});
after(function () {
mockery.deregisterAll();
mockery.disable();
});
describe('validate', function () {
it('should succeed', function (done) {
subject.validate(event);
done();
});
it('should fail if Attributes is not set', function (done) {
delete event.ResourceProperties.Attributes;
function fn () {
subject.validate(event);
}
expect(fn).to.throw(/Missing required property Attributes/);
done();
});
it('should fail if Name is not set', function (done) {
delete event.ResourceProperties.Name;
function fn () {
subject.validate(event);
}
expect(fn).to.throw(/Missing required property Name/);
done();
});
it('should fail if Platform is not set', function (done) {
delete event.ResourceProperties.Platform;
function fn () {
subject.validate(event);
}
expect(fn).to.throw(/Missing required property Platform/);
done();
});
});
describe('create', function () {
it('should succeed', function (done) {
event.ResourceProperties.Platform = 'APNS_SANDBOX';
event.ResourceProperties.Attributes = {
PlatformCredential: 'some text',
PlatformPrincipal: 'some text'
};
subject.create(event, {}, function (error, response) {
expect(error).to.equal(null);
expect(createPlatformApplicationStub.calledOnce).to.equal(true);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
expect(response.physicalResourceId).to.equal('Arn');
done();
});
});
it('should fail due to createPlatformApplication error', function (done) {
createPlatformApplicationStub.yields('createPlatformApplication');
subject.create(event, {}, function (error, response) {
expect(error).to.equal('createPlatformApplication');
expect(createPlatformApplicationStub.calledOnce).to.equal(true);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
expect(response).to.equal(undefined);
done();
});
});
});
describe('update', function () {
var updateEvent;
beforeEach(function () {
updateEvent = JSON.parse(JSON.stringify(event));
updateEvent.OldResourceProperties = JSON.parse(JSON.stringify(updateEvent.ResourceProperties));
updateEvent.PhysicalResourceId = 'arn:aws:sns:eu-west-1:1234567890:app/test/test';
});
it('should succeed', function (done) {
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal(undefined);
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.calledOnce).to.equal(true);
done();
});
});
it('should succeed with APNS platform', function (done) {
updateEvent.ResourceProperties.Platform = 'APNS';
updateEvent.OldResourceProperties.Platform = 'APNS';
updateEvent.ResourceProperties.Attributes = {
PlatformCredential: 'some text',
PlatformPrincipal: 'some text'
};
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal(undefined);
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.calledOnce).to.equal(true);
done();
});
});
it('should fail on error', function (done) {
setPlatformApplicationAttributesStub.yields('setPlatformApplicationAttributes');
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal('setPlatformApplicationAttributes');
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.calledOnce).to.equal(true);
done();
});
});
it('should succeed with replace', function (done) {
updateEvent.ResourceProperties.Name = 'NewName';
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal(null);
expect(createPlatformApplicationStub.calledOnce).to.equal(true);
expect(deletePlatformApplicationStub.calledOnce).to.equal(true);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
done();
});
});
it('should fail on replace with create error', function (done) {
updateEvent.ResourceProperties.Name = 'NewName';
createPlatformApplicationStub.yields('createPlatformApplication');
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal('createPlatformApplication');
expect(createPlatformApplicationStub.calledOnce).to.equal(true);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
done();
});
});
it('should fail on replace with delete error', function (done) {
updateEvent.ResourceProperties.Platform = 'NewPlatform';
deletePlatformApplicationStub.yields('deletePlatformApplication');
subject.update(updateEvent, {}, function (error) {
expect(error).to.equal('deletePlatformApplication');
expect(createPlatformApplicationStub.calledOnce).to.equal(true);
expect(deletePlatformApplicationStub.calledOnce).to.equal(true);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
done();
});
});
});
describe('delete', function () {
it('should succeed', function (done) {
event.PhysicalResourceId = 'arn:aws:sns:eu-west-1:1234567890:app/test/test';
subject.delete(event, {}, function (error, response) {
expect(error).to.equal(undefined);
expect(response).to.equal(undefined);
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.calledOnce).to.equal(true);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
done();
});
});
it('should fail due to deletePreset error', function (done) {
event.PhysicalResourceId = 'arn:aws:sns:eu-west-1:1234567890:app/test/test';
deletePlatformApplicationStub.yields({ code: 'deletePipeline' });
subject.delete(event, {}, function (error, response) {
expect(error.code).to.equal('deletePipeline');
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.calledOnce).to.equal(true);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
expect(response).to.equal(undefined);
done();
});
});
it('should not fail if PhysicalResourceId is not an actual preset id', function (done) {
event.PhysicalResourceId = 'PhysicalResourceId';
subject.delete(event, {}, function (error, response) {
expect(error).to.equal(undefined);
expect(createPlatformApplicationStub.called).to.equal(false);
expect(deletePlatformApplicationStub.called).to.equal(false);
expect(setPlatformApplicationAttributesStub.called).to.equal(false);
expect(response).to.equal(undefined);
done();
});
});
});
});
| 45.253333 | 107 | 0.595266 |
613b30bd1db6c91ea406a7d029a8c9f9f60f7545 | 16,511 | js | JavaScript | o2server/servers/webServer/x_component_Execution/SettingExplorer.min.js | huangxinping/o2oa | 0193f18595e0c5be054c21742b62c8fa477f350f | [
"Apache-2.0"
] | null | null | null | o2server/servers/webServer/x_component_Execution/SettingExplorer.min.js | huangxinping/o2oa | 0193f18595e0c5be054c21742b62c8fa477f350f | [
"Apache-2.0"
] | null | null | null | o2server/servers/webServer/x_component_Execution/SettingExplorer.min.js | huangxinping/o2oa | 0193f18595e0c5be054c21742b62c8fa477f350f | [
"Apache-2.0"
] | null | null | null | MWF.xApplication.Execution=MWF.xApplication.Execution||{},MWF.xDesktop.requireApp("Template","Explorer",null,!1),MWF.xDesktop.requireApp("Template","MPopupForm",null,!1),MWF.require("MWF.widget.Identity",null,!1),MWF.xApplication.Execution.SettingExplorer=new Class({Extends:MWF.widget.Common,Implements:[Options,Events],options:{style:"default"},initialize:function(t,e,i,n){this.setOptions(n),this.app=e,this.lp=e.lp,this.path="../x_component_Execution/$SettingExplorer/",this.loadCss(),this.actions=i,this.node=$(t)},loadCss:function(){this.cssPath="../x_component_Execution/$SettingExplorer/"+this.options.style+"/css.wcss",this._loadCss()},load:function(){this.middleContent=this.app.middleContent,this.createNaviContent(),this.createContentDiv(),this.resizeWindow(),this.app.addEvent("resize",function(){this.resizeWindow()}.bind(this))},resizeWindow:function(){var t=this.app.middleContent.getSize();this.naviDiv.setStyles({height:t.y-40+"px"}),this.naviContentDiv.setStyles({height:t.y-180+"px"}),this.contentDiv.setStyles({height:t.y-40+"px"})},createNaviContent:function(){this.naviDiv=new Element("div.naviDiv",{styles:this.css.naviDiv}).inject(this.middleContent),this.naviTitleDiv=new Element("div.naviTitleDiv",{styles:this.css.naviTitleDiv,text:this.lp.systemSetting}).inject(this.naviDiv),this.naviContentDiv=new Element("div.naviContentDiv",{styles:this.css.naviContentDiv}).inject(this.naviDiv),this.naviBottomDiv=new Element("div.naviBottomDiv",{styles:this.css.naviBottomDiv}).inject(this.naviDiv);var t=this.path+"navi.json";MWF.getJSON(t,function(t){t.each(function(t,e){var i=new Element("li.naviContentLi",{styles:this.css.naviContentLi}).inject(this.naviContentDiv);i.addEvents({mouseover:function(t){this.bindObj.currentNaviItem!=this.node&&this.node.setStyles(this.styles)}.bind({styles:this.css.naviContentLi_over,node:i,bindObj:this}),mouseout:function(t){this.bindObj.currentNaviItem!=this.node&&this.node.setStyles(this.styles)}.bind({styles:this.css.naviContentLi,node:i,bindObj:this}),click:function(t){this.bindObj.currentNaviItem&&this.bindObj.currentNaviItem.setStyles(this.bindObj.css.naviContentLi),this.node.setStyles(this.styles),this.bindObj.currentNaviItem=this.node,this.action&&this.bindObj[this.action]&&this.bindObj[this.action]()}.bind({styles:this.css.naviContentLi_current,node:i,bindObj:this,action:t.action})});new Element("img.naviContentImg",{styles:this.css.naviContentImg,src:"../x_component_Execution/$Main/"+this.options.style+"/icon/"+t.icon}).inject(i),new Element("span.naviContentSpan",{styles:this.css.naviContentSpan,text:t.title}).inject(i);0==e&&i.click()}.bind(this))}.bind(this))},createContentDiv:function(){this.contentDiv=new Element("div.contentDiv",{styles:this.css.contentDiv}).inject(this.middleContent)},openSystemConfig:function(){this.contentDiv&&this.contentDiv.empty(),this.explorer&&(this.explorer.destroy(),delete this.explorer),this.explorer=new MWF.xApplication.Execution.SettingExplorer.SystemConfigExplorer(this.contentDiv,this.app,this,{style:this.options.style}),this.explorer.load()},openSecretarySetting:function(){this.contentDiv&&this.contentDiv.empty(),this.explorer&&(this.explorer.destroy(),delete this.explorer),this.explorer=new MWF.xApplication.Execution.SettingExplorer.SecretarySettingExplorer(this.contentDiv,this.app,this,{style:this.options.style}),this.explorer.load()},openCategorySetting:function(){this.contentDiv&&this.contentDiv.empty(),this.explorer&&(this.explorer.destroy(),delete this.explorer),this.explorer=new MWF.xApplication.Execution.SettingExplorer.CategorySettingExplorer(this.contentDiv,this.app,this,{style:this.options.style}),this.explorer.load()}}),MWF.xApplication.Execution.SettingExplorer.SystemConfigExplorer=new Class({Extends:MWF.widget.Common,Implements:[Options,Events],options:{style:"default"},initialize:function(t,e,i,n){this.container=t,this.parent=i,this.app=e,this.css=this.parent.css,this.lp=this.app.lp},load:function(){this.container.empty(),this.loadView()},destroy:function(){this.resizeWindowFun&&this.app.removeEvent("resize",this.resizeWindowFun),this.view.destroy()},aa:function(){if(d.configValue&&""!=d.configValue)vl="";else{var t=d.configValue.split(",");for(v1="",i=0;i<t.length;i++)""==v1?v1=t[i].split("@")[0]:v1=v1+","+t[i].split("@")[0]}return v1},loadToolbar:function(){this.toolbar=new Element("div",{styles:this.css.toolbar}).inject(this.container),this.createActionNode=new Element("div",{styles:this.css.toolbarActionNode,text:this.lp.createConfig}).inject(this.toolbar),this.createActionNode.addEvent("click",function(){new MWF.xApplication.Execution.SettingExplorer.SystemConfigForm(this,{},{onPostOk:function(){this.view.reload()}.bind(this)}).create()}.bind(this)),this.fileterNode=new Element("div",{styles:this.css.fileterNode}).inject(this.toolbar)},loadView:function(){this.viewContainer=Element("div",{styles:this.css.viewContainer}).inject(this.container),this.resizeWindow(),this.resizeWindowFun=this.resizeWindow.bind(this),this.app.addEvent("resize",this.resizeWindowFun),this.view=new MWF.xApplication.Execution.SettingExplorer.SystemConfigView(this.viewContainer,this.app,this,{templateUrl:this.parent.path+"listItem_config.json",scrollEnable:!0}),this.view.load()},resizeWindow:function(){var t=this.app.content.getSize();this.viewContainer.setStyles({height:t.y-65+"px"})}}),MWF.xApplication.Execution.SettingExplorer.SystemConfigView=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexView,_createDocument:function(t){return new MWF.xApplication.Execution.SettingExplorer.SystemConfigDocument(this.viewNode,t,this.explorer,this)},_getCurrentPageData:function(t,e){e||(e=20),this.actions.listConfigAll(function(e){t&&t(e)}.bind(this))},_removeDocument:function(t,e){this.actions.deleteConfig(t.id,function(t){this.reload(),this.app.notice(this.app.lp.deleteDocumentOK,"success")}.bind(this))},_create:function(){},_openDocument:function(t){new MWF.xApplication.Execution.SettingExplorer.SystemConfigForm(this,t,{onPostOk:function(){this.reload()}.bind(this)}).edit()},_queryCreateViewNode:function(){},_postCreateViewNode:function(t){},_queryCreateViewHead:function(){},_postCreateViewHead:function(t){}}),MWF.xApplication.Execution.SettingExplorer.SystemConfigDocument=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexDocument,_queryCreateDocumentNode:function(t){},_postCreateDocumentNode:function(t,e){}}),MWF.xApplication.Execution.SettingExplorer.SystemConfigForm=new Class({Extends:MPopupForm,Implements:[Options,Events],options:{style:"default",width:"600",height:"290",hasTop:!0,hasIcon:!1,hasTopIcon:!0,hasTopContent:!0,hasBottom:!0,title:MWF.xApplication.Execution.LP.categoryFormTitle,draggable:!0,closeAction:!0},_createTableContent:function(){this.formTableArea.set("html","<table width='100%' bordr='0' cellpadding='5' cellspacing='0' styles='formTable'><tr><td styles='formTableTitle' lable='configName' width='20%'></td> <td styles='formTableValue' item='configName' width='80%'></td></tr><tr><td styles='formTableTitle' lable='configValue'></td> <td styles='formTableValue' item='configValue'></td></tr><tr><td styles='formTableTitle' lable='orderNumber'></td> <td styles='formTableValue' item='orderNumber'></td></tr><tr><td styles='formTableTitle' lable='description'></td> <td styles='formTableValue' item='description'></td></tr></table>");var t={text:this.lp.configValue};t.tType=this.data.valueType,"select"==t.tType?(t.type="select",t.selectValue=this.data.selectContent.split("|")):"identity"==t.tType?(t.type="org",t.orgType="identity",this.data.isMultiple&&(t.count=0)):"workflow"==t.tType&&(t.type="org",t.orgType="process"),MWF.xDesktop.requireApp("Template","MForm",function(){this.form=new MForm(this.formTableArea,this.data,{style:"execution",isEdited:this.isEdited||this.isNew,itemTemplate:{configName:{text:this.lp.configName,type:"innerText"},configValue:t,orderNumber:{text:this.lp.orderNumber,type:"innerText"},description:{text:this.lp.description,type:"innerText"}}},this.app),this.form.load()}.bind(this),!0)},_ok:function(t,e){"workflow"==this.data.valueType&&(this.form.getItem("configValue").orgObject?this.data.configValue=this.form.getItem("configValue").orgObject[0].data.id:this.form.getItem("configValue").dom.orgData?this.data.configValue=this.form.getItem("configValue").dom.orgData[0]:this.data.configValue=""),this.app.restActions.saveConfig(t,function(t){e&&e(t),this.fireEvent("postOk")}.bind(this))}}),MWF.xApplication.Execution.SettingExplorer.SecretarySettingExplorer=new Class({Extends:MWF.widget.Common,Implements:[Options,Events],options:{style:"default"},initialize:function(t,e,i,n){this.container=t,this.parent=i,this.app=e,this.css=this.parent.css,this.lp=this.app.lp},load:function(){this.container.empty(),this.loadToolbar(),this.loadView()},destroy:function(){this.resizeWindowFun&&this.app.removeEvent("resize",this.resizeWindowFun),this.view.destroy()},loadToolbar:function(){this.toolbar=new Element("div",{styles:this.css.toolbar}).inject(this.container),this.createActionNode=new Element("div",{styles:this.css.toolbarActionNode,text:this.lp.createSecretary}).inject(this.toolbar),this.createActionNode.addEvent("click",function(){new MWF.xApplication.Execution.SettingExplorer.SecretarySettingForm(this,{},{onPostOk:function(){this.view.reload()}.bind(this)}).create()}.bind(this)),this.fileterNode=new Element("div",{styles:this.css.fileterNode}).inject(this.toolbar)},loadView:function(){this.viewContainer=Element("div",{styles:this.css.viewContainer}).inject(this.container),this.resizeWindow(),this.resizeWindowFun=this.resizeWindow.bind(this),this.app.addEvent("resize",this.resizeWindowFun),this.view=new MWF.xApplication.Execution.SettingExplorer.SecretarySettingView(this.viewContainer,this.app,this,{templateUrl:this.parent.path+"listItem_secretary.json",scrollEnable:!0}),this.view.load()},resizeWindow:function(){var t=this.app.content.getSize();this.viewContainer.setStyles({height:t.y-121+"px"})}}),MWF.xApplication.Execution.SettingExplorer.SecretarySettingView=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexView,_createDocument:function(t){return new MWF.xApplication.Execution.SettingExplorer.SecretarySettingDocument(this.viewNode,t,this.explorer,this)},_getCurrentPageData:function(t,e){e||(e=20);var i=this.items.length?this.items[this.items.length-1].data.id:"(0)",n=this.filterData||{};this.actions.listSecretaryNext(i,e,n,function(e){t&&t(e)}.bind(this))},_removeDocument:function(t,e){this.actions.deleteSecretary(t.id,function(t){this.reload(),this.app.notice(this.app.lp.deleteDocumentOK,"success")}.bind(this))},_create:function(){},_openDocument:function(t){new MWF.xApplication.Execution.SettingExplorer.SecretarySettingForm(this,t,{onPostOk:function(){this.reload()}.bind(this)}).edit()},_queryCreateViewNode:function(){},_postCreateViewNode:function(t){},_queryCreateViewHead:function(){},_postCreateViewHead:function(t){}}),MWF.xApplication.Execution.SettingExplorer.SecretarySettingDocument=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexDocument,_queryCreateDocumentNode:function(t){},_postCreateDocumentNode:function(t,e){}}),MWF.xApplication.Execution.SettingExplorer.SecretarySettingForm=new Class({Extends:MPopupForm,Implements:[Options,Events],options:{style:"default",width:"600",height:"260",hasTop:!0,hasIcon:!1,hasTopIcon:!0,hasTopContent:!0,hasBottom:!0,title:MWF.xApplication.Execution.LP.secretaryFormTitle,draggable:!0,closeAction:!0},_createTableContent:function(){this.formTableArea.set("html","<table width='100%' bordr='0' cellpadding='5' cellspacing='0' styles='formTable'><tr><td styles='formTableTitle' lable='secretaryIdentity'></td> <td styles='formTableValue' item='secretaryIdentity'></td></tr><tr><td styles='formTableTitle' lable='leaderIdentity'></td> <td styles='formTableValue' item='leaderIdentity'></td></tr><tr><td styles='formTableTitle' lable='description'></td> <td styles='formTableValue' item='description'></td></tr></table>"),MWF.xDesktop.requireApp("Template","MForm",function(){this.form=new MForm(this.formTableArea,this.data,{style:"execution",isEdited:this.isEdited||this.isNew,itemTemplate:{secretaryIdentity:{text:this.lp.secretaryIdentity,type:"org",orgType:"identity",notEmpty:!0},leaderIdentity:{text:this.lp.leaderIdentity,type:"org",orgType:"identity",notEmpty:!0},description:{text:this.lp.description,type:"textarea"}}},this.app),this.form.load()}.bind(this),!0)},_ok:function(t,e){this.app.restActions.saveSecretary(t,function(t){e&&e(t),this.fireEvent("postOk")}.bind(this))}}),MWF.xApplication.Execution.SettingExplorer.CategorySettingExplorer=new Class({Extends:MWF.widget.Common,Implements:[Options,Events],options:{style:"default"},initialize:function(t,e,i,n){this.container=t,this.parent=i,this.app=e,this.css=this.parent.css,this.lp=this.app.lp},load:function(){this.container.empty(),this.loadToolbar(),this.loadView()},destroy:function(){this.resizeWindowFun&&this.app.removeEvent("resize",this.resizeWindowFun),this.view.destroy()},loadToolbar:function(){this.toolbar=new Element("div",{styles:this.css.toolbar}).inject(this.container),this.createActionNode=new Element("div",{styles:this.css.toolbarActionNode,text:this.lp.createCategory}).inject(this.toolbar),this.createActionNode.addEvent("click",function(){new MWF.xApplication.Execution.SettingExplorer.CategorySettingForm(this,{},{onPostOk:function(){this.view.reload()}.bind(this)}).create()}.bind(this)),this.fileterNode=new Element("div",{styles:this.css.fileterNode}).inject(this.toolbar)},loadView:function(){this.viewContainer=Element("div",{styles:this.css.viewContainer}).inject(this.container),this.resizeWindow(),this.resizeWindowFun=this.resizeWindow.bind(this),this.app.addEvent("resize",this.resizeWindowFun),this.view=new MWF.xApplication.Execution.SettingExplorer.CategorySettingView(this.viewContainer,this.app,this,{templateUrl:this.parent.path+"listItem_category.json",scrollEnable:!0}),this.view.load()},resizeWindow:function(){var t=this.app.content.getSize();this.viewContainer.setStyles({height:t.y-121+"px"})}}),MWF.xApplication.Execution.SettingExplorer.CategorySettingView=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexView,_createDocument:function(t){return new MWF.xApplication.Execution.SettingExplorer.CategorySettingDocument(this.viewNode,t,this.explorer,this)},_getCurrentPageData:function(t,e){e||(e=20),this.actions.listCategoryAll(function(e){t&&t(e)}.bind(this))},_removeDocument:function(t,e){this.actions.deleteCategory(t.id,function(t){this.reload(),this.app.notice(this.app.lp.deleteDocumentOK,"success")}.bind(this))},_create:function(){},_openDocument:function(t){new MWF.xApplication.Execution.SettingExplorer.CategorySettingForm(this,t,{onPostOk:function(){this.reload()}.bind(this)}).edit()},_queryCreateViewNode:function(){},_postCreateViewNode:function(t){},_queryCreateViewHead:function(){},_postCreateViewHead:function(t){}}),MWF.xApplication.Execution.SettingExplorer.CategorySettingDocument=new Class({Extends:MWF.xApplication.Template.Explorer.ComplexDocument,_queryCreateDocumentNode:function(t){},_postCreateDocumentNode:function(t,e){}}),MWF.xApplication.Execution.SettingExplorer.CategorySettingForm=new Class({Extends:MPopupForm,Implements:[Options,Events],options:{style:"default",width:"600",height:"260",hasTop:!0,hasIcon:!1,hasTopIcon:!0,hasTopContent:!0,hasBottom:!0,title:MWF.xApplication.Execution.LP.categoryFormTitle,draggable:!0,closeAction:!0},_createTableContent:function(){this.formTableArea.set("html","<table width='100%' bordr='0' cellpadding='5' cellspacing='0' styles='formTable'><tr><td styles='formTableTitle' lable='workTypeName'></td> <td styles='formTableValue' item='workTypeName'></td></tr><tr><td styles='formTableTitle' lable='orderNumber'></td> <td styles='formTableValue' item='orderNumber'></td></tr><tr><td styles='formTableTitle' lable='description'></td> <td styles='formTableValue' item='description'></td></tr></table>"),MWF.xDesktop.requireApp("Template","MForm",function(){this.form=new MForm(this.formTableArea,this.data,{style:"execution",isEdited:this.isEdited||this.isNew,itemTemplate:{workTypeName:{text:this.lp.workTypeName,notEmpty:!0},orderNumber:{text:this.lp.orderNumber,tType:"number"},description:{text:this.lp.description,type:"textarea"}}},this.app),this.form.load()}.bind(this),!0)},_ok:function(t,e){this.app.restActions.saveCategory(t,function(t){e&&e(t),this.fireEvent("postOk")}.bind(this))}}); | 16,511 | 16,511 | 0.790746 |
613c65206478e2355466181407dc68ba5fe3026f | 12,430 | js | JavaScript | frontend/index.js | supertools/blocks-url-preview | 78289800f3dbdaed335070b0948b1941f86a3a16 | [
"MIT"
] | null | null | null | frontend/index.js | supertools/blocks-url-preview | 78289800f3dbdaed335070b0948b1941f86a3a16 | [
"MIT"
] | null | null | null | frontend/index.js | supertools/blocks-url-preview | 78289800f3dbdaed335070b0948b1941f86a3a16 | [
"MIT"
] | null | null | null | import React, {Fragment, useState, useCallback, useEffect} from 'react';
import {cursor} from '@airtable/blocks';
import {ViewType} from '@airtable/blocks/models';
import {
initializeBlock,
registerRecordActionDataCallback,
useBase,
useRecordById,
useLoadable,
useSettingsButton,
useWatchable,
Box,
Dialog,
Heading,
Link,
Text,
TextButton,
} from '@airtable/blocks/ui';
import {GiphyFetch} from '@giphy/js-fetch-api'
import {useSettings} from './settings';
import SettingsForm from './SettingsForm';
// How this block chooses a preview to show:
//
// Without a specified Table & Field:
//
// - When the user selects a cell in grid view and the field's content is
// a supported preview URL, the block uses this URL to construct an embed
// URL and inserts this URL into an iframe.
//
// To Specify a Table & Field:
//
// - The user may use "Settings" to toggle a specified table and specified
// field constraint. If the constraint switch is set to "Yes",he user must
// set a specified table and specified field for URL previews.
//
// With a specified table & specified field:
//
// - When the user selects a cell in grid view and the active table matches
// the specified table or when the user opens a record from a button field
// in the specified table:
// The block looks in the selected record for the
// specified field containing a supported URL (e.g. https://www.youtube.com/watch?v=KYz2wyBy3kc),
// and uses this URL to construct an embed URL and inserts this URL into
// an iframe.
//
function GifBlock() {
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
useSettingsButton(() => setIsSettingsOpen(!isSettingsOpen));
const {
isValid,
settings: {isEnforced, urlTable},
} = useSettings();
// Caches the currently selected record and field in state. If the user
// selects a record and a preview appears, and then the user de-selects the
// record (but does not select another), the preview will remain. This is
// useful when, for example, the user resizes the blocks pane.
const [selectedRecordId, setSelectedRecordId] = useState(null);
const [selectedFieldId, setSelectedFieldId] = useState(null);
const [recordActionErrorMessage, setRecordActionErrorMessage] = useState('');
// cursor.selectedRecordIds and selectedFieldIds aren't loaded by default,
// so we need to load them explicitly with the useLoadable hook. The rest of
// the code in the component will not run until they are loaded.
useLoadable(cursor);
// Update the selectedRecordId and selectedFieldId state when the selected
// record or field change.
useWatchable(cursor, ['selectedRecordIds', 'selectedFieldIds'], () => {
// If the update was triggered by a record being de-selected,
// the current selectedRecordId will be retained. This is
// what enables the caching described above.
if (cursor.selectedRecordIds.length > 0) {
// There might be multiple selected records. We'll use the first
// one.
setSelectedRecordId(cursor.selectedRecordIds[0]);
}
if (cursor.selectedFieldIds.length > 0) {
// There might be multiple selected fields. We'll use the first
// one.
setSelectedFieldId(cursor.selectedFieldIds[0]);
}
});
// Close the record action error dialog whenever settings are opened or the selected record
// is updated. (This means you don't have to close the modal to see the settings, or when
// you've opened a different record.)
useEffect(() => {
setRecordActionErrorMessage('');
}, [isSettingsOpen, selectedRecordId]);
// Register a callback to be called whenever a record action occurs (via button field)
// useCallback is used to memoize the callback, to avoid having to register/unregister
// it unnecessarily.
const onRecordAction = useCallback(
data => {
// Ignore the event if settings are already open.
// This means we can assume settings are valid (since we force settings to be open if
// they are invalid).
if (!isSettingsOpen) {
if (isEnforced) {
if (data.tableId === urlTable.id) {
setSelectedRecordId(data.recordId);
} else {
// Record is from a mismatching table.
setRecordActionErrorMessage(
`This block is set up to preview URLs using records from the "${urlTable.name}" table, but was opened from a different table.`,
);
}
} else {
// Preview is not supported in this case, as we wouldn't know what field to preview.
// Show a dialog to the user instead.
setRecordActionErrorMessage(
'You must enable "Use a specific field for previews" to preview URLs with a button field.',
);
}
}
},
[isSettingsOpen, isEnforced, urlTable],
);
useEffect(() => {
// Return the unsubscribe function to ensure we clean up the handler.
return registerRecordActionDataCallback(onRecordAction);
}, [onRecordAction]);
// This watch deletes the cached selectedRecordId and selectedFieldId when
// the user moves to a new table or view. This prevents the following
// scenario: User selects a record that contains a preview url. The preview appears.
// User switches to a different table. The preview disappears. The user
// switches back to the original table. Weirdly, the previously viewed preview
// reappears, even though no record is selected.
useWatchable(cursor, ['activeTableId', 'activeViewId'], () => {
setSelectedRecordId(null);
setSelectedFieldId(null);
});
const base = useBase();
const activeTable = base.getTableByIdIfExists(cursor.activeTableId);
useEffect(() => {
// Display the settings form if the settings aren't valid.
if (!isValid && !isSettingsOpen) {
setIsSettingsOpen(true);
}
}, [isValid, isSettingsOpen]);
// activeTable is briefly null when switching to a newly created table.
if (!activeTable) {
return null;
}
return (
<Box>
{isSettingsOpen ? (
<SettingsForm setIsSettingsOpen={setIsSettingsOpen}/>
) : (
<Fragment>
<Box
position="absolute"
top={0}
left={0}
right={0}
bottom={0}
display="flex"
flexDirection="column"
alignItems="center"
justifyContent="center"
>
<RecordPreview
activeTable={activeTable}
selectedRecordId={selectedRecordId}
selectedFieldId={selectedFieldId}
setIsSettingsOpen={setIsSettingsOpen}
/>
</Box>
</Fragment>
)}
</Box>
);
}
// Shows a preview, or a message about what the user should do to see a preview.
function RecordPreview({
activeTable,
selectedRecordId,
selectedFieldId,
setIsSettingsOpen,
}) {
const {
settings: {isEnforced, urlField, urlTable},
} = useSettings();
const [gifUrl, setGifUrl] = useState('');
useEffect(() => {
const getUrl = async () => {
if (selectedRecord && previewField) {
const cellValue = selectedRecord.getCellValueAsString(previewField);
setGifUrl(await getGifForCellValue(cellValue));
}
};
getUrl();
}, [selectedRecordId])
const table = (isEnforced && urlTable) || activeTable;
// We use getFieldByIdIfExists because the field might be deleted.
const selectedField = selectedFieldId ? table.getFieldByIdIfExists(selectedFieldId) : null;
// When using a specific field for previews is enabled and that field exists,
// use the selectedField
const previewField = (isEnforced && urlField) || selectedField;
// Triggers a re-render if the record changes. Preview URL cell value
// might have changed, or record might have been deleted.
const selectedRecord = useRecordById(table, selectedRecordId ? selectedRecordId : '', {
fields: [previewField],
});
// Triggers a re-render if the user switches table or view.
// RecordPreview may now need to render a preview, or render nothing at all.
useWatchable(cursor, ['activeTableId', 'activeViewId']);
if (
// If there is/was a specified table enforced, but the cursor
// is not presently in the specified table, display a message to the user.
// Exception: selected record is from the specified table (has been opened
// via button field or other means while cursor is on a different table.)
isEnforced &&
cursor.activeTableId !== table.id &&
!(selectedRecord && selectedRecord.parentTable.id === table.id)
) {
return (
<Fragment>
<Text paddingX={3}>Switch to the “{table.name}” table to see previews.</Text>
<TextButton size="small" marginTop={3} onClick={() => setIsSettingsOpen(true)}>
Settings
</TextButton>
</Fragment>
);
} else if (
// activeViewId is briefly null when switching views
selectedRecord === null &&
(cursor.activeViewId === null ||
table.getViewById(cursor.activeViewId).type !== ViewType.GRID)
) {
return <Text>Switch to a grid view to see previews</Text>;
} else if (
// selectedRecord will be null on block initialization, after
// the user switches table or view, or if it was deleted.
selectedRecord === null ||
// The preview field may have been deleted.
previewField === null
) {
return (
<Fragment>
<Text>Select a cell to see a preview</Text>
</Fragment>
);
} else {
// Using getCellValueAsString guarantees we get a string back. If
// we use getCellValue, we might get back numbers, booleans, or
// arrays depending on the field type.
const cellValue = selectedRecord.getCellValueAsString(previewField);
if (!cellValue) {
return (
<Fragment>
<Text>The “{previewField.name}” field is empty</Text>
</Fragment>
);
} else {
if (!gifUrl) {
return (
<Fragment>
<Text>No preview</Text>
</Fragment>
);
}
return (
<iframe
// Using `key=previewUrl` will immediately unmount the
// old iframe when we're switching to a new
// preview. Otherwise, the old iframe would be reused,
// and the old preview would stay onscreen while the new
// one was loading, which would be a confusing user
// experience.
key={gifUrl}
style={{flex: 'auto', width: '100%'}}
src={gifUrl}
frameBorder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
);
}
}
}
async function getGifForCellValue(searchTerm) {
if (!searchTerm) {
return null;
}
const gf = new GiphyFetch('dzx2vNHcuZQVNkWc4RJXxnkUczj0xO5A');
const gif_url = await gf.search(searchTerm, {sort: 'relevant', limit: 1});
return gif_url.data[0]?.embed_url;
}
initializeBlock(() => <GifBlock/>);
| 39.460317 | 155 | 0.586484 |
613cbd81fd5f9ad547b5074681cc13e3d94e4d08 | 2,564 | js | JavaScript | src/_includes/partials/global/service-worker.js | gtirloni/idrc-website | cab15ecd79bc123bf5900211bc6259ddd182cdfa | [
"BSD-3-Clause"
] | 1 | 2020-04-01T20:55:28.000Z | 2020-04-01T20:55:28.000Z | src/_includes/partials/global/service-worker.js | gtirloni/idrc-website | cab15ecd79bc123bf5900211bc6259ddd182cdfa | [
"BSD-3-Clause"
] | 303 | 2020-03-19T13:09:32.000Z | 2022-03-31T16:23:19.000Z | src/_includes/partials/global/service-worker.js | jobara/idrc | 4293fae1711467882ab85b234f70f706b213ce04 | [
"BSD-3-Clause"
] | 9 | 2020-04-01T20:55:30.000Z | 2022-01-20T19:06:56.000Z | /* global caches, fetch, self, VERSION */
/* eslint-disable max-nested-callbacks */
const CACHE_KEYS = {
PRE_CACHE: `precache-${VERSION}`,
RUNTIME: `runtime-${VERSION}`
};
// URLS that we don’t want to end up in the cache
const EXCLUDED_URLS = [
'admin',
'functions',
'.netlify',
'https://identity.netlify.com/v1/netlify-identity-widget.js',
'https://unpkg.com/netlify-cms@^2.9.3/dist/netlify-cms.js'
];
// URLS that we want to be cached when the worker is installed
const PRE_CACHE_URLS = [
'/',
'/css/idrc.css',
'/fonts/merriweather-900.woff2',
'/fonts/open-sans-400.woff2',
'/fonts/open-sans-700.woff2',
'/fonts/open-sans-italic.woff2',
'/fonts/work-sans-500.woff2',
'/fonts/work-sans-600.woff2',
'/js/idrc.js'
];
// You might want to bypass a certain host
const IGNORED_HOSTS = new Set(['localhost', 'unpkg.com']);
/**
* Takes an array of strings and puts them in a named cache store
*
* @param {String} cacheName
* @param {Array} items=[]
*/
const addItemsToCache = function (cacheName, items = []) {
caches.open(cacheName).then(cache => cache.addAll(items));
};
self.addEventListener('install', () => {
self.skipWaiting();
addItemsToCache(CACHE_KEYS.PRE_CACHE, PRE_CACHE_URLS);
});
self.addEventListener('activate', evt => {
// Look for any old caches that don't match our set and clear them out
evt.waitUntil(
caches
.keys()
.then(cacheNames => {
return cacheNames.filter(item => !Object.values(CACHE_KEYS).includes(item));
})
.then(itemsToDelete => {
return Promise.all(
itemsToDelete.map(item => {
return caches.delete(item);
})
);
})
.then(() => self.clients.claim())
);
});
self.addEventListener('fetch', evt => {
const {hostname} = new URL(evt.request.url);
// Check we don't want to ignore this host
if (IGNORED_HOSTS.has(hostname)) {
return;
}
// Check we don't want to ignore this URL
if (EXCLUDED_URLS.some(page => evt.request.url.includes(page))) {
return;
}
evt.respondWith(
caches.match(evt.request).then(cachedResponse => {
// Item found in cache so return
if (cachedResponse) {
return cachedResponse;
}
// Nothing found so load up the request from the network
return caches.open(CACHE_KEYS.RUNTIME).then(cache => {
return fetch(evt.request)
.then(response => {
// Put the new response in cache and return it
return cache.put(evt.request, response.clone()).then(() => {
return response;
});
})
.catch(error => {
console.error(error);
});
});
})
);
});
| 24.419048 | 80 | 0.649766 |
6140f790a2713ca88c087f62e508166e0716ab1f | 495 | js | JavaScript | web/src/components/EntryRow.js | ninehusky/ninepasta | 72559e0166944b96aff7fb96295e5cafdf91de47 | [
"MIT"
] | null | null | null | web/src/components/EntryRow.js | ninehusky/ninepasta | 72559e0166944b96aff7fb96295e5cafdf91de47 | [
"MIT"
] | null | null | null | web/src/components/EntryRow.js | ninehusky/ninepasta | 72559e0166944b96aff7fb96295e5cafdf91de47 | [
"MIT"
] | null | null | null | import { Tr, Td, Button, HStack } from '@chakra-ui/react';
import React from 'react';
const EntryRow = props => (
<Tr>
<Td>{props.word}</Td>
<Td>{props.emoji}</Td>
<Td>{props.absurdity}</Td>
<Td>{props.description}</Td>
<HStack>
{props.update ? <Button id={props.id}>Update</Button> : null}
{props.delete ? (
<Button colorScheme="red" id={props.id}>
Delete
</Button>
) : null}
</HStack>
</Tr>
);
export default EntryRow;
| 22.5 | 67 | 0.559596 |
61416d067098a6c19737d69ea7095228bcfce47f | 4,332 | js | JavaScript | src/pages/home/index.js | fitahol/RNativeApp | 8183ef99b8c20dd1f1cde7037316dff269b83499 | [
"Apache-2.0"
] | null | null | null | src/pages/home/index.js | fitahol/RNativeApp | 8183ef99b8c20dd1f1cde7037316dff269b83499 | [
"Apache-2.0"
] | null | null | null | src/pages/home/index.js | fitahol/RNativeApp | 8183ef99b8c20dd1f1cde7037316dff269b83499 | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react'
import { ScrollView, View, StyleSheet, Platform } from 'react-native'
import colors from 'HSColors'
import socialColors from 'HSSocialColors'
import fonts from 'HSFonts'
import Icon from 'react-native-vector-icons/MaterialIcons'
import {
Text,
Button
} from 'react-native-elements'
let styles = {}
const log = () => {
console.log('hello!')
}
class Home extends Component {
render () {
const { toggleSideMenu } = this.props
return (
<ScrollView style={{backgroundColor: 'white'}}>
<View style={styles.hero}>
<Icon color='white' name='whatshot' size={62} />
<Text style={styles.heading}>Buttons</Text>
</View>
<Button
backgroundColor={socialColors.facebook}
onPress={() => log()}
title='BUTTON'
buttonStyle={styles.button} />
<Button
buttonStyle={styles.button}
backgroundColor={socialColors.stumbleupon}
icon={{name: 'accessibility'}}
onPress={() => toggleSideMenu()}
title='TOGGLE SIDE MENU'/>
<Button
buttonStyle={styles.button}
iconRight
backgroundColor={socialColors.quora}
icon={{name: 'invert-colors'}}
onPress={() => log()}
title='BUTTON WITH RIGHT ICON'/>
<Button
buttonStyle={styles.button}
iconRight
backgroundColor={socialColors.tumblr}
icon={{name: 'motorcycle'}}
onPress={() => log()}
title='BUTTON WITH RIGHT ICON'/>
<Button
buttonStyle={styles.button}
raised
backgroundColor={socialColors.foursquare}
icon={{name: 'card-travel'}}
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
buttonStyle={styles.button}
raised
backgroundColor={socialColors.vimeo}
icon={{name: 'touch-app'}}
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
buttonStyle={styles.button}
raised
backgroundColor={socialColors.twitter}
icon={{name: 'new-releases'}}
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
buttonStyle={styles.button}
raised
backgroundColor={socialColors.linkedin}
icon={{name: 'business'}}
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
buttonStyle={styles.button}
raised
backgroundColor={socialColors.pinterest}
icon={{name: 'send'}}
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
buttonStyle={styles.button}
raised
onPress={() => log()}
title='BUTTON RAISED'/>
<Button
large={true}
buttonStyle={styles.button}
onPress={() => log()}
backgroundColor={socialColors.facebook}
title='LARGE BUTTON' />
<Button
large={true}
buttonStyle={styles.button}
backgroundColor={socialColors.stumbleupon}
icon={{name: 'cached'}}
title='LARGE BUTTON WITH ICON' />
<Button
large={true}
buttonStyle={styles.button}
backgroundColor={socialColors.quora}
raised
icon={{name: 'album'}}
title='LARGE RAISED WITH ICON' />
<Button
large={true}
buttonStyle={styles.button}
raised
iconRight
backgroundColor={socialColors.tumblr}
icon={{name: 'accessibility'}}
title='LARGE RAISED RIGHT ICON' />
<Button
large={true}
buttonStyle={styles.button}
raised
iconRight
backgroundColor={socialColors.foursquare}
icon={{name: 'account-balance'}}
title='LARGE RAISED RIGHT ICON' />
<Button
large={true}
buttonStyle={styles.button}
raised
backgroundColor={socialColors.vimeo}
icon={{name: 'change-history'}}
title='LARGE RAISED WITH ICON' />
<Button
large={true}
buttonStyle={[{marginBottom: 15, marginTop: 15}]}
icon={{name: 'code'}}
backgroundColor={socialColors.twitter}
title='LARGE ANOTHER BUTTON' />
</ScrollView>
)
}
}
styles = StyleSheet.create({
container: {
flex: 1,
margin: 15
},
heading: {
color: 'white',
marginTop: 10,
fontSize: 22
},
hero: {
marginTop: 60,
justifyContent: 'center',
alignItems: 'center',
padding: 40,
backgroundColor: colors.primary2
},
titleContainer: {
},
button: {
marginTop: 15
},
title: {
textAlign: 'center',
color: colors.grey2,
...Platform.select({
ios: {
fontFamily: fonts.ios.black
}
})
}
})
export default Home
| 23.933702 | 69 | 0.623269 |
614173c8db88a6fdda0fb4d5aea2460daa64268e | 179 | js | JavaScript | node/config-resubmit.js | wenjinge0424/webasm | 222090aa44487e3409811177de0ea2cf6bcf1a91 | [
"MIT"
] | 73 | 2017-09-19T12:31:11.000Z | 2022-01-21T09:50:30.000Z | node/config-resubmit.js | wenjinge0424/webasm | 222090aa44487e3409811177de0ea2cf6bcf1a91 | [
"MIT"
] | 49 | 2017-09-18T15:33:34.000Z | 2018-07-31T18:58:15.000Z | node/config-resubmit.js | wenjinge0424/webasm | 222090aa44487e3409811177de0ea2cf6bcf1a91 | [
"MIT"
] | 18 | 2017-09-20T14:03:08.000Z | 2020-11-10T17:02:56.000Z |
const fs = require("fs")
var obj = JSON.parse(fs.readFileSync("config.json"))
obj.tasks = obj.resubmit
console.log(obj)
fs.writeFileSync("config.json", JSON.stringify(obj))
| 14.916667 | 52 | 0.715084 |
614213eb1d230b358eb6ca304576b668c92663a2 | 41 | js | JavaScript | test/chunking-form/samples/dynamic-import/_expected/es/chunks/other.js | passcod/rollup | 7166d793f181f8476c7a7799189a1006bd576c7b | [
"MIT"
] | null | null | null | test/chunking-form/samples/dynamic-import/_expected/es/chunks/other.js | passcod/rollup | 7166d793f181f8476c7a7799189a1006bd576c7b | [
"MIT"
] | null | null | null | test/chunking-form/samples/dynamic-import/_expected/es/chunks/other.js | passcod/rollup | 7166d793f181f8476c7a7799189a1006bd576c7b | [
"MIT"
] | null | null | null | export { a as value } from './chunk.js';
| 20.5 | 40 | 0.609756 |
614256b51d66edc8faaeee020ffdaf16ba759f50 | 404 | js | JavaScript | src/App.js | Kyleswillard/portfolio | 5f3b0d328ef569b3da6a85b21c311d782bdc7247 | [
"MIT"
] | null | null | null | src/App.js | Kyleswillard/portfolio | 5f3b0d328ef569b3da6a85b21c311d782bdc7247 | [
"MIT"
] | null | null | null | src/App.js | Kyleswillard/portfolio | 5f3b0d328ef569b3da6a85b21c311d782bdc7247 | [
"MIT"
] | null | null | null | import './App.css';
import Icons from './components/langs';
import Title from './components/title';
import Intro from './components/paras';
import Contact from './components/contact'
function App() {
return (
<div className="App">
<header className="App-header">
<Title />
<Icons />
<Intro />
<Contact/>
</header>
</div>
);
}
export default App;
| 19.238095 | 42 | 0.591584 |
614360a96b507899de2288348623764a8c0a9051 | 719 | js | JavaScript | src/components/JobCard.js | GalliWare/react-profile-website | 357fcf611f510be5e9d9a3b6311520a4fc1a4dee | [
"MIT"
] | null | null | null | src/components/JobCard.js | GalliWare/react-profile-website | 357fcf611f510be5e9d9a3b6311520a4fc1a4dee | [
"MIT"
] | null | null | null | src/components/JobCard.js | GalliWare/react-profile-website | 357fcf611f510be5e9d9a3b6311520a4fc1a4dee | [
"MIT"
] | null | null | null | import { Box, Heading } from '@chakra-ui/layout'
import { Text } from '@chakra-ui/react'
function JobCard({ company, jobTitle, startTime, endTime, location }) {
return (
<Box padding="2" color="white">
{/* TODO: see if we can make the company a link to the companies home page */}
<Heading fontSize="3xl" color="yellow" align="center">{jobTitle}</Heading>
<Text fontSize="xl" marginLeft="2" align="center"> @{company}</Text>
<Text marginLeft="2%" align="center">from {startTime} to {endTime} in {location}</Text>
{/* TODO: maybe we can add a description sometime or just remove this comment
<Text>{description}</Text>
*/}
</Box>
)
}
export default JobCard | 39.944444 | 93 | 0.64395 |
61452ff0431d179b51ff5c06655608834f0e6f58 | 1,143 | js | JavaScript | src/scripts/actions/competition-round-actions.js | themis-project/themis-finals-frontend | fce69ec37e4049b656190a2c2beec767ea76538b | [
"MIT"
] | 1 | 2020-07-29T21:19:25.000Z | 2020-07-29T21:19:25.000Z | src/scripts/actions/competition-round-actions.js | themis-project/themis-finals-frontend | fce69ec37e4049b656190a2c2beec767ea76538b | [
"MIT"
] | null | null | null | src/scripts/actions/competition-round-actions.js | themis-project/themis-finals-frontend | fce69ec37e4049b656190a2c2beec767ea76538b | [
"MIT"
] | null | null | null | import 'whatwg-fetch'
// import { Promise } from 'es6-promise'
import alt from '../utils/alt'
import CompetitionRoundModel from '../models/competition-round-model'
class CompetitionRoundActions {
static fetchPromise () {
return new Promise((resolve, reject) => {
fetch('/api/competition/round')
.then((response) => {
if (response.status >= 200 && response.status < 300) {
return response.json()
} else {
let err = new Error(response.statusText)
err.response = response
throw err
}
})
.then((data) => {
resolve(new CompetitionRoundModel(data))
})
.catch((err) => {
reject(err)
})
})
}
update (competitionRound) {
return competitionRound
}
fetch () {
return (dispatch) => {
dispatch()
CompetitionRoundActions
.fetchPromise()
.then((competitionRound) => {
this.update(competitionRound)
})
.catch((err) => {
this.failed(err)
})
}
}
failed (err) {
return err
}
}
export default alt.createActions(CompetitionRoundActions)
| 21.166667 | 69 | 0.572178 |
61454fb365f4dbbb03722f6abcab1f04c6ad15a0 | 2,375 | js | JavaScript | test/test.js | adam-p/markdown-it-headinganchor | 423d17e2bbea5227b95259318fdf9e1ff9052be7 | [
"MIT"
] | 19 | 2015-05-11T13:51:26.000Z | 2021-09-05T02:46:59.000Z | test/test.js | sergiodxa/markdown-it-headinganchor | 1f14de6c4dbca1a72f9b0bb2066ea9f3cb68d298 | [
"MIT"
] | 15 | 2020-03-16T14:00:06.000Z | 2020-07-20T10:34:42.000Z | test/test.js | sergiodxa/markdown-it-headinganchor | 1f14de6c4dbca1a72f9b0bb2066ea9f3cb68d298 | [
"MIT"
] | 14 | 2015-05-11T13:46:07.000Z | 2021-11-21T16:45:34.000Z | /*
* Copyright Adam Pritchard 2015
* MIT License : http://adampritchard.mit-license.org/
*/
'use strict';
/*jshint node:true*/
/* global describe, it, before, beforeEach, after, afterEach */
/*eslint-env mocha*/
var expect = require('chai').expect;
var path = require('path');
var markdownit = require('markdown-it');
var generate = require('markdown-it-testgen');
var headinganchor = require('..');
describe('markdown-it-headinganchor fixtures', function () {
var md = markdownit().use(headinganchor);
generate(path.join(__dirname, 'fixtures'), { header: true }, md);
});
describe('markdown-it-headinganchor options', function () {
it('should render correctly with a custom anchor class', function() {
var md = markdownit().use(headinganchor, {anchorClass: 'my-class'});
var s = '# test';
var target = '<h1 id="test"><a name="test" class="my-class" href="#"></a>test</h1>\n';
expect(md.render(s)).to.equal(target);
});
it('should obey the addHeadingID option', function() {
var md = markdownit().use(headinganchor, {addHeadingID: true});
var s = '# test';
var target = '<h1 id="test"><a name="test" class="markdown-it-headinganchor" href="#"></a>test</h1>\n';
expect(md.render(s)).to.equal(target);
md = markdownit().use(headinganchor, {addHeadingID: false});
s = '# test';
target = '<h1><a name="test" class="markdown-it-headinganchor" href="#"></a>test</h1>\n';
expect(md.render(s)).to.equal(target);
});
it('should obey the addHeadingAnchor option', function() {
var md = markdownit().use(headinganchor, {addHeadingAnchor: true});
var s = '# test';
var target = '<h1 id="test"><a name="test" class="markdown-it-headinganchor" href="#"></a>test</h1>\n';
expect(md.render(s)).to.equal(target);
md = markdownit().use(headinganchor, {addHeadingAnchor: false});
s = '# test';
target = '<h1 id="test">test</h1>\n';
expect(md.render(s)).to.equal(target);
});
it('should obey the slugify option', function() {
var md = markdownit().use(headinganchor, {
slugify: function (s) {
return s.replace(/\s/g, '-');
}
});
var s = '# test heading';
var target = '<h1 id="test-heading"><a name="test-heading" class="markdown-it-headinganchor" href="#"></a>test heading</h1>\n';
expect(md.render(s)).to.equal(target);
});
});
| 34.926471 | 131 | 0.628632 |
61467df4358ad95cc5325086f424dafc83153424 | 551 | js | JavaScript | examples/Sockend/responder.js | unumotors/taube | b18c5a698da20e0205db07f3727f30f0c4298dbd | [
"MIT"
] | null | null | null | examples/Sockend/responder.js | unumotors/taube | b18c5a698da20e0205db07f3727f30f0c4298dbd | [
"MIT"
] | null | null | null | examples/Sockend/responder.js | unumotors/taube | b18c5a698da20e0205db07f3727f30f0c4298dbd | [
"MIT"
] | null | null | null | const taube = require('../../lib')
const userResponder = new taube.Responder({
key: 'users',
// All endpoints that should be exposed publically by the Sockend need an entry here
sockendWhitelist: ['login']
})
userResponder.on('login', async(req) => {
const { data } = req
const returnValue = await new Promise(resolve => resolve(data)) // Do something
return returnValue
})
// This endpoint is NOT exposed through the Sockend, as the userResponder
// does not have a 'private stuff' entry
userResponder.on('private stuff', () => null)
| 29 | 86 | 0.704174 |
6146edf407f54177221b413508a5df230649d2f2 | 1,309 | js | JavaScript | app.js | oguzhanzny/exchange-app-with-api | 373d5bb13db8fb7b5f31e5611cf9ab8bd3b6ee20 | [
"Apache-2.0"
] | null | null | null | app.js | oguzhanzny/exchange-app-with-api | 373d5bb13db8fb7b5f31e5611cf9ab8bd3b6ee20 | [
"Apache-2.0"
] | null | null | null | app.js | oguzhanzny/exchange-app-with-api | 373d5bb13db8fb7b5f31e5611cf9ab8bd3b6ee20 | [
"Apache-2.0"
] | null | null | null | // api Url
const api = 'https://api.exchangeratesapi.io/';
const api2 = 'https://testapi.io/api/oguzhanzny/currencies.api';
//elements
const el_currency_one = document.querySelector('#currency_one');
const el_currency_two = document.querySelector('#currency_two');
const el_amount = document.querySelector('#amount');
const el_btn_calculate = document.querySelector('#btn_calculate');
const el_result = document.querySelector('#result');
// load symbols
fetch('https://testapi.io/api/oguzhanzny/currencies.api')
.then((res) => res.json())
.then((data) => {
const keys = Object.keys(data);
const values = Object.values(data);
let options;
for (let i = 0; i < keys.length; i++) {
options += `<option value=${keys[i]}>${values[i]}</option>`;
}
el_currency_one.innerHTML += options;
el_currency_two.innerHTML += options;
});
el_btn_calculate.addEventListener('click', function () {
const base_currency = el_currency_one.value;
const to = el_currency_two.value;
const amount = el_amount.value;
console.log(base_currency, to);
fetch(`${api}latest?base=${base_currency}`)
.then((response) => response.json())
.then((data) => {
const rate = data.rates[to];
el_result.innerHTML = `${amount} ${base_currency} = ${amount * rate}`;
});
});
| 31.166667 | 76 | 0.676853 |
61482b8ec2e4c0d27fb93677d00e83ea9ed7064c | 1,625 | js | JavaScript | backend/models/07-register.js | gs3bopar/mocksocialmediawebsite-1 | 9a09c920227a373cdf121bb59b6ebab48c44cad2 | [
"Apache-2.0"
] | 5 | 2021-07-02T08:23:06.000Z | 2022-03-02T06:22:49.000Z | backend/models/07-register.js | gs3bopar/mocksocialmediawebsite-1 | 9a09c920227a373cdf121bb59b6ebab48c44cad2 | [
"Apache-2.0"
] | 3 | 2022-02-28T01:29:29.000Z | 2022-03-08T23:39:20.000Z | backend/models/07-register.js | gs3bopar/mocksocialmediawebsite-1 | 9a09c920227a373cdf121bb59b6ebab48c44cad2 | [
"Apache-2.0"
] | 5 | 2021-07-17T21:39:37.000Z | 2022-03-07T10:29:37.000Z | export default (sequelize, DataTypes) => {
const Register = sequelize.define("Register", {
_id: {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4 // create a default UUIDV4 for each record
},
type: {
allowNull: false,
type: DataTypes.ENUM('TEXT', 'NUMBER', 'EMAIL', 'IMAGE', 'PASSWORD', 'DATE')
},
displayName: {
allowNull: false,
type: DataTypes.STRING // 255
},
required: {
allowNull: false,
defaultValue: false,
type: DataTypes.BOOLEAN,
},
referenceName: {
allowNull: true,
type: DataTypes.ENUM('PROFILEPHOTO', 'EMAIL', 'USERNAME', 'REALNAME', 'PASSWORD', 'DATE', 'NUMBER', 'HANDLE')
},
storeResponse: {
allowNull: false,
defaultValue: false,
type: DataTypes.BOOLEAN,
},
order: {
allowNull: false,
defaultValue: 0,
type: DataTypes.SMALLINT
},
pageId: {
allowNull: false,
references: {
key: '_id',
model: 'Page'
},
type: DataTypes.UUID
},
templateId: {
allowNull: false,
references: {
key: '_id',
model: 'Template'
},
type: DataTypes.UUID
},
}, {
freezeTableName: true, // model name equal to table name
timestamps: false, // enable timestamps
});
Register.associate = (models) => {
Register.belongsTo(models.Template, {
as: 'register',
foreignKey: 'templateId'
});
Register.belongsTo(models.Page, {
as: 'page',
foreignKey: 'pageId'
})
};
return Register;
}
| 23.214286 | 115 | 0.565538 |
614947de2079a8af938d7e663c77bccfeb61bedf | 660 | js | JavaScript | packages/moon-compiler/src/compile.js | moulik-deepsource/moon | 1fc3ea10585d52bbc2fc0e24b0e3c8445e5d8cbe | [
"MIT"
] | 5,261 | 2017-08-06T23:31:02.000Z | 2022-03-29T04:24:51.000Z | packages/moon-compiler/src/compile.js | moulik-deepsource/moon | 1fc3ea10585d52bbc2fc0e24b0e3c8445e5d8cbe | [
"MIT"
] | 180 | 2017-08-09T18:50:25.000Z | 2022-02-13T07:10:48.000Z | packages/moon-compiler/src/compile.js | moulik-deepsource/moon | 1fc3ea10585d52bbc2fc0e24b0e3c8445e5d8cbe | [
"MIT"
] | 281 | 2017-08-08T17:12:43.000Z | 2021-12-03T08:14:00.000Z | import parse from "moon-compiler/src/parse";
import generate from "moon-compiler/src/generate";
import { format } from "moon-compiler/src/util";
import { error } from "util/index";
/**
* Compiles a JavaScript file with Moon syntax.
*
* @param {string} input
* @returns {string} file code
*/
export default function compile(input) {
const parseOutput = parse(input);
if (process.env.MOON_ENV === "development" && parseOutput.constructor.name === "ParseError") {
error(`Invalid input to parser.
Attempted to parse input.
Expected ${parseOutput.expected}.
Received:
${format(input, parseOutput.index)}`);
}
return generate(parseOutput[0][0]);
}
| 22.758621 | 95 | 0.712121 |
614a5afcc30e4aa9728203ea22f379747c7badaa | 1,269 | js | JavaScript | src/app/resolvers/auth.js | madox2/another-tasks | 058f583dd4c844bde9dd5ab69639c38ebf4f16e9 | [
"MIT"
] | null | null | null | src/app/resolvers/auth.js | madox2/another-tasks | 058f583dd4c844bde9dd5ab69639c38ebf4f16e9 | [
"MIT"
] | null | null | null | src/app/resolvers/auth.js | madox2/another-tasks | 058f583dd4c844bde9dd5ab69639c38ebf4f16e9 | [
"MIT"
] | null | null | null | import { gapi } from '../gclient'
import config from '../config'
export const loadPromise = new Promise((resolve, reject) =>
gapi.load('client', () => {
gapi.client
.init({
apiKey: config.gapiKey,
clientId: config.gapiClientId,
scope: 'https://www.googleapis.com/auth/tasks',
})
.then(resolve)
.catch(reject)
}),
)
const SIGNED_IN_USER = { isSignedIn: true, id: 'current' }
const SIGNED_OUT_USER = { isSignedIn: false, id: 'current' }
async function login() {
try {
await gapi.auth2.getAuthInstance().signIn()
} catch (e) {
console.error('login error', e)
return SIGNED_OUT_USER
}
return SIGNED_IN_USER
}
async function logout() {
try {
await gapi.auth2.getAuthInstance().signOut()
} catch (e) {
console.error('logout error', e)
}
return SIGNED_OUT_USER
}
export const authResolvers = {
Query: {
currentUser: async () => {
try {
await loadPromise
const isSignedIn = gapi.auth2.getAuthInstance().isSignedIn.get()
return isSignedIn ? SIGNED_IN_USER : SIGNED_OUT_USER
} catch (e) {
console.error('error loading google script', e)
return SIGNED_OUT_USER
}
},
},
Mutation: {
login,
logout,
},
}
| 22.263158 | 72 | 0.617021 |
614ab4e43cd231814d3fbc771a6a56fe3c9158c1 | 14,951 | js | JavaScript | out/test/import-creator.test.js | popbee/import-sorter | fc76571f3f45cc9adef72996b056802a8570a1ff | [
"MIT"
] | null | null | null | out/test/import-creator.test.js | popbee/import-sorter | fc76571f3f45cc9adef72996b056802a8570a1ff | [
"MIT"
] | null | null | null | out/test/import-creator.test.js | popbee/import-sorter | fc76571f3f45cc9adef72996b056802a8570a1ff | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const expect = require("expect.js");
require("mocha");
const core_public_1 = require("../src/core/core-public");
const createConfiguration = (partialConfig) => Object.assign({}, core_public_1.defaultImportStringConfiguration, partialConfig);
suite('Import Creator Tests', () => {
const testCases = [
{
testName: 'test0',
config: createConfiguration({
numberOfEmptyLinesAfterAllImports: 0,
maximumNumberOfImportExpressionsPerLine: {
count: 23,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: 'createString.ts',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 53 },
hasFromKeyWord: true,
defaultImportName: 't',
namedBindings: [
{ name: 'B', aliasName: null },
{ name: 'a', aliasName: 'cc' },
{ name: 'ac', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 3,
customOrderRule: null
}
],
expected: "import t, {\n B, a as cc, ac\n} from \'createString.ts\';"
},
{
testName: 'test1 - trailing comma',
config: createConfiguration({
numberOfEmptyLinesAfterAllImports: 0,
maximumNumberOfImportExpressionsPerLine: {
count: 70,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import { ChangeDetectionStrategy, DebugElement } from '@angular/core';"
},
{
testName: 'test2 - trailing comma',
config: createConfiguration({
numberOfEmptyLinesAfterAllImports: 0,
maximumNumberOfImportExpressionsPerLine: {
count: 69,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import {\n ChangeDetectionStrategy, DebugElement\n} from \'@angular/core\';"
},
{
testName: 'test3 - trailing comma',
config: createConfiguration({
trailingComma: 'always',
maximumNumberOfImportExpressionsPerLine: {
count: 71,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import { ChangeDetectionStrategy, DebugElement, } from '@angular/core';\n"
},
{
testName: 'test4 - trailing comma',
config: createConfiguration({
trailingComma: 'always',
maximumNumberOfImportExpressionsPerLine: {
count: 70,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import {\n ChangeDetectionStrategy, DebugElement,\n} from \'@angular/core\';\n"
},
{
testName: 'test5 - trailing comma',
config: createConfiguration({
trailingComma: 'multiLine',
maximumNumberOfImportExpressionsPerLine: {
count: 70,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import { ChangeDetectionStrategy, DebugElement } from '@angular/core';\n"
},
{
testName: 'test6 - trailing comma',
config: createConfiguration({
trailingComma: 'multiLine',
maximumNumberOfImportExpressionsPerLine: {
count: 69,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import {\n ChangeDetectionStrategy, DebugElement,\n} from \'@angular/core\';\n"
},
{
testName: 'test7 - optional semi-colon',
config: createConfiguration({
hasSemicolon: false,
maximumNumberOfImportExpressionsPerLine: {
count: 69,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 70 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import { ChangeDetectionStrategy, DebugElement } from '@angular/core'\n"
},
{
testName: 'test8 - optional semi-colon',
config: createConfiguration({
hasSemicolon: false,
maximumNumberOfImportExpressionsPerLine: {
count: 68,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 69 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'ChangeDetectionStrategy', aliasName: null },
{ name: 'DebugElement', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import {\n ChangeDetectionStrategy, DebugElement\n} from \'@angular/core\'\n"
},
{
testName: 'test9 - import string has 4 new lines',
config: createConfiguration({
numberOfEmptyLinesAfterAllImports: 0,
maximumNumberOfImportExpressionsPerLine: {
count: 10,
type: 'maxLineLength'
}
}),
elementGroups: [
{
elements: [
{
moduleSpecifierName: '@angular/core',
startPosition: { line: 0, character: 0 },
endPosition: { line: 0, character: 40 },
hasFromKeyWord: true,
namedBindings: [
{ name: 'a', aliasName: null },
{ name: 'b', aliasName: null },
{ name: 'c', aliasName: null }
],
importComment: {
leadingComments: [],
trailingComments: []
}
}
],
numberOfEmptyLinesAfterGroup: 0,
customOrderRule: null
}
],
expected: "import {\n a, b,\n c\n} from \'@angular/core\';"
}
];
const getImportText = (groups, config) => {
const creator = new core_public_1.InMemoryImportCreator();
creator.initialise(config);
return creator.createImportText(groups);
};
const importCreatorTest = (testName, config, groups, expected) => {
test(`ImportCreator : ${testName} produces correct string`, () => {
const importText = getImportText(groups, config);
expect(importText).to.eql(expected);
});
};
testCases.forEach(testElement => {
importCreatorTest(testElement.testName, testElement.config, testElement.elementGroups, testElement.expected);
});
});
//# sourceMappingURL=import-creator.test.js.map | 41.76257 | 128 | 0.382182 |
614c5e928056841243d3fa7e6401c6be8b8a9ede | 558 | js | JavaScript | ethernaut/04_telephone/test/exploit.js | mattmcd/learning-vyper | f0f719aa07f5f4907dc33b6cc1ff65de53b3d0fa | [
"Apache-2.0"
] | null | null | null | ethernaut/04_telephone/test/exploit.js | mattmcd/learning-vyper | f0f719aa07f5f4907dc33b6cc1ff65de53b3d0fa | [
"Apache-2.0"
] | null | null | null | ethernaut/04_telephone/test/exploit.js | mattmcd/learning-vyper | f0f719aa07f5f4907dc33b6cc1ff65de53b3d0fa | [
"Apache-2.0"
] | null | null | null | const Telephone = artifacts.require("Telephone");
const TelephoneExploit = artifacts.require("TelephoneExploit");
contract("Test exploit", async accounts => {
it("Should transfer ownership", async() => {
let instance = await Telephone.deployed();
let original_owner = await instance.owner();
console.log(original_owner);
let exploit = await TelephoneExploit.deployed();
// await exploit.exploit({from: accounts[2]});
let new_owner = await instance.owner();
console.log(new_owner);
})
}); | 27.9 | 63 | 0.655914 |
614d718c39b1f1e086a8e1ab538e16ff7bf06aad | 2,450 | js | JavaScript | Commands/autoremind.js | TheTeaCup/bumper-premium | 8ea792a7e0c3a42ece6aae7a23121d6788c241b8 | [
"MIT"
] | 5 | 2020-06-27T06:45:22.000Z | 2021-12-11T21:55:55.000Z | Commands/autoremind.js | TheTeaCup/bumper-premium | 8ea792a7e0c3a42ece6aae7a23121d6788c241b8 | [
"MIT"
] | null | null | null | Commands/autoremind.js | TheTeaCup/bumper-premium | 8ea792a7e0c3a42ece6aae7a23121d6788c241b8 | [
"MIT"
] | 2 | 2019-08-16T16:53:07.000Z | 2019-12-04T19:08:48.000Z | const Discord = require("discord.js");
const Quick = require("quick.db");
exports.run = async(Bumper, message, args) => { // eslint-disable-line no-unused-vars
let prefix = await Quick.fetch(`prefix_${message.guild.id}`);
if(!prefix)prefix = "b!!";
let Color = Bumper.Color;
let hexcode = await Quick.fetch(`hex_${message.guild.id}`);
if(hexcode) { Color = hexcode; };
const Konah = Bumper.emojis.get("456305427236257804");
const KoHelp = Bumper.emojis.get("456211147406835713");
let reminder = await Quick.fetch(`reminderLog_${message.guild.id}`);
if(!reminder) return message.channel.send(`Please set your reminder log. \`${prefix}settings remind <channelName>\``);
let True = new Discord.RichEmbed()
.setTitle("Bumper Premium")
.setColor(Color)
.setDescription("Is this the server you want to \`Auto-Reminder\`?")
.setFooter(`Type: Yes or No`)
const AMFilter = msg => msg.author.id === message.author.id && msg.channel.id === message.channel.id;
const Awaiter = await message.channel.send(True);
let bb = await Quick.fetch(`autoBump_${message.guild.id}`);
console.log(`${message.guild.name} (${message.guild.id} AutoBump ${bb}`);
const Answers = ["yes","no"];
let y = "yes"
message.channel.awaitMessages(AMFilter, {
max: 1,
time: 15000
}).then(async Response => {
if(!Answers.includes(Response.first().content.toLowerCase())){
return message.channel.send("**Bumper** - Not a valid response, canceling Bumper's \`AutoReminder\` Setup.");
};
if (Response.first().content.toLowerCase() === "yes"){
Awaiter.delete();
let me = await message.channel.send("**Bumper Premium** - Setting up AutoReminder for this server!");
Quick.set(`autoBumpp_${message.guild.id}`, "yes")
me.edit(`${KoHelp} **| Auto-Reminder is now Enabled.**`)
};
if (Response.first().content.toLowerCase() === "no"){
Awaiter.delete();
Quick.delete(`autoBumpp_${message.guild.id}`)
return message.channel.send("**Bumper Premium** - Disabled AutoReminder.");
};
}).catch(() => {
Awaiter.delete();
return message.channel.send("**Bumper Premium** - Time ran out, canceling AutoReminder Setup.");
});
};
exports.help = {
name: "autoremind",
description: "Gives The users bump stats.",
usage: "b!!autoremind"
};
exports.conf = {
Aliases: [ ] // No Aliases.
}; | 34.027778 | 120 | 0.636735 |
614e291c18e65d0ea1946e8d377f52c432eedc46 | 277 | js | JavaScript | controllers/todo.js | scautank/todo | e220d0fd1ab1c18b023d19b69ae409ebb64e7317 | [
"MIT"
] | null | null | null | controllers/todo.js | scautank/todo | e220d0fd1ab1c18b023d19b69ae409ebb64e7317 | [
"MIT"
] | null | null | null | controllers/todo.js | scautank/todo | e220d0fd1ab1c18b023d19b69ae409ebb64e7317 | [
"MIT"
] | null | null | null | var todoModel = require('../models/todo');
exports.dyclist = function(req, res, next){
res.render('todo/index');
};
exports.list = function(req, res, next) {
todoModel.list(function(err, result){
if(err)
next(err);
res.render('todo/list', {list : result});
});
}; | 19.785714 | 43 | 0.638989 |
614f3b1b554188f130c24b347861cb31dcc7c40d | 2,175 | js | JavaScript | public/home/js/search_logo.js | siguorui/Handu | c690ea05fe8a5a17a6d3995b0d94419860025b36 | [
"MIT"
] | 1 | 2017-01-05T11:17:25.000Z | 2017-01-05T11:17:25.000Z | public/home/js/search_logo.js | siguorui/Handu | c690ea05fe8a5a17a6d3995b0d94419860025b36 | [
"MIT"
] | null | null | null | public/home/js/search_logo.js | siguorui/Handu | c690ea05fe8a5a17a6d3995b0d94419860025b36 | [
"MIT"
] | null | null | null | var search_logo={
"HSTYLE女装" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/hstyle.png",
"Soneed女装" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/soneed.png",
"AMH男装" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/amh.png",
"Minizaru童装" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/mini.png",
"NanaDay娜娜日记":"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/nanaday.png",
"Forqueens范奎恩":"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/forqueen.png",
"Dequanna迪葵纳":"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/hanyunyixiang.png",
"白鹿语" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/bly.png",
"nibbuns女装" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/nibbuns.png",
"樱桃小镇" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/ytxz.png",
"劳拉的誓约" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/laolashiyue.png",
"R•Maker暗码" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/anma.png",
"HoneyPig蜜糖猪":"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/hp.png",
"SOULINE素缕" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/sulv.png",
"zigu自古" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/zigu.png",
"Garbha果芽" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/guoya.png",
"哲初" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/zc.png",
"池希" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/cx.png",
"基易" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/jiyi.png",
"猫猫包袋" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/mm.png",
"步乐斯" :"http://s.handu.com/themes/handuyishe/images/header_2014/sub_logo/bls.png",
}
function getsearchlogo(name){
if(search_logo[name]!=undefined){
var $lo = "<span style='width:70px;height:25px;position:absolute;'><img src='"+search_logo[name]+"' width='70' height='25' style='display:block;'/></span>";
document.write($lo);
}
} | 75 | 161 | 0.748506 |
614f402c160e56b953281c2514355544f448869b | 552 | js | JavaScript | frontend/src/sagas/news.js | perches/ohapo | b8934104a2320c5d362ac70fdca5519300cef2d2 | [
"MIT"
] | 1 | 2019-09-03T16:09:34.000Z | 2019-09-03T16:09:34.000Z | frontend/src/sagas/news.js | perches/ohapo | b8934104a2320c5d362ac70fdca5519300cef2d2 | [
"MIT"
] | 55 | 2019-09-10T13:46:37.000Z | 2022-02-26T17:32:56.000Z | frontend/src/sagas/news.js | perches/shubun | b8934104a2320c5d362ac70fdca5519300cef2d2 | [
"MIT"
] | null | null | null | import { put, takeEvery } from "redux-saga/effects";
import {
FETCH_NEWS,
FETCH_NEWS_SUCCESS,
FETCH_NEWS_ERROR
} from "../actions/fetchNews";
import getNews from "../api/getNews";
function* handleGetNews(action) {
try {
const resp = yield getNews(action.payload.params);
yield put({
type: FETCH_NEWS_SUCCESS,
payload: {
news: resp.data
}
});
} catch (e) {
yield put({ type: FETCH_NEWS_ERROR });
}
}
function* newsSaga() {
yield takeEvery(FETCH_NEWS, handleGetNews);
}
export default newsSaga;
| 19.714286 | 54 | 0.655797 |
6150163797dabd3117aac8e7abe8fafb85b73626 | 741 | js | JavaScript | config/test/protractor.e2e.conf.js | jramcast/appverse-web-html5-core | d4d73433b17cf2f44fb58bd75ccb954fdb37b1e8 | [
"Unlicense"
] | null | null | null | config/test/protractor.e2e.conf.js | jramcast/appverse-web-html5-core | d4d73433b17cf2f44fb58bd75ccb954fdb37b1e8 | [
"Unlicense"
] | null | null | null | config/test/protractor.e2e.conf.js | jramcast/appverse-web-html5-core | d4d73433b17cf2f44fb58bd75ccb954fdb37b1e8 | [
"Unlicense"
] | null | null | null | 'use strict';
// Configure protractor to run e2e tests
// and generate reports
var settings = require('./common/protractor.conf');
settings.specs = [
'test/e2e/**/*.js',
];
settings.baseUrl = 'http://localhost:9091/';
// Add junit reporting
settings.onPrepare = function () {
require('jasmine-reporters');
var capsPromise = browser.getCapabilities();
capsPromise.then(function (caps) {
var browserName = caps.caps_.browserName.toUpperCase();
var browserVersion = caps.caps_.version;
var prePendStr = 'e2e-test-results-' + browserName + "-" + browserVersion + "-";
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter("reports/junit", true, true, prePendStr));
});
};
exports.config = settings;
| 27.444444 | 106 | 0.688259 |
61503a5dae4e8351a7019c96b413258b85f42313 | 1,026 | js | JavaScript | app/code/Aheadworks/OneStepCheckout/view/frontend/web/js/sidebar.js | huangaustin1991/austin_magento_2 | f890a0f425281e4c24556fdd37494c90cabb6141 | [
"AFL-3.0"
] | 1 | 2018-11-28T08:11:17.000Z | 2018-11-28T08:11:17.000Z | app/code/Aheadworks/OneStepCheckout/view/frontend/web/js/sidebar.js | huangaustin1991/austin_magento_2 | f890a0f425281e4c24556fdd37494c90cabb6141 | [
"AFL-3.0"
] | 12 | 2018-11-22T05:03:24.000Z | 2018-11-27T06:30:53.000Z | app/code/Aheadworks/OneStepCheckout/view/frontend/web/js/sidebar.js | huangaustin1991/austin_magento_2 | f890a0f425281e4c24556fdd37494c90cabb6141 | [
"AFL-3.0"
] | 5 | 2018-11-29T00:36:49.000Z | 2020-11-06T07:37:19.000Z | /**
* Copyright 2018 aheadWorks. All rights reserved.
* See LICENSE.txt for license details.
*/
define([
'jquery'
], function ($) {
'use strict';
// todo: consider remove after sidebar implemented
$.widget('mage.awOscSidebar', {
options: {
offsetTop: 5 // todo: get this from margin-top property
},
/**
* Initialize widget
*/
_create: function () {
this._bind();
},
/**
* Event binding
*/
_bind: function () {
// todo
},
/**
* Adjust element position
*/
_adjust: function () {
if ($(window).scrollTop() > this.options.offsetTop) {
this.element.css({
'position': 'fixed',
'top': this.options.offsetTop
});
} else {
this.element.css('position', 'static');
}
}
});
return $.mage.awOscSidebar;
});
| 21.375 | 67 | 0.445419 |
6150760f41722f31e0d693e69e3e0e0e3684c9c9 | 4,035 | js | JavaScript | gatsby-node.js | zvirinz/addictws | 24f5ec642af13c3ff7e1eface4c23630452992b4 | [
"MIT"
] | null | null | null | gatsby-node.js | zvirinz/addictws | 24f5ec642af13c3ff7e1eface4c23630452992b4 | [
"MIT"
] | 1 | 2021-11-02T13:51:44.000Z | 2021-11-11T08:35:11.000Z | gatsby-node.js | zvirinz/addictws | 24f5ec642af13c3ff7e1eface4c23630452992b4 | [
"MIT"
] | null | null | null | /* eslint-disable @typescript-eslint/restrict-plus-operands, @typescript-eslint/no-var-requires */
const path = require("path");
const POSTS_PER_PAGE = 6;
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions;
const postsResult = await graphql(`
query {
allContentfulPost {
edges {
node {
slug
featured
node_locale
tags {
slug
}
}
}
}
}
`);
const authorsResult = await graphql(`
{
allContentfulAuthor {
edges {
node {
node_locale
slug
}
}
}
}
`);
const tagsResult = await graphql(`
{
allContentfulTag {
edges {
node {
node_locale
slug
}
}
}
}
`);
const pagesResult = await graphql(`
{
allContentfulPage {
edges {
node {
node_locale
slug
}
}
}
}
`);
// Handle errors
if (
postsResult.errors ||
authorsResult.errors ||
tagsResult.errors ||
pagesResult.errors
) {
reporter.panicOnBuild("Error while running GraphQL query.");
return;
}
const posts = postsResult.data.allContentfulPost.edges;
// Create paginated index
const indexTemplate = path.resolve("./src/templates/index.tsx");
const numPages = Math.ceil(posts.length / POSTS_PER_PAGE);
Array.from({ length: numPages }).forEach((item, i) => {
createPage({
path: i === 0 ? "/blog" : `/blog/${i + 1}`,
component: indexTemplate,
context: {
limit: POSTS_PER_PAGE,
skip: i * POSTS_PER_PAGE,
numPages,
currentPage: i + 1,
locale: "en",
},
});
});
Array.from({ length: numPages }).forEach((item, i) => {
createPage({
path: i === 0 ? "/blog" : `/blog/${i + 1}`,
component: indexTemplate,
context: {
limit: POSTS_PER_PAGE,
skip: i * POSTS_PER_PAGE,
numPages,
currentPage: i + 1,
locale: "pl",
},
});
});
// post creation logic
const postTemplate = path.resolve("./src/templates/post.tsx");
posts.forEach(({ node }, index) => {
const prev = index === 0 ? null : posts[index - 1].node;
const next = index === posts.length - 1 ? null : posts[index + 1].node;
createPage({
path: `/post/${node.slug}/`,
component: postTemplate,
context: {
prev,
next,
slug: node.slug,
primaryTag: node.tags ? node.tags[0].slug : "",
locale: node.node_locale,
},
});
});
// tag creation logic
const tags = tagsResult.data.allContentfulTag.edges;
const tagTemplate = path.resolve("./src/templates/tags.tsx");
tags.forEach(({ node }) => {
createPage({
path: `/tag/${node.slug}/`,
component: tagTemplate,
context: {
tag: node.slug,
locale: node.node_locale,
},
});
});
// Create author pages
const authorTemplate = path.resolve("./src/templates/author.tsx");
const authors = authorsResult.data.allContentfulAuthor.edges;
authors.forEach(({ node }) => {
createPage({
path: `/author/${node.slug}/`,
component: authorTemplate,
context: {
author: node.slug,
locale: node.node_locale,
},
});
});
// create pages
const pageTemplate = path.resolve("./src/templates/page.tsx");
const pages = pagesResult.data.allContentfulPage.edges;
pages.forEach(({ node }) => {
createPage({
path: `/page/${node.slug}/`,
component: pageTemplate,
context: {
slug: node.slug,
locale: node.node_locale,
},
});
});
};
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
alias: {
path: require.resolve("path-browserify"),
},
fallback: {
fs: false,
},
},
});
};
| 22.541899 | 98 | 0.532838 |
6151e2026ef111fe17f057e1f0ab1565ea1ecba6 | 211 | js | JavaScript | platforms/android/assets/www/js/app.js | jinxk/syncAndPick | 43d067b3444891160a425c3a18ddeec64aa0bf65 | [
"MIT"
] | null | null | null | platforms/android/assets/www/js/app.js | jinxk/syncAndPick | 43d067b3444891160a425c3a18ddeec64aa0bf65 | [
"MIT"
] | null | null | null | platforms/android/assets/www/js/app.js | jinxk/syncAndPick | 43d067b3444891160a425c3a18ddeec64aa0bf65 | [
"MIT"
] | null | null | null | var app = angular.module('contactsSync', [ 'ngMaterial' ])
.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('pink')
.accentPalette('orange');
}); | 35.166667 | 58 | 0.654028 |
61521524092de5d971af5c8036a158a94c231cdd | 1,486 | js | JavaScript | js/game.js | zerolive/PhaserIO_learning | 3b11edf1e3750c010f751f7828cc9127b2c08bb9 | [
"MIT"
] | null | null | null | js/game.js | zerolive/PhaserIO_learning | 3b11edf1e3750c010f751f7828cc9127b2c08bb9 | [
"MIT"
] | null | null | null | js/game.js | zerolive/PhaserIO_learning | 3b11edf1e3750c010f751f7828cc9127b2c08bb9 | [
"MIT"
] | null | null | null | var game = new Phaser.Game(800, 600, Phaser.AUTO, '', {
preload: preload,
create: create,
update: update
});
var player;
var platforms;
var stars;
var scoreText;
var score = 0;
function preload() {
var assetsImages = [
['sky', "assets/sky.png"],
['ground', "assets/platform.png"],
['star', "assets/star.png"]
];
preloadImages(assetsImages);
var assetsSprites = [
['dude', 'assets/dude.png', 32, 48]
];
preloadSpritesheet(assetsSprites);
};
function create() {
startPhysicsSystem();
addBackground();
addScoreText();
var platformsToadded = [
[0, (game.world.height - 64), 'ground', 2],
[400, 400, 'ground', 1],
[-150, 250, 'ground', 1]
];
createPlatforms(platformsToadded);
var playerProperties = [32, (game.world.height - 150), 'dude', 0.2, 300];
var playersAnimations = [
['left', [0, 1, 2, 3], 10, true],
['right', [5, 6, 7, 8], 10, true]
];
createPlayer(playerProperties, playersAnimations);
var numberOfStars = 12;
createStars(numberOfStars);
};
function update() {
var bodiesCollides = [
[player, platforms],
[stars, platforms]
];
collides(bodiesCollides);
var bodiesOverlaps = [
[player, stars, collectStar]
];
overlaps(bodiesOverlaps);
var playerHorizontalSpeed = 150;
var playerVerticalSpeed = 350;
dudeMoviment(playerHorizontalSpeed, playerVerticalSpeed);
}; | 19.552632 | 76 | 0.599596 |
6152f28ac0db3a36763d3497e97cbcdc9aad6694 | 328 | js | JavaScript | src/utils/getData.js | angelozdev/escuelajs-reto-06 | f93a629afe29bc3cf0ddcb67d281392c19e38e88 | [
"MIT"
] | null | null | null | src/utils/getData.js | angelozdev/escuelajs-reto-06 | f93a629afe29bc3cf0ddcb67d281392c19e38e88 | [
"MIT"
] | null | null | null | src/utils/getData.js | angelozdev/escuelajs-reto-06 | f93a629afe29bc3cf0ddcb67d281392c19e38e88 | [
"MIT"
] | 1 | 2020-12-22T23:55:03.000Z | 2020-12-22T23:55:03.000Z | /* eslint-disable no-console */
/* eslint-disable consistent-return */
/* eslint-disable no-undef */
const getData = async (API_URL) => {
try {
const response = await fetch(API_URL);
const data = await response.json();
return data;
} catch (error) {
console.log(error.message);
}
}
export default getData; | 23.428571 | 42 | 0.658537 |
61539d81592c02d2f02f561bc10d3d05d4dc5019 | 2,555 | js | JavaScript | react-client/js/components/room/youtube/YoutubePlaylistItem.react.js | jumpinchat/jumpinchat-web | 36e4a73b9fadb38e6e3b126c4b8b52ed47284654 | [
"BSD-3-Clause"
] | 3 | 2021-05-28T07:02:20.000Z | 2021-11-25T02:25:45.000Z | react-client/js/components/room/youtube/YoutubePlaylistItem.react.js | jumpinchat/jumpinchat-web | 36e4a73b9fadb38e6e3b126c4b8b52ed47284654 | [
"BSD-3-Clause"
] | 1 | 2022-02-12T01:52:18.000Z | 2022-02-12T01:52:18.000Z | react-client/js/components/room/youtube/YoutubePlaylistItem.react.js | Ruddernation-Designs/jumpinchat-web | 3a91a239bfc83658dead78a0ed5d2cc9b2a76fd9 | [
"BSD-3-Clause"
] | 5 | 2021-05-28T13:56:55.000Z | 2021-08-13T09:33:39.000Z | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import YoutubePlaylistItemOptions, {
playlistItemActions,
} from './YoutubePlaylistItemOptions.react';
const YoutubePlaylistItem = ({
item,
onDelete,
}) => {
let { startedBy } = item;
if (!startedBy) {
startedBy = {
username: null,
pic: 'user-avatar/avatar-blank.png',
};
}
return (
<div className="youtube__PlaylistItem">
<div className="youtube__PlaylistItemThumbWrapper">
<img
className="youtube__PlaylistItemThumb"
src={item.thumb}
alt={item.title}
/>
</div>
<div className="youtube__PlaylistItemDetails">
<span className="youtube__PlaylistItemTitle">
{item.title}
</span>
<span className="text-sub youtube__PlaylistItemDuration">
<img
className="youtube__PlaylistItemAvatar"
src={startedBy.pic}
alt={startedBy.username}
/>
<span className="youtube__PlaylistItemStartedBy">
{startedBy.username}
</span>
•
{moment
.duration(item.duration, 'seconds')
.format('hh:mm:ss', {
stopTrim: 'm',
})
}
•
{moment(item.createdAt).fromNow()}
</span>
</div>
<div className="youtube__PlaylistItemActions">
<YoutubePlaylistItemOptions
id={item._id}
open={item.optionsOpen || false}
onSelectAction={(action, id) => {
switch (action) {
case playlistItemActions.ITEM_REMOVE:
onDelete(id);
break;
default:
break;
}
}}
/>
</div>
</div>
);
};
YoutubePlaylistItem.propTypes = {
item: PropTypes.shape({
_id: PropTypes.string.isRequired,
mediaType: PropTypes.string.isRequired,
createdAt: PropTypes.string.isRequired,
startedBy: PropTypes.shape({
username: PropTypes.string.isRequired,
pic: PropTypes.string.isRequired,
}).isRequired,
duration: PropTypes.number.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string,
channelId: PropTypes.string.isRequired,
link: PropTypes.string.isRequired,
thumb: PropTypes.string.isRequired,
optionsOpen: PropTypes.bool,
}).isRequired,
onDelete: PropTypes.func.isRequired,
};
export default YoutubePlaylistItem;
| 27.180851 | 65 | 0.595303 |
615439bf770ed16e186ac970bc464dbc2d7c2020 | 1,893 | js | JavaScript | test/fixtures/percy-web/percy-web/mirage/factories/organization.js | kellyselden/ember-cli-dependency-graph | 3dccbd6efe24819d9cb32e7e488e3fc672c6e118 | [
"MIT"
] | 4 | 2017-11-30T01:12:20.000Z | 2019-02-24T07:14:45.000Z | test/fixtures/percy-web/percy-web/mirage/factories/organization.js | kellyselden/ember-cli-dependency-graph | 3dccbd6efe24819d9cb32e7e488e3fc672c6e118 | [
"MIT"
] | 8 | 2017-12-07T01:01:47.000Z | 2018-12-24T11:59:40.000Z | test/fixtures/percy-web/percy-web/mirage/factories/organization.js | kellyselden/ember-cli-dependency-graph | 3dccbd6efe24819d9cb32e7e488e3fc672c6e118 | [
"MIT"
] | 2 | 2017-11-28T05:56:29.000Z | 2018-02-28T21:22:32.000Z | define('percy-web/mirage/factories/organization', ['exports', 'moment', 'ember-cli-mirage'], function (exports, _moment, _emberCliMirage) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _emberCliMirage.Factory.extend({
name: function name(i) {
return 'My Organization ' + i;
},
slug: function slug() {
return this.name.underscore();
},
afterCreate: function afterCreate(organization, server) {
if (!organization.subscription) {
server.create('subscription', { organization: organization });
}
},
withTrial: (0, _emberCliMirage.trait)({
afterCreate: function afterCreate(organization, server) {
server.create('subscription', {
organization: organization,
trialStart: (0, _moment.default)(),
trialEnd: (0, _moment.default)().add(14, 'days').add(1, 'hour'),
plan: server.create('plan', 'trial')
});
}
}),
withUser: (0, _emberCliMirage.trait)({
afterCreate: function afterCreate(organization, server) {
var user = server.create('user');
server.create('organizationUser', { user: user, organization: organization, role: 'member' });
}
}),
withAdminUser: (0, _emberCliMirage.trait)({
afterCreate: function afterCreate(organization, server) {
var user = server.create('user');
server.create('organizationUser', { user: user, organization: organization, role: 'admin' });
}
}),
withGithubIntegration: (0, _emberCliMirage.trait)({
afterCreate: function afterCreate(organization, server) {
if (organization.githubIntegration === null) {
var githubIntegration = server.create('githubIntegration');
organization.update({ githubIntegration: githubIntegration });
}
}
})
});
}); | 34.418182 | 139 | 0.627575 |
6154ded9557d5d74bf3d59ce38ab7e69dcbfc997 | 1,358 | js | JavaScript | src/game/modes/inventory/Reward.js | chastise/PoEController | 490660724f485f85305b1d90a3660f9e4d7cf7ff | [
"MIT"
] | 1 | 2020-04-12T16:13:30.000Z | 2020-04-12T16:13:30.000Z | src/game/modes/inventory/Reward.js | Onebrownsound/PoEController | 09540944fed9a7664673362fcc2616d793bdfc53 | [
"MIT"
] | null | null | null | src/game/modes/inventory/Reward.js | Onebrownsound/PoEController | 09540944fed9a7664673362fcc2616d793bdfc53 | [
"MIT"
] | null | null | null | module.exports = {};
var Inventory = require('../Inventory');
var Window = require('../../Window');
var robot = require('robotjs');
var behaviors = require('../../Behaviors').functions;
behaviors["RewardsArea.Up"] = function () {
if (Inventory.getIndex() >= 10) {
Inventory.subIndex(10);
SetRewardAreaPosition(Inventory.getIndex());
}
};
behaviors["RewardsArea.Down"] = function () {
if (Inventory.getIndex() < 50) {
Inventory.addIndex(10);
SetRewardAreaPosition(Inventory.getIndex());
}
};
behaviors["RewardsArea.Left"] = function () {
if (Inventory.getIndex() % 10 !== 0) {
Inventory.decIndex();
SetRewardAreaPosition(Inventory.getIndex());
}
};
behaviors["RewardsArea.Right"] = function () {
if ((Inventory.getIndex() + 1) % 10 === 0) /* Goes Back to BagArea */ {
Inventory.leaveCurrentSubSection(Inventory.AREA_ID.BAG_AREA);
} else {
Inventory.icrIndex();
SetRewardAreaPosition(Inventory.getIndex());
}
};
function SetRewardAreaPosition(Position) {
var positionX = (Inventory.getIndex() % 10);
var positionY = parseInt(Inventory.getIndex() / 10);
var basePositionX = Window.width * 0.202;
var basePositionY = Window.height * 0.3426;
robot.moveMouse(basePositionX + positionX * Inventory.ITEM_SQUARE_ICR, basePositionY + positionY * Inventory.ITEM_SQUARE_ICR);
}
module.exports.setPosition = SetRewardAreaPosition; | 28.291667 | 127 | 0.705449 |
61554ca2a1d4a68b71e1166cdeb3b399c3868de6 | 39 | js | JavaScript | packages/2002/05/25/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 7 | 2017-07-03T19:53:01.000Z | 2021-04-05T18:15:55.000Z | packages/2002/05/25/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 1 | 2018-09-05T11:53:41.000Z | 2018-12-16T12:36:21.000Z | packages/2002/05/25/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 2 | 2019-01-27T16:57:34.000Z | 2020-10-11T09:30:25.000Z | module.exports = new Date(2002, 4, 25)
| 19.5 | 38 | 0.692308 |
6155e25fe2c5241bc1a8d62b39c70c26c64e7efe | 228 | js | JavaScript | build/script/apache/notosanstamil.map.js | xErik/pdfmake-fonts-google | f66c7c58d6590c87c0d1327f31da2f5a53e76f36 | [
"MIT"
] | 8 | 2015-09-16T14:23:40.000Z | 2020-10-20T19:49:11.000Z | build/script/apache/notosanstamil.map.js | xErik/pdfmake-fonts-google | f66c7c58d6590c87c0d1327f31da2f5a53e76f36 | [
"MIT"
] | 1 | 2017-01-24T16:21:51.000Z | 2017-01-24T16:45:50.000Z | build/script/apache/notosanstamil.map.js | xErik/pdfmake-fonts-google | f66c7c58d6590c87c0d1327f31da2f5a53e76f36 | [
"MIT"
] | 8 | 2016-04-07T05:58:05.000Z | 2021-03-14T10:26:50.000Z | window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"NotoSansTamil":{"bold":"NotoSansTamil-Bold.ttf","normal":"NotoSansTamil-Regular.ttf","italics":"NotoSansTamil-Regular.ttf","bolditalics":"NotoSansTamil-Bold.ttf"}}; | 228 | 228 | 0.75 |
61573c81531aa9b2f74904842d876c6277ea35ad | 2,067 | js | JavaScript | packages/js/src/string/split.spec.js | dalefrancis88/pointfree | 5cfbb7e29666f1ec7e1129beef4ee46a073c278d | [
"0BSD"
] | null | null | null | packages/js/src/string/split.spec.js | dalefrancis88/pointfree | 5cfbb7e29666f1ec7e1129beef4ee46a073c278d | [
"0BSD"
] | 7 | 2020-09-06T11:08:33.000Z | 2021-09-01T18:55:53.000Z | packages/js/src/string/split.spec.js | dalefrancis88/pointfree | 5cfbb7e29666f1ec7e1129beef4ee46a073c278d | [
"0BSD"
] | null | null | null | import test from 'tape'
import split from './split'
import { isFunction } from '@pointfree/core'
const identity = x => x
const createTestable = fn => (...args) => () =>
fn.apply(null, args)
test('(String) - split', t => {
const fn = createTestable(split)
const testData = 'The quick brown fox'
const testSeperator = ' '
t.ok(isFunction(split), 'should be a function')
const err = /^TypeError: split: strings must be provided for both arguments/
t.throws(fn(undefined)(testData), err, 'throws with undefined as first argument')
t.throws(fn(null)(testData), err, 'throws with null as first argument')
t.throws(fn(NaN)(testData), err, 'throws with NaN as first argument')
t.throws(fn(false)(testData), err, 'throws with false as first argument')
t.throws(fn(true)(testData), err, 'throws with true as first argument')
t.throws(fn(1.234)(testData), err, 'throws with float as first argument')
t.throws(fn({})(testData), err, 'throws with object as first argument')
t.throws(fn([])(testData), err, 'throws with Array as first argument')
t.throws(fn(identity)(testSeperator), err, 'throws with Function as second argument')
t.throws(fn(testSeperator)(undefined), err, 'throws with undefined as second argument')
t.throws(fn(testSeperator)(null), err, 'throws with null as second argument')
t.throws(fn(testSeperator)(NaN), err, 'throws with NaN as second argument')
t.throws(fn(testSeperator)(false), err, 'throws with false as second argument')
t.throws(fn(testSeperator)(true), err, 'throws with true as second argument')
t.throws(fn(testSeperator)(1.234), err, 'throws with float as second argument')
t.throws(fn(testSeperator)({}), err, 'throws with object as second argument')
t.throws(fn(testSeperator)([]), err, 'throws with Array as second argument')
t.throws(fn(testSeperator)(identity), err, 'throws with Function as second argument')
t.deepEqual(split(testSeperator)(testData), ['The', 'quick', 'brown', 'fox'], 'works as expected')
t.end()
}) | 46.977273 | 102 | 0.687954 |
6157f2bd22096f4cc916f21bbb5d27b139190704 | 13,345 | js | JavaScript | public/js/all.js | pangdiin/stagegate | 5b90f451a11026dc36b71dff1a2277efba5e459c | [
"MIT"
] | null | null | null | public/js/all.js | pangdiin/stagegate | 5b90f451a11026dc36b71dff1a2277efba5e459c | [
"MIT"
] | null | null | null | public/js/all.js | pangdiin/stagegate | 5b90f451a11026dc36b71dff1a2277efba5e459c | [
"MIT"
] | null | null | null |
var table = null
$(document).ready( function () {
$('.select2').select2({
placeholder: 'Select an option'
});
});
var overlay = $(`
<div class="overlay">
<div class="loader-container text-center">
<div class="text-center"><i class="fa fa-spin fa-spinner fa-3x"></i></div>
<div class="text-center">Loading...</div>
</div>
</div>
`);
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
function formSubmit(el) {
el.submit(function (e) {
var formId = this.id,
form = this;
event.preventDefault();
$(this).find('.card-form').prepend(`
<div class="overlay">
<div class="loader-container text-center">
<div class="text-center"><i class="fa fa-spin fa-spinner fa-3x"></i></div>
<div class="text-center">Submitting request...</div>
</div>
</div>
`)
setTimeout( function () {
form.submit();
}, 1000);
})
}
function renderLabel(data)
{
return '<span class="badge badge-'+ data.type +'">'+ data.label +'</span>';
}
function renderImage(src)
{
return `<a href="${ src }" alt="no image" class="fancy-box"><img class="img-rounded img-preview img-preview-xs" src="${ src }"/></a>`;
}
function renderLinkActions(data)
{
if (data.length <= 0) { return '<div class="l l-default>No Actions</div>' }
let buttons = ''
if (Array.isArray(data)) {
data = data.reduce(function(acc, cur, i) {
acc[i] = cur; return acc;
}, {});
}
for (let key in data) {
let link = data[key]
switch (link.type) {
case 'show': buttons += `<a href="${ link.link }" class="btn btn-success btn-sm"><i class="fa fa-search" data-toggle="tooltip" data-placement="top" title="View"></i></a> `; break;
case 'edit': buttons += `<a href="${ link.link }" class="btn btn-info btn-sm"><i class="fa fa-edit" data-toggle="tooltip" data-placement="top" title="Edit"></i></a> `; break;
case 'update': buttons += `<a href="${ link.link }" class="btn btn-link text-primary"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="Update"></i></a> `; break;
case 'delete': buttons += `<a name="btn_delete" href="${ link.link }" class="btn btn-link text-danger" data-redirect="${ link.redirect }"><i class="fa fa-trash" data-toggle="tooltip" data-placement="top" title="Delete"></i></a>`; break;
case 'restore': buttons += `<a name="btn_restore" href="${ link.link }" class="btn btn-link text-info" data-redirect="${ link.redirect }"><i class="fa fa-refresh" data-toggle="tooltip" data-placement="top" title="Restore"></i></a>`; break;
case 'purge': buttons += `<a name="btn_purge" href="${ link.link }" class="btn btn-link text-danger" data-redirect="${ link.redirect }"><i class="fa fa-trash" data-toggle="tooltip" data-placement="top" title="Delete Permanently"></i></a>`; break;
default: buttons += `<a class="${ link.class } btn btn-link" name="${ link.name }" href="${ link.link }"><i class="${ link.icon }" data-toggle="tooltip" data-placement="top" title="${ link.label }"></i></a></li>`; break;
}
}
return buttons;
// return `<div class="btn-group btn-group-sm" role="group" aria-label="User Actions">
// ${ buttons }
// </div>`;
}
function renderActions(data)
{
if (data.length <= 0) { return '<div class="l l-default>No Actions</div>' }
let buttons = '',
more_buttons = '', more_links = 0
if (Array.isArray(data)) {
data = data.reduce(function(acc, cur, i) {
acc[i] = cur; return acc;
}, {});
}
for (let key in data) {
let link = data[key]
switch (link.type) {
case 'show': buttons += `<a href="${ link.link }" class="btn btn-sm btn-info"><i class="fa fa-search" data-toggle="tooltip" data-placement="top" title="View"></i></a>`; break;
case 'edit': buttons += `<a href="${ link.link }" class="btn btn-sm btn-primary"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="Edit"></i></a>`; break;
case 'update': buttons += `<a href="${ link.link }" class="btn btn-sm btn-primary"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="Update"></i></a>`; break;
case 'delete': more_links++; more_buttons+= `<li class="dropdown-item"><a class="text-danger" name="btn_delete" href="${ link.link }" data-redirect="${ link.redirect }"><i class="fa fa-trash text-danger"></i> Delete</a></li>`; break;
case 'purge': more_links++; more_buttons+= `<li class="dropdown-item"><a class="text-danger" name="btn_purge" href="${ link.link }" data-redirect="${ link.redirect }"><i class="fa fa-trash text-danger"></i> Delete</a></li>`; break;
case 'restore':more_links++; more_buttons+= `<li class="dropdown-item"><a class="text-info" name="btn_restore" href="${ link.link }" data-redirect="${ link.redirect }"><i class="fa fa-refresh text-info"></i> Restore</a></li>`; break;
default: more_links++; more_buttons += `<li class="dropdown-item"><a class="${ link.class }" name="${ link.name }" href="${ link.link }"><i class="${ link.icon }"></i> ${ link.label }</a></li>`; break;
}
}
more_buttons = ` <div class="btn-group" role="group">
<button id="userActions" type="button" class="btn btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> More </button>
<div class="dropdown-menu" aria-labelledby="userActions"> ${ more_buttons } </div>
</div>`
return `<div class="btn-group btn-group-sm" role="group" aria-label="User Actions">
${ buttons }
${ more_links > 0 ? more_buttons : '' }
</div>`;
}
function renderChangeStatus(data)
{
return `<label class="switch switch-3d switch-primary">
<input type="checkbox" class="switch-input data-table" value="true" ${ data.value == 'active' ? 'checked="true"' : '' } data-link="${ data.link }"/>
<span class="switch-label"></span>
<span class="switch-handle"></span>
</label>
`
}
function str_slug(text)
{
return text .toLowerCase() .replace(/ /g,'-') .replace(/[^\w-]+/g,'') ;
}
function previewActions()
{
$("body").on("click", "#btn_delete", function(e) {
e.preventDefault();
let linkURL = $(this).attr("href"),
linkRedirect = $(this).attr("data-redirect");
deleteSwal(linkURL, linkRedirect)
});
$("body").on("click", "#btn_purge", function(e) {
e.preventDefault();
let linkURL = $(this).attr("href"),
linkRedirect = $(this).attr("data-redirect");
purgeSwal(linkURL, linkRedirect)
});
}
function dataTableActions(table)
{
let ajax = null,
timer = null
$("body").on("change", ".switch-input.data-table", function(e) {
e.preventDefault()
let status = $(this).is(':checked'),
linkURL = $(this).data('link'),
linkRedirect = $(this).data('redirect')
swalLoader();
clearTimeout(timer)
timer = setTimeout(function () {
if (ajax) { ajax.abort() }
ajax = $.ajax({
url: linkURL,
type: 'PATCH',
dataType: 'json',
data: {status: status},
success: function(data){
// if (linkRedirect !== 'undefined' || linkRedirect != null) {
// location.href = linkRedirect;
// return
// }
if (table) { table.ajax.reload() }
swal.close()
},
error: function(data){
table.ajax.reload()
swal.close()
}
});
}, 1000)
});
$("body").on("click", "#content-table a[name='btn_delete']", function(e) {
e.preventDefault();
let linkURL = $(this).attr("href"),
linkRedirect = $(this).attr("data-redirect");
deleteSwal(linkURL, linkRedirect)
});
$("body").on("click", "#content-table a[name='btn_restore']", function(e) {
e.preventDefault();
var linkURL = $(this).attr("href");
var linkRedirect = $(this).attr("data-redirect");
restoreSwal(linkURL, linkRedirect)
});
$("body").on("click", "#content-table a[name='btn_purge']", function(e) {
e.preventDefault();
var linkURL = $(this).attr("href");
var linkRedirect = $(this).attr("data-redirect");
purgeSwal(linkURL, linkRedirect)
});
}
function deleteSwal(linkURL, linkRedirect)
{
swal({
title: "Are you sure you want to delete this record?",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Delete",
cancelButtonText: "Cancel",
closeOnConfirm: false,
showLoaderOnConfirm: true,
}).then(function(result){
if(result.value){
ajaxSwal('DELETE', linkURL, linkRedirect);
}
});
}
function restoreSwal(linkURL, linkRedirect)
{
swal({
title: "Are you sure you?",
type: "info",
showCancelButton: true,
confirmButtonText: "Restore",
cancelButtonText: "Cancel",
showLoaderOnConfirm: true,
}).then(function(result){
if(result.value){
ajaxSwal('PATCH', linkURL, linkRedirect);
}
});
}
function purgeSwal(linkURL, linkRedirect)
{
swal({
title: "Are you sure you want to delete this item permanently?",
text: " Anywhere in the application that references this item will most likely error. Proceed at your own risk. This can not be un-done.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Delete",
cancelButtonText: "Cancel",
showLoaderOnConfirm: true,
}).then(function(result){
if(result.value){
ajaxSwal('DELETE', linkURL, linkRedirect);
}
});
}
function ajaxSwal(type, linkURL, linkRedirect)
{
swalLoader();
$.ajax({
url: linkURL,
type: type,
dataType: 'json',
data: {},
success: function(data){
if (linkRedirect !== 'undefined') {
location.href = linkRedirect;
return
}
table.ajax.reload()
swal.close()
},
error: function(data){
table.ajax.reload()
swal.close()
}
});
}
function swalLoader(message)
{
if(message == "")
message = "Please wait while we send your request.";
swal({
title: 'Loading...',
text: message,
// imageUrl: window.location.origin + "/img/ring.gif",
animation: false,
showConfirmButton:false,
allowOutsideClick: false
})
}
/**
* Works same as array_get function of Laravel
* @param array
* @param key
* @returns {*}
*/
var array_get = function (array, key, defaultValue) {
"use strict";
if (typeof defaultValue === 'undefined') {
defaultValue = null;
}
var result;
try {
result = array[key];
if(typeof array[key] !== 'undefined'){
result = array[key]
}else{
result = defaultValue;
}
} catch (err) {
result = defaultValue;
}
if(result === null) {
result = defaultValue;
}
return result;
};
/**
* Get the array/object length
* @param array
* @returns {number}
*/
var array_length = function (array) {
"use strict";
return _.size(array);
};
/**
* Get the first element.
* Passing n will return the first n elements of the array.
* @param array
* @param n
* @returns {*}
*/
var array_first = function (array, n) {
"use strict";
return _.first(array, n);
};
/**
* Get the first element.
* Passing n will return the last n elements of the array.
* @param array
* @param n
* @returns {*}
*/
var array_last = function (array, n) {
"use strict";
return _.last(array, n);
};
/**
* Works same as dd function of Laravel
*/
var dd = function () {
"use strict";
console.log.apply(console, arguments);
};
/**
* Json encode
* @param object
*/
var json_encode = function (object) {
"use strict";
if (typeof object === 'undefined') {
object = null;
}
return JSON.stringify(object);
};
/**
* Json decode
* @param jsonString
* @returns {*}
*/
var json_decode = function (jsonString, defaultValue) {
"use strict";
if (typeof jsonString === 'string') {
var result;
try {
result = $.parseJSON(jsonString);
} catch (err) {
result = defaultValue;
}
return result;
}
return jsonString;
};
| 32.469586 | 258 | 0.546272 |
615a73378889eb5e4a3d8ea7b615c693c68f4134 | 2,483 | js | JavaScript | demo/__mocks__/skyway-js.js | horiken38/horiken38.github.io | 2fa82a742496995dbd877b35d066f53a5fe2d4fc | [
"Apache-2.0"
] | 1 | 2018-08-28T06:29:24.000Z | 2018-08-28T06:29:24.000Z | demo/__mocks__/skyway-js.js | horiken38/horiken38.github.io | 2fa82a742496995dbd877b35d066f53a5fe2d4fc | [
"Apache-2.0"
] | 5 | 2018-04-25T22:50:29.000Z | 2018-04-26T23:03:44.000Z | demo/__mocks__/skyway-js.js | horiken38/horiken38.github.io | 2fa82a742496995dbd877b35d066f53a5fe2d4fc | [
"Apache-2.0"
] | 2 | 2018-05-19T06:35:43.000Z | 2018-10-15T14:59:31.000Z | 'use strict';
const EventEmitter =require('events')
const TEST_ID = 'test-id'
class Call extends EventEmitter {
constructor(parent) {
super(parent)
this.remoteId = 'SSG_test-other-id'
}
answer() {
this.emit('stream', {})
}
close() {
this.emit('close')
}
}
class Conn extends EventEmitter {
constructor(parent) {
super(parent)
this.parent = parent
this.preamble = 'SSG:'
this.body = JSON.stringify({
type: 'response',
target: 'profile',
method: 'get',
body: {
uuid: 'test-uuid',
ssg_peerid: 'SSG_test-other-id'
}
})
this.data = ''
this.createData()
setTimeout( ev => {
this.emit('open')
setTimeout(ev => {
this.emit('data', Buffer.from(this.data))
}, 100)
}, 100)
}
createData() {
this.data = [this.preamble, this.body].join("")
}
send(str) {
if(str.indexOf("SSG:") === 0) {
if(str === 'SSG:profile/get') this.emit('data', Buffer.from(this.data))
if(str.indexOf('SSG:stream/start') === 0) {
const call = new Call()
this.parent.emit('call', call)
}
if(str === 'SSG:stream/stop') { /*noop*/ }
} else {
const req = JSON.parse(str)
if( req.payload.path.indexOf("/echo/") === 0 ) {
const ret =
{ topic: req.topic,
payload: {
status: 200,
transaction_id: req.payload.transaction_id,
method: req.payload.method,
chunked: false,
body: req.payload.path.slice(6)
}
}
this.emit('data', Buffer.from(JSON.stringify(ret)))
}
}
}
}
class Socket extends EventEmitter {
constructor() {
super()
}
send(key, data) {
switch( key ) {
case 'ROOM_JOIN':
this.emit('ROOM_USER_JOIN', { src: TEST_ID, roomName: data.roomName })
break;
case 'ROOM_GET_USERS':
this.emit('ROOM_USERS', { roomName: data.roomName, userList: ['SSG_test-other-id']})
break;
default:
break;
}
}
}
class SkyWay extends EventEmitter {
constructor() {
super()
this.socket = new Socket()
setTimeout( ev => {
this.myid = TEST_ID
this.emit('open', this.myid)
}, 100)
}
connect() {
const conn = new Conn(this)
return conn
}
call() {
const call = new Call();
setTimeout( ev => {
call.emit('stream', null);
}, 100);
return call;
}
}
export default SkyWay
| 19.1 | 90 | 0.541281 |
615aa20ead6ea17874dbbda78f16a1f498c41fcb | 1,181 | js | JavaScript | src/pages/gallery/2016/160619_LSERSA_2_brentwood.js | domwakeling/bowles-website | 2034bb808085b4ca15e49f5467bd280838d09b79 | [
"MIT"
] | null | null | null | src/pages/gallery/2016/160619_LSERSA_2_brentwood.js | domwakeling/bowles-website | 2034bb808085b4ca15e49f5467bd280838d09b79 | [
"MIT"
] | 24 | 2018-05-19T16:39:02.000Z | 2020-09-03T12:58:54.000Z | src/pages/gallery/2016/160619_LSERSA_2_brentwood.js | domwakeling/bowles-website | 2034bb808085b4ca15e49f5467bd280838d09b79 | [
"MIT"
] | null | null | null | import React from "react";
import PropTypes from 'prop-types';
import GalleryPage from '../../../components/GalleryPage.jsx';
import img01 from '../../../images/gallery/2016/160619_LSERSA_2_brentwood/MaleU14.jpg';
import img02 from '../../../images/gallery/2016/160619_LSERSA_2_brentwood/MaleU16.jpg';
import img03 from '../../../images/gallery/2016/160619_LSERSA_2_brentwood/FemaleU18.jpg';
import img04 from '../../../images/gallery/2016/160619_LSERSA_2_brentwood/FemaleSenior.jpg';
import img05 from '../../../images/gallery/2016/160619_LSERSA_2_brentwood/MaleSenior.jpg';
const images = [img01, img02, img03, img04, img05];
const alts = [
'Mens Under-14',
'Mens Under-16',
'Ladies Under-18',
'Ladies Seniors',
'Mens Seniors'
];
const title = 'Medallists from LSERSA 2 at Brentwood on 19th June 2016';
const link = '/news/2016/july/LSERSA_Brentwood';
const Fade = ({ location }) => {
const data = {
images,
alts,
title,
link
};
return (
<div>
<GalleryPage location={location} data={data} />
</div>
);
};
export default Fade;
Fade.propTypes = {
location: PropTypes.object
}; | 29.525 | 92 | 0.660457 |
615b75c10fa886ceeba19073a0711d470b930d4e | 369 | js | JavaScript | admin/js/switch.js | emerywebster/spiceguide | 4157274bdc2078fd06c6eb1d0aa66de6cc7f46b4 | [
"MIT"
] | null | null | null | admin/js/switch.js | emerywebster/spiceguide | 4157274bdc2078fd06c6eb1d0aa66de6cc7f46b4 | [
"MIT"
] | null | null | null | admin/js/switch.js | emerywebster/spiceguide | 4157274bdc2078fd06c6eb1d0aa66de6cc7f46b4 | [
"MIT"
] | null | null | null | jQuery(document).ready(function($) {
// Switch Click
$('.switch').click(function() {
if ($(this).hasClass('on')) {
$(this).parent().find('input:checkbox').attr('checked', true);
$(this).removeClass('on').addClass('off');
} else {
$(this).parent().find('input:checkbox').attr('checked', false);
$(this).removeClass('off').addClass('on');
}
});
}); | 26.357143 | 66 | 0.590786 |
615bba9c086ae2a0e2b52f4fcaf24fde567f1758 | 1,115 | js | JavaScript | src/index.js | oilegor1029/sri-front | 196a98a6076752707cff2571704af52026b2a1b5 | [
"BSD-2-Clause"
] | 1 | 2020-03-18T09:11:06.000Z | 2020-03-18T09:11:06.000Z | src/index.js | oilegor1029/sri-front | 196a98a6076752707cff2571704af52026b2a1b5 | [
"BSD-2-Clause"
] | 66 | 2020-03-12T10:53:28.000Z | 2022-01-17T12:34:15.000Z | src/index.js | oilegor1029/sri-front | 196a98a6076752707cff2571704af52026b2a1b5 | [
"BSD-2-Clause"
] | 4 | 2020-03-12T10:46:59.000Z | 2020-11-18T14:25:12.000Z | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store';
import * as actions from './actions/App';
import AppContainer from './containers/App';
import * as serviceWorker from './serviceWorker';
import './i18n';
import './style/reset.css';
import '@fortawesome/fontawesome-free/css/all.css';
import requestWhoami from './utils/fetchUtils';
/* Store */
export const store = configureStore();
// window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
/* render app */
const app = (
<Provider store={store}>
<AppContainer />
</Provider>
);
const initialAction = async () => {
const user = await requestWhoami();
store.dispatch(actions.iam(user));
store.dispatch(actions.appLoaded());
};
ReactDOM.render(app, document.getElementById('root'), initialAction);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
| 26.547619 | 79 | 0.724664 |
615c522602869247df68467a1358846e0afa97e7 | 709 | js | JavaScript | src/styles/partial-nav-link.js | sweetlikekendy/gatsby-web-portfolio-revamp | b81d1c6770e99a9965b96bfb05e346df95e532f7 | [
"MIT"
] | null | null | null | src/styles/partial-nav-link.js | sweetlikekendy/gatsby-web-portfolio-revamp | b81d1c6770e99a9965b96bfb05e346df95e532f7 | [
"MIT"
] | 2 | 2020-03-11T00:22:38.000Z | 2020-03-11T00:22:38.000Z | src/styles/partial-nav-link.js | sweetlikekendy/gatsby-web-portfolio-revamp | b81d1c6770e99a9965b96bfb05e346df95e532f7 | [
"MIT"
] | null | null | null | import React from "react"
import { Link } from "gatsby"
import tw from "twin.macro"
export default function PartialNavLink(props) {
// this link will be active when itself or deeper routes
// are current
const isPartiallyActive = ({ isPartiallyCurrent }) => {
return isPartiallyCurrent
? {
className:
"text-blue-600 inline-flex items-center text-base font-medium px-4 py-2 hover:text-blue-800 active:text-blue-900",
}
: {}
}
return (
<Link
getProps={isPartiallyActive}
className="text-base font-medium text-blueGray-600 px-4 py-2 hover:text-blue-600 active:text-blue-700"
{...props}
>
{props.children}
</Link>
)
}
| 27.269231 | 126 | 0.641749 |