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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1bfed32ebfcd46146bcbe616821da973e3da76a | 8,454 | js | JavaScript | src/routes/Operation/BroadcastList.js | qidaiqiji/oa_backend | cfb060fe3911f24e30877d4de7435eb6a088f324 | [
"MIT"
] | null | null | null | src/routes/Operation/BroadcastList.js | qidaiqiji/oa_backend | cfb060fe3911f24e30877d4de7435eb6a088f324 | [
"MIT"
] | null | null | null | src/routes/Operation/BroadcastList.js | qidaiqiji/oa_backend | cfb060fe3911f24e30877d4de7435eb6a088f324 | [
"MIT"
] | null | null | null | import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import moment from 'moment';
import Debounce from 'lodash-decorators/debounce';
import globalStyles from '../../assets/style/global.less';
import { Card, DatePicker, Modal, Input, Button, Table, Icon, message } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './BroadcastList.less';
import ClearIcon from '../../components/ClearIcon';
const { Search, TextArea } = Input;
// const { MonthPicker, RangePicker } = DatePicker;
@connect(state => ({
broadcastList: state.broadcastList,
}))
export default class BroadcastList extends PureComponent {
componentWillMount() {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/mount',
payload: {},
});
}
componentWillUnmount() {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/unmountReducer',
});
}
handleSaveKeyWords(e) {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/addMsg',
payload: {
keywords: e.target.value,
},
});
}
handleSearchBroadcast(type, e, dateString) {
const { dispatch, broadcastList } = this.props;
const { keywords } = broadcastList;
switch (type) {
case 'keywords':
dispatch({
type: 'broadcastList/conditionBroadCast',
payload: {
keywords,
},
});
break;
case 'date':
dispatch({
type: 'broadcastList/conditionBroadCast',
payload: {
startTime: dateString[0],
endTime: dateString[1],
},
});
break;
default:
break;
}
}
handleAddMsg=() => {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/addMsg',
payload: {
isShowItemMsg: true,
},
});
}
handleOperation=(e, record) => {
const { dispatch } = this.props;
console.log(e);
if (e.type == 3) {
if (e.name === '修改') {
dispatch({
type: 'broadcastList/addMsg',
payload: {
isShowItemMsg: true,
itemMsgUrl: e.url,
name: record.name,
desc: record.desc,
},
});
} else {
dispatch({
type: 'broadcastList/addMsg',
payload: {
isShowTip: true,
tipUrl: e.url,
},
});
}
}
}
handleCancel=() => {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/addMsg',
payload: {
isShowItemMsg: false,
isShowTip: false,
desc: '',
name: '',
itemMsgUrl:'',
},
});
}
onChangeValue=(type, e) => {
const { dispatch } = this.props;
switch (type) {
case 'input':
dispatch({
type: 'broadcastList/addMsg',
payload: {
name: e.target.value,
},
});
break;
case 'textArea':
dispatch({
type: 'broadcastList/addMsg',
payload: {
desc: e.target.value,
},
});
break;
default:
break;
}
}
handleClear=(type)=>{
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/getList',
payload: {
[type]: "",
},
});
}
handleConfirm(type) {
console.log('dddd',type)
const { broadcastList, dispatch } = this.props;
const { name, desc, itemMsgUrl, tipUrl } = broadcastList;
if (type === 'add') {
console.log('dddd222222');
if (name === '') {
message.warning('请填写直播间名称');
return false;
} else if (itemMsgUrl) {
console.log(itemMsgUrl.split('='));
dispatch({
type: 'broadcastList/confirmEditBroadCast',
payload: {
name,
desc,
id: itemMsgUrl.split('=')[1],
},
});
} else {
dispatch({
type: 'broadcastList/confirmEditBroadCast',
payload: {
desc,
name,
},
});
}
} else {
dispatch({
type: 'broadcastList/deleteItem',
payload: {
id: tipUrl.split('=')[1],
},
});
}
}
// 换页
handleChangeCurPage(page) {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/conditionBroadCast',
payload: {
currentPage: page,
},
});
}
// 切换每页行数
handleChangePageSize(_, pageSize) {
const { dispatch } = this.props;
dispatch({
type: 'broadcastList/conditionBroadCast',
payload: {
pageSize,
currentPage: 1,
},
});
}
render() {
const columns = [
{
title: '直播间ID',
dataIndex: 'roomId',
key: 'roomId',
},
{
title: '直播间名称',
dataIndex: 'name',
key: 'name',
},
{
title: '描述',
dataIndex: 'desc',
key: 'desc',
width:'500px',
},
{
title: '创建时间',
dataIndex: 'createdAt',
key: 'createdAt',
},
{
title: '操作',
dataIndex: 'actionList',
key: 'actionList',
width: '160px',
render: (actionList, record) => {
return actionList.map((item) => {
return <a className={styles.operator} onClick={this.handleOperation.bind(this, item, record)}>{item.name}</a>;
});
},
},
];
const {
broadcastList: {
startTime,
endTime,
isLoading,
isShowItemMsg,
isShowTip,
name,
desc,
count,
list,
currentPage,
pageSize,
keywords,
},
} = this.props;
console.log(this.props);
return (
<PageHeaderLayout title="直播间列表">
<Card bordered={false}>
<Search
placeholder="直播间ID/名称"
onChange={this.handleSaveKeyWords.bind(this)}
onSearch={this.handleSearchBroadcast.bind(this, 'keywords')}
style={{ width: 200, marginRight: '10px' }}
suffix={keywords?<ClearIcon
handleClear={this.handleClear.bind(this,"keywords")}
/>:""}
/>
<span>创建时间:</span>
<DatePicker.RangePicker
onChange={this.handleSearchBroadcast.bind(this, 'date')}
style={{ marginRight: '10px' }}
value={[
startTime ? moment(startTime, 'YYYY-MM-DD') : '',
endTime ? moment(endTime, 'YYYY-MM-DD') : '',
]}
format="YYYY-MM-DD"
/>
<Button type="primary" onClick={this.handleAddMsg}>+新增</Button>
<Table
dataSource={list}
columns={columns}
style={{ marginTop: '15px' }}
bordered
pagination={{
current: currentPage,
pageSize,
total: count,
showSizeChanger: true,
onShowSizeChange: this.handleChangePageSize.bind(this),
onChange: this.handleChangeCurPage.bind(this),
showTotal:total => `共 ${total} 个结果`,
}}
loading={isLoading}
/>
<Modal
visible={isShowTip}
centered
closable={false}
onOk={this.handleConfirm.bind(this)}
onCancel={this.handleCancel}
>
<p style={{ textAlign: 'center', padding: '40px 0' }}>{'确定要删除该直播间吗?'}
</p>
</Modal>
<Modal
visible={isShowItemMsg}
title="新增/修改"
destroyOnClose
onOk={this.handleConfirm.bind(this, 'add')}
onCancel={this.handleCancel}
>
<p style={{ textAlign: 'center' }}><Icon type="exclamation-circle" style={{ color: '#c62f2f' }} /> 新增直播间需通知相关人员前往“阿里云平台”进行相关配置!</p>
<p className={styles.modalInline}> <div className={styles.modalMsg}><span>*</span>直播间名称:</div><Input value={name} onChange={this.onChangeValue.bind(this, 'input')} /> </p>
<p className={styles.modalInline}> <span className={styles.modalDesc}>{' '}描述:</span> <TextArea rows={4} value={desc} onChange={this.onChangeValue.bind(this, 'textArea')} /></p>
</Modal>
</Card>
</PageHeaderLayout>
);
}
}
| 26.092593 | 189 | 0.504613 |
b1c02f9791c0fc12412cc30779418660d17e210d | 438 | js | JavaScript | 3.05.02/a00656.js | isabella232/tessapi | 54e30298a42ca64562008bc093ae678de3752c30 | [
"Apache-2.0"
] | 8 | 2020-01-31T02:21:41.000Z | 2022-02-09T09:39:21.000Z | 3.05.02/a00656.js | tesseract-ocr/tessapi | 54e607767038052bb5df70a1f092a21a85d89d06 | [
"Apache-2.0"
] | 1 | 2021-05-28T16:54:43.000Z | 2021-05-28T16:58:02.000Z | 3.05.02/a00656.js | isabella232/tessapi | 54e30298a42ca64562008bc093ae678de3752c30 | [
"Apache-2.0"
] | 9 | 2021-01-25T01:17:47.000Z | 2022-02-12T08:40:52.000Z | var a00656 =
[
[ "DisableCharDisplay", "a00656.html#a0886f5a1957fafc7b4c94b960fffd4dd", null ],
[ "DisableMatchDisplay", "a00656.html#a3153d73346f50f6c901137134968f633", null ],
[ "EnableCharDisplay", "a00656.html#aaba4f6185ffd4b4398726794b565d114", null ],
[ "EnableMatchDisplay", "a00656.html#a7ba242098083608d939e1d8ee365efc4", null ],
[ "ExtractFontName", "a00656.html#aa011b40b5e90b4087d0e42ea5fcce12c", null ]
]; | 54.75 | 85 | 0.755708 |
b1c0b252fd739c292dcd1aea1ae23f53b7be5f3d | 1,320 | js | JavaScript | client/app/common/directives/multipleEmails.js | trainline/environment-manager | c84623a5f64cebe68a1afd4fec09821cc5d8ddad | [
"Apache-2.0"
] | 113 | 2016-09-28T15:32:40.000Z | 2021-06-08T09:02:02.000Z | client/app/common/directives/multipleEmails.js | trainline/environment-manager | c84623a5f64cebe68a1afd4fec09821cc5d8ddad | [
"Apache-2.0"
] | 90 | 2016-09-28T18:57:19.000Z | 2018-05-31T08:58:47.000Z | client/app/common/directives/multipleEmails.js | trainline/environment-manager | c84623a5f64cebe68a1afd4fec09821cc5d8ddad | [
"Apache-2.0"
] | 31 | 2016-09-28T16:39:28.000Z | 2021-03-01T14:31:08.000Z | /* TODO: enable linting and fix resulting errors */
/* eslint-disable */
/* Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. */
'use strict';
angular.module('EnvironmentManager.common').directive('multipleEmails', function () {
return {
require: 'ngModel',
link: function(scope, element, attrs, ctrl) {
ctrl.$parsers.unshift(function (viewValue) {
var emails = viewValue.split(',');
emails = _.compact(emails);
// loop that checks every email, returns undefined if one of them fails.
var re = /\S+@\S+\.\S+/;
var validityArr = emails.map(function(str){
return re.test(str.trim());
}); // sample return is [true, true, true, false, false, false]
var atLeastOneInvalid = false;
angular.forEach(validityArr, function(value) {
if (value === false) {
atLeastOneInvalid = true;
}
});
if (!atLeastOneInvalid) {
// ^ all I need is to call the angular email checker here, I think.
ctrl.$setValidity('multipleEmails', true);
return viewValue;
} else {
ctrl.$setValidity('multipleEmails', false);
return undefined;
}
});
}
};
});
| 34.736842 | 131 | 0.592424 |
b1c28a9b10b89eb8ab1a8c090803fac640a4832c | 4,508 | js | JavaScript | app/containers/Dashboard/Header/HeaderStyles.js | nidzola951/trailblock-frontend | 20e11b9f94615218acd1e817918679bea4afac1c | [
"MIT"
] | null | null | null | app/containers/Dashboard/Header/HeaderStyles.js | nidzola951/trailblock-frontend | 20e11b9f94615218acd1e817918679bea4afac1c | [
"MIT"
] | null | null | null | app/containers/Dashboard/Header/HeaderStyles.js | nidzola951/trailblock-frontend | 20e11b9f94615218acd1e817918679bea4afac1c | [
"MIT"
] | null | null | null | import styled from 'styled-components';
import { NavLink } from 'react-router-dom';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import LogoImg from '../../../assets/images/logo-white.png';
export const Container = styled.div`
width: 100%;
height: 50px;
padding-left: 50px;
padding-right: 50px;
position: fixed;
top: 0;
left: 0;
display: table;
background: #082333;
transition: 0.2s all;
z-index: 1000;
`;
export const LeftContainer = styled.div`
width: 125px;
height: 50px;
padding-top: 9px;
display: table-cell;
`;
export const SocialContainer = styled.div`
width: 150px;
padding-top: 3px;
padding-left: 3px;
display: table-cell;
position: relative;
vertical-align: middle;
:before {
content: '';
display: block;
width: 1px;
height: 30px;
background: #9da7ae;
opacity: 0.2;
position: absolute;
left: 0;
top: 11px;
}
`;
export const SocialButton = styled.a`
height: 30px;
width: 30px;
margin-left: 5px;
margin-right: 2px;
font-size: 18px;
color: white;
opacity: 0.6;
cursor: pointer;
display: inline-block;
padding: 5px;
-webkit-transition: 0.2s all;
transition: 0.2s all;
svg {
vertical-align: middle;
}
:hover {
opacity: 1;
}
`;
export const CenterContainer = styled.div`
width: 230px;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
`;
export const RightContainer = styled.div`
width: 157px;
vertical-align: middle;
height: 50px;
display: table-cell;
`;
export const Logo = styled.div`
width: 95px;
height: 30px;
cursor: pointer;
background: url(${LogoImg});
background-repeat: no-repeat;
background-size: contain;
position: relative;
`;
export const Beta = styled.div`
background-color: #3cbc98;
color: white;
text-transform: uppercase;
font-size: 9px;
letter-spacing: 0.7px;
padding: 2px;
padding-left: 7px;
padding-right: 7px;
border-radius: 3px;
position: absolute;
font-weight: 700;
right: 0;
bottom: -4px;
`;
export const Icon = styled(FontAwesomeIcon)`
font-size: 18px;
vertical-align: middle;
margin-top: -5px;
margin-right: 13px;
`;
export const StyledLink = styled(NavLink)`
color: white;
font-weight: 600;
text-decoration: none;
padding: 19px 14px 15px 12px;
margin-left: 5px;
margin-right: 5px;
transition: 0.2s all;
width: auto;
display: inline-block;
font-size: 13px;
margin-bottom: 3px;
position: relative;
opacity: 0.7;
&.${props => props.activeClassName} {
border-right: none;
background: transparent;
opacity: 1;
color: white;
}
:hover {
background: transparent;
opacity: 1;
}
> svg {
display: inline-block;
margin-top: -2px;
margin-right: 15px;
font-size: 16px;
}
`;
export const SimpleStyledLink = styled(NavLink)`
color: white;
font-weight: 600;
text-decoration: none;
padding: 13px 9px;
margin-left: 5px;
margin-right: 5px;
transition: 0.2s all;
width: auto;
display: inline-block;
font-size: 13px;
margin-bottom: 3px;
position: relative;
&.${props => props.activeClassName} {
border-right: none;
background: transparent;
opacity: 1;
color: white;
}
:hover {
background: transparent;
> svg {
opacity: 1;
}
}
> svg {
display: inline-block;
margin-top: 2px;
margin-right: 0px;
font-size: 16px;
opacity: 0.7;
transition: 0.2s all;
}
`;
export const StyledLinkButton = styled.button`
color: white;
font-weight: 600;
text-decoration: none;
padding: 13px 9px;
padding-right: 0px;
transition: 0.2s all;
width: auto;
display: inline-block;
font-size: 14px;
margin-bottom: 3px;
position: relative;
background: #082233;
border: none;
font-family: 'IBM Plex Sans', sans-serif;
text-align: left !important;
cursor: pointer;
outline: none;
&.${props => props.activeClassName} {
border-right: none;
background: transparent;
color: white;
> svg {
opacity: 1;
}
}
:hover {
background: transparent;
> svg {
opacity: 1;
}
}
> svg {
display: inline-block;
margin-top: 3px;
margin-right: 0px;
opacity: 0.7;
transition: 0.2s all;
}
`;
export const NotificationBadge = styled.span`
background: #ef5350;
color: white;
font-weight: 600;
border-radius: 5px;
padding: 2px 5px;
font-size: 11px;
margin-left: 9px;
position: absolute;
top: 7px;
left: 8px;
`;
| 19.021097 | 61 | 0.644188 |
b1c2bc1bef385441aa4aa270f559fc4b100de35b | 251 | js | JavaScript | src/directives/dao-select-all.js | olivewind/dao-style | 99c9a4d3f8e9289a2c2985baea28772d3b0755cc | [
"MIT"
] | 112 | 2018-10-10T09:12:28.000Z | 2022-03-03T00:54:51.000Z | src/directives/dao-select-all.js | olivewind/dao-style | 99c9a4d3f8e9289a2c2985baea28772d3b0755cc | [
"MIT"
] | 241 | 2018-10-10T09:22:36.000Z | 2021-08-02T21:22:59.000Z | src/directives/dao-select-all.js | olivewind/dao-style | 99c9a4d3f8e9289a2c2985baea28772d3b0755cc | [
"MIT"
] | 23 | 2018-10-10T09:47:58.000Z | 2021-11-12T02:26:20.000Z | import select from '../utils/select';
function handleClick(event) {
select(event.target);
}
export default {
bind(el) {
el.addEventListener('click', handleClick);
},
unbind(el) {
el.removeEventListener('click', handleClick);
},
};
| 16.733333 | 49 | 0.661355 |
b1c2cb2682ed62ac3cf3f300ca876cf7e0051aa0 | 397 | js | JavaScript | src/plugins/border-radius/index.js | doong-jo/editor | a88252fd4b1a3889a47b933dda2a1b31fe78731f | [
"MIT"
] | 426 | 2019-06-28T08:23:57.000Z | 2022-03-30T01:53:10.000Z | src/plugins/border-radius/index.js | doong-jo/editor | a88252fd4b1a3889a47b933dda2a1b31fe78731f | [
"MIT"
] | 141 | 2019-10-17T04:34:26.000Z | 2022-01-22T08:11:07.000Z | src/plugins/border-radius/index.js | doong-jo/editor | a88252fd4b1a3889a47b933dda2a1b31fe78731f | [
"MIT"
] | 59 | 2019-08-08T17:12:31.000Z | 2022-03-16T03:25:05.000Z | import { Editor } from "el/editor/manager/Editor";
import BorderRadiusEditor from "./BorderRadiusEditor";
import BorderRadiusProperty from "./BorderRadiusProperty";
/**
*
* @param {Editor} editor
*/
export default function (editor) {
editor.registerElement({
BorderRadiusEditor,
});
editor.registerMenuItem('inspector.tab.style', {
BorderRadiusProperty
});
} | 23.352941 | 58 | 0.692695 |
b1c3517d0145e5145e98bfab4ec9a9ad77150b96 | 445 | js | JavaScript | commands/reload.js | NoName-txt/disui-commands | 7029c157915befba319a2965bcec996c7b1aa0f7 | [
"Apache-2.0"
] | null | null | null | commands/reload.js | NoName-txt/disui-commands | 7029c157915befba319a2965bcec996c7b1aa0f7 | [
"Apache-2.0"
] | null | null | null | commands/reload.js | NoName-txt/disui-commands | 7029c157915befba319a2965bcec996c7b1aa0f7 | [
"Apache-2.0"
] | null | null | null | const Discord = require("discord.js");
exports.run = (client, message, args, lang) => {
if(!client.owners.includes(message.author.id)) return;
if(args[0] && args[1]) {
client.reload(args[0],args[1])
return message.channel.send("Reloaded.")
}else{
return message.channel.send("Example: m!reload cüzdan wallet.js")
}
};
exports.conf = {
enabled: true,
name: "reload",
aliases: ["yenile"]
};
| 23.421053 | 73 | 0.604494 |
b1c39e071f7241cd66bbbeccf72e8e5459d69357 | 187 | js | JavaScript | src/js/import/modules.js | MarianVytak/Dantist | 17876677a0efc1c50a08a1df756b933c6f0e4583 | [
"MIT"
] | null | null | null | src/js/import/modules.js | MarianVytak/Dantist | 17876677a0efc1c50a08a1df756b933c6f0e4583 | [
"MIT"
] | null | null | null | src/js/import/modules.js | MarianVytak/Dantist | 17876677a0efc1c50a08a1df756b933c6f0e4583 | [
"MIT"
] | null | null | null | import "%modules%/hamburger/hamburger";
import "%modules%/breadcrumbs/breadcrumbs";
import "%modules%/footer/footer";
import "./_slick-customs";
import "./_fancybox";
import "./_counter"; | 31.166667 | 43 | 0.743316 |
b1c526b9c95fdffdd2d425ba8150f8a083a28ae3 | 1,527 | js | JavaScript | anywhere-fitness/src/components/Login.js | lailaarkadan/front-end | 24604be0ee2cf9477bf936461b756336c99fb51d | [
"MIT"
] | null | null | null | anywhere-fitness/src/components/Login.js | lailaarkadan/front-end | 24604be0ee2cf9477bf936461b756336c99fb51d | [
"MIT"
] | 19 | 2021-12-21T17:17:19.000Z | 2021-12-23T21:28:58.000Z | anywhere-fitness/src/components/Login.js | lailaarkadan/front-end | 24604be0ee2cf9477bf936461b756336c99fb51d | [
"MIT"
] | 1 | 2022-02-15T15:28:44.000Z | 2022-02-15T15:28:44.000Z | import React, { useState } from "react";
import { Button, Form, Input, Label } from "reactstrap";
import { useHistory } from "react-router";
import axiosWithAuth from "../utils/axiosWithAuth";
const Login = () => {
const [login, setLogin] = useState({
username:"",
password:"",
})
const [error,setError] = useState()
const {push} = useHistory()
const handleChange = (e) => {
setLogin({
...login,[e.target.name]: e.target.value,
});
}
const handleSubmit = (e) => {
e.preventDefault();
axiosWithAuth.post(`/api/auth/register`, login)
.then(res => {
if (res.data) {
localStorage.setItem('token', res.data.token);
push('/class');
}
})
.catch(err => {
if (err) {
setError('username and password required')
}
});
}
return (
<Form onSubmit={handleSubmit}>
<h1>Login</h1>
<Label>Username:</Label>
<Input
name="username"
type="text"
placeholder="Username"
onChange={handleChange}
value={login.username}
/>
<Label>
Password:
<Input
name="password"
type="password"
placeholder="Password"
onChange={handleChange}
value={login.password}
/>
</Label>
<p id="error"></p>
<Button>Log In</Button>
</Form>
);
};
export default Login;
| 23.136364 | 61 | 0.498363 |
b1c54d02f9f8e811de0194cc84a5dfb931677ce5 | 625 | js | JavaScript | public/js/adminConPage.js | RickoNoNo3/R-Blog | b52c4a8cd269edfbebcda9bb4d591ad5af29154e | [
"MIT"
] | 1 | 2021-05-10T13:55:51.000Z | 2021-05-10T13:55:51.000Z | public/js/adminConPage.js | RickoNoNo3/R-Blog | b52c4a8cd269edfbebcda9bb4d591ad5af29154e | [
"MIT"
] | 5 | 2021-06-22T10:43:10.000Z | 2022-02-11T15:07:12.000Z | public/js/adminConPage.js | RickoNoNo3/R-Blog | b52c4a8cd269edfbebcda9bb4d591ad5af29154e | [
"MIT"
] | null | null | null | let ToggleState = true;
let InToggle = false;
function ShowPage() {
$('#allContent').css('opacity', 1);
$('#BG').css('opacity', 1);
}
function toggleOptionList() {
let optionList = $('#optionList')[0];
let toggleIcon = $('#optionList>#toggle>div>i')[0];
if (InToggle) return;
InToggle = true;
if (ToggleState) {
optionList.classList.add('hidden');
toggleIcon.innerHTML = '';
} else {
optionList.classList.remove('hidden');
toggleIcon.innerHTML = '';
}
setTimeout(() => {
ToggleState = !ToggleState;
InToggle = false;
$(window).trigger('resize');
}, 550);
}
| 23.148148 | 53 | 0.616 |
b1c598eb4ec7aa011bcdf89e242d362e02c318c6 | 591 | js | JavaScript | documentacion/html/search/all_8.js | talentositoazul/proyectomio2 | d8faa9a4922613b23a2d741f867d34eee0b3d821 | [
"MIT"
] | null | null | null | documentacion/html/search/all_8.js | talentositoazul/proyectomio2 | d8faa9a4922613b23a2d741f867d34eee0b3d821 | [
"MIT"
] | null | null | null | documentacion/html/search/all_8.js | talentositoazul/proyectomio2 | d8faa9a4922613b23a2d741f867d34eee0b3d821 | [
"MIT"
] | null | null | null | var searchData=
[
['referencia',['referencia',['../class_app_1_1referencia.html',1,'App']]],
['referencia_2eblade_2ephp',['referencia.blade.php',['../referencia_8blade_8php.html',1,'']]],
['referencia_2ephp',['referencia.php',['../referencia_8php.html',1,'']]],
['referenciacontroller',['referenciacontroller',['../class_app_1_1_http_1_1_controllers_1_1referenciacontroller.html',1,'App::Http::Controllers']]],
['referenciacontroller_2ephp',['referenciacontroller.php',['../referenciacontroller_8php.html',1,'']]],
['routes_2ephp',['routes.php',['../routes_8php.html',1,'']]]
];
| 59.1 | 150 | 0.708968 |
b1c621efcd20590ba6d39b83fea97794a64f6127 | 693 | js | JavaScript | config.js | 7sferry/Gatsbyan1.0 | 37faa775d08fbc74cb44763eaa3ee2b662c931dc | [
"MIT"
] | 1 | 2020-08-02T16:53:18.000Z | 2020-08-02T16:53:18.000Z | config.js | 7sferry/Gatsbyan1.0 | 37faa775d08fbc74cb44763eaa3ee2b662c931dc | [
"MIT"
] | null | null | null | config.js | 7sferry/Gatsbyan1.0 | 37faa775d08fbc74cb44763eaa3ee2b662c931dc | [
"MIT"
] | 1 | 2021-04-10T12:16:56.000Z | 2021-04-10T12:16:56.000Z | "use strict";
module.exports = {
url: "https://7sferry-gatsby-contentful-starters.netlify.app",
title: "Your blog title",
tagline: "Your tagline",
description: `Built by 7sferry. Get your gatsby contentful template starters here!`,
copyright: `© ${new Date().getFullYear()} Ferry Suhandri.`,
author: {
name: "Ferry S",
realName: "Ferry Suhandri",
contacts: {
linkedin: "https://www.linkedin.com/in/7sferry/",
github: "https://github.com/7sferry",
facebook: "https://facebook.com/7sferry",
crystal: "https://www.crystalknows.com/p/ferry",
blogger: "https://ferry.now.sh/",
resume: "https://ferry.netlify.com/resume/",
},
},
};
| 31.5 | 86 | 0.640693 |
b1c6947e65e54dc40a0c9744934a52bed5b56584 | 657 | js | JavaScript | src/components/controls/tables/styles/gridList.js | deancool99/sample-test | 80e1f96c846272547c9bacbfb14728a40b2951ed | [
"MIT"
] | null | null | null | src/components/controls/tables/styles/gridList.js | deancool99/sample-test | 80e1f96c846272547c9bacbfb14728a40b2951ed | [
"MIT"
] | null | null | null | src/components/controls/tables/styles/gridList.js | deancool99/sample-test | 80e1f96c846272547c9bacbfb14728a40b2951ed | [
"MIT"
] | null | null | null | import CustomStyle from 'Styles/material-ui-custom';
const styles = {
header: {
backgroundColor: '#E1E1E1',
paddingRight: '18px'
},
headerItem: {
height: '30px',
color: CustomStyle.palette.primary1Color,
fontWeight: 'bold',
borderLeft: '1px solid ' + CustomStyle.custom.borderColor,
borderRight: '1px solid ' + CustomStyle.custom.borderColor
},
columnItem: {
height: '26px',
color: '#7E7C7D',
borderLeft: '1px solid ' + CustomStyle.custom.borderColor,
borderRight: '1px solid ' + CustomStyle.custom.borderColor
},
arrow: {
color: CustomStyle.palette.primary1Color
}
};
export default styles;
| 26.28 | 62 | 0.675799 |
b1c8989c09aaa5e48e836ec039ff20ac02158b61 | 825 | js | JavaScript | modules/cms/js/cms_input_text.js | Atyc/bccms | 313e77f8445a776021d4ccfce3216b110b977039 | [
"MIT"
] | 7 | 2017-09-13T12:38:00.000Z | 2022-01-07T08:15:20.000Z | modules/cms/js/cms_input_text.js | Atyc/bccms | 313e77f8445a776021d4ccfce3216b110b977039 | [
"MIT"
] | 578 | 2017-02-16T12:57:48.000Z | 2022-03-03T20:08:56.000Z | modules/cms/js/cms_input_text.js | Atyc/bccms | 313e77f8445a776021d4ccfce3216b110b977039 | [
"MIT"
] | 5 | 2017-02-20T09:31:13.000Z | 2019-10-26T19:10:39.000Z | function cms_input_text_init(){
$('.cms_input_text').each(function(){
var $this = $(this);
if ($this.hasClass('cms_input_text_ok')){
return;
}
if ($this.closest('.cms_repeater_target').length){
$this.addClass('cms_input_text_ok');
$('input', $this).on('focus.cms', function(){
$this.data('old_value', $(this).val());
});
$('input', $this).on('change.cms', function(){
cms_input_repeater_select_reinit();
});
}
});
}
function cms_input_text_resize(){
}
function cms_input_text_scroll(){
}
$(document).ready(function() {
$(window).on('resize.cms', function(){
cms_input_text_resize();
});
$(window).on('scroll.cms', function(){
cms_input_text_scroll();
});
cms_input_text_init();
cms_input_text_resize();
cms_input_text_scroll();
});
| 15.277778 | 52 | 0.619394 |
b1c9a0de39a5d4af9a6286692ccc37e9e530d8a4 | 5,999 | js | JavaScript | wwwroot/voucher.js | donnerlab1/lightning-voucher | c264f4303c8df9d0236440f4a87565424c4f57e3 | [
"MIT"
] | 5 | 2019-01-17T01:59:02.000Z | 2019-08-27T09:44:59.000Z | wwwroot/voucher.js | donnerlab1/lightning-voucher | c264f4303c8df9d0236440f4a87565424c4f57e3 | [
"MIT"
] | 2 | 2019-01-21T13:08:40.000Z | 2020-01-04T20:27:16.000Z | wwwroot/voucher.js | donnerlab1/lightning-voucher | c264f4303c8df9d0236440f4a87565424c4f57e3 | [
"MIT"
] | 1 | 2019-08-16T11:35:50.000Z | 2019-08-16T11:35:50.000Z | const uri = "api/voucher";
cameraOn = false;
$(document).ready(function() {
$("#payment-div").hide();
$("#qr-preview").hide();
$("#get-voucher-div").hide();
$("#decode-invoice-button").click(function() {
decodePayment();
});
$("#buylink").attr("href", window.location.origin+"/voucher/");
getVoucher();
scanner = new Instascan.Scanner({
video: document.getElementById('qr-preview'),
mirror: false,
backgroundScan: false,
});
scanner.addListener('scan', function (content) {
scanContent(content);
});
$("#start-qr").click(function () {
if (!cameraOn) {
$("#qr-preview").show();
startScanner();
} else {
$("#qr-preview").hide();
scanner.stop();
cameraOn = false;
}
});
//getData();sca
});
function startScanner() {
cameraOn = true;
Instascan.Camera.getCameras().then(function (cameras) {
if (cameras.length > 1) {
console.log("starting camera")
scanner.start(cameras[1]);
} else if (cameras.length > 0) {
console.log("starting camera")
scanner.start(cameras[0]);
} else {
console.error('No cameras found.');
}
}).catch(function (e) {
console.error(e);
});
}
function scanContent(content) {
$("#qr-preview").hide();
cameraOn = false;
scanner.stop();
console.log(content);
if (content.includes(":")) {
content = content.split(':')[1]
}
var decoded = lightningPayReq.decode(content);
console.log(decoded);
$("#voucher-payreq").val(decoded.paymentRequest);
decodePayment();
}
function decodePayment() {
const use_item = {
voucher_id: $("#voucher-id").val(),
pay_req: $("#voucher-payreq").val()
};
if (use_item.pay_req.includes(":")) {
use_item.pay_req = use_item.pay_req.split(':')[1]
}
var decoded = lightningPayReq.decode(use_item.pay_req);
$("#decode-invoice-stuff").remove();
textfield = $("#decode-invoice-text");
textfield.show();
textfield.append("<span id='decode-invoice-stuff'>" + "Amount: " + decoded.satoshis + " satoshi Destination: " + decoded.payeeNodeKey + "<br>Description: " + decoded.tags[1].data + "</span>");
$("#voucher-buy-payreq").val(decoded.paymentRequest);
/*
$.ajax({
type: "GET",
url: uri + "/decode/" + use_item.pay_req,
cache: false,
success: function (data) {
console.log(data);
$("#decode-invoice-stuff").remove();
textfield = $("#decode-invoice-text");
textfield.show();
textfield.append("<span id='decode-invoice-stuff'>" +"Amount: "+ data.numSatoshis+" satoshi Destination: "+ data.destination + "<br>Description: "+ data.description+"</span>");
$("#voucher-buy-payreq").val(data.paymentRequest);
},
error: function (jqXHR, textStatus, errorThrown) {
$("#payment-div").hide();
$("#decode-invoice-stuff").remove();
textfield = $("#decode-invoice-text");
textfield.show();
textfield.append("<span id='decode-invoice-stuff' style='color:red'>INVALID INVOICE</span>");
}
});*/
}
function getVoucher() {
const use_item = {
voucher_id: $("#voucher-id").text(),
pay_req: $("#voucher-payreq").val()
};
$.ajax({
type: "GET",
url: uri + "/" + use_item.voucher_id,
cache: false,
success: function (data) {
console.log(data);
$("#get-voucher-div").show();
const tBody = $("#get-voucher-table");
$(tBody).empty();
restSat = data.startSat - data.usedSat;
const tr = $("<tr></tr>")
.append($("<td></td>").text(data.id))
.append($("<td></td>").text(restSat))
.append($("<td></td>").text(data.startSat));
tr.appendTo(tBody);
},
error: function (jqXHR, textStatus, errorThrown) {
$("#get-voucher-div").show();
const tBody = $("#get-voucher-table");
$(tBody).empty();
const tr = $("<tr></tr>")
.append($("<td style='color:red'></td>").text("VOUCHER NOT FOUND OR SPENT"))
tr.appendTo(tBody);
}
});
}
function useVoucher() {
$("#decode-invoice-stuff").remove();
const voucher_button = $("#use-voucher-button");
voucher_button.attr("disabled", "disabled")
voucher_button.attr('value', "Please Wait...");
textfield = $("#decode-invoice-text");
textfield.show();
textfield.append("<span id='decode-invoice-stuff' style='color:red'>PAYING, Standby</span>");
const use_item= {
voucher_id: $("#voucher-id").text(),
pay_req : $("#voucher-payreq").val()
};
if (use_item.pay_req.includes(":")) {
use_item.pay_req = use_item.pay_req.split(':')[1]
}
$.ajax({
type: "GET",
url: uri + "/pay/" + use_item.voucher_id + "/" + use_item.pay_req,
cache: false,
success: function (data) {
voucher_button.removeAttr("disabled");
voucher_button.attr('value', "Pay");
$("#decode-invoice-stuff").remove();
console.log(data);
$("#payment-div").show();
const tBody = $("#payment-table");
$(tBody).empty();
const tr = $("<tr></tr>");
if (data.paymentError === "")
data.paymentError = "Payment sent!"
if (data.paymentRoute == null) {
tr.append($("<td></td>").text(data.paymentError))
;
} else {
voucher_button.removeAttr("disabled");
voucher_button.attr('value', "Pay");
tr.append($("<td></td>").text(data.paymentError))
.append($("<td></td>").text(data.paymentRoute.totalAmt))
.append($("<td></td>").text(data.paymentRoute.totalFees))
.append($("<td></td>").text(data.paymentPreimage))
getVoucher();
}
tr.appendTo(tBody);
},
error: function(jqXHR, textStatus, errorThrown) {
voucher_button.removeAttr("disabled");
voucher_button.attr('value', "Pay");
$("#decode-invoice-stuff").remove();
textfield = $("#decode-invoice-text");
textfield.show();
textfield.append("<span id='decode-invoice-stuff' style='color:red'>INVALID INVOICE</span>");
$("#payment-div").hide();
}
});
}
| 29.121359 | 196 | 0.585264 |
b1c9e7e898b0cbd70dbc9ba5e6dda0eedfc0695d | 696 | js | JavaScript | gridsome/lib/server/middlewares/graphql.js | violentmagician/gridsome | c6cf29506ba285257384608ca408b5539890c01d | [
"MIT"
] | 1 | 2019-09-09T17:09:05.000Z | 2019-09-09T17:09:05.000Z | gridsome/lib/server/middlewares/graphql.js | violentmagician/gridsome | c6cf29506ba285257384608ca408b5539890c01d | [
"MIT"
] | null | null | null | gridsome/lib/server/middlewares/graphql.js | violentmagician/gridsome | c6cf29506ba285257384608ca408b5539890c01d | [
"MIT"
] | 1 | 2019-04-21T17:36:12.000Z | 2019-04-21T17:36:12.000Z | const { print } = require('graphql')
const { getGraphQLParams } = require('express-graphql')
const {
contextValues,
processPageQuery
} = require('../../graphql/page-query')
module.exports = ({ store }) => {
return async function (req, res, next) {
const { query, variables, ...body } = await getGraphQLParams(req)
const pageQuery = processPageQuery({ query })
if (variables.path) {
const node = store.getNodeByPath(variables.path)
const values = node ? contextValues(node, pageQuery.variables) : {}
Object.assign(variables, values)
}
req.body = body
req.body.query = print(pageQuery.query)
req.body.variables = variables
next()
}
}
| 24.857143 | 73 | 0.653736 |
b1cb4f2523e5f1763867ae29f583439cc7e773ac | 1,388 | js | JavaScript | portfolio/net-dijkstra/code/js/av-DataStructures.js | pckujawa/pckujawa.github.io | fa669b070671a0ddb3324d3db4b1b9c4a0e0f598 | [
"MIT"
] | null | null | null | portfolio/net-dijkstra/code/js/av-DataStructures.js | pckujawa/pckujawa.github.io | fa669b070671a0ddb3324d3db4b1b9c4a0e0f598 | [
"MIT"
] | null | null | null | portfolio/net-dijkstra/code/js/av-DataStructures.js | pckujawa/pckujawa.github.io | fa669b070671a0ddb3324d3db4b1b9c4a0e0f598 | [
"MIT"
] | null | null | null | "using strict";
var av = av || {};
av.PriorityQueue = function (unique, sortprop){
this.unique = unique || false;
this.sortprop = sortprop || 'dist';
this.list = [];
this.sortme = function (){
//this.list.sort();
}
this.enqueue = function (e){
if (this.unique && this.contains(e)) { return false; }
this.list.push(e);
//this.sortme();
return true;
};
this.dequeue = function (){
if (this.list.length <= 0) { return null; }
var min = this.list[0];
for (var i = 0; i < this.list.length; i++) {
if (parseInt(this.list[i][this.sortprop], 10) < parseInt(min[this.sortprop], 10)) {
min = this.list[i];
}
}
this.remove(min);
return min;
};
this.remove = function (obj){
for (var i = 0; i < this.list.length; i++) {
if (this.list[i] === obj) {
this.list.splice(i,1);
break;
}
}
};
this.removeat = function (index){
this.list.splice(index,1);
};
this.contains = function (obj) {
for (var i = 0; i < this.list.length; i++) {
if (this.list[i] === obj) {
return true;
}
}
return false;
};
this.size = function(){
return this.list.length;
};
}; | 24.350877 | 95 | 0.466138 |
b1cbc731ceca6d167c497e6ba19d8d134c41082d | 791 | js | JavaScript | demos/demo3-worker.js | AitorAlejandro/using-web-workers | cd3b8d9a85e33e560fcd7512b0692a7c95161548 | [
"MIT"
] | null | null | null | demos/demo3-worker.js | AitorAlejandro/using-web-workers | cd3b8d9a85e33e560fcd7512b0692a7c95161548 | [
"MIT"
] | null | null | null | demos/demo3-worker.js | AitorAlejandro/using-web-workers | cd3b8d9a85e33e560fcd7512b0692a7c95161548 | [
"MIT"
] | null | null | null | this.inicializado = false;
function fnProxi (e) {
switch (e.data.cmd) {
case 'init':
postMessage('sistema inicializado');
this.inicializado = true;
break;
case 'saludo':
if (this.inicializado) {
if (typeof e.data.mensaje === 'string' && e.data.mensaje.length) {
postMessage(e.data.mensaje);
} else {
postMessage('No hay mensaje que mostrar. Escribe uno por favor.');
}
} else {
postMessage('Me temo que no puedo hacer eso');
}
break;
}
}
// Definimos el callback a lanzar cuando la página principal nos llame con postMessage()
this.addEventListener('message', fnProxi, false);
| 31.64 | 88 | 0.528445 |
b1cc0945c03fdb6697d375666adb81bb0ce2d83c | 206 | js | JavaScript | Server - Overhaul/src/response/launcher.server.connect.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | Server - Overhaul/src/response/launcher.server.connect.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | Server - Overhaul/src/response/launcher.server.connect.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | exports.execute = (url, info, sessionID) => {
return fileIO.stringify({
"backendUrl": server.getBackendUrl(),
"name": server.getName(),
"editions": Object.keys(db.profile)
});
} | 29.428571 | 45 | 0.601942 |
b1cca8858cc12182c6ebef616e656109bd846267 | 3,734 | js | JavaScript | packages/docker-compose-js/index.js | jeffmontagna/teraslice | cecac662d57598c12bf63cdf62cfad6a87ca2851 | [
"Apache-2.0"
] | null | null | null | packages/docker-compose-js/index.js | jeffmontagna/teraslice | cecac662d57598c12bf63cdf62cfad6a87ca2851 | [
"Apache-2.0"
] | null | null | null | packages/docker-compose-js/index.js | jeffmontagna/teraslice | cecac662d57598c12bf63cdf62cfad6a87ca2851 | [
"Apache-2.0"
] | null | null | null | 'use strict';
const { spawn } = require('child_process');
const debug = require('debug')('docker-compose-js');
const Promise = require('bluebird');
module.exports = function compose(composeFile) {
function run(command, options = {}, services, param1) {
return new Promise(((resolve, reject) => {
let stdout = '';
let stderr = '';
let args = ['-f', composeFile, command];
// parse the options and append the -- or - if missing
Object.keys(options).forEach((option) => {
if (option.length <= 2) {
if (option.indexOf('-') === 0) {
args.push(option);
} else {
args.push(`-${option}`);
}
// not all options have attached values.
if (options[option]) args.push(options[option]);
return;
}
let param = `--${option}`;
if (option.indexOf('--') === 0) {
param = option;
}
if (options[option]) param += `=${options[option]}`;
args.push(param);
});
if (services) {
if (Array.isArray(services)) {
args = args.concat(services);
} else {
args.push(services);
}
}
// Some commands support an additional parameter
if (param1) args.push(param1);
debug('docker-compose', args);
const cmd = spawn('docker-compose', args);
cmd.stdout.on('data', (data) => {
debug('stdout', data.toString());
stdout += data;
});
cmd.stderr.on('data', (data) => {
debug('stderr', data.toString());
stderr += data;
});
cmd.on('close', (code) => {
debug('close with code', code);
if (code !== 0) {
const error = new Error(`Command exited: ${code}\n${stderr}`);
error.stdout = stdout;
reject(error);
} else {
resolve(stdout);
}
});
}));
}
return {
up: (options = {}) => {
options.d = '';
return run('up', options);
},
build: options => run('build', options),
down: options => run('down', options),
ps: options => run('ps', options),
start: (services, options) => run('start', options, services),
stop: (services, options) => run('stop', options, services),
restart: (services, options) => run('restart', options, services),
kill: (services, options) => run('kill', options, services),
pull: (services, options) => run('pull', options, services),
create: (services, options) => run('create', options, services),
version: options => run('version', options),
pause: (services, options) => run('pause', options, services),
unpause: (services, options) => run('unpause', options, services),
scale: (services, options) => run('scale', options, services),
rm: (services, options) => run('rm', options, services),
// logs is going to require special handling since it attaches to containers
// logs: (services, options) => { return run('logs', options, services); },
port: (service, privatePort, options) => run('port', options, service, privatePort),
run,
/*
Currently unimplemented
events
*/
};
};
| 36.252427 | 92 | 0.466256 |
b1cd324a21720a63d405212b3462fa5e1325c920 | 1,313 | js | JavaScript | packages/vue/src/index.js | gatarelib/reactivesearch | 678823a6b983088e9cb6e53bf948dd2388fc26af | [
"Apache-2.0"
] | null | null | null | packages/vue/src/index.js | gatarelib/reactivesearch | 678823a6b983088e9cb6e53bf948dd2388fc26af | [
"Apache-2.0"
] | null | null | null | packages/vue/src/index.js | gatarelib/reactivesearch | 678823a6b983088e9cb6e53bf948dd2388fc26af | [
"Apache-2.0"
] | 1 | 2018-11-16T12:01:33.000Z | 2018-11-16T12:01:33.000Z | import ReactiveList from './components/result/ReactiveList.jsx';
import ReactiveBase from './components/ReactiveBase/index.jsx';
import DataSearch from './components/search/DataSearch.jsx';
import SingleList from './components/list/SingleList.jsx';
import MultiList from './components/list/MultiList.jsx';
import SingleDropdownList from './components/list/SingleDropdownList.jsx';
import MultiDropdownList from './components/list/MultiDropdownList.jsx';
import ReactiveComponent from './components/basic/ReactiveComponent.jsx';
import SelectedFilters from './components/basic/SelectedFilters.jsx';
import SingleRange from './components/range/SingleRange.jsx';
import version from './components/Version/index';
const components = [
ReactiveList,
ReactiveBase,
DataSearch,
SingleList,
MultiList,
SingleRange,
ReactiveComponent,
SelectedFilters,
SingleDropdownList,
MultiDropdownList
];
const install = function(Vue) {
components.map(component => {
Vue.use(component);
return null;
});
};
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export {
version,
install,
ReactiveList,
ReactiveBase,
DataSearch,
SingleList,
MultiList,
SingleRange,
ReactiveComponent,
SelectedFilters,
SingleDropdownList,
MultiDropdownList
};
export default {
version,
install
};
| 23.446429 | 74 | 0.777609 |
b1cdb87ae46b4a3245817998230e2ad615afd64b | 801 | js | JavaScript | client/packages/accounts-dashboard-extension-worona/src/dashboard/sagas/recoverPassword.js | SteveLeDesign/admin | d0aefca79415247c60f169645da867c0c0702390 | [
"MIT"
] | null | null | null | client/packages/accounts-dashboard-extension-worona/src/dashboard/sagas/recoverPassword.js | SteveLeDesign/admin | d0aefca79415247c60f169645da867c0c0702390 | [
"MIT"
] | null | null | null | client/packages/accounts-dashboard-extension-worona/src/dashboard/sagas/recoverPassword.js | SteveLeDesign/admin | d0aefca79415247c60f169645da867c0c0702390 | [
"MIT"
] | null | null | null | import { takeLatest } from 'redux-saga';
import { call, put, select, take } from 'redux-saga/effects';
import * as actions from '../actions';
import * as types from '../types';
import * as deps from '../deps';
export function* recoverPasswordSaga({ token, password }) {
if (yield select(deps.selectors.getIsConnected)) {
try {
yield call(deps.libs.call, 'resetPassword', token, password);
yield put(actions.recoverPasswordSucceed());
} catch (error) {
yield put(actions.recoverPasswordFailed({ error }));
}
} else {
yield take(deps.types.CONNECTION_SUCCEED);
yield call(recoverPasswordSaga, { token, password });
}
}
export default function* recoverPasswordSagas() {
yield [
takeLatest(types.RECOVER_PASSWORD_REQUESTED, recoverPasswordSaga),
];
}
| 30.807692 | 70 | 0.68789 |
b1cddb9aba7686b821cfa2717f3a96b5ecce2f0e | 6,014 | js | JavaScript | website/src/app/views/project.experiment.workflow/components/workflow-graph.component.js | prisms-center/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 6 | 2015-09-25T20:07:30.000Z | 2021-03-07T02:41:35.000Z | website/src/app/views/project.experiment.workflow/components/workflow-graph.component.js | materials-commons/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 770 | 2015-03-04T17:13:31.000Z | 2019-05-03T13:55:57.000Z | website/src/app/views/project.experiment.workflow/components/workflow-graph.component.js | prisms-center/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 3 | 2016-06-23T19:36:20.000Z | 2020-09-06T12:26:00.000Z | class MCWorkflowGraphComponentController {
/*@ngInject*/
constructor(processGraph, cyGraph, mcWorkflowGraphEvents) {
this.processGraph = processGraph;
this.cyGraph = cyGraph;
this.mcWorkflowGraphEvents = mcWorkflowGraphEvents;
this.state = {
processes: [],
samples: [],
cy: null,
currentProcess: null,
};
}
$onChanges(changes) {
if (changes.processes) {
this.state.processes = angular.copy(changes.processes.currentValue);
this.drawWorkflow();
}
if (changes.processAdded) {
this.addProcessToWorkflow(changes.processAdded.currentValue);
}
}
$onInit() {
this.mcWorkflowGraphEvents.subscribe('PROCESS$ADD', (process) => {
let node = this.processGraph.createProcessNode(process);
this.state.cy.add(node);
let edges = this.processGraph.createConnectingEdges(process, this.state.processes);
if (edges.length) {
this.state.cy.add(edges);
}
this.state.processes.push(angular.copy(process));
this.state.cy.layout({name: 'dagre', fit: true});
this.cyGraph.setupQTips(this.cy);
if (!this.tooltips) {
this.cyGraph.disableQTips(this.cy);
}
});
this.mcWorkflowGraphEvents.subscribe('PROCESS$DELETE', (processId) => {
let nodeToRemove = this.state.cy.filter(`node[id = "${processId}"]`);
this.state.cy.remove(nodeToRemove);
let i = _.findIndex(this.state.processes, {id: processId});
if (i !== -1) {
this.state.processes.splice(i, 1);
}
});
this.mcWorkflowGraphEvents.subscribe('PROCESS$CHANGE', process => {
this.state.cy.filter(`node[id="${process.id}"]`).forEach((ele) => {
let name = (' ' + process.name).slice(1);
ele.data('name', name);
});
});
this.mcWorkflowGraphEvents.subscribe('EDGE$ADD', ({samples, process}) => this.addEdge(samples, process));
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$HIDEOTHERS', processes => {
this._addToHidden(this.cyGraph.hideOtherNodesMultiple(this.state.cy, processes));
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$SEARCH', (search) => {
if (search === '') {
if (this.removedNodes !== null) {
this.removedNodes.restore();
this.state.cy.layout({name: 'dagre', fit: true});
}
return;
}
this.removedNodes = this.cyGraph.searchProcessesInGraph(this.cy, search, this.processes);
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$RESTOREHIDDEN', () => {
if (this.hiddenNodes.length) {
this.hiddenNodes.restore();
this.hiddenNodes = [];
this.state.cy.layout({name: 'dagre', fit: true});
}
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$RESET', () => {
this.drawWorkflow();
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$NAVIGATOR', () => {
if (this.navigator === null) {
this.navigator = this.state.cy.navigator();
} else {
this.navigator.destroy();
this.navigator = null;
}
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$FILTER$BYSAMPLES', (samples) => {
this.removedNodes = this.cyGraph.filterBySamples(this.state.cy, samples, this.state.processes);
});
this.mcWorkflowGraphEvents.subscribe('WORKFLOW$TOOLTIPS', (tooltipsEnabled) => {
this.tooltips = tooltipsEnabled;
if (tooltipsEnabled) {
this.cyGraph.enableQTips(this.cy);
} else {
this.cyGraph.disableQTips(this.cy);
}
});
}
$onDestroy() {
this.mcWorkflowGraphEvents.leave();
}
drawWorkflow() {
let graph = this.processGraph.build(this.state.processes, []);
this.state.samples = graph.samples;
this.cy = this.cyGraph.createGraph(graph.elements, 'processesGraph');
this.setupOnClick();
}
setupOnClick() {
this.cy.on('click', event => {
let target = event.cyTarget;
if (target.isNode()) {
let process = target.data('details');
this.state.currentProcess = process;
this.onSetCurrentProcess({process: process});
}
});
}
addEdge(samples, targetProcess) {
samples.forEach(sample => {
const sourceProcess = this.findSourceProcess(sample);
const id = `${targetProcess.id}_${sourceProcess.id}`;
const existingEdge = this.cy.getElementById(id);
if (existingEdge.length) {
this.processGraph.addSampleToEdge(existingEdge, sample);
} else {
let newEdge = this.processGraph.createEdge(sourceProcess.id, targetProcess.id, sample);
this.cy.add([{group: 'edges', data: newEdge}]);
}
});
}
findSourceProcess(sample) {
for (let process of this.state.processes) {
if (process.output_samples) {
for (let s of process.output_samples) {
if (s.id === sample.id && s.property_set_id === sample.property_set_id) {
return process;
}
}
}
}
return null;
}
}
angular.module('materialscommons').component('mcWorkflowGraph', {
controller: MCWorkflowGraphComponentController,
template: require('./workflow-graph.html'),
bindings: {
processes: '<',
samplesAdded: '<',
onSetCurrentProcess: '&'
}
}); | 35.376471 | 113 | 0.546392 |
b1ce03b8a2a22fa59e2521a692b4d3647612f320 | 61 | js | JavaScript | test/fixed/kitchensink/index.js | clout-stack/clout-js | 02c7de7c304b5e15e76ca82ea198be3ee98accb0 | [
"MIT"
] | 3 | 2016-05-23T13:55:26.000Z | 2019-06-28T15:59:43.000Z | test/fixed/kitchensink/index.js | clout-stack/clout-js | 02c7de7c304b5e15e76ca82ea198be3ee98accb0 | [
"MIT"
] | 5 | 2016-05-25T13:39:37.000Z | 2020-01-25T23:51:58.000Z | test/fixed/kitchensink/index.js | clout-stack/clout-js | 02c7de7c304b5e15e76ca82ea198be3ee98accb0 | [
"MIT"
] | 1 | 2019-10-24T11:42:14.000Z | 2019-10-24T11:42:14.000Z | const clout = require('../../../');
module.exports = clout;
| 15.25 | 35 | 0.57377 |
d76fcf73ef89fe64082d9ae270caaefefa3cd180 | 280 | js | JavaScript | src/el/editor/ui/property-editor/svg-filter-preset/index.js | easylogic/inspector | 73a1e22cfeb7032914251d72c6b478b6614a3777 | [
"MIT"
] | 426 | 2019-06-28T08:23:57.000Z | 2022-03-30T01:53:10.000Z | src/el/editor/ui/property-editor/svg-filter-preset/index.js | easylogic/inspector | 73a1e22cfeb7032914251d72c6b478b6614a3777 | [
"MIT"
] | 141 | 2019-10-17T04:34:26.000Z | 2022-01-22T08:11:07.000Z | src/el/editor/ui/property-editor/svg-filter-preset/index.js | easylogic/inspector | 73a1e22cfeb7032914251d72c6b478b6614a3777 | [
"MIT"
] | 59 | 2019-08-08T17:12:31.000Z | 2022-03-16T03:25:05.000Z | import grayscale from "./grayscale";
import shadow from "./shadow";
import innerShadow from "./inner-shadow";
import stroke from "./stroke";
import dancingStroke from "./dancing-stroke";
export default {
dancingStroke,
stroke,
grayscale,
shadow,
innerShadow
} | 21.538462 | 45 | 0.707143 |
d77068b3fc7d109890919787909ff015c302deb8 | 971 | js | JavaScript | scripts/scripts.js | AlphaLawless/portfolio-links | eb586c79abda581c6f42bb9aff7f95c7f648f6b7 | [
"MIT"
] | 1 | 2021-11-28T17:41:48.000Z | 2021-11-28T17:41:48.000Z | scripts/scripts.js | AlphaLawless/portfolio-links | eb586c79abda581c6f42bb9aff7f95c7f648f6b7 | [
"MIT"
] | null | null | null | scripts/scripts.js | AlphaLawless/portfolio-links | eb586c79abda581c6f42bb9aff7f95c7f648f6b7 | [
"MIT"
] | null | null | null | // Variables
const container = document.querySelector(".container");
const section = document.querySelector("ul");
// Animation hover
VanillaTilt.init(container, {
max: 25,
speed: 400,
});
// Cursor
const divCursor = document.querySelector("div");
const links = document.querySelectorAll("a");
const cursor = document.querySelector(".cursor");
document.addEventListener("mousemove", (event) => {
cursor.setAttribute(
"style",
`top: ${event.pageY}px; left: ${event.pageX}px;`
);
});
for (let link of links) {
link.addEventListener("mouseover", (event) => {
divCursor.classList.remove("cursor");
event.target.style.cursor = "pointer";
});
}
section.addEventListener("mouseleave", () => {
divCursor.classList.add("cursor");
});
document.addEventListener("click", (event) => {
if (!section.contains(event.target)) {
cursor.classList.add("expand");
setTimeout(() => {
cursor.classList.remove("expand");
}, 500);
}
});
| 23.119048 | 55 | 0.663234 |
d77074c6233ac3b3a2b7766f1a006c38b5b0f84e | 1,486 | js | JavaScript | src/models/category.model.js | 103cuong/cep-service | 8545a495d1d5cd2783d8c13bcec8b47141332ddf | [
"MIT"
] | 1 | 2020-09-01T17:53:57.000Z | 2020-09-01T17:53:57.000Z | src/models/category.model.js | 103cuong/cep-service | 8545a495d1d5cd2783d8c13bcec8b47141332ddf | [
"MIT"
] | null | null | null | src/models/category.model.js | 103cuong/cep-service | 8545a495d1d5cd2783d8c13bcec8b47141332ddf | [
"MIT"
] | null | null | null | import { Model, DataTypes } from 'sequelize';
class Category extends Model {
static init(sequelize) {
super.init({
id: {
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4
},
code: {
type: DataTypes.STRING,
allowNull: true,
},
title: {
type: DataTypes.STRING,
},
description: {
type: DataTypes.STRING,
allowNull: true,
},
parentId: {
type: DataTypes.UUID,
references: {
model: 'categories',
key: 'id'
},
allowNull: true,
},
count: {
type: DataTypes.INTEGER,
allowNull: true,
},
orderBy: {
type: DataTypes.UUID,
allowNull: true,
},
keyword: {
type: DataTypes.TEXT,
allowNull: true,
},
createdBy: {
type: DataTypes.UUID,
references: {
model: 'users',
key: 'id'
}
},
updatedBy: {
type: DataTypes.UUID,
references: {
model: 'users',
key: 'id'
}
},
}, {
sequelize,
modelName: 'categories'
});
}
static associate(models) {
this.hasMany(models.Post, {
foreignKey: 'categoryId',
});
this.hasMany(models.Faq, {
foreignKey: 'categoryId'
})
this.hasOne(models.Category, {
foreignKey: 'parentId'
});
}
}
export default Category;
| 19.552632 | 45 | 0.487214 |
d770f0b35ce32c813790c75a14feb759e401dcf5 | 1,701 | js | JavaScript | examples/serializerTest.js | zosnet/zos-ecc-js | e7ae55d31809860c574ff6db0f618a274960d452 | [
"MIT"
] | 1 | 2020-03-21T14:20:04.000Z | 2020-03-21T14:20:04.000Z | examples/serializerTest.js | zosnet/zos-ecc-js | e7ae55d31809860c574ff6db0f618a274960d452 | [
"MIT"
] | null | null | null | examples/serializerTest.js | zosnet/zos-ecc-js | e7ae55d31809860c574ff6db0f618a274960d452 | [
"MIT"
] | null | null | null | //import {PrivateKey,Signature,ZosSignature} from "../lib";
import { ops ,TransactionBuilder,PrivateKey,Aes} from "../lib";
import { TransactionHelper} from "../lib";
//const wifKey = "5KBuq5WmHvgePmB7w3onYsqLM8ESomM2Ae7SigYuuwg8MDHW7NN";
let account = "dylan";
let password = "qwer1234"
let pKey = PrivateKey.fromSeed(account + "active" + password);
//const pKey = PrivateKey.fromWif(wifKey);
let ref_block_num = 254833;
let ref_block_prefix= "0003e371007eb21c88851458efc777ff428252eb";
let expiration ="2019-01-20T18:02:45";
let nonce = TransactionHelper.unique_nonce_uint64();
let memoFromKey = "ZOS5zoQnCB2pdTyeVDbedaV6rLfox9JrDHpJ26jyff6FeWwWuLWFN";
console.log("memo pub key:", memoFromKey);
let memoToKey = "ZOS5zoQnCB2pdTyeVDbedaV6rLfox9JrDHpJ26jyff6FeWwWuLWFN";
let memo = "Testing transfer from node.js";
let memo_object = {
from: memoFromKey,
to: memoToKey,
nonce,
message: Aes.encrypt_with_checksum(
pKey,
memoToKey,
nonce,
memo
)
}
//console.log("memo_object:",memo_object)
let tr = new TransactionBuilder(ref_block_num,ref_block_prefix,expiration)
//let transferObj = {fee:{amount:10000,asset_id:"1.3.0"},from:"1.2.165",to:"1.2.163",amount:{amount:99,asset_id:"1.3.0"},memo: memo_object}
//tr.add_type_operation( "transfer", transferObj )
tr.add_type_operation( "transfer", {
fee: {
amount: 1000,
asset_id: "1.3.0"
},
from: "1.2.165",
to: "1.2.163",
amount: { amount: 999, asset_id: "1.3.0" },
memo: memo_object
} )
tr.add_signer(pKey);
let chain_id = "6202d61065732dea57057bf4d9d60ed0a85d3a7712621516dce18d9da404fc79"
tr.sign(chain_id)
console.log("tr:",JSON.stringify(tr.serialize()))
| 32.09434 | 139 | 0.718401 |
d771a4141d914153b0a71c55fac94215bae9c564 | 4,312 | js | JavaScript | backend/routes/orders.js | Obadara16/Ecommerce | c954e6addfcd00d730f7dc9ff14a771d1ae334a1 | [
"BSD-3-Clause"
] | null | null | null | backend/routes/orders.js | Obadara16/Ecommerce | c954e6addfcd00d730f7dc9ff14a771d1ae334a1 | [
"BSD-3-Clause"
] | null | null | null | backend/routes/orders.js | Obadara16/Ecommerce | c954e6addfcd00d730f7dc9ff14a771d1ae334a1 | [
"BSD-3-Clause"
] | null | null | null | const express = require('express');
const router = express.Router();
const {database} = require('../config/helpers');
// GET ALL ORDERS
router.get('/', (req, res) => {
database.table('orders_details as od')
.join([
{
table: 'orders as o',
on: 'o.id = od.order_id'
},
{
table: 'products as p',
on: 'p.id = od.product_id'
},
{
table: 'users as u',
on: 'u.id = o.user_id'
}
])
.withFields(['o.id', 'p.title', 'p.description', 'p.price', 'u.username'])
.getAll()
.then(orders => {
if (orders.length > 0) {
res.json(orders);
} else {
res.json({message: "No orders found"});
}
}).catch(err => res.json(err));
});
// Get Single Order
router.get('/:id', async (req, res) => {
let orderId = req.params.id;
console.log(orderId);
database.table('orders_details as od')
.join([
{
table: 'orders as o',
on: 'o.id = od.order_id'
},
{
table: 'products as p',
on: 'p.id = od.product_id'
},
{
table: 'users as u',
on: 'u.id = o.user_id'
}
])
.withFields(['o.id', 'p.title', 'p.description', 'p.price', 'p.image', 'od.quantity as quantityOrdered'])
.filter({'o.id': orderId})
.getAll()
.then(orders => {
console.log(orders);
if (orders.length > 0) {
res.json(orders);
} else {
res.json({message: "No orders found"});
}
}).catch(err => res.json(err));
});
// Place New Order
router.post('/new', async (req, res) => {
// let userId = req.body.userId;
// let data = JSON.parse(req.body);
let {userId, products} = req.body;
console.log(userId);
console.log(products);
if (userId !== null && userId > 0) {
database.table('orders')
.insert({
user_id: userId
}).then((newOrderId) => {
if (newOrderId > 0) {
products.forEach(async (p) => {
let data = await database.table('products').filter({id: p.id}).withFields(['quantity']).get();
let inCart = parseInt(p.incart);
// Deduct the number of pieces ordered from the quantity in database
if (data.quantity > 0) {
data.quantity = data.quantity - inCart;
if (data.quantity < 0) {
data.quantity = 0;
}
} else {
data.quantity = 0;
}
// Insert order details w.r.t the newly created order Id
database.table('orders_details')
.insert({
order_id: newOrderId,
product_id: p.id,
quantity: inCart
}).then(newId => {
database.table('products')
.filter({id: p.id})
.update({
quantity: data.quantity
}).then(successNum => {
}).catch(err => console.log(err));
}).catch(err => console.log(err));
});
} else {
res.json({message: 'New order failed while adding order details', success: false});
}
res.json({
message: `Order successfully placed with order id ${newOrderId}`,
success: true,
order_id: newOrderId,
products: products
})
}).catch(err => res.json(err));
}
else {
res.json({message: 'New order failed', success: false});
}
});
// Payment Gateway
router.post('/payment', (req, res) => {
setTimeout(() => {
res.status(200).json({success: true});
}, 3000)
});
module.exports = router;
| 29.333333 | 114 | 0.42115 |
d774515f6f08cbf7b3265bd315e9d76728b2aa93 | 1,715 | js | JavaScript | app/components/p-pagination.js | polycular/oekogotschi-editor | c6ce7001e0863771a20598965fdd2a7ae9a8bce1 | [
"MIT"
] | null | null | null | app/components/p-pagination.js | polycular/oekogotschi-editor | c6ce7001e0863771a20598965fdd2a7ae9a8bce1 | [
"MIT"
] | null | null | null | app/components/p-pagination.js | polycular/oekogotschi-editor | c6ce7001e0863771a20598965fdd2a7ae9a8bce1 | [
"MIT"
] | null | null | null | import Ember from 'ember'
export default Ember.Component.extend({
tagName: 'ul',
classNames: ['pagination', 'bootpag', 'pagination-flat', 'pagination-sm'],
padding: 2,
amount: function() {
return this.get('padding') * 2 + 1
}.property('padding'),
max: function() {
return Math.max(1, Math.floor(this.get('total') / this.get('size')))
}.property('size', 'total'),
offset: function() {
const max = this.get('max')
const page = this.get('page')
const padding = this.get('padding')
const paddingLeft = Math.max(1, page - padding)
const paddingRight = Math.min(max, page + padding)
const fix = paddingRight - paddingLeft - 2 * padding
return Math.max(1, paddingLeft + fix)
}.property('page', 'max'),
isFirst: function() {
const page = this.get('page')
return page <= 1
}.property('page', 'total', 'size'),
isLast: function() {
const page = this.get('page')
const max = this.get('max')
return page === max
}.property('page', 'max'),
hasManyPages: function() {
const max = this.get('max')
return max >= 10
}.property('max'),
range: function() {
const page = this.get('page')
const amount = this.get('amount')
const max = this.get('max') > amount ? amount : this.get('max')
const offset = this.get('offset')
const range = new Array(max).fill(false)
range[page - offset] = true
return Ember.A(range)
}.property('page', 'max'),
actions: {
goto(page) {
if (page === 'next') {
page = this.get('page') + 1
} else if (page === 'prev') {
page = this.get('page') - 1
}
this.set('page', page)
this.sendAction('gotoPage', page)
}
}
})
| 24.855072 | 76 | 0.584257 |
d77465b7d02be5ed1dd39bf97a908d18bdf1cd2e | 2,802 | js | JavaScript | dist/script/module_tool.js | HuBing-NIT/project_youlewang | 492e30829fb9d9b38a068210e395dc8a17c3bab1 | [
"MIT"
] | null | null | null | dist/script/module_tool.js | HuBing-NIT/project_youlewang | 492e30829fb9d9b38a068210e395dc8a17c3bab1 | [
"MIT"
] | 2 | 2021-03-10T02:22:03.000Z | 2021-05-10T21:41:45.000Z | dist/script/module_tool.js | HuBing-NIT/project_youlewang | 492e30829fb9d9b38a068210e395dc8a17c3bab1 | [
"MIT"
] | null | null | null | "use strict";function $(e,t){return"all"!=t?document.querySelector(e):document.querySelectorAll(e)}function yzm(){for(var e="",t=[0,1,2,3,4,5,6,7,8,9],a=65;a<=90;a++)t.push(String.fromCharCode(a));for(a=0;a<5;a++)e+=t[Math.round(Math.random()*(t.length-1))];return e}function rannum(e,t){return Math.round(Math.random()*(t-e))+e}Object.defineProperty(exports,"__esModule",{value:!0});var jstool={addcookie:function(e,t,a){var r=new Date;r.setDate(r.getDate()+a),document.cookie=e+"="+encodeURIComponent(t)+";expires="+r},getcookie:function(e){var t=decodeURIComponent(document.cookie).split("; "),a=!0,r=!1,n=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var l=o.value.split("=");if(e===l[0])return l[1]}}catch(e){r=!0,n=e}finally{try{!a&&s.return&&s.return()}finally{if(r)throw n}}},delcookie:function(e){this.addcookie(e,"",-1)}};function ajax(n){return new Promise(function(t,a){var r=new XMLHttpRequest;if(n.type=n.type||"get",!n.url)throw new Error("接口地址不能为空");if(n.data&&("Object"===Object.prototype.toString.call(n.data).slice(8,-1)?n.data=function(e){if("Object"===Object.prototype.toString.call(e).slice(8,-1)){var t=[];for(var a in e)t.push(a+"="+e[a]);return t.join("&")}}(n.data):n.data=n.data),n.data&&"get"===n.type&&(n.url+="?"+n.data),"false"===n.async||!1===n.async?n.async=!1:n.async=!0,r.open(n.type,n.url,n.async),n.data&&"post"===n.type?(r.setRequestHeader("content-type","application/x-www-form-urlencoded"),r.send(n.data)):r.send(),n.async)r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var e=null;e="json"===n.dataType?JSON.parse(r.responseText):r.responseText,t(e)}else a("接口地址有误")};else if(200===r.status){var e=null;e="json"===n.dataType?JSON.parse(r.responseText):r.responseText,t(e)}else a("接口地址有误")})}function bufferMove(r,n,o){var s=0;function l(e,t){return window.getComputedStyle?window.getComputedStyle(e)[t]:e.currentStyle[t]}clearInterval(r.timer),r.timer=setInterval(function(){var e=!0;for(var t in n){var a=null;a="opacity"===t?100*l(r,t):parseInt(l(r,t)),s=0<(s=(n[t]-a)/50)?Math.ceil(s):Math.floor(s),a!==n[t]&&("opacity"===t&&(r.style.opacity=(a+s)/100,r.style.filter="alpha(opacity="+(a+s)+");"),r.style[t]=a+s+"px",e=!1)}e&&(clearInterval(r.timer),o&&"function"==typeof o&&o())},10)}function addClass(e,t){""==e.className?e.className=t:-1==classIndexOf(e,t)&&(e.className+=" "+t)}function classIndexOf(e,t){for(var a=e.className.split(" "),r=0;r<a.length;r++)if(a[r]==t)return r;return-1}function removeClass(e,t){if(""!=e.className){var a=e.className.split(" "),r=classIndexOf(e,t);-1!=r&&a.splice(r,1),e.className=a.join(" ")}}exports.$=$,exports.rannum=rannum,exports.jstool=jstool,exports.ajax=ajax,exports.bufferMove=bufferMove,exports.yzm=yzm,exports.addClass=addClass,exports.removeClass=removeClass; | 2,802 | 2,802 | 0.689507 |
d7750b650e029037f733b5715429d5950e1bc338 | 13,451 | js | JavaScript | src/kibi_plugins/query_engine/index.js | rpatil524/kibi | ef015f25a559bf1623a5376fd24c68cd221fe240 | [
"Apache-2.0"
] | 546 | 2015-09-14T17:51:46.000Z | 2021-11-02T00:48:01.000Z | src/kibi_plugins/query_engine/index.js | rpatil524/kibi | ef015f25a559bf1623a5376fd24c68cd221fe240 | [
"Apache-2.0"
] | 102 | 2015-09-28T14:14:32.000Z | 2020-07-21T21:23:20.000Z | src/kibi_plugins/query_engine/index.js | rpatil524/kibi | ef015f25a559bf1623a5376fd24c68cd221fe240 | [
"Apache-2.0"
] | 144 | 2015-09-13T16:41:41.000Z | 2020-06-26T20:32:33.000Z | import { each, isString } from 'lodash';
import http from 'http';
import path from 'path';
import Boom from 'boom';
import errors from 'request-promise/errors';
import buffer from 'buffer';
import cryptoHelper from './lib/crypto_helper';
import datasourcesSchema from './lib/datasources_schema';
import QueryEngine from './lib/query_engine';
import IndexHelper from './lib/index_helper';
/**
* The Query engine plugin.
*
* The plugin exposes the following methods to other hapi plugins:
*
* - getQueryEngine: returns an instance of QueryEngine.
* - getIndexHelper: returns an instance of IndexHelper.
* - getCryptoHelper: returns an instance of CryptoHelper.
*/
module.exports = function (kibana) {
let queryEngine;
let indexHelper;
const _validateQueryDefs = function (queryDefs) {
if (queryDefs && queryDefs instanceof Array) {
return true;
}
return false;
};
const queryEngineHandler = function (server, method, req, reply) {
const params = req.query;
let options = {};
let queryDefs = [];
if (params.options) {
try {
options = JSON.parse(params.options);
} catch (e) {
server.log(['error', 'query_engine'], 'Could not parse options [' + params.options + '] for method [' + method + '].');
}
}
if (params.queryDefs) {
try {
queryDefs = JSON.parse(params.queryDefs);
} catch (e) {
server.log(['error', 'query_engine'], 'Could not parse queryDefs [' + params.queryDefs + '] for method [' + method + '].');
}
}
if (_validateQueryDefs(queryDefs) === false) {
return reply({
query: '',
error: 'queryDefs should be an Array of queryDef objects'
});
}
const config = server.config();
if (config.has('xpack.security.cookieName')) {
options.credentials = req.state[config.get('xpack.security.cookieName')];
}
if (req.auth && req.auth.credentials && req.auth.credentials.proxyCredentials) {
options.credentials = req.auth.credentials.proxyCredentials;
}
queryEngine[method](queryDefs, options)
.then(function (queries) {
// check if error is returned, reply with error property
let queryError = '';
const errors = each(queries, query => {
if (query.error) {
queryError = query.error;
}
});
return reply({
query: params,
snippets: queries,
error: queryError
});
}).catch(function (error) {
let err;
if (error instanceof Error) {
err = Boom.wrap(error, 400);
} else {
//When put additional data in badRequest() it's not be used. So we need to add error.message manually
const msg = 'Failed to execute query on an external datasource' + (error.message ? ': ' + error.message : '');
err = Boom.badRequest(msg);
}
return reply(err);
});
};
return new kibana.Plugin({
require: ['kibana','investigate_core','saved_objects_api'],
id: 'query_engine',
uiExports: {
injectDefaultVars: function () {
return {
kibiDatasourcesSchema: datasourcesSchema.toInjectedVar()
};
}
},
init: function (server, options) {
const config = server.config();
const datasourceCacheSize = config.get('investigate_core.datasource_cache_size');
this.status.yellow('Initialising the query engine');
queryEngine = new QueryEngine(server);
queryEngine._init(datasourceCacheSize).then((data) => {
server.log(['info', 'query_engine'], data);
this.status.green('Query engine initialized');
}).catch((err) => {
server.log(['error', 'query_engine'], err);
this.status.red('Query engine initialization failed');
});
server.expose('getQueryEngine', () => queryEngine);
server.expose('getCryptoHelper', () => cryptoHelper);
indexHelper = new IndexHelper(server);
server.expose('getIndexHelper', () => indexHelper);
server.route({
method: 'GET',
path: '/clearCache',
handler: function (req, reply) {
queryEngineHandler(server, 'clearCache', req, reply);
}
});
server.route({
method: 'GET',
path: '/getQueriesHtml',
handler: function (req, reply) {
queryEngineHandler(server, 'getQueriesHtml', req, reply);
}
});
server.route({
method: 'GET',
path: '/getQueriesData',
handler: function (req, reply) {
queryEngineHandler(server, 'getQueriesData', req, reply);
}
});
server.route({
method: 'GET',
path: '/getIdsFromQueries',
handler: function (req, reply) {
queryEngineHandler(server, 'getIdsFromQueries', req, reply);
}
});
server.route({
method: 'POST',
path: '/gremlin',
handler: function (req, reply) {
const config = server.config();
let credentials = null;
if (config.has('xpack.security.cookieName')) {
const { username, password } = req.state[config.get('xpack.security.cookieName')];
credentials = { username, password };
}
if (req.auth && req.auth.credentials && req.auth.credentials.proxyCredentials) {
credentials = req.auth.credentials.proxyCredentials;
}
return queryEngine.gremlin(credentials, req.payload.params.options)
.then(reply)
.catch(errors.StatusCodeError, function (err) {
reply(Boom.create(err.statusCode, err.error.message || err.message, err.error.stack));
})
.catch(errors.RequestError, function (err) {
if (err.error.code === 'ETIMEDOUT') {
reply(Boom.create(408, err.message, ''));
} else if (err.error.code === 'ECONNREFUSED') {
reply({ error: `Could not send request to Gremlin server, please check if it is running. Details: ${err.message}` });
} else {
reply({ error: `An error occurred while sending a gremlin query: ${err.message}` });
}
});
}
});
/*
* Handles query to the ontology schema backend (in the gremlin server).
*/
server.route({
method: 'POST',
path: '/schemaQuery',
handler: function (req, reply) {
const config = server.config();
const opts = {
method: req.payload.method ? req.payload.method : 'POST',
data: req.payload.data,
url: config.get('investigate_core.gremlin_server.url')
};
queryEngine.schema(req.payload.path, opts)
.then(reply)
.catch(errors.StatusCodeError, function (err) {
reply(Boom.create(err.statusCode, err.error.message || err.message, err.error.stack));
})
.catch(errors.RequestError, function (err) {
if (err.error.code === 'ETIMEDOUT') {
reply(Boom.create(408, err.message, ''));
} else if (err.error.code === 'ECONNREFUSED') {
reply({ error: `Could not send request to Gremlin server, please check if it is running. Details: ${err.message}` });
} else {
reply({ error: `An error occurred while sending a schema query: ${err.message}` });
}
});
}
});
/*
* Handles query to the ontology schema backend (in the gremlin server).
*/
server.route({
method: 'POST',
path:'/schemaUpdate',
handler: function (req, reply) {
const config = server.config();
const opts = {
method: req.payload.method ? req.payload.method : 'POST',
data: req.payload.data,
url: config.get('investigate_core.gremlin_server.url')
};
return queryEngine.schema(req.payload.path, opts)
.then((returnedModel) => {
const ontologyDocId = 'default-ontology';
const ontologyDocType = 'ontology-model';
const savedObjectsClient = req.getSavedObjectsClient();
return savedObjectsClient.get(ontologyDocType, ontologyDocId, req)
.then((doc) => {
const newProperties = doc.attributes;
newProperties.model = returnedModel;
return savedObjectsClient.update(ontologyDocType, ontologyDocId, newProperties, {}, req)
.then(reply);
})
.catch((err) => {
if (err.statusCode === 404) {
const response = JSON.parse(err.response);
if (response.found === false) {
// ontology-model not found. Create a new one.
const doc = {
model: returnedModel,
version: 1
};
return savedObjectsClient.create(ontologyDocType, doc, { id: ontologyDocId }, req)
.then(reply)
.catch(reply);
}
} else {
throw err;
}
});
})
.catch(errors.StatusCodeError, function (err) {
const message = err.error && err.error.message ? err.error.message : err.message;
reply(Boom.create(err.statusCode, message, err.error.stack));
})
.catch(errors.RequestError, function (err) {
if (err.error.code === 'ETIMEDOUT') {
reply(Boom.create(408, err.message, ''));
} else if (err.error.code === 'ECONNREFUSED') {
reply({ error: `Could not send request to Gremlin server, please check if it is running. Details: ${err.message}` });
} else {
reply({ error: `An error occurred while sending a schema query: ${err.message}` });
}
})
.catch((err) => {
if (err.name === "AuthorizationError") {
reply(Boom.create(403, 'Request denied by ACL.', ''));
} else {
reply(err);
}
});
}
});
/*
* Translate a query containing kibi-specific DSL into an Elasticsearch query
*/
server.route({
method: 'POST',
path: '/translateToES',
handler: function (req, reply) {
const serverConfig = server.config();
// kibi: if query is a JSON, parse it to string
let query;
if (req.payload.query) {
if (typeof req.payload.query !== 'object') {
return reply(Boom.wrap(new Error('Expected query to be a JSON object containing single query', 400)));
}
query = JSON.stringify(req.payload.query);
} else if (req.payload.bulkQuery) {
if (!isString(req.payload.bulkQuery)) {
return reply(Boom.wrap(new Error('Expected bulkQuery to be a String containing a bulk elasticsearch query', 400)));
}
query = req.payload.bulkQuery;
}
server.plugins.elasticsearch.getQueriesAsPromise(new buffer.Buffer(query))
.map((query) => {
// Remove the custom queries from the body
server.plugins.elasticsearch.inject.save(query);
return query;
}).map((query) => {
let credentials = null;
if (serverConfig.has('xpack.security.cookieName')) {
credentials = req.state[serverConfig.get('xpack.security.cookieName')];
}
if (req.auth && req.auth.credentials && req.auth.credentials.proxyCredentials) {
credentials = req.auth.credentials.proxyCredentials;
}
return server.plugins.elasticsearch.dbfilter(server.plugins.query_engine.getQueryEngine(), query, credentials);
}).map((query) => server.plugins.elasticsearch.sirenJoinSet(query))
.map((query) => server.plugins.elasticsearch.sirenJoinSequence(query))
.then((data) => {
reply({ translatedQuery: data[0] });
}).catch((err) => {
let errStr;
if (typeof err === 'object' && err.stack) {
errStr = err.toString();
} else {
errStr = JSON.stringify(err, null, ' ');
}
reply(Boom.wrap(new Error(errStr, 400)));
});
}
});
server.route({
method: 'POST',
path: '/gremlin/ping',
handler: function (req, reply) {
queryEngine.gremlinPing(req.payload.url)
.then(reply)
.catch(errors.StatusCodeError, function (err) {
reply(Boom.create(err.statusCode, err.error.message || err.message, err.error.stack));
})
.catch(errors.RequestError, function (err) {
if (err.error.code === 'ETIMEDOUT') {
reply(Boom.create(408, err.message, ''));
} else if (err.error.code === 'ECONNREFUSED') {
reply({ error: `Could not send request to Gremlin server, please check if it is running. Details: ${err.message}` });
} else {
reply({ error: `An error occurred while sending a gremlin ping: ${err.message}` });
}
});
}
});
}
});
};
| 37.055096 | 133 | 0.554234 |
d775c11530c63292315dfbac96e73be3e556e9d1 | 352 | js | JavaScript | index.js | jschaefer-io/gulp-tasap | 496661d7f6779f73e6589e3ba69e58a372a0c777 | [
"MIT"
] | null | null | null | index.js | jschaefer-io/gulp-tasap | 496661d7f6779f73e6589e3ba69e58a372a0c777 | [
"MIT"
] | null | null | null | index.js | jschaefer-io/gulp-tasap | 496661d7f6779f73e6589e3ba69e58a372a0c777 | [
"MIT"
] | null | null | null | const tasap = require('tasap');
const through2 = require('through2');
module.exports = function(options) {
// Defaults
var settings = Object.assign({},options);
return through2.obj(function(file, encoding, callback) {
let content = String(file.contents);
file.contents = new Buffer(tasap.get(content, settings));
callback(null, file);
});
}; | 29.333333 | 59 | 0.707386 |
d77604a93313fe1dc9ceeb238244047242cea855 | 788 | js | JavaScript | docs/src/content/components/radiobutton/propData.js | jesvilla/material-bread | a40953e51df025739ce49958fe05904cbc31e2ba | [
"MIT"
] | 322 | 2019-04-10T19:43:57.000Z | 2022-02-04T13:19:15.000Z | docs/src/content/components/radiobutton/propData.js | jesvilla/material-bread | a40953e51df025739ce49958fe05904cbc31e2ba | [
"MIT"
] | 319 | 2019-04-16T15:33:05.000Z | 2022-02-27T02:55:12.000Z | docs/src/content/components/radiobutton/propData.js | jesvilla/material-bread | a40953e51df025739ce49958fe05904cbc31e2ba | [
"MIT"
] | 117 | 2019-04-21T20:58:01.000Z | 2022-03-31T16:22:37.000Z | import { createTableData } from '../../../utils/createPropData';
const propData = [
['checked', 'Whether radiobutton is checked', 'bool', ''],
['disabled', 'Whether radiobutton is disabled', 'bool', ''],
['error', 'Toggles error state', 'bool', ''],
['label', 'Text shown next to radiobutton', 'string', ''],
['labelPos', 'Position right or left of text', 'string', ''],
['labelStyle', 'Styles on label', 'object', ''],
['onPress', 'Call back on radioButton', 'func', ''],
['radioButtonColor', 'Color of dot and active border', 'string', ''],
['rippleColor', 'Radio Button ripple color', 'string', ''],
['style', 'Styles root element', 'object', ''],
['uncheckedBorderColor', 'Color of unchecked border', 'string', ''],
];
export default createTableData(propData);
| 46.352941 | 71 | 0.629442 |
d77626a28a0de397acd346952e6a63554464fd69 | 4,037 | js | JavaScript | gulpfile.js | rbuckton/graphmodel | c265eb33d7bb1492ed56544e110b7e08f6071269 | [
"Apache-2.0"
] | 8 | 2017-08-18T01:20:45.000Z | 2021-03-31T13:56:48.000Z | gulpfile.js | rbuckton/graphmodel | c265eb33d7bb1492ed56544e110b7e08f6071269 | [
"Apache-2.0"
] | null | null | null | gulpfile.js | rbuckton/graphmodel | c265eb33d7bb1492ed56544e110b7e08f6071269 | [
"Apache-2.0"
] | 1 | 2020-03-17T21:25:12.000Z | 2020-03-17T21:25:12.000Z | const gulp = require("gulp");
const del = require("del");
const log = require("fancy-log");
const child_process = require("child_process");
const yargs = require("yargs")
.wrap(Math.min(100, require("yargs").terminalWidth()))
.hide("help")
.hide("version")
.option("testNamePattern", { type: "string", alias: ["tests", "test", "T", "t"], group: "Jest Options" })
.option("testPathPattern", { type: "string", alias: ["files", "file", "F"], group: "Jest Options" })
.option("testPathIgnorePatterns", { type: "string", alias: ["ignore", "I"], group: "Jest Options" })
.option("maxWorkers", { type: "string", alias: ["w"], group: "Jest Options" })
.option("onlyChanged", { type: "boolean", alias: ["changed", "o"], default: false, group: "Jest Options" })
.option("onlyFailures", { type: "boolean", default: false, group: "Jest Options" })
.option("runInBand", { type: "boolean", alias: "i", default: false, group: "Jest Options" })
.option("watch", { type: "boolean", default: false, group: "Jest Options" })
.option("watchAll", { type: "boolean", default: false, group: "Jest Options" })
.option("force", { type: "boolean", default: false, group: "TypeScript Options" })
.option("verbose", { type: "boolean", default: false, group: "TypeScript Options" });
const { argv } = yargs;
const clean = async () => {
await exec(process.execPath, [require.resolve("typescript/lib/tsc.js"), {
build: ".",
clean: true
}], { verbose: true });
await del("dist");
};
gulp.task("clean", clean);
const build = () => exec(process.execPath, [require.resolve("typescript/lib/tsc.js"), {
build: ".",
force: argv.force
}], { verbose: true });
gulp.task("build", build);
const test = () => exec(process.execPath, [require.resolve("jest/bin/jest"), {
"--testNamePattern": argv.testNamePattern,
"--testPathPattern": argv.testPathPattern,
"--testPathIgnorePatterns": argv.testPathIgnorePatterns,
"--maxWorkers": argv.maxWorkers,
"--onlyChanged": argv.onlyChanged,
"--onlyFailures": argv.onlyFailures,
"--runInBand": argv.runInBand,
"--watch": argv.watch,
"--watchAll": argv.watchAll,
}], { verbose: true });
gulp.task("test", test);
const watch = () => exec(process.execPath, [require.resolve("typescript/lib/tsc.js"), {
build: ".",
watch: true
}], { verbose: true });
gulp.task("watch", watch);
gulp.task("ci", gulp.series(clean, build, test));
gulp.task("default", gulp.series(build, test));
const exec = (cmd, cmdArgs, { verbose, ignoreExitCode, cwd } = {}) => new Promise((resolve, reject) => {
const args = [];
for (const arg of cmdArgs) {
if (typeof arg === "object") {
for (const [key, value] of Object.entries(arg)) {
if (value !== undefined && value !== null && value !== false) {
args.push(key.startsWith("-") || key.startsWith("/") ? key : `${key.length === 1 ? "-" : "--"}${key}`);
if (value !== true) args.push(value.toString());
}
}
}
else {
args.push(arg);
}
}
const isWindows = /^win/.test(process.platform);
const shell = isWindows ? "cmd" : "/bin/sh";
const shellArgs = isWindows ? ["/c", cmd.includes(" ") >= 0 ? `"${cmd}"` : cmd, ...args] : ["-c", `${cmd} ${args.join(" ")}`];
if (verbose) log(`> \u001B[32m${cmd}\u001B[39m ${args.join(" ")}`);
const child = child_process.spawn(shell, shellArgs, { stdio: "inherit", cwd, windowsVerbatimArguments: true });
child.on("exit", (exitCode) => {
child.removeAllListeners();
if (exitCode === 0 || ignoreExitCode) {
resolve({ exitCode });
}
else {
reject(new Error(`Process exited with code: ${exitCode}`));
}
});
child.on("error", error => {
child.removeAllListeners();
reject(error);
});
});
| 42.052083 | 131 | 0.563537 |
d77759fc47215e1b43d46c1c2f67f61c9f634d51 | 2,243 | js | JavaScript | test/lifecycle.test.js | karlosarr/api-jaxitank-demo | 81c1d4a975d464e132434fcfb2d10b48955e279e | [
"MIT"
] | null | null | null | test/lifecycle.test.js | karlosarr/api-jaxitank-demo | 81c1d4a975d464e132434fcfb2d10b48955e279e | [
"MIT"
] | 9 | 2020-10-19T15:38:18.000Z | 2021-07-30T01:25:23.000Z | test/lifecycle.test.js | karlosarr/api-jaxitank-demo | 81c1d4a975d464e132434fcfb2d10b48955e279e | [
"MIT"
] | null | null | null | var sails = require('sails');
global.expect200 = () => {
return {
status: 200,
code: 'OK',
message: 'Operation is successfully executed'
};
};
global.expect400 = (message = false) => {
return {
status: 400,
code: 'E_BAD_REQUEST',
message: message || 'The request cannot be fulfilled due to bad syntax'
};
};
global.expect403 = (message = false) => {
return {
status: 403,
code: 'E_FORBIDDEN',
message: message || 'User not authorized to perform the operation'
};
};
global.expect404 = (message = false) => {
return {
status: 404,
code: 'E_NOT_FOUND',
message:
message ||
'The requested resource could not be found but may be available again in the future'
};
};
beforeEach(() => {
global.chai = require('chai');
chai.should();
global.chaiHttp = require('chai-http');
global.sinon = require('sinon');
global.sinonChai = require('sinon-chai');
global.mock = require('mock-require');
chai.use(chaiHttp);
chai.use(sinonChai);
global.expect = require('chai').expect;
global.server = 'http://localhost:1337';
global.checkHeaders = function(res, statusCode) {
res.should.have.status(statusCode);
res.should.have.header('content-type', 'application/json; charset=utf-8');
};
});
// Before running any tests...
before(function(done) {
// Increase the Mocha timeout so that Sails has enough time to lift, even if you have a bunch of assets.
this.timeout(5000);
sails.lift(
{
// Your sails app's configuration files will be loaded automatically,
// but you can also specify any other special overrides here for testing purposes.
// For example, we might want to skip the Grunt hook,
// and disable all logs except errors and warnings:
hooks: { grunt: false },
log: { level: 'warn' }
},
err => {
if (err) {
return done(err);
}
// here you can load fixtures, etc.
// (for example, you might want to create some records in the database)
return done();
}
);
});
// After all tests have finished...
after(done => {
// here you can clear fixtures, etc.
// (e.g. you might want to destroy the records you created above)
sails.lower(done);
});
| 27.024096 | 106 | 0.634864 |
d7776cb0e0793937785406ded4f82c8e8337fc16 | 5,173 | js | JavaScript | lib/operate_overview_service.js | keepFur/amazon_email_node | b6e0a6563fb5f334a62ce8305da5c499a6e4ff8d | [
"MIT"
] | 1 | 2020-08-08T00:27:46.000Z | 2020-08-08T00:27:46.000Z | lib/operate_overview_service.js | keepFur/amazon_email_node | b6e0a6563fb5f334a62ce8305da5c499a6e4ff8d | [
"MIT"
] | null | null | null | lib/operate_overview_service.js | keepFur/amazon_email_node | b6e0a6563fb5f334a62ce8305da5c499a6e4ff8d | [
"MIT"
] | null | null | null | /*
* 用于 经营概况管理 模块功能的数据实现
*/
"use strict";
let DB = require("./db");
// 经营概况构造函数
let OperateOverview = function() {};
const serverErrMsg = '服务器异常,请联系客服人员';
// 获取网站当天的数据
OperateOverview.prototype.getTodayData = function(req, res, data) {
DB.dbQuery.operateOverview.getTodayData(data).then(function(ret) {
res.send({
success: true,
message: '',
data: {
todayAddSumMoney: ret[0][0].todayAddSumMoney, // 当日充值金额
todayAddMoneyCount: ret[0][0].todayAddMoneyCount, // 当日充值金额笔数
todayAddUserCount: ret[1][0].todayAddUserCount, // 当日新增用户数
todayAddUserMoney: ret[1][0].todayAddUserMoney, // 当日新增用户数余额总和
todayAddKbOrderSumMoney: ret[2][0].todayAddKbOrderSumMoney, // 当日空包订单金额
todayAddKbOrderCount: ret[2][0].todayAddKbOrderCount, // 当日空包订单笔数
todayAddTaskOrderSumMoney: ret[3][0].todayAddTaskOrderSumMoney, // 当日流量订单金额
todayAddTaskOrderCount: ret[3][0].todayAddTaskOrderCount // 当日流量订单笔数
}
});
}).catch(err => res.send({
success: false,
message: serverErrMsg,
data: {
todayAddSumMoney: 0,
todayAddMoneyCount: 0,
todayAddUserCount: 0,
todayAddUserMoney: 0,
todayAddKbOrderSumMoney: 0,
todayAddKbOrderCount: 0,
todayAddTaskOrderSumMoney: 0,
todayAddTaskOrderCount: 0
}
}));
};
// 获取网站全部的数据
OperateOverview.prototype.getAllData = function(req, res, data) {
DB.dbQuery.operateOverview.getAllData(data).then(function(ret) {
res.send({
success: true,
message: '',
data: {
allAddSumMoney: ret[0][0].allAddSumMoney, // 全部充值金额
allAddMoneyCount: ret[0][0].allAddMoneyCount, // 全部充值笔数
allAddUserCount: ret[1][0].todayAddUserCount, // 全部新增用户数
allAddUserMoney: ret[1][0].todayAddUserMoney, // 全部新增用户数余额总和
allAddKbOrderSumMoney: ret[2][0].allAddKbOrderSumMoney, // 全部空包订单金额
allAddKbOrderCount: ret[2][0].todayAddKbOrderCount, // 全部空包订单笔数
allAddTaskOrderSumMoney: ret[3][0].allAddTaskOrderSumMoney, // 全部流量订单金额
allAddTaskOrderCount: ret[3][0].todayAddTaskOrderCount // 全部流量订单笔数
}
});
}).catch(err => res.send({
success: false,
message: serverErrMsg,
data: {
allAddSumMoney: 0,
allAddMoneyCount: 0,
allAddUserCount: 0,
allAddUserMoney: 0,
allAddKbOrderSumMoney: 0,
allAddKbOrderCount: 0,
allAddTaskOrderSumMoney: 0,
allAddTaskOrderCount: 0
}
}));
};
// 获取网站某一个时间段的充值情况
OperateOverview.prototype.getAddMoney = function(req, res, data) {
DB.dbQuery.operateOverview.getAddMoney(data).then(ret => {
res.send({
success: true,
message: '',
data: {
addSumMoney: ret[0][0].addSumMoney, // 总充值金额
addMoneyUserCount: ret[0][0].addMoneyUserCount, // 充值笔数
subSumMoney: ret[1][0].subSumMoney, // 总退款金额
subMoneyUserCount: ret[1][0].subMoneyUserCount // 退款笔数
}
});
}).catch(err => res.send({
success: false,
message: serverErrMsg,
data: {
addSumMoney: 0,
addMoneyUserCount: 0,
subSumMoney: 0,
subMoneyUserCount: 0
}
}));
};
// 获取某一个时间段的订单情况
OperateOverview.prototype.getOrderData = function(req, res, data) {
DB.dbQuery.operateOverview.getOrderData(data).then(ret => {
res.send({
success: true,
message: '',
data: {
taskOrderSumMoney: ret[0][0].taskOrderSumMoney, // 流量订单总金额
taskOrderCount: ret[0][0].addTaskOrderCount, // 流量订单笔数
kbOrderSumMoney: ret[1][0].kbOrderSumMoney, // 空包订单总金额
kbOrderCount: ret[1][0].addKbOrderCount, // 空包订单笔数
}
});
}).catch(err => res.send({
success: false,
message: serverErrMsg,
data: {
taskOrderSumMoney: 0,
taskOrderCount: 0,
kbOrderSumMoney: 0,
kbOrderCount: 0,
}
}));
};
// 获取某一个时间段的用户数量情况
OperateOverview.prototype.getUserData = function(req, res, data) {
DB.dbQuery.operateOverview.getUserData(data).then(ret => {
res.send({
success: true,
message: '',
data: {
addUserCount: ret[0][0].addUserCount, // 新增用户
commonUserCount: ret[1][0].commonUserCount, // 普通用户
goldUserCount: ret[2][0].goldUserCount, // 金牌用户
innerUserCount: ret[3][0].innerUserCount, // 内部用户
}
});
}).catch(err => res.send({
success: false,
message: serverErrMsg,
data: {
addUserCount: 0,
commonUserCount: 0,
goldUserCount: 0,
innerUserCount: 0,
}
}));
};
module.exports = OperateOverview; | 34.486667 | 91 | 0.55519 |
d777fc3b9842592c085c679143552743e9c57f03 | 964 | js | JavaScript | tugasrandomWalk/web/- Brownian Motion_files/cookie.js | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | tugasrandomWalk/web/- Brownian Motion_files/cookie.js | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | tugasrandomWalk/web/- Brownian Motion_files/cookie.js | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | // JavaScript Document
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
{
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name)
{
return unescape(y);
}
}
}
function checkCookie()
{
var username=getCookie("ExplainCookie");
if (username!=null && username!="")
{
document.getElementById('alerttop').style.display='none';
}
else
{
document.getElementById('alerttop').style.display='block';
}
}
function closemessage()
{
document.getElementById('alerttop').style.display='none';
var cookievalue ="ExplainCookie=explained;expires="
var today = new Date();
var expirestring = new Date();
expirestring.setTime(today.getTime() + 3600000*24*3500);
var expirestringtime = expirestring.toUTCString();
document.cookie = cookievalue + expirestringtime +"; path=/";
} | 22.952381 | 62 | 0.681535 |
d779029d1e777576c84c41d776f68fa5ffa329bb | 383 | js | JavaScript | Exercises Prototypes and Inheritance/third-problem.js | RadinTiholov/Advanced-JavaScript | c6c3a6fa298d8a10c8c9b276b0af024c2dc8ed2d | [
"MIT"
] | null | null | null | Exercises Prototypes and Inheritance/third-problem.js | RadinTiholov/Advanced-JavaScript | c6c3a6fa298d8a10c8c9b276b0af024c2dc8ed2d | [
"MIT"
] | null | null | null | Exercises Prototypes and Inheritance/third-problem.js | RadinTiholov/Advanced-JavaScript | c6c3a6fa298d8a10c8c9b276b0af024c2dc8ed2d | [
"MIT"
] | null | null | null | function extensibleObject() {
const proto = Object.getPrototypeOf(this);
this.extend = function(obj){
for (const key in obj) {
if(typeof obj[key] === 'function') {
proto[key] = obj[key];
} else {
this[key] = obj[key];
}
}
}
return this;
}
const myObj = extensibleObject();
| 22.529412 | 48 | 0.480418 |
d77ae40c730e253a22c61948ea6852fbd1e9539b | 1,111 | js | JavaScript | hashstore/bakery/js/src/components/viewers/Tabular.js | walnutgeek/hashstore | c81c98294fb482bcd0cac7ad0ae86bda6f6d503a | [
"Apache-2.0"
] | 3 | 2017-05-02T10:30:30.000Z | 2017-06-17T23:28:47.000Z | hashstore/bakery/js/src/components/viewers/Tabular.js | walnutgeek/hashstore | c81c98294fb482bcd0cac7ad0ae86bda6f6d503a | [
"Apache-2.0"
] | 3 | 2017-06-13T17:33:51.000Z | 2018-06-10T01:02:46.000Z | hashstore/bakery/js/src/components/viewers/Tabular.js | walnutgeek/hashstore | c81c98294fb482bcd0cac7ad0ae86bda6f6d503a | [
"Apache-2.0"
] | 2 | 2019-11-14T19:21:32.000Z | 2020-03-17T02:59:24.000Z | import React from 'react';
import DataFrame from 'wdf/DataFrame';
const parsers = {
WDF: DataFrame.parse_wdf,
CSV: DataFrame.parse_csv,
}
const Tabular = {
accept_types: ["WDF", "CSV"],
render({path, info, content}) {
if(content && path){
const df = parsers[info.file_type](content);
const col_idxs = _.range(df.getColumnCount());
return (<table className="pt-table pt-bordered">
<thead>
<tr>
{df.getColumnNames().map(n=>(
<th>{n}</th>
))}
</tr>
</thead>
<tbody>
{_.range(df.getRowCount()).map((row_idx) =>(
<tr>
{col_idxs.map((col_idx) =>(
<td>
{df.get(row_idx,col_idx,'as_string')}
</td>
))}
</tr>
))}
</tbody>
</table>);
}else{
return <div />;
}
}
};
export default Tabular;
| 27.097561 | 65 | 0.40054 |
d77b2692faacf07d92a33c7c976fbdcaa200e9c8 | 2,103 | js | JavaScript | Assets/WX-WASM-SDK/wechat-default/unity-sdk/video.js | AlanSean/UnityGame3D | 617d146f0e6bbb50b681fb921824dcf006cb2897 | [
"MIT"
] | 446 | 2021-05-26T07:15:32.000Z | 2022-03-31T06:24:28.000Z | Assets/WX-WASM-SDK/wechat-default/unity-sdk/video.js | AlanSean/UnityGame3D | 617d146f0e6bbb50b681fb921824dcf006cb2897 | [
"MIT"
] | 58 | 2021-06-21T11:15:04.000Z | 2022-03-31T03:08:32.000Z | Assets/WX-WASM-SDK/wechat-default/unity-sdk/video.js | AlanSean/UnityGame3D | 617d146f0e6bbb50b681fb921824dcf006cb2897 | [
"MIT"
] | 85 | 2021-06-03T06:39:01.000Z | 2022-03-31T02:59:20.000Z | const videos = {};
const msg = 'Video 不存在!';
import moduleHelper from "./module-helper";
export default {
WXCreateVideo(conf){
const id = new Date().getTime().toString(32)+Math.random().toString(32);
videos[id] = wx.createVideo(JSON.parse(conf));
return id;
},
WXVideoPlay(id){
if(videos[id]){
videos[id].play();
}else{
console.error(msg,id);
}
},
WXVideoAddListener(id,key){
if(videos[id]){
videos[id][key](function(e){
moduleHelper.send('OnVideoCallback',JSON.stringify({
callbackId:id,
errMsg:key,
position:e && e.position,
buffered:e && e.buffered,
duration:e && e.duration
}));
if(key === 'onError'){
console.error(e);
}
});
}else{
console.error(msg,id);
}
},
WXVideoDestroy(id){
if(videos[id]){
videos[id].destroy();
}else{
console.error(msg,id);
}
},
WXVideoExitFullScreen(id){
if(videos[id]){
videos[id].exitFullScreen();
}else{
console.error(msg,id);
}
},
WXVideoPause(id){
if(videos[id]){
videos[id].pause();
}else{
console.error(msg,id);
}
},
WXVideoRequestFullScreen(id,direction){
if(videos[id]){
videos[id].requestFullScreen(direction);
}else{
console.error(msg,id);
}
},
WXVideoSeek(id,time){
if(videos[id]){
videos[id].seek(time);
}else{
console.error(msg,id);
}
},
WXVideoStop(id){
if(videos[id]){
videos[id].stop();
}else{
console.error(msg,id);
}
},
WXVideoRemoveListener(id,key){
if(videos[id]){
videos[id][key]();
}else{
console.error(msg,id);
}
}
}
| 24.741176 | 80 | 0.447932 |
d77b3585bdb7504eb7b43e782f32594fc9199d5e | 165 | js | JavaScript | .babelrc.js | rmacklin/rawact | 422f35d61fec593c8160120104728debb39b0794 | [
"MIT"
] | null | null | null | .babelrc.js | rmacklin/rawact | 422f35d61fec593c8160120104728debb39b0794 | [
"MIT"
] | null | null | null | .babelrc.js | rmacklin/rawact | 422f35d61fec593c8160120104728debb39b0794 | [
"MIT"
] | null | null | null | module.exports = {
presets: ["@babel/preset-env"],
overrides: [
{
include: "./src/runtime",
presets: [["@babel/preset-env", { modules: false }]]
}
]
};
| 16.5 | 55 | 0.563636 |
d77b723f4478818aa4f8fb221b57baaa654da19e | 6,316 | js | JavaScript | web/src/app/main/documentation/material-ui-components/pages/ClickAwayListener.js | GhostyJade/track-bee | cda3dd7909e98cbf20eb2e2ef3f716b7a9c1f048 | [
"MIT"
] | 1 | 2022-02-28T08:02:57.000Z | 2022-02-28T08:02:57.000Z | web/src/app/main/documentation/material-ui-components/pages/ClickAwayListener.js | GhostyJade/track-bee | cda3dd7909e98cbf20eb2e2ef3f716b7a9c1f048 | [
"MIT"
] | null | null | null | web/src/app/main/documentation/material-ui-components/pages/ClickAwayListener.js | GhostyJade/track-bee | cda3dd7909e98cbf20eb2e2ef3f716b7a9c1f048 | [
"MIT"
] | null | null | null | import FuseExample from '@fuse/core/FuseExample';
import FuseHighlight from '@fuse/core/FuseHighlight';
import Button from '@mui/material/Button';
import Icon from '@mui/material/Icon';
import Typography from '@mui/material/Typography';
/* eslint import/no-webpack-loader-syntax: off */
/* eslint import/extensions: off */
/* eslint no-unused-vars: off */
/* eslint-disable jsx-a11y/accessible-emoji */
function ClickAwayListenerDoc(props) {
return (
<>
<div className="flex flex-1 grow-0 items-center justify-end">
<Button
className="normal-case"
variant="contained"
color="secondary"
component="a"
href="https://mui.com/components/click-away-listener"
target="_blank"
role="button"
>
<Icon>link</Icon>
<span className="mx-4">Reference</span>
</Button>
</div>
<Typography className="text-40 my-16 font-700" component="h1">
Click away listener
</Typography>
<Typography className="description">
Detect if a click event happened outside of an element. It listens for clicks that occur
somewhere in the document.
</Typography>
<ul>
<li>
📦 <a href="/size-snapshot">1.5 kB gzipped</a>.
</li>
<li>⚛️ Support portals</li>
</ul>
<Typography className="text-32 mt-40 mb-10 font-700" component="h2">
Example
</Typography>
<Typography className="mb-40" component="div">
For instance, if you need to hide a menu dropdown when people click anywhere else on your
page:
</Typography>
<Typography className="mb-40" component="div">
<FuseExample
name="ClickAway.js"
className="my-24"
iframe={false}
component={
require('app/main/documentation/material-ui-components/components/click-away-listener/ClickAway.js')
.default
}
raw={require('!raw-loader!app/main/documentation/material-ui-components/components/click-away-listener/ClickAway.js')}
/>
</Typography>
<Typography className="mb-40" component="div">
Notice that the component only accepts one child element. You can find a more advanced demo
on the <a href="/components/menus/#menulist-composition">Menu documentation section</a>.
</Typography>
<Typography className="text-32 mt-40 mb-10 font-700" component="h2">
Portal
</Typography>
<Typography className="mb-40" component="div">
The following demo uses{' '}
<a href="/components/portal/">
<code>Portal</code>
</a>{' '}
to render the dropdown into a new "subtree" outside of current DOM hierarchy.
</Typography>
<Typography className="mb-40" component="div">
<FuseExample
name="PortalClickAway.js"
className="my-24"
iframe={false}
component={
require('app/main/documentation/material-ui-components/components/click-away-listener/PortalClickAway.js')
.default
}
raw={require('!raw-loader!app/main/documentation/material-ui-components/components/click-away-listener/PortalClickAway.js')}
/>
</Typography>
<Typography className="text-32 mt-40 mb-10 font-700" component="h2">
Leading edge
</Typography>
<Typography className="mb-40" component="div">
By default, the component responds to the trailing events (click + touch end). However, you
can configure it to respond to the leading events (mouse down + touch start).
</Typography>
<Typography className="mb-40" component="div">
<FuseExample
name="LeadingClickAway.js"
className="my-24"
iframe={false}
component={
require('app/main/documentation/material-ui-components/components/click-away-listener/LeadingClickAway.js')
.default
}
raw={require('!raw-loader!app/main/documentation/material-ui-components/components/click-away-listener/LeadingClickAway.js')}
/>
</Typography>
<blockquote>
<Typography className="mb-40" component="div">
⚠️ In this mode, only interactions on the scrollbar of the document is ignored.
</Typography>
</blockquote>
<Typography className="text-32 mt-40 mb-10 font-700" component="h2">
Accessibility
</Typography>
<Typography className="mb-40" component="div">
By default <code>{`<ClickAwayListener />`}</code> will add an <code>onClick</code> handler
to its children. This can result in e.g. screen readers announcing the children as
clickable. However, the purpose of the <code>onClick</code> handler is not to make{' '}
<code>children</code> interactive.
</Typography>
<Typography className="mb-40" component="div">
In order to prevent screen readers from marking non-interactive children as
"clickable" add <code>role="presentation"</code> to the immediate children:
</Typography>
<FuseHighlight component="pre" className="language-tsx">
{`
<ClickAwayListener>
<div role="presentation">
<h1>non-interactive heading</h1>
</div>
</ClickAwayListern>
`}
</FuseHighlight>
<Typography className="mb-40" component="div">
This is also required to fix a quirk in NVDA when using Firefox that prevents announcement
of alert messages (see{' '}
<a href="https://github.com/mui/material-ui/issues/29080">mui/material-ui#29080</a>).
</Typography>
<Typography className="text-32 mt-40 mb-10 font-700" component="h2">
Unstyled
</Typography>
<ul>
<li>
📦 <a href="https://bundlephobia.com/package/@mui/base@latest">784 B gzipped</a>
</li>
</ul>
<Typography className="mb-40" component="div">
As the component does not have any styles, it also comes with the Base package.
</Typography>
<FuseHighlight component="pre" className="language-js">
{`
import ClickAwayListener from '@mui/base/ClickAwayListener';
`}
</FuseHighlight>
</>
);
}
export default ClickAwayListenerDoc;
| 39.229814 | 135 | 0.629829 |
d77b804f5b5f92a36dd194d2f31172eb70fdaadd | 866 | js | JavaScript | server/api/stripe.js | GraceShopper-Team7/grace-shopper | de562efe6b78f9d350c177aa4824cdf4f107757a | [
"MIT"
] | 1 | 2019-01-15T19:48:30.000Z | 2019-01-15T19:48:30.000Z | server/api/stripe.js | GraceShopper-Team7/grace-shopper | de562efe6b78f9d350c177aa4824cdf4f107757a | [
"MIT"
] | 29 | 2018-09-11T02:16:50.000Z | 2018-09-17T15:29:11.000Z | server/api/stripe.js | GraceShopper-Team7/grace-shopper | de562efe6b78f9d350c177aa4824cdf4f107757a | [
"MIT"
] | 2 | 2018-09-11T15:47:59.000Z | 2018-09-12T02:53:26.000Z | // Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY)
const router = require('express').Router()
const {Order} = require('../db/models')
module.exports = router
router.post('/', async (req, res, next) => {
try {
const token = req.body.token
const amount = req.body.amount
const orderId = req.body.orderId
await stripe.charges.create({
amount: amount,
currency: 'usd',
description: `GraceShopper Tea, Order #${orderId}`,
source: token.id
})
// maybe we should add a table for stripe data.
await Order.update(
{status: 'ordered', stripeToken: token.id},
{where: {id: orderId}}
)
res.json()
} catch (err) {
next(err)
}
})
| 29.862069 | 85 | 0.647806 |
d77ce39c7421d0608800dfced22a366b646d792d | 44,183 | js | JavaScript | public/assets/user/plugins/js/custom2.js | mashhoodrehman/election | 4b3e656c05dfe8722836ec8305285d8d752bfcb9 | [
"MIT"
] | null | null | null | public/assets/user/plugins/js/custom2.js | mashhoodrehman/election | 4b3e656c05dfe8722836ec8305285d8d752bfcb9 | [
"MIT"
] | null | null | null | public/assets/user/plugins/js/custom2.js | mashhoodrehman/election | 4b3e656c05dfe8722836ec8305285d8d752bfcb9 | [
"MIT"
] | null | null | null | $(document).ready(function(){
/*===========================================##################========================================================*/
/*===========================================registeration form========================================================*/
/*===========================================##################========================================================*/
$('#register_user_btn').on('click',function (argument) {
var eamil=$('#reg_email');
var fname=$('#reg_fname');
var lname=$('#reg_lname');
var password=$('#reg_password');
var cpassword=$('#reg_cpassword');
if (registerForm(eamil,fname,lname,password,cpassword)) {
$('#register_user_student').submit();
localStorage.setItem("usertype", "student");
}
});
$('#register_user_btn2').on('click',function (argument) {
var eamil=$('#reg_email2');
var fname=$('#reg_fname2');
var lname=$('#reg_lname2');
var password=$('#reg_password2');
var cpassword=$('#reg_cpassword2');
if (registerForm(eamil,fname,lname,password,cpassword)) {
$('#register_user_parent').submit();
localStorage.setItem("usertype", "parent");
}
});
$('#reg_email').focusout(function (argument) {
if(check_email($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter a valid email address<label>');
}else{
$(this).after('<label class="error_messages">Please enter a valid email address<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_fname').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter your name<label>');
}else{
$(this).after('<label class="error_messages">Your name has been entered incorrectly<label>');
} $(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_lname').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter your name<label>');
}else{
$(this).after('<label class="error_messages">Your name has been entered incorrectly<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_password').focusout(function (argument) {
if(validatePassword($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter password<label>');
}else{
$(this).after('<label class="error_messages">Password must be 6-15 characters long. Special characters are allowed. Do not enter spaces.<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_cpassword').focusout(function (argument) {
if(confirmPassword($('#reg_password').val(),$(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please confirm password<label>');
}else{
$(this).after('<label class="error_messages">Password does not match<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_email2').focusout(function (argument) {
if(check_email($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter a valid email address<label>');
}else{
$(this).after('<label class="error_messages">Please enter a valid email address<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_fname2').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter your name<label>');
}else{
$(this).after('<label class="error_messages">Your name has been entered incorrectly<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_lname2').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter your name<label>');
}else{
$(this).after('<label class="error_messages">Your name has been entered incorrectly<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_password2').focusout(function (argument) {
if(validatePassword($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please enter password<label>');
}else{
$(this).after('<label class="error_messages">Password must be 6-15 characters long. Special characters are allowed. Do not enter spaces.<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reg_cpassword2').focusout(function (argument) {
if(confirmPassword($('#reg_password2').val(),$(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">Please confirm password<label>');
}else{
$(this).after('<label class="error_messages">Password does not match<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
function registerForm(emailO,fnameO,lnameO,passwordO,cpasswordO) {
var email=emailO.val();
var fname=fnameO.val();
var lname=lnameO.val();
var password=passwordO.val();
var cpassword=cpasswordO.val();
var iseamil;
var isfname;
var islname;
var ispassword;
var iscpassword;
if(check_email(email)){
iseamil=true;
emailO.closest('div').find('label').remove();
emailO.closest('div').removeClass('has-error');
emailO.closest('div').addClass('has-success');
}else{
iseamil=false;
emailO.closest('div').find('label').remove();
if ($(emailO).val() =="") {
$(emailO).after('<label class="error_messages">Please enter a valid email address<label>');
}else{
$(emailO).after('<label class="error_messages">Please enter a valid email address<label>');
}
emailO.closest('div').addClass('has-error');
emailO.closest('div').removeClass('has-success');
}
if(validateName(fname)){
isfname=true;
fnameO.closest('div').find('label').remove();
fnameO.closest('div').removeClass('has-error');
fnameO.closest('div').addClass('has-success');
}else{
isfname=false;
fnameO.closest('div').find('label').remove();
if ($(fnameO).val() =="") {
$(fnameO).after('<label class="error_messages">Please enter your name<label>');
}else{
$(fnameO).after('<label class="error_messages">Your name has been entered incorrectly<label>');
}
fnameO.closest('div').addClass('has-error');
fnameO.closest('div').removeClass('has-success');
}
if(validateName(lname)){
islname=true;
lnameO.closest('div').find('label').remove();
lnameO.closest('div').removeClass('has-error');
lnameO.closest('div').addClass('has-success');
}else{
islname=false;
lnameO.closest('div').find('label').remove();
if ($(lnameO).val() =="") {
$(lnameO).after('<label class="error_messages">Please enter your name<label>');
}else{
$(lnameO).after('<label class="error_messages">Your name has been entered incorrectly<label>');
}
lnameO.closest('div').addClass('has-error');
lnameO.closest('div').removeClass('has-success');
}
if(validatePassword(password)){
ispassword=true;
passwordO.closest('div').find('label').remove();
passwordO.closest('div').removeClass('has-error');
passwordO.closest('div').addClass('has-success');
}else{
ispassword=false;
passwordO.closest('div').find('label').remove();
if ($(passwordO).val() =="") {
$(passwordO).after('<label class="error_messages">Please enter password<label>');
}else{
$(passwordO).after('<label class="error_messages">Password must be 6-15 characters long. Special characters are allowed. Do not enter spaces<label>');
}
passwordO.closest('div').addClass('has-error');
passwordO.closest('div').removeClass('has-success');
}
if(confirmPassword(password,cpassword)){
iscpassword=true;
cpasswordO.closest('div').find('label').remove();
cpasswordO.closest('div').removeClass('has-error');
cpasswordO.closest('div').addClass('has-success');
console.log("true");
}else{
iscpassword=false;
cpasswordO.closest('div').find('label').remove();
if ($(cpasswordO).val() =="") {
$(cpasswordO).after('<label class="error_messages">Please confirm password<label>');
}else{
$(cpasswordO).after('<label class="error_messages">Password does not match<label>');
}
cpasswordO.closest('div').addClass('has-error');
cpasswordO.closest('div').removeClass('has-success');
console.log("false");
}
if (iseamil== true &&isfname== true && islname== true && ispassword== true && iscpassword== true ) {
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================registeration form ENDS========================================================*/
/*===========================================##################========================================================*/
function check_email(email){
var reg = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,7})+$/;
if(reg.test(email)){
return true;
}else{
return false;
}
}
function validateName(name){
/*var reg = /^[a-zA-Z]*$/;*/ /*ONLY characters*/
var reg = /^[A-Za-z']+( [A-Za-z']+)*$/; /*ONLY words with single space*/
var min_max = /^.{2,25}$/;
if(reg.test(name) && min_max.test(name)){
return true;
}else{
return false;
}
}
function validateWords(words){
var reg = /^[A-Za-z']+( [A-Za-z']+)*$/; /*ONLY words with single space*/
var min_max = /^.{2,50}$/;
if(reg.test(words) && min_max.test(words)){
return true;
}else{
return false;
}
}
function validateUrl(words){
var reg = /^(ftp|http|https):\/\/[^ "]+$/; /*ONLY words with single space*/
if(reg.test(words) ){
return true;
}else{
return false;
}
}
function validatePassword(password){
var reg = /^\S*$/;
var min_max = /^.{6,15}$/;
if(reg.test(password) && min_max.test(password)){
return true;
}else{
return false;
}
}
function confirmPassword(val,val2){
if(val === val2 && val !=""){
return true;
}else{
return false;
}
}
function validateNumber(number){
/*var reg = /^\d+$/;*/
var reg = /^[0-9]{1,10}$/;
var min_max = /^.{6,15}$/;
if(reg.test(number)){
return true;
}else{
return false;
}
}
function validateFiles(value){
var reg = /([a-zA-Z0-9\s_\\.\-:])+(.png|.jpg|.jpeg)$/ ;
var min_max = /^.{6,15}$/;
if(reg.test(value)){
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================login form========================================================*/
/*===========================================##################========================================================*/
$('#login_btn').on('click',function (argument) {
var eamil=$('#login_email').val();
var password=$('#login_password').val();
if(check_email(eamil)){
$('#login_email').closest('div').find('label').remove();
$('#login_email').closest('div').removeClass('has-error');
$('#login_email').closest('div').addClass('has-success');
}else{
$('#login_email').closest('div').find('label').remove();
$('#login_email').closest('div').find('label').remove();
if ($('#login_email').val() =="") {
$('#login_email').after('<label class="error_messages">This field is required<label>');
}else{
$('#login_email').after('<label class="error_messages">Please enter a valid email address<label>');
}
$('#login_email').closest('div').addClass('has-error');
$('#login_email').closest('div').removeClass('has-success');
}
if(password != ""){
$('#login_password').closest('div').find('label').remove();
$('#login_password').closest('div').removeClass('has-error');
$('#login_password').closest('div').addClass('has-success');
}else{
$('#login_password').closest('div').find('label').remove();
if ($('#login_password').val() =="") {
$('#login_password').after('<label class="error_messages">This field is required<label>');
}else{
$('#login_password').after('<label class="error_messages">Please enter your password<label>');
}
$('#login_password').closest('div').addClass('has-error');
$('#login_password').closest('div').removeClass('has-success');
}
if (check_email(eamil) && password !="") {
$('#login_form').submit();
localStorage.setItem("usertype", "login");
}
});
$('#login_email').focusout(function (argument) {
if(check_email($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">This field is required<label>');
}else{
$(this).after('<label class="error_messages">your email address has been entered incorrectly<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#login_password').focusout(function (argument) {
if($(this).val() != ""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
if ($(this).val() =="") {
$(this).after('<label class="error_messages">This field is required<label>');
}else{
$(this).after('<label class="error_messages">Please enter your password<label>');
}
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
/*==================forget password=========================*/
$('#forget_btn').on('click',function (argument) {
var eamil=$('#forget_ema').val();
if(check_email(eamil)){
$('#forget_ema').closest('div').find('label').remove();
$('#forget_ema').closest('div').removeClass('has-error');
$('#forget_ema').closest('div').addClass('has-success');
}else{
$('#forget_ema').closest('div').find('label').remove();
$('#forget_ema').after('<label class="error_messages">Please provide a valid email address<label>');
$('#forget_ema').closest('div').addClass('has-error');
$('#forget_ema').closest('div').removeClass('has-success');
}
if (check_email(eamil)) {
$('#forget_form').submit();
localStorage.setItem("usertype", "none");
}
});
$('#forget_ema').focusout(function (argument) {
if(check_email($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide a valid email address<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
/*===========================================##################========================================================*/
/*===========================================login form ends========================================================*/
/*===========================================##################========================================================*/
/*===========================================##################========================================================*/
/*===========================================reset form========================================================*/
/*===========================================##################========================================================*/
$('#reset_btn').on('click',function (argument) {
var eamil=$('#reset_email');
var password=$('#reset_password');
var cpassword=$('#reset_cpassword');
if (reseForm(eamil,password,cpassword)) {
$('#reset_form').submit();
}
});
$('#reset_email').focusout(function (argument) {
if(check_email($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide a valid email address<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reset_password').focusout(function (argument) {
if(validatePassword($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please enter valid password<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#reset_cpassword').focusout(function (argument) {
if(confirmPassword($('#reset_password').val(),$(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Password did not match<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
function reseForm(emailO,passwordO,cpasswordO) {
var email=emailO.val();
var password=passwordO.val();
var cpassword=cpasswordO.val();
var iseamil;
var ispassword;
var iscpassword;
if(check_email(email)){
iseamil=true;
emailO.closest('div').find('label').remove();
emailO.closest('div').removeClass('has-error');
emailO.closest('div').addClass('has-success');
}else{
iseamil=false;
emailO.closest('div').find('label').remove();
emailO.after('<label class="error_messages">Please provide a valid email address<label>');
emailO.closest('div').addClass('has-error');
emailO.closest('div').removeClass('has-success');
}
if(validatePassword(password)){
ispassword=true;
passwordO.closest('div').find('label').remove();
passwordO.closest('div').removeClass('has-error');
passwordO.closest('div').addClass('has-success');
}else{
ispassword=false;
passwordO.closest('div').find('label').remove();
passwordO.after('<label class="error_messages">Please enter valid password<label>');
passwordO.closest('div').addClass('has-error');
passwordO.closest('div').removeClass('has-success');
}
if(confirmPassword(password,cpassword)){
iscpassword=true;
cpasswordO.closest('div').find('label').remove();
cpasswordO.closest('div').removeClass('has-error');
cpasswordO.closest('div').addClass('has-success');
console.log("true");
}else{
iscpassword=false;
cpasswordO.closest('div').find('label').remove();
cpasswordO.after('<label class="error_messages">Password did not match<label>');
cpasswordO.closest('div').addClass('has-error');
cpasswordO.closest('div').removeClass('has-success');
console.log("false");
}
if (iseamil==true && ispassword== true && iscpassword== true ) {
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================reset form ends========================================================*/
/*===========================================##################========================================================*/
/*===========================================##################========================================================*/
/*===========================================Profile View==============================================================*/
/*===========================================##################========================================================*/
$('#profile_btn').on('click',function (argument) {
var fname=$('#profile_fname');
var lname=$('#profile_lname');
var state=$('#state_id');
var city=$('#city');
var zip=$('#profile_zip');
var image=$('#my_file');
if (profileForm(fname,lname,state,city,zip,image)) {
$('#profile_form').submit();
}
});
$('#profile_fname').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
console.log('ds');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
console.log('error');
}
});
$('#profile_lname').focusout(function (argument) {
if(validateName($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
/*$('#profile_zip').focusout(function (argument) {
if(validateNumber($(this).val()) || $(this).val()==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
console.log('true===')
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please enter valid zip<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
console.log('')
}
});*/
function profileForm(fnameO,lnameO,stateO,cityO,zipO,imageO) {
var fname=fnameO.val();
var lname=lnameO.val();
var state=stateO.val();
var city=cityO.val();
var zip=zipO.val();
var image=imageO.val();
var isfname;
var islname;
var isstate;
var iscity;
var iszip;
var isimage;
if(validateName(fname)){
isfname=true;
fnameO.closest('div').find('label').remove();
fnameO.closest('div').removeClass('has-error');
fnameO.closest('div').addClass('has-success');
}else{
isfname=false;
fnameO.closest('div').find('label').remove();
fnameO.after('<label class="error_messages">Please provide text only<label>');
fnameO.closest('div').addClass('has-error');
fnameO.closest('div').removeClass('has-success');
}
if(validateName(lname)){
islname=true;
lnameO.closest('div').find('label').remove();
lnameO.closest('div').removeClass('has-error');
lnameO.closest('div').addClass('has-success');
}else{
islname=false;
lnameO.closest('div').find('label').remove();
lnameO.after('<label class="error_messages">Please provide text only<label>');
lnameO.closest('div').addClass('has-error');
lnameO.closest('div').removeClass('has-success');
}
if(state !=""){
isstate=true;
stateO.closest('div').find('label').remove();
stateO.closest('div').removeClass('has-error');
stateO.closest('div').addClass('has-success');
}else{
isfname=false;
stateO.closest('div').find('label').remove();
stateO.after('<label class="error_messages">Please select state<label>');
stateO.closest('div').addClass('has-error');
stateO.closest('div').removeClass('has-success');
}
if(city !=""){
iscity=true;
cityO.closest('div').find('label').remove();
cityO.closest('div').removeClass('has-error');
cityO.closest('div').addClass('has-success');
}else{
iscity=false;
cityO.closest('div').find('label').remove();
cityO.after('<label class="error_messages">Please select city<label>');
cityO.closest('div').addClass('has-error');
cityO.closest('div').removeClass('has-success');
}
if(validateNumber(zip) || zip==""){
iszip=true;
zipO.closest('div').find('label').remove();
zipO.closest('div').removeClass('has-error');
zipO.closest('div').addClass('has-success');
}else{
iszip=false;
zipO.closest('div').find('label').remove();
zipO.after('<label class="error_messages">Please enter valid zip<label>');
zipO.closest('div').addClass('has-error');
zipO.closest('div').removeClass('has-success');
}
if(validateFiles(image) || image==""){
isimage=true;
imageO.closest('div').find('label').remove();
imageO.closest('div').removeClass('has-error');
imageO.closest('div').addClass('has-success');
}else{
isimage=false;
imageO.closest('div').find('label').remove();
imageO.after('<label class="error_messages">please select only image<label>');
imageO.closest('div').addClass('has-error');
imageO.closest('div').removeClass('has-success');
}
/*&& (iszip== true || zip== "")*/
if (isfname==true && islname== true && isstate== true && iscity== true && (isimage== true || image=="") ) {
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================profile form ends========================================================*/
/*===========================================##################========================================================*/
/*===========================================##################========================================================*/
/*===========================================Addschool form ========================================================*/
/*===========================================##################========================================================*/
$('#addschool_btn').on('click',function (argument) {
var sname=$('#school_name');
var saddress=$('#school_address');
var sabout=$('#schools_about');
var state=$('#state_id');
var city=$('#city');
var zip=$('#school_zip');
var image=$('#upload-1');
var number=$('#number');
var url=$('#url');
if (addschoolform(sname,saddress,sabout,state,city,zip,image,number,url)) {
$('#addschool_form').submit();
}
});
$('#school_name').focusout(function (argument) {
if(validateWords($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#url').focusout(function (argument) {
if(validateUrl($(this).val()) || $(this).val()==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide valid url<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#school_address').focusout(function (argument) {
if($(this).val() !=""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
/*$('#schools_about').focusout(function (argument) {
if($(this).val() ==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});*/
$('#school_zip').focusout(function (argument) {
if(validateNumber($(this).val()) || $(this).val()==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
console.log('true===')
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please enter valid zip<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
console.log('')
}
});
function addschoolform(snameO,saddressO,saboutO,stateO,cityO,zipO,imageO,numberO,urlO) {
var sname=snameO.val();
var saddress=saddressO.val();
var sabout=saboutO.val();
var state=stateO.val();
var city=cityO.val();
var zip=zipO.val();
var number=numberO.val();
var url=urlO.val();
var image=imageO.val().split('\\').pop();
var isname;
var isaddress;
var issabout;
var isstate;
var iscity;
var iszip;
var isimage;
var isnumber;
var isurl;
if(validateWords(sname)){
isname=true;
snameO.closest('div').find('label').remove();
snameO.closest('div').removeClass('has-error');
snameO.closest('div').addClass('has-success');
}else{
isname=false;
snameO.closest('div').find('label').remove();
snameO.after('<label class="error_messages">Please provide text only<label>');
snameO.closest('div').addClass('has-error');
snameO.closest('div').removeClass('has-success');
}
if(validateUrl(url) || url==""){
isurl=true;
urlO.closest('div').find('label').remove();
urlO.closest('div').removeClass('has-error');
urlO.closest('div').addClass('has-success');
}else{
isurl=false;
urlO.closest('div').find('label').remove();
urlO.after('<label class="error_messages">Please provide valid url<label>');
urlO.closest('div').addClass('has-error');
urlO.closest('div').removeClass('has-success');
}
if(saddress !=""){
isaddress=true;
saddressO.closest('div').find('label').remove();
saddressO.closest('div').removeClass('has-error');
saddressO.closest('div').addClass('has-success');
}else{
isaddress=false;
saddressO.closest('div').find('label').remove();
saddressO.after('<label class="error_messages">Please provide text only<label>');
saddressO.closest('div').addClass('has-error');
saddressO.closest('div').removeClass('has-success');
}
if(state !=""){
isstate=true;
stateO.closest('div').find('label').remove();
stateO.closest('div').removeClass('has-error');
stateO.closest('div').addClass('has-success');
}else{
isfname=false;
stateO.closest('div').find('label').remove();
stateO.after('<label class="error_messages">Please select state<label>');
stateO.closest('div').addClass('has-error');
stateO.closest('div').removeClass('has-success');
}
if(city !=""){
iscity=true;
cityO.closest('div').find('label').remove();
cityO.closest('div').removeClass('has-error');
cityO.closest('div').addClass('has-success');
}else{
iscity=false;
cityO.closest('div').find('label').remove();
cityO.after('<label class="error_messages">Please select city<label>');
cityO.closest('div').addClass('has-error');
cityO.closest('div').removeClass('has-success');
}
if(validateNumber(zip) || zip==""){
iszip=true;
zipO.closest('div').find('label').remove();
zipO.closest('div').removeClass('has-error');
zipO.closest('div').addClass('has-success');
}else{
iszip=false;
zipO.closest('div').find('label').remove();
zipO.after('<label class="error_messages">Please enter valid zip<label>');
zipO.closest('div').addClass('has-error');
zipO.closest('div').removeClass('has-success');
}
if(validateNumber(number) || number==""){
isnumber=true;
numberO.closest('div').find('label').remove();
numberO.closest('div').removeClass('has-error');
numberO.closest('div').addClass('has-success');
}else{
isnumber=false;
numberO.closest('div').find('label').remove();
numberO.after('<label class="error_messages">Please provide valid phone number<label>');
numberO.closest('div').addClass('has-error');
numberO.closest('div').removeClass('has-success');
}
if(validateFiles(image) || image ==""){
isimage=true;
imageO.closest('div').find('.error_messages').remove();
imageO.closest('div').removeClass('has-error');
imageO.closest('div').addClass('has-success');
console.log("not error");
}else{
isimage=false;
imageO.closest('div').find('.error_messages').remove();
imageO.after('<label class="error_messages">please select only image<label>');
imageO.closest('div').addClass('has-error');
imageO.closest('div').removeClass('has-success');
console.log("error");
}
/* && (iszip== true || zip== "") &&*/
if (isname==true && isaddress== true && isstate== true && iscity== true && (isurl== true || url=="") && (isnumber== true || isnumber=="") && (isimage== true || image=="") ) {
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================Addschool form ends========================================================*/
/*===========================================##################========================================================*/
/*===========================================##################========================================================*/
/*===========================================addteacher form starts========================================================*/
/*===========================================##################========================================================*/
$('#addteacher_btn').on('click',function (argument) {
var tname=$('#addteacher_name');
var taddress=$('#addteacher_address');
var tsubject=$('#addteacher_subject');
var tabout=$('#addteacher_about');
var state=$('#state_id');
var city=$('#city');
var zip=$('#addteacher_zip');
var school_id=$('#school_id');
var image=$('#upload-1');
if (addteacherform(tname,taddress,tsubject,tabout,state,city,zip,school_id,image)) {
$('#addteacher_form').submit();
}
});
$('#addteacher_name').focusout(function (argument) {
if(validateWords($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#addteacher_subject').focusout(function (argument) {
if(validateWords($(this).val())){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
$('#addteacher_address').focusout(function (argument) {
if($(this).val() !=""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});
/*$('#schools_about').focusout(function (argument) {
if($(this).val() ==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please provide text only<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
}
});*/
$('#addteacher_zip').focusout(function (argument) {
if(validateNumber($(this).val()) || $(this).val()==""){
$(this).closest('div').find('label').remove();
$(this).closest('div').removeClass('has-error');
$(this).closest('div').addClass('has-success');
console.log('true===')
}else{
$(this).closest('div').find('label').remove();
$(this).after('<label class="error_messages">Please enter valid zip<label>');
$(this).closest('div').addClass('has-error');
$(this).closest('div').removeClass('has-success');
console.log('')
}
});
function addteacherform(tnameO,taddressO,tsubjectO,taboutO,stateO,cityO,zipO,school_idO,imageO) {
var tname=tnameO.val();
var taddress=taddressO.val();
var tsubject=tsubjectO.val();
var tabout=taboutO.val();
var state=stateO.val();
var city=cityO.val();
var zip=zipO.val();
var school_id=school_idO.val();
var image=imageO.val().split('\\').pop();
var isname;
var isaddress;
var issubject;
var issabout;
var isstate;
var iscity;
var iszip;
var isimage;
var isschool_id;
if(validateWords(tname)){
isname=true;
tnameO.closest('div').find('label').remove();
tnameO.closest('div').removeClass('has-error');
tnameO.closest('div').addClass('has-success');
}else{
isname=false;
tnameO.closest('div').find('label').remove();
tnameO.after('<label class="error_messages">Please provide text only<label>');
tnameO.closest('div').addClass('has-error');
tnameO.closest('div').removeClass('has-success');
}
if(taddress !=""){
isaddress=true;
taddressO.closest('div').find('label').remove();
taddressO.closest('div').removeClass('has-error');
taddressO.closest('div').addClass('has-success');
}else{
isaddress=false;
taddressO.closest('div').find('label').remove();
taddressO.after('<label class="error_messages">Please provide text only<label>');
taddressO.closest('div').addClass('has-error');
taddressO.closest('div').removeClass('has-success');
}
if(validateWords(tsubject)){
issubject=true;
tsubjectO.closest('div').find('label').remove();
tsubjectO.closest('div').removeClass('has-error');
tsubjectO.closest('div').addClass('has-success');
}else{
issubject=false;
tsubjectO.closest('div').find('label').remove();
tsubjectO.after('<label class="error_messages">Please provide text only<label>');
tsubjectO.closest('div').addClass('has-error');
tsubjectO.closest('div').removeClass('has-success');
}
if(state !=""){
isstate=true;
stateO.closest('div').find('label').remove();
stateO.closest('div').removeClass('has-error');
stateO.closest('div').addClass('has-success');
}else{
isstate=false;
stateO.closest('div').find('label').remove();
stateO.after('<label class="error_messages">Please select state<label>');
stateO.closest('div').addClass('has-error');
stateO.closest('div').removeClass('has-success');
}
if(city !=""){
iscity=true;
cityO.closest('div').find('label').remove();
cityO.closest('div').removeClass('has-error');
cityO.closest('div').addClass('has-success');
}else{
iscity=false;
cityO.closest('div').find('label').remove();
cityO.after('<label class="error_messages">Please select city<label>');
cityO.closest('div').addClass('has-error');
cityO.closest('div').removeClass('has-success');
}
if(validateNumber(zip) || zip==""){
iszip=true;
zipO.closest('div').find('label').remove();
zipO.closest('div').removeClass('has-error');
zipO.closest('div').addClass('has-success');
}else{
iszip=false;
zipO.closest('div').find('label').remove();
zipO.after('<label class="error_messages">Please enter valid zip<label>');
zipO.closest('div').addClass('has-error');
zipO.closest('div').removeClass('has-success');
}
if(validateFiles(image) || image ==""){
isimage=true;
imageO.closest('div').find('.error_messages').remove();
imageO.closest('div').removeClass('has-error');
imageO.closest('div').addClass('has-success');
}else{
isimage=false;
imageO.closest('div').find('.error_messages').remove();
imageO.after('<label class="error_messages">please select only image<label>');
imageO.closest('div').addClass('has-error');
imageO.closest('div').removeClass('has-success');
}
if(school_id !=""){
isschool_id=true;
school_idO.closest('div').find('.error_messages').remove();
school_idO.closest('div').removeClass('has-error');
school_idO.closest('div').addClass('has-success');
}else{
isschool_id=false;
school_idO.closest('div').find('.error_messages').remove();
school_idO.after('<label class="error_messages">Please select a school<label>');
school_idO.closest('div').addClass('has-error');
school_idO.closest('div').removeClass('has-success');
}
/*&& isstate== true && iscity== true && (iszip== true || zip== "")*/
if (isname==true && isaddress== true && (isimage== true || image=="") ) {
return true;
}else{
return false;
}
}
/*===========================================##################========================================================*/
/*===========================================addteacher form ends========================================================*/
/*===========================================##################========================================================*/
}); | 32.368498 | 176 | 0.583233 |
d77d1c5aede7b795d6258dc244748e443b71fa2a | 612 | js | JavaScript | scripts/main.js | yu-ko-ba/copy-hashtag | c61efb00348274f11c68cd85b0ba4e3bb3ac6970 | [
"CC0-1.0"
] | null | null | null | scripts/main.js | yu-ko-ba/copy-hashtag | c61efb00348274f11c68cd85b0ba4e3bb3ac6970 | [
"CC0-1.0"
] | null | null | null | scripts/main.js | yu-ko-ba/copy-hashtag | c61efb00348274f11c68cd85b0ba4e3bb3ac6970 | [
"CC0-1.0"
] | null | null | null | const hashtag = document.getElementById("hashtag");
const output = document.getElementById("output");
const copyButton = document.getElementById("copyButton");
function sleep(msec) {
return new Promise(function(resolve) {
setTimeout(function() {resolve()}, msec);
});
}
async function autoReset() {
await sleep(1800);
output.textContent = "";
}
copyButton.addEventListener("click", () => {
console.log("ボタンが押されました");
if (navigator.clipboard) {
navigator.clipboard.writeText(hashtag.textContent)
output.textContent = "コピーしました!";
autoReset();
}
});
| 23.538462 | 58 | 0.663399 |
d77d965dfdf72fcf31e5c343dd1b03007a5d5b08 | 1,453 | js | JavaScript | components/Oauth.js | ricardoglez/ssrStrava | 8bb5b30a70e45ceb2617e7686030e70db083d92a | [
"MIT"
] | null | null | null | components/Oauth.js | ricardoglez/ssrStrava | 8bb5b30a70e45ceb2617e7686030e70db083d92a | [
"MIT"
] | 3 | 2021-08-13T02:28:28.000Z | 2021-12-09T01:17:40.000Z | components/Oauth.js | ricardoglez/ssrStrava | 8bb5b30a70e45ceb2617e7686030e70db083d92a | [
"MIT"
] | null | null | null | import React ,{useEffect, useState, useContext} from 'react';
import api from '../utils/api';
import appActions from '../actions/appActions';
import {AppContext} from '../context/AppContext';
import { useRouter } from 'next/router';
const Oauth = ({code}) => {
const [state, dispatch] = useContext(AppContext);
const [errorAuth, handleError] = useState({ status: false, error: null, message: ''});
const Router = useRouter();
useEffect( () => {
api.getAuthorization(code)
.then( response => {
if(response.hasOwnProperty('errors')){
const errorA = { status: true, error: response.errors}
handleError(errorA);
}
appActions.storeToken(dispatch, response.access_token);
appActions.handleAuthorized(dispatch, true);
Router.push('/');
})
.catch( error => {
handleError(error);
})
},[]);
if( errorAuth.status ){
return (
<React.Fragment>
Some Errors happened:
{ errorAuth.error.map( e => {
return (<code key={e.field}>{e.resource}, { e.field }</code>)
}) }
</React.Fragment>
)
}
return (
<React.Fragment>
<pre>{code}</pre>
<div> Wait a minute until we authorize your account..</div>
</React.Fragment>
)
}
export default Oauth; | 31.586957 | 90 | 0.538885 |
d77e968b71667edb7a398cfdad6c28d368a609f8 | 6,478 | js | JavaScript | src/components/Header/index.js | johanbissemattsson/knashemma | feaaaea1186986ab2100d41c10254283bb66df6d | [
"MIT"
] | null | null | null | src/components/Header/index.js | johanbissemattsson/knashemma | feaaaea1186986ab2100d41c10254283bb66df6d | [
"MIT"
] | null | null | null | src/components/Header/index.js | johanbissemattsson/knashemma | feaaaea1186986ab2100d41c10254283bb66df6d | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import Link from 'gatsby-link';
import { slide as Menu } from 'react-burger-menu';
import { connect, dispatch} from 'react-redux';
import { canUseDOM } from 'exenv';
import Remark from 'remark';
import html from 'remark-html';
import { TOGGLE_IMAGESLIDERS } from '../../actionTypes';
import Footer from '../Footer';
import Content, { HTMLContent } from '../Content';
class Header extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
menuOpen: false
};
}
handleStateChange(state) {
const {imageSliders, dispatchToggleImageSliders} = this.props;
imageSliders && dispatchToggleImageSliders();
this.setState({menuOpen: state.isOpen});
}
closeMenu() {
this.setState({menuOpen: false});
}
openMenu() {
this.setState({menuOpen: true});
}
toggleMenu() {
this.refSiteNavButton && this.refSiteNavButton.blur();
this.setState({menuOpen: !this.state.menuOpen});
}
render () {
const PageContent = HTMLContent || Content;
const convertMarkdownToHtml = ((markdownString) => Remark().use(html).processSync(markdownString.replace(/\\/g, ' '), ((err, file) => err ? {contents: '' } : file)).contents);
return (
<div className='site-header-container'>
<header className='site-header'>
<Link to='/' onClick={() => this.closeMenu()}>
<svg className='site-logo' width='120' height='50' viewBox='0 0 120 50'>
<title>Knas hemma</title>
<g>
<path fill="#fff" d="M16.8,33.08a8.4,8.4,0,1,1-8.4-8.4,8.39,8.39,0,0,1,8.4,8.4" />
<path fill="#abc2a6" d="M113.79,49.73a5.8,5.8,0,0,1-5.64-4.4l-1.5-6-6-1.5a5.84,5.84,0,0,1-4.23-4.23L95,27.69,89,26.19A5.83,5.83,0,0,1,84.77,22l-2.34-9.34A5.83,5.83,0,1,1,93.74,9.79l1.49,6,6,1.49a5.85,5.85,0,0,1,4.24,4.23l1.49,6,6,1.5a5.82,5.82,0,0,1,4.23,4.22l2.35,9.33a5.83,5.83,0,0,1-4.21,7.08,6,6,0,0,1-1.44.18" />
<path fill="#000" d="M52.54,49.19a5.83,5.83,0,0,1-5.8-5.33c0-.23-1-9-7.4-13.61-4.62-3.35-11.3-4-19.87-2a5.82,5.82,0,0,1-2.66-11.34c12.08-2.81,22-1.45,29.48,4,10.83,7.92,12,21.44,12.06,22A5.84,5.84,0,0,1,53,49.18h-.46" />
<path fill="#b017d4" d="M71.17,33.35a5.8,5.8,0,0,1,1.62-7.73c1.46-1.05,14.65-10,26.53-4.81a5.83,5.83,0,0,1-4.67,10.68c-5-2.18-12.79,2-15.14,3.64a5.83,5.83,0,0,1-8.1-1.42l-.24-.36" />
<path fill="#29ffff" d="M32.39,49.73a5.83,5.83,0,0,1-5.64-4.4l-1.5-6-6-1.5a5.84,5.84,0,0,1-4.23-4.23l-1.49-5.95-6-1.5A5.81,5.81,0,0,1,3.39,22L1,12.62a5.82,5.82,0,1,1,11.3-2.83l1.5,6,5.95,1.49A5.84,5.84,0,0,1,24,21.47l1.5,6,5.94,1.5a5.81,5.81,0,0,1,4.23,4.22l2.36,9.33a5.82,5.82,0,0,1-4.22,7.08,5.92,5.92,0,0,1-1.44.18" />
<path fill="#f0b840" d="M21.48,31.67a5.8,5.8,0,0,1-5.79-5.36c-.15-1.8-1-17.71,9.52-25.23A5.83,5.83,0,0,1,32,10.58c-4.43,3.15-4.87,12-4.66,14.85a5.86,5.86,0,0,1-5.4,6.23h-.43"/>
<path fill="#2900ff" d="M89.42,50a5.74,5.74,0,0,1-3-.86c-22-13.44-24-40.59-24.08-41.74a5.82,5.82,0,0,1,5.42-6.18,5.65,5.65,0,0,1,6.21,5.41c0,.22,1.76,22.32,18.52,32.56a5.83,5.83,0,0,1-3,10.81" />
<path fill="#29ff00" d="M75.06,33.08a8.4,8.4,0,1,1-8.39-8.4,8.38,8.38,0,0,1,8.39,8.4" />
</g>
</svg>
</Link>
<nav className='site-nav'>
<button className={'nav-button hamburger hamburger--squeeze ' + (this.state.menuOpen ? 'is-active' : '')} type='button' aria-label='Menu' aria-controls='navigation' ref={node => this.refSiteNavButton = node} onClick={() => this.toggleMenu()}>
<span className='hamburger-box'>
<span className='hamburger-inner' />
</span>
</button>
<div className={'site-nav-menu-container'} >
<Menu styles={ styles } menuClassName={'site-nav-menu'} itemListClassName={'site-nav-menu-item-list'} width={'100%'} right isOpen={this.state.menuOpen} bodyClassName={'site-nav-menu-open'} customBurgerIcon={false} customCrossIcon={false} onStateChange={(state) => this.handleStateChange(state)}>
{this.props.navItems &&
this.props.navItems.map((item, index) => {
return (
<Link key={index} to={'/' + item.link} className='menu-item' onClick={() => this.closeMenu()} onFocus={() => {!this.state.menuOpen && this.openMenu()}}>{item.title}</Link>
);
})
}
<div className='menu-footer'>
<div className='site-nav-menu-footer-container'>
<footer className='site-nav-menu-footer'>
{this.state.menuOpen &&
<div className='footer-sections'>
<h2 className='footer-title'><Link to='/'>Knas hemma</Link></h2>
<div className='footer-contact'>
<address className='footer-address'>
{this.props.contact && this.props.contact.length &&
<PageContent className='side-item-content' content={convertMarkdownToHtml(this.props.contact)}/>
}
</address>
<div className='footer-social'>
<ul>
<li><a href='https://www.facebook.com/knashemma/'>Facebook</a></li>
<li><a href='https://www.instagram.com/knashemma/'>Instagram</a></li>
<li><a href='https://www.twitter.com/knashemma/' onBlur={() => {this.closeMenu()}}>Twitter</a></li>
</ul>
</div>
</div>
</div>
}
</footer>
</div>
</div>
</Menu>
</div>
</nav>
</header>
</div>
);
}
}
/*content={convertMarkdownToHtml(this.props.contact)}*/
const styles = {};
const mapStateToProps = state => ({
imageSliders: state.imageSliders
});
const mapDispatchToProps = dispatch => ({
dispatchToggleImageSliders: () => dispatch({ type: TOGGLE_IMAGESLIDERS}),
});
export default canUseDOM ? connect(mapStateToProps, mapDispatchToProps)(Header) : Header; | 53.53719 | 337 | 0.539364 |
d780a7f06198a17a974cbc8bd4ad643cb370e43b | 8,346 | js | JavaScript | layouts/page.js | IamMJ-AS/secret | b9b2483d3139a1c88ff5df7dc7cd4783df9845df | [
"MIT"
] | null | null | null | layouts/page.js | IamMJ-AS/secret | b9b2483d3139a1c88ff5df7dc7cd4783df9845df | [
"MIT"
] | null | null | null | layouts/page.js | IamMJ-AS/secret | b9b2483d3139a1c88ff5df7dc7cd4783df9845df | [
"MIT"
] | null | null | null | 'use strict'
import React from 'react'
import Head from 'next/head'
import Router from 'next/router'
import Link from 'next/link'
import Progress from 'nprogress'
import PropTypes from 'prop-types'
import Row from './../components/row'
import Logo from './../components/logo'
import pkg from './../package'
import { colors, typography, phone } from './../theme'
let progress
const stopProgress = () => {
clearTimeout(progress)
Progress.done()
}
Router.onRouteChangeStart = () => {
progress = setTimeout(Progress.start, 200)
}
Router.onRouteChangeComplete = stopProgress
Router.onRouteChangeError = stopProgress
if (global.document) {
const info = [
`Version: ${pkg.version}`,
`Find the code here: https://github.com/${pkg.repository}`,
`Have a great day! 🎉`
]
for (const message of info) {
console.log(message)
}
}
const Page = ({ children }) => {
return (
<div>
<Head>
<title>
{pkg.name} — {pkg.description}
</title>
<meta name="theme-color" content={colors.black} />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charSet="utf-8" />
<meta name="description" content={pkg.description} />
<meta name="keywords" content={pkg.keywords} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@bukinoshita" />
<meta name="twitter:creator" content="@bukinoshita" />
<meta name="twitter:title" content={pkg.name} />
<meta name="twitter:description" content={pkg.description} />
<meta
property="twitter:image:src"
content={`https://getsecret.now.sh/static/cover.png`}
/>
<meta property="og:url" content="https://getsecret.now.sh" />
<meta property="og:type" content="website" />
<meta property="og:title" content={pkg.name} />
<meta property="og:image" content="static/cover.png" />
<meta property="og:description" content={pkg.description} />
<meta property="og:site_name" content={pkg.name} />
<link rel="apple-touch-icon" href="/static/icon.png" />
<link rel="icon" href="/static/icon.png" type="image/png" />
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-110046805-1"
/>
<script src="/static/analytics.js" />
</Head>
<Row>
<main>
<header>
<Link prefetch href="/">
<div>
<Logo />
<p>
send a message through a safe, private, and encrypted link
that automatically expires to ensure your stuff does not
remain online forever.
</p>
</div>
</Link>
</header>
<section>{children}</section>
<footer>
<ul>
<li>
<Link prefetch href="/">
<span>create secret</span>
</Link>
</li>
<li>
<Link prefetch href="/canary">
<span className="new">canary</span>
</Link>
</li>
<li>
<Link prefetch href="/about">
<span>About</span>
</Link>
</li>
<li>
<Link prefetch href="/help">
<span>Help</span>
</Link>
</li>
<li>
<a href="https://github.com/bukinoshita/secret/releases/latest">
<span>Releases</span>
</a>
</li>
<li>
<a href="https://github.com/bukinoshita/secret">
<span>Github</span>
</a>
</li>
</ul>
<span>
created by{' '}
<a href="https://twitter.com/bukinoshita">@bukinoshita</a>
</span>
</footer>
</main>
</Row>
<style jsx>{`
main {
position: relative;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
header {
text-align: center;
height: 350px;
display: flex;
align-items: center;
flex-basis: 350px;
}
header div {
width: 100%;
cursor: pointer;
}
section {
flex-basis: calc(100vh - 450px);
}
p {
color: ${colors.gray};
margin-top: 20px;
font-size: ${typography.f14};
line-height: 24px;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
footer {
text-align: center;
margin-bottom: 30px;
}
span {
color: ${colors.gray};
font-size: ${typography.f12};
text-align: center;
display: block;
}
.new:after {
content: 'new';
border: 1px solid ${colors.green};
padding: 1px 4px;
margin-left: 4px;
color: ${colors.green};
font-weight: ${typography.bold};
font-size: ${typography.f10};
}
a {
color: ${colors.white};
font-weight: ${typography.bold};
position: relative;
}
a:before,
li span:before {
content: '';
height: 1px;
background-color: ${colors.white};
position: absolute;
pointer-events: none;
bottom: -4px;
left: 0;
right: 0;
opacity: 0;
transform: scale(0, 1);
transition: all 200ms;
}
a:hover:before,
li span:hover:before {
opacity: 1;
transform: scale(1, 1);
}
ul {
margin-bottom: 20px;
}
li {
display: inline-block;
margin-right: 4px;
padding-right: 4px;
}
li:after {
content: '/';
color: ${colors.gray};
font-size: ${typography.f12};
margin-left: 4px;
padding-left: 4px;
}
li:hover span {
color: ${colors.white};
}
li:last-child {
margin-right: 0;
padding-right: 0;
}
li:last-child:after {
content: '';
}
li span {
font-weight: ${typography.semibold};
text-transform: lowercase;
cursor: pointer;
position: relative;
display: inline-block;
font-size: ${typography.f12};
transition: all 200ms;
}
@media ${phone} {
li {
line-height: 1.75rem;
}
}
`}</style>
<style jsx global>
{`
* {
padding: 0;
margin: 0;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
font-family: -apple-system, system-ui, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body {
background-color: ${colors.black};
}
a {
text-decoration: none;
}
li {
list-style: none;
}
img {
max-width: 100%;
}
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: ${colors.black};
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
}
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px ${colors.black}, 0 0 5px ${colors.black};
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);
}
svg {
vertical-align: middle;
}
`}
</style>
</div>
)
}
Page.propTypes = {
children: PropTypes.node
}
export default Page
| 24.692308 | 80 | 0.467529 |
d782003297872d58d9643c8cd8459f6c0f638c37 | 1,807 | js | JavaScript | lib/gwt/core/upload.js | joseluis8906/unixjs | ed194cb38ad25f4cec374e4b2caeb0306af2f179 | [
"MIT"
] | null | null | null | lib/gwt/core/upload.js | joseluis8906/unixjs | ed194cb38ad25f4cec374e4b2caeb0306af2f179 | [
"MIT"
] | 1 | 2016-08-22T16:09:54.000Z | 2016-08-22T16:09:54.000Z | lib/gwt/core/upload.js | joseluis8906/unixjs | ed194cb38ad25f4cec374e4b2caeb0306af2f179 | [
"MIT"
] | 2 | 2016-04-22T02:14:30.000Z | 2016-08-14T16:48:29.000Z | //###################################################################################################
//Gwt::Core::Request
Gwt.Core.Upload = function (File, Callback)
{
this.XHR = new XMLHttpRequest ();
this.XHR.open ("POST", "/upload/", true);
this.XHR.withCredentials = true;
this.XHR.onreadystatechange = this.Ready.bind(this);
this.Callback = Callback || function(Res){console.log (Res);};
var Boundary = "---------------------------" + Date.now().toString(16);
this.XHR.setRequestHeader("Content-Type", "multipart\/form-data; boundary=" + Boundary);
var Multipart = [];
var ContentDisposition = "";
var ContentType = "";
Multipart.push ("\r\n--"+Boundary+"\r\n");
ContentDisposition = "Content-Disposition: form-data; name=\""+File.GetName()+"\"; filename=\""+ File.GetFileName()+ "\"\r\n";
ContentType = "Content-Type: " + File.GetMimeType() + "\r\n\r\n";
Multipart.push (ContentDisposition);
Multipart.push (ContentType);
Multipart.push (atob (File.GetData()));
Multipart.push ("\r\n--"+Boundary+"--");
var RawData = Multipart.join ("");
console.log(RawData);
var NBytes = RawData.length, Uint8Data = new Uint8Array(NBytes);
for (var i = 0; i < NBytes; i++)
{
Uint8Data[i] = RawData.charCodeAt(i) & 0xff;
}
this.XHR.send (Uint8Data);
};
Gwt.Core.Upload.prototype._Upload = function ()
{
this.XHR = null;
this.Callback = null;
};
Gwt.Core.Upload.prototype.Ready = function ()
{
if (this.XHR.readyState === 4 && this.XHR.status === 200)
{
console.log (this.XHR.response);
this.Callback (JSON.parse(this.XHR.response));
}
};
//End of Gwt::Core::Request
//##########################################################
| 29.622951 | 130 | 0.541782 |
d782b2731be53e339f9b3e66ed8e1ac0d3419154 | 2,462 | js | JavaScript | PoliChallenge/Site/Services/repo.js | spiri91/PoliChallenge | 612b7baad2ae3b9345f68604eb7eef26d1b04389 | [
"MIT"
] | null | null | null | PoliChallenge/Site/Services/repo.js | spiri91/PoliChallenge | 612b7baad2ae3b9345f68604eb7eef26d1b04389 | [
"MIT"
] | null | null | null | PoliChallenge/Site/Services/repo.js | spiri91/PoliChallenge | 612b7baad2ae3b9345f68604eb7eef26d1b04389 | [
"MIT"
] | null | null | null | var repo = (function () {
const routes = {
places: 'api/places',
questions: 'api/questions',
hiScores: 'api/scores'
};
let getAll = (route, storageService, storageNameForObject) => {
if (!navigator.onLine)
return $.Deferred().resolve(storageService.get(storageNameForObject));
return call.ajax({
to: route,
action: call.actions.get
});
};
let put = (route, object, token) => {
return call.ajax({
to: route,
action: call.actions.put,
token: token,
body: object
});
}
let post = (route, object, token) => {
return call.ajax({
to: route,
action: call.actions.post,
token: token,
body: object
});
}
let _delete = (route, id, token) => {
return call.ajax({
to: route + "/" + id,
action: call.actions.delete,
token: token,
});
}
let createPlace = ({ key, name, latitude, longitude, observations }) => {
if (!key || !name || !latitude || !longitude || !observations) throw new Error("Invalid object creation");
return {
key: key,
name: name,
latitude: latitude,
longitude: longitude,
observations: observations
}
};
let createQuestion = ({ key, belongsTo, statement, answer1, answer2, answer3, correctAnswer }) => {
if (!key || !belongsTo || !statement || !answer1 || !answer2 || !answer3 || !correctAnswer) throw new Error("Invalid object creation");
return {
key: key,
for: belongsTo,
statement: statement,
answer1: answer1,
answer2: answer2,
answer3: answer3,
correctAnswer: correctAnswer
}
};
let createHiScore = ({ key, teamName, score, date }) => {
if (!key || !teamName || !score || !date) throw new Error("Invalid object creation");
return {
key: key,
teamName: teamName,
score: score,
date: date
}
};
return {
getAll: getAll,
put: put,
post: post,
delete: _delete,
entities: routes,
createPlace: createPlace,
createQuestion: createQuestion,
createHiScore: createHiScore
};
})(call) | 27.054945 | 143 | 0.503249 |
d78394bab5cc4c794b0d27d70be540f59648d46b | 1,597 | js | JavaScript | src/components/navigation.js | ukozazenje/fokusbolnica.rs | 2806f1d711f4acce3a90a7fa3ba0e4fa33915e35 | [
"MIT"
] | null | null | null | src/components/navigation.js | ukozazenje/fokusbolnica.rs | 2806f1d711f4acce3a90a7fa3ba0e4fa33915e35 | [
"MIT"
] | 8 | 2020-07-17T01:59:11.000Z | 2022-02-26T10:54:42.000Z | src/components/navigation.js | ukozazenje/fokuskraljevo.rs | 2806f1d711f4acce3a90a7fa3ba0e4fa33915e35 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { Link } from "gatsby";
import './style.scss';
import logo from '../images/logo-fokus.png';
class Navigation extends Component {
state = {
toggleMenu: false
}
toggleMenuHandler = () => ( this.setState({ toggleMenu: !this.state.toggleMenu }))
render(){
return (
<nav className="navbar" role="navigation" aria-label="main navigation">
<div className="container">
<div className="navbar-brand">
<Link to="/"
className="navbar-item"
>
<img src={logo} alt="logo-fokus" />
</Link>
<a role="button" className="navbar-burger burger" onClick={this.toggleMenuHandler}>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div className={`navbar-menu ${this.state.toggleMenu ? 'is-active' : ''}`}>
<div className="navbar-end">
<Link to="/" className="navbar-item">
Početna
</Link>
<Link to="/o-nama" className="navbar-item">
O nama
</Link>
<Link to="/cenovnik" className="navbar-item">
Cenovnik
</Link>
<a href="tel:+38136204020" className="navbar-item navbar-phone">
+381 36 20 40 20
</a>
</div>
</div>
</div>
</nav>
)
}
}
export default Navigation; | 28.017544 | 95 | 0.494051 |
d783d5bcf172447b03010e75c81e99800ceb3e6c | 642,819 | js | JavaScript | packages/web/dist-dll/ReactStuff.dll.js | thicodes/money-plan | d4b93ebd764296288103ac86b512c1ee451f2b28 | [
"MIT"
] | 4 | 2020-03-03T13:40:28.000Z | 2020-07-22T21:00:32.000Z | packages/web/dist-dll/ReactStuff.dll.js | thicodes/money-plan | d4b93ebd764296288103ac86b512c1ee451f2b28 | [
"MIT"
] | 1 | 2020-03-06T22:34:25.000Z | 2020-03-09T12:13:05.000Z | packages/web/dist-dll/ReactStuff.dll.js | thicodes/money-plan | d4b93ebd764296288103ac86b512c1ee451f2b28 | [
"MIT"
] | null | null | null | var ReactStuff =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({
/***/ "../../node_modules/fbjs/lib/ErrorUtils.js":
/*!**********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/ErrorUtils.js ***!
\**********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n/* jslint unused:false */\nif (global.ErrorUtils) {\n module.exports = global.ErrorUtils;\n} else {\n var ErrorUtils = {\n applyWithGuard: function applyWithGuard(callback, context, args, onError, name) {\n return callback.apply(context, args);\n },\n guard: function guard(callback, name) {\n return callback;\n }\n };\n module.exports = ErrorUtils;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/ErrorUtils.js?");
/***/ }),
/***/ "../../node_modules/fbjs/lib/areEqual.js":
/*!********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/areEqual.js ***!
\********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar aStackPool = [];\nvar bStackPool = [];\n/**\n * Checks if two values are equal. Values may be primitives, arrays, or objects.\n * Returns true if both arguments have the same keys and values.\n *\n * @see http://underscorejs.org\n * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.\n * @license MIT\n */\n\nfunction areEqual(a, b) {\n var aStack = aStackPool.length ? aStackPool.pop() : [];\n var bStack = bStackPool.length ? bStackPool.pop() : [];\n var result = eq(a, b, aStack, bStack);\n aStack.length = 0;\n bStack.length = 0;\n aStackPool.push(aStack);\n bStackPool.push(bStack);\n return result;\n}\n\nfunction eq(a, b, aStack, bStack) {\n if (a === b) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n return a !== 0 || 1 / a == 1 / b;\n }\n\n if (a == null || b == null) {\n // a or b can be `null` or `undefined`\n return false;\n }\n\n if (typeof a != 'object' || typeof b != 'object') {\n return false;\n }\n\n var objToStr = Object.prototype.toString;\n var className = objToStr.call(a);\n\n if (className != objToStr.call(b)) {\n return false;\n }\n\n switch (className) {\n case '[object String]':\n return a == String(b);\n\n case '[object Number]':\n return isNaN(a) || isNaN(b) ? false : a == Number(b);\n\n case '[object Date]':\n case '[object Boolean]':\n return +a == +b;\n\n case '[object RegExp]':\n return a.source == b.source && a.global == b.global && a.multiline == b.multiline && a.ignoreCase == b.ignoreCase;\n } // Assume equality for cyclic structures.\n\n\n var length = aStack.length;\n\n while (length--) {\n if (aStack[length] == a) {\n return bStack[length] == b;\n }\n }\n\n aStack.push(a);\n bStack.push(b);\n var size = 0; // Recursively compare objects and arrays.\n\n if (className === '[object Array]') {\n size = a.length;\n\n if (size !== b.length) {\n return false;\n } // Deep compare the contents, ignoring non-numeric properties.\n\n\n while (size--) {\n if (!eq(a[size], b[size], aStack, bStack)) {\n return false;\n }\n }\n } else {\n if (a.constructor !== b.constructor) {\n return false;\n }\n\n if (a.hasOwnProperty('valueOf') && b.hasOwnProperty('valueOf')) {\n return a.valueOf() == b.valueOf();\n }\n\n var keys = Object.keys(a);\n\n if (keys.length != Object.keys(b).length) {\n return false;\n }\n\n for (var i = 0; i < keys.length; i++) {\n if (!eq(a[keys[i]], b[keys[i]], aStack, bStack)) {\n return false;\n }\n }\n }\n\n aStack.pop();\n bStack.pop();\n return true;\n}\n\nmodule.exports = areEqual;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/areEqual.js?");
/***/ }),
/***/ "../../node_modules/fbjs/lib/emptyFunction.js":
/*!*************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/emptyFunction.js ***!
\*************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/emptyFunction.js?");
/***/ }),
/***/ "../../node_modules/fbjs/lib/invariant.js":
/*!*********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/invariant.js ***!
\*********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nvar validateFormat = true ? function (format) {} : undefined;\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments to provide\n * information about what broke and what you were expecting.\n *\n * The invariant message will be stripped in production, but the invariant will\n * remain to ensure logic does not differ in production.\n */\n\nfunction invariant(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return String(args[argIndex++]);\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // Skip invariant's own stack frame.\n\n throw error;\n }\n}\n\nmodule.exports = invariant;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/invariant.js?");
/***/ }),
/***/ "../../node_modules/fbjs/lib/mapObject.js":
/*!*********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/mapObject.js ***!
\*********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n/**\n * Executes the provided `callback` once for each enumerable own property in the\n * object and constructs a new object from the results. The `callback` is\n * invoked with three arguments:\n *\n * - the property value\n * - the property name\n * - the object being traversed\n *\n * Properties that are added after the call to `mapObject` will not be visited\n * by `callback`. If the values of existing properties are changed, the value\n * passed to `callback` will be the value at the time `mapObject` visits them.\n * Properties that are deleted before being visited are not visited.\n *\n * @grep function objectMap()\n * @grep function objMap()\n *\n * @param {?object} object\n * @param {function} callback\n * @param {*} context\n * @return {?object}\n */\n\nfunction mapObject(object, callback, context) {\n if (!object) {\n return null;\n }\n\n var result = {};\n\n for (var name in object) {\n if (hasOwnProperty.call(object, name)) {\n result[name] = callback.call(context, object[name], name, object);\n }\n }\n\n return result;\n}\n\nmodule.exports = mapObject;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/mapObject.js?");
/***/ }),
/***/ "../../node_modules/fbjs/lib/warning.js":
/*!*******************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/warning.js ***!
\*******************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\nvar emptyFunction = __webpack_require__(/*! ./emptyFunction */ \"../../node_modules/fbjs/lib/emptyFunction.js\");\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\nfunction printWarning(format) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n}\n\nvar warning = true ? function (condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(void 0, [format].concat(args));\n }\n} : undefined;\nmodule.exports = warning;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/fbjs/lib/warning.js?");
/***/ }),
/***/ "../../node_modules/object-assign/index.js":
/*!**********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/object-assign/index.js ***!
\**********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/object-assign/index.js?");
/***/ }),
/***/ "../../node_modules/prop-types/checkPropTypes.js":
/*!****************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/prop-types/checkPropTypes.js ***!
\****************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar printWarning = function() {};\n\nif (true) {\n var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"../../node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (true) {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (true) {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/prop-types/checkPropTypes.js?");
/***/ }),
/***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!**************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
\**************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/prop-types/lib/ReactPropTypesSecret.js?");
/***/ }),
/***/ "../../node_modules/react-relay/index.js":
/*!********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/index.js ***!
\********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("/**\n * Relay v0.0.0-experimental-8cc94ddc\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nmodule.exports = __webpack_require__(/*! ./lib/index.js */ \"../../node_modules/react-relay/lib/index.js\");\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/index.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayContainerUtils.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayContainerUtils.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nfunction getComponentName(component) {\n return component.displayName || component.name || 'Component';\n}\n\nfunction getContainerName(Component) {\n return 'Relay(' + getComponentName(Component) + ')';\n}\n\nmodule.exports = {\n getComponentName: getComponentName,\n getContainerName: getContainerName\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayContainerUtils.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayContext.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayContext.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar _require = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n createRelayContext = _require.__internal.createRelayContext;\n\nmodule.exports = createRelayContext(React);\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayContext.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayFragmentContainer.js":
/*!**********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayFragmentContainer.js ***!
\**********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar buildReactRelayContainer = __webpack_require__(/*! ./buildReactRelayContainer */ \"../../node_modules/react-relay/lib/buildReactRelayContainer.js\");\n\nvar getRootVariablesForFragments = __webpack_require__(/*! ./getRootVariablesForFragments */ \"../../node_modules/react-relay/lib/getRootVariablesForFragments.js\");\n\nvar _require = __webpack_require__(/*! ./ReactRelayContainerUtils */ \"../../node_modules/react-relay/lib/ReactRelayContainerUtils.js\"),\n getContainerName = _require.getContainerName;\n\nvar _require2 = __webpack_require__(/*! ./RelayContext */ \"../../node_modules/react-relay/lib/RelayContext.js\"),\n assertRelayContext = _require2.assertRelayContext;\n\nvar _require3 = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\n\n/**\n * Composes a React component class, returning a new class that intercepts\n * props, resolving them with the provided fragments and subscribing for\n * updates.\n */\nfunction createContainerWithFragments(Component, fragments) {\n var _class, _temp;\n\n var containerName = getContainerName(Component);\n return _temp = _class =\n /*#__PURE__*/\n function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n\n function _class(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n var resolverFromThisUpdate = _this.state.resolver;\n\n _this.setState(function (updatedState) {\n return (// If this event belongs to the current data source, update.\n // Otherwise we should ignore it.\n resolverFromThisUpdate === updatedState.resolver ? {\n data: updatedState.resolver.resolve(),\n relayProp: getRelayProp(updatedState.relayProp.environment)\n } : null\n );\n });\n });\n var relayContext = assertRelayContext(props.__relayContext); // Do not provide a subscription/callback here.\n // It is possible for this render to be interrupted or aborted,\n // In which case the subscription would cause a leak.\n // We will add the subscription in componentDidMount().\n\n var resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props);\n _this.state = {\n data: resolver.resolve(),\n prevProps: props,\n prevPropsContext: relayContext,\n relayProp: getRelayProp(relayContext.environment),\n resolver: resolver\n };\n return _this;\n }\n /**\n * When new props are received, read data for the new props and subscribe\n * for updates. Props may be the same in which case previous data and\n * subscriptions can be reused.\n */\n\n\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n // Any props change could impact the query, so we mirror props in state.\n // This is an unusual pattern, but necessary for this container usecase.\n var prevProps = prevState.prevProps;\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var prevIDs = getDataIDsFromObject(fragments, prevProps);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var resolver = prevState.resolver; // If the environment has changed or props point to new records then\n // previously fetched data and any pending fetches no longer apply:\n // - Existing references are on the old environment.\n // - Existing references are based on old variables.\n // - Pending fetches are for the previous records.\n\n if (prevState.prevPropsContext.environment !== relayContext.environment || !areEqual(prevIDs, nextIDs)) {\n // Do not provide a subscription/callback here.\n // It is possible for this render to be interrupted or aborted,\n // In which case the subscription would cause a leak.\n // We will add the subscription in componentDidUpdate().\n resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps);\n return {\n data: resolver.resolve(),\n prevPropsContext: relayContext,\n prevProps: nextProps,\n relayProp: getRelayProp(relayContext.environment),\n resolver: resolver\n };\n } else {\n resolver.setProps(nextProps);\n var data = resolver.resolve();\n\n if (data !== prevState.data) {\n return {\n data: data,\n prevProps: nextProps,\n prevPropsContext: relayContext,\n relayProp: getRelayProp(relayContext.environment)\n };\n }\n }\n\n return null;\n };\n\n var _proto = _class.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._subscribeToNewResolver();\n\n this._rerenderIfStoreHasChanged();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (this.state.resolver !== prevState.resolver) {\n prevState.resolver.dispose();\n\n this._subscribeToNewResolver();\n }\n\n this._rerenderIfStoreHasChanged();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.state.resolver.dispose();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n // Short-circuit if any Relay-related data has changed\n if (nextState.data !== this.state.data) {\n return true;\n } // Otherwise, for convenience short-circuit if all non-Relay props\n // are scalar and equal\n\n\n var keys = Object.keys(nextProps);\n\n for (var ii = 0; ii < keys.length; ii++) {\n var _key = keys[ii];\n\n if (_key === '__relayContext') {\n if (nextState.prevPropsContext.environment !== this.state.prevPropsContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(_key) && !isScalarAndEqual(nextProps[_key], this.props[_key])) {\n return true;\n }\n }\n }\n\n return false;\n }\n /**\n * Render new data for the existing props/context.\n */\n ;\n\n _proto._rerenderIfStoreHasChanged = function _rerenderIfStoreHasChanged() {\n var _this$state = this.state,\n data = _this$state.data,\n resolver = _this$state.resolver; // External values could change between render and commit.\n // Check for this case, even though it requires an extra store read.\n\n var maybeNewData = resolver.resolve();\n\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n\n _proto._subscribeToNewResolver = function _subscribeToNewResolver() {\n var resolver = this.state.resolver; // Event listeners are only safe to add during the commit phase,\n // So they won't leak if render is interrupted or errors.\n\n resolver.setCallback(this._handleFragmentDataUpdate);\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n componentRef = _this$props.componentRef,\n _ = _this$props.__relayContext,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, [\"componentRef\", \"__relayContext\"]);\n return React.createElement(Component, (0, _objectSpread2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: this.state.relayProp\n }));\n };\n\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _temp;\n}\n\nfunction getRelayProp(environment) {\n return {\n environment: environment\n };\n}\n/**\n * Wrap the basic `createContainer()` function with logic to adapt to the\n * `context.relay.environment` in which it is rendered. Specifically, the\n * extraction of the environment-specific version of fragments in the\n * `fragmentSpec` is memoized once per environment, rather than once per\n * instance of the container constructed/rendered.\n */\n\n\nfunction createContainer(Component, fragmentSpec) {\n return buildReactRelayContainer(Component, fragmentSpec, createContainerWithFragments);\n}\n\nmodule.exports = {\n createContainer: createContainer\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayFragmentContainer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayLocalQueryRenderer.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayLocalQueryRenderer.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar useLayoutEffect = React.useLayoutEffect,\n useState = React.useState,\n useRef = React.useRef,\n useMemo = React.useMemo;\n\nvar _require = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n createOperationDescriptor = _require.createOperationDescriptor,\n deepFreeze = _require.deepFreeze,\n getRequest = _require.getRequest;\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nfunction useDeepCompare(value) {\n var latestValue = React.useRef(value);\n\n if (!areEqual(latestValue.current, value)) {\n if (true) {\n deepFreeze(value);\n }\n\n latestValue.current = value;\n }\n\n return latestValue.current;\n}\n\nfunction ReactRelayLocalQueryRenderer(props) {\n var environment = props.environment,\n query = props.query,\n variables = props.variables,\n render = props.render;\n var latestVariables = useDeepCompare(variables);\n var operation = useMemo(function () {\n var request = getRequest(query);\n return createOperationDescriptor(request, latestVariables);\n }, [query, latestVariables]);\n var relayContext = useMemo(function () {\n return {\n environment: environment\n };\n }, [environment]); // Use a ref to prevent rendering twice when data changes\n // because of props change\n\n var dataRef = useRef(null);\n\n var _useState = useState(null),\n forceUpdate = _useState[1];\n\n var cleanupFnRef = useRef(null);\n var snapshot = useMemo(function () {\n environment.check(operation);\n var res = environment.lookup(operation.fragment);\n dataRef.current = res.data; // Run effects here so that the data can be retained\n // and subscribed before the component commits\n\n var retainDisposable = environment.retain(operation);\n var subscribeDisposable = environment.subscribe(res, function (newSnapshot) {\n dataRef.current = newSnapshot.data;\n forceUpdate(dataRef.current);\n });\n var disposed = false;\n\n function nextCleanupFn() {\n if (!disposed) {\n disposed = true;\n cleanupFnRef.current = null;\n retainDisposable.dispose();\n subscribeDisposable.dispose();\n }\n }\n\n if (cleanupFnRef.current) {\n cleanupFnRef.current();\n }\n\n cleanupFnRef.current = nextCleanupFn;\n return res;\n }, [environment, operation]);\n useLayoutEffect(function () {\n var cleanupFn = cleanupFnRef.current;\n return function () {\n cleanupFn && cleanupFn();\n };\n }, [snapshot]);\n return React.createElement(ReactRelayContext.Provider, {\n value: relayContext\n }, render({\n props: dataRef.current\n }));\n}\n\nmodule.exports = ReactRelayLocalQueryRenderer;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayLocalQueryRenderer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayPaginationContainer.js":
/*!************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayPaginationContainer.js ***!
\************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar _objectSpread3 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar ReactRelayQueryFetcher = __webpack_require__(/*! ./ReactRelayQueryFetcher */ \"../../node_modules/react-relay/lib/ReactRelayQueryFetcher.js\");\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar buildReactRelayContainer = __webpack_require__(/*! ./buildReactRelayContainer */ \"../../node_modules/react-relay/lib/buildReactRelayContainer.js\");\n\nvar getRootVariablesForFragments = __webpack_require__(/*! ./getRootVariablesForFragments */ \"../../node_modules/react-relay/lib/getRootVariablesForFragments.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ./ReactRelayContainerUtils */ \"../../node_modules/react-relay/lib/ReactRelayContainerUtils.js\"),\n getComponentName = _require.getComponentName,\n getContainerName = _require.getContainerName;\n\nvar _require2 = __webpack_require__(/*! ./RelayContext */ \"../../node_modules/react-relay/lib/RelayContext.js\"),\n assertRelayContext = _require2.assertRelayContext;\n\nvar _require3 = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n ConnectionInterface = _require3.ConnectionInterface,\n Observable = _require3.Observable,\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n getRequest = _require3.getRequest,\n getSelector = _require3.getSelector,\n getVariablesFromObject = _require3.getVariablesFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\n\nvar FORWARD = 'forward';\n\n/**\n * Extends the functionality of RelayFragmentContainer by providing a mechanism\n * to load more data from a connection.\n *\n * # Configuring a PaginationContainer\n *\n * PaginationContainer accepts the standard FragmentContainer arguments and an\n * additional `connectionConfig` argument:\n *\n * - `Component`: the component to be wrapped/rendered.\n * - `fragments`: an object whose values are `graphql` fragments. The object\n * keys determine the prop names by which fragment data is available.\n * - `connectionConfig`: an object that determines how to load more connection\n * data. Details below.\n *\n * # Loading More Data\n *\n * Use `props.relay.hasMore()` to determine if there are more items to load.\n *\n * ```\n * hasMore(): boolean\n * ```\n *\n * Use `props.relay.isLoading()` to determine if a previous call to `loadMore()`\n * is still pending. This is convenient for avoiding duplicate load calls.\n *\n * ```\n * isLoading(): boolean\n * ```\n *\n * Use `props.relay.loadMore()` to load more items. This will return null if\n * there are no more items to fetch, otherwise it will fetch more items and\n * return a Disposable that can be used to cancel the fetch.\n *\n * `pageSize` should be the number of *additional* items to fetch (not the\n * total).\n *\n * ```\n * loadMore(pageSize: number, callback: ?(error: ?Error) => void): ?Disposable\n * ```\n *\n * A complete example:\n *\n * ```\n * class Foo extends React.Component {\n * ...\n * _onEndReached() {\n * if (!this.props.relay.hasMore() || this.props.relay.isLoading()) {\n * return;\n * }\n * this.props.relay.loadMore(10);\n * }\n * ...\n * }\n * ```\n *\n * # Connection Config\n *\n * Here's an example, followed by details of each config property:\n *\n * ```\n * ReactRelayPaginationContainer.createContainer(\n * Component,\n * {\n * user: graphql`fragment FriendsFragment on User {\n * friends(after: $afterCursor first: $count) @connection {\n * edges { ... }\n * pageInfo {\n * startCursor\n * endCursor\n * hasNextPage\n * hasPreviousPage\n * }\n * }\n * }`,\n * },\n * {\n * direction: 'forward',\n * getConnectionFromProps(props) {\n * return props.user && props.user.friends;\n * },\n * getFragmentVariables(vars, totalCount) {\n * // The component presumably wants *all* edges, not just those after\n * // the cursor, so notice that we don't set $afterCursor here.\n * return {\n * ...vars,\n * count: totalCount,\n * };\n * },\n * getVariables(props, {count, cursor}, fragmentVariables) {\n * return {\n * id: props.user.id,\n * afterCursor: cursor,\n * count,\n * },\n * },\n * query: graphql`\n * query FriendsQuery($id: ID!, $afterCursor: ID, $count: Int!) {\n * node(id: $id) {\n * ...FriendsFragment\n * }\n * }\n * `,\n * }\n * );\n * ```\n *\n * ## Config Properties\n *\n * - `direction`: Either \"forward\" to indicate forward pagination using\n * after/first, or \"backward\" to indicate backward pagination using\n * before/last.\n * - `getConnectionFromProps(props)`: PaginationContainer doesn't magically know\n * which connection data you mean to fetch more of (a container might fetch\n * multiple connections, but can only paginate one of them). This function is\n * given the fragment props only (not full props), and should return the\n * connection data. See the above example that returns the friends data via\n * `props.user.friends`.\n * - `getFragmentVariables(previousVars, totalCount)`: Given the previous variables\n * and the new total number of items, get the variables to use when reading\n * your fragments. Typically this means setting whatever your local \"count\"\n * variable is to the value of `totalCount`. See the example.\n * - `getVariables(props, {count, cursor})`: Get the variables to use when\n * fetching the pagination `query`. You may determine the root object id from\n * props (see the example that uses `props.user.id`) and may also set whatever\n * variables you use for the after/first/before/last calls based on the count\n * and cursor.\n * - `query`: A query to use when fetching more connection data. This should\n * typically reference one of the container's fragment (as in the example)\n * to ensure that all the necessary fields for sub-components are fetched.\n */\nfunction createGetConnectionFromProps(metadata) {\n var path = metadata.path;\n !path ? true ? invariant(false, 'ReactRelayPaginationContainer: Unable to synthesize a ' + 'getConnectionFromProps function.') : undefined : void 0;\n return function (props) {\n var data = props[metadata.fragmentName];\n\n for (var i = 0; i < path.length; i++) {\n if (!data || typeof data !== 'object') {\n return null;\n }\n\n data = data[path[i]];\n }\n\n return data;\n };\n}\n\nfunction createGetFragmentVariables(metadata) {\n var countVariable = metadata.count;\n !countVariable ? true ? invariant(false, 'ReactRelayPaginationContainer: Unable to synthesize a ' + 'getFragmentVariables function.') : undefined : void 0;\n return function (prevVars, totalCount) {\n return (0, _objectSpread3[\"default\"])({}, prevVars, (0, _defineProperty2[\"default\"])({}, countVariable, totalCount));\n };\n}\n\nfunction findConnectionMetadata(fragments) {\n var foundConnectionMetadata = null;\n var isRelayModern = false;\n\n for (var fragmentName in fragments) {\n var fragment = fragments[fragmentName];\n var connectionMetadata = fragment.metadata && fragment.metadata.connection; // HACK: metadata is always set to `undefined` in classic. In modern, even\n // if empty, it is set to null (never undefined). We use that knowlege to\n // check if we're dealing with classic or modern\n\n if (fragment.metadata !== undefined) {\n isRelayModern = true;\n }\n\n if (connectionMetadata) {\n !(connectionMetadata.length === 1) ? true ? invariant(false, 'ReactRelayPaginationContainer: Only a single @connection is ' + 'supported, `%s` has %s.', fragmentName, connectionMetadata.length) : undefined : void 0;\n !!foundConnectionMetadata ? true ? invariant(false, 'ReactRelayPaginationContainer: Only a single fragment with ' + '@connection is supported.') : undefined : void 0;\n foundConnectionMetadata = (0, _objectSpread3[\"default\"])({}, connectionMetadata[0], {\n fragmentName: fragmentName\n });\n }\n }\n\n !(!isRelayModern || foundConnectionMetadata !== null) ? true ? invariant(false, 'ReactRelayPaginationContainer: A @connection directive must be present.') : undefined : void 0;\n return foundConnectionMetadata || {};\n}\n\nfunction toObserver(observerOrCallback) {\n return typeof observerOrCallback === 'function' ? {\n error: observerOrCallback,\n complete: observerOrCallback,\n unsubscribe: function unsubscribe(subscription) {\n typeof observerOrCallback === 'function' && observerOrCallback();\n }\n } : observerOrCallback || {};\n}\n\nfunction createContainerWithFragments(Component, fragments, connectionConfig) {\n var _class, _temp;\n\n var componentName = getComponentName(Component);\n var containerName = getContainerName(Component);\n var metadata = findConnectionMetadata(fragments);\n var getConnectionFromProps = connectionConfig.getConnectionFromProps || createGetConnectionFromProps(metadata);\n var direction = connectionConfig.direction || metadata.direction;\n !direction ? true ? invariant(false, 'ReactRelayPaginationContainer: Unable to infer direction of the ' + 'connection, possibly because both first and last are provided.') : undefined : void 0;\n var getFragmentVariables = connectionConfig.getFragmentVariables || createGetFragmentVariables(metadata);\n return _temp = _class =\n /*#__PURE__*/\n function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n\n function _class(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n _this.setState({\n data: _this._resolver.resolve()\n });\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_hasMore\", function () {\n var connectionData = _this._getConnectionData();\n\n return !!(connectionData && connectionData.hasMore && connectionData.cursor);\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_isLoading\", function () {\n return !!_this._refetchSubscription;\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_refetchConnection\", function (totalCount, observerOrCallback, refetchVariables) {\n if (!_this._canFetchPage('refetchConnection')) {\n return {\n dispose: function dispose() {}\n };\n }\n\n _this._refetchVariables = refetchVariables;\n var paginatingVariables = {\n count: totalCount,\n cursor: null,\n totalCount: totalCount\n };\n\n var fetch = _this._fetchPage(paginatingVariables, toObserver(observerOrCallback), {\n force: true\n });\n\n return {\n dispose: fetch.unsubscribe\n };\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_loadMore\", function (pageSize, observerOrCallback, options) {\n if (!_this._canFetchPage('loadMore')) {\n return {\n dispose: function dispose() {}\n };\n }\n\n var observer = toObserver(observerOrCallback);\n\n var connectionData = _this._getConnectionData();\n\n if (!connectionData) {\n Observable.create(function (sink) {\n return sink.complete();\n }).subscribe(observer);\n return null;\n }\n\n var totalCount = connectionData.edgeCount + pageSize;\n\n if (options && options.force) {\n return _this._refetchConnection(totalCount, observerOrCallback);\n }\n\n var _ConnectionInterface$ = ConnectionInterface.get(),\n END_CURSOR = _ConnectionInterface$.END_CURSOR,\n START_CURSOR = _ConnectionInterface$.START_CURSOR;\n\n var cursor = connectionData.cursor;\n true ? warning(cursor != null && cursor !== '', 'ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)', direction === FORWARD ? END_CURSOR : START_CURSOR, cursor) : undefined;\n var paginatingVariables = {\n count: pageSize,\n cursor: cursor,\n totalCount: totalCount\n };\n\n var fetch = _this._fetchPage(paginatingVariables, observer, options);\n\n return {\n dispose: fetch.unsubscribe\n };\n });\n var relayContext = assertRelayContext(props.__relayContext);\n _this._isARequestInFlight = false;\n _this._refetchSubscription = null;\n _this._refetchVariables = null;\n _this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props, _this._handleFragmentDataUpdate);\n _this.state = {\n data: _this._resolver.resolve(),\n prevContext: relayContext,\n contextForChildren: relayContext,\n relayProp: _this._buildRelayProp(relayContext)\n };\n _this._isUnmounted = false;\n _this._hasFetched = false;\n return _this;\n }\n /**\n * When new props are received, read data for the new props and subscribe\n * for updates. Props may be the same in which case previous data and\n * subscriptions can be reused.\n */\n\n\n var _proto = _class.prototype;\n\n _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var prevIDs = getDataIDsFromObject(fragments, this.props);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var prevRootVariables = getRootVariablesForFragments(fragments, this.props);\n var nextRootVariables = getRootVariablesForFragments(fragments, nextProps); // If the environment has changed or props point to new records then\n // previously fetched data and any pending fetches no longer apply:\n // - Existing references are on the old environment.\n // - Existing references are based on old variables.\n // - Pending fetches are for the previous records.\n\n if (relayContext.environment !== this.state.prevContext.environment || !areEqual(prevRootVariables, nextRootVariables) || !areEqual(prevIDs, nextIDs)) {\n this._cleanup(); // Child containers rely on context.relay being mutated (for gDSFP).\n\n\n this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps, this._handleFragmentDataUpdate);\n this.setState({\n prevContext: relayContext,\n contextForChildren: relayContext,\n relayProp: this._buildRelayProp(relayContext)\n });\n } else if (!this._hasFetched) {\n this._resolver.setProps(nextProps);\n }\n\n var data = this._resolver.resolve();\n\n if (data !== this.state.data) {\n this.setState({\n data: data\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isUnmounted = true;\n\n this._cleanup();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n // Short-circuit if any Relay-related data has changed\n if (nextState.data !== this.state.data || nextState.relayProp !== this.state.relayProp) {\n return true;\n } // Otherwise, for convenience short-circuit if all non-Relay props\n // are scalar and equal\n\n\n var keys = Object.keys(nextProps);\n\n for (var ii = 0; ii < keys.length; ii++) {\n var _key = keys[ii];\n\n if (_key === '__relayContext') {\n if (nextState.prevContext.environment !== this.state.prevContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(_key) && !isScalarAndEqual(nextProps[_key], this.props[_key])) {\n return true;\n }\n }\n }\n\n return false;\n };\n\n _proto._buildRelayProp = function _buildRelayProp(relayContext) {\n return {\n hasMore: this._hasMore,\n isLoading: this._isLoading,\n loadMore: this._loadMore,\n refetchConnection: this._refetchConnection,\n environment: relayContext.environment\n };\n }\n /**\n * Render new data for the existing props/context.\n */\n ;\n\n _proto._getConnectionData = function _getConnectionData() {\n // Extract connection data and verify there are more edges to fetch\n var _this$props = this.props,\n _ = _this$props.componentRef,\n restProps = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, [\"componentRef\"]);\n var props = (0, _objectSpread3[\"default\"])({}, restProps, this.state.data);\n var connectionData = getConnectionFromProps(props);\n\n if (connectionData == null) {\n return null;\n }\n\n var _ConnectionInterface$2 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$2.EDGES,\n PAGE_INFO = _ConnectionInterface$2.PAGE_INFO,\n HAS_NEXT_PAGE = _ConnectionInterface$2.HAS_NEXT_PAGE,\n HAS_PREV_PAGE = _ConnectionInterface$2.HAS_PREV_PAGE,\n END_CURSOR = _ConnectionInterface$2.END_CURSOR,\n START_CURSOR = _ConnectionInterface$2.START_CURSOR;\n\n !(typeof connectionData === 'object') ? true ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return `null` or a plain object with %s and %s properties, got `%s`.', componentName, EDGES, PAGE_INFO, connectionData) : undefined : void 0;\n var edges = connectionData[EDGES];\n var pageInfo = connectionData[PAGE_INFO];\n\n if (edges == null || pageInfo == null) {\n return null;\n }\n\n !Array.isArray(edges) ? true ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return an object with %s: Array, got `%s`.', componentName, EDGES, edges) : undefined : void 0;\n !(typeof pageInfo === 'object') ? true ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return an object with %s: Object, got `%s`.', componentName, PAGE_INFO, pageInfo) : undefined : void 0;\n var hasMore = direction === FORWARD ? pageInfo[HAS_NEXT_PAGE] : pageInfo[HAS_PREV_PAGE];\n var cursor = direction === FORWARD ? pageInfo[END_CURSOR] : pageInfo[START_CURSOR];\n\n if (typeof hasMore !== 'boolean' || edges.length !== 0 && typeof cursor === 'undefined') {\n true ? warning(false, 'ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. ' + 'Be sure to fetch %s (got `%s`) and %s (got `%s`).', PAGE_INFO, componentName, direction === FORWARD ? HAS_NEXT_PAGE : HAS_PREV_PAGE, hasMore, direction === FORWARD ? END_CURSOR : START_CURSOR, cursor) : undefined;\n return null;\n }\n\n return {\n cursor: cursor,\n edgeCount: edges.length,\n hasMore: hasMore\n };\n };\n\n _proto._getQueryFetcher = function _getQueryFetcher() {\n if (!this._queryFetcher) {\n this._queryFetcher = new ReactRelayQueryFetcher();\n }\n\n return this._queryFetcher;\n };\n\n _proto._canFetchPage = function _canFetchPage(method) {\n if (this._isUnmounted) {\n true ? warning(false, 'ReactRelayPaginationContainer: Unexpected call of `%s` ' + 'on unmounted container `%s`. It looks like some instances ' + 'of your container still trying to fetch data but they already ' + 'unmounted. Please make sure you clear all timers, intervals, async ' + 'calls, etc that may trigger `%s` call.', method, containerName, method) : undefined;\n return false;\n }\n\n return true;\n };\n\n _proto._fetchPage = function _fetchPage(paginatingVariables, observer, options) {\n var _this2 = this;\n\n var _assertRelayContext = assertRelayContext(this.props.__relayContext),\n environment = _assertRelayContext.environment;\n\n var _this$props2 = this.props,\n _ = _this$props2.componentRef,\n __relayContext = _this$props2.__relayContext,\n restProps = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props2, [\"componentRef\", \"__relayContext\"]);\n var props = (0, _objectSpread3[\"default\"])({}, restProps, this.state.data);\n var fragmentVariables;\n var rootVariables = getRootVariablesForFragments(fragments, restProps);\n fragmentVariables = getVariablesFromObject(fragments, restProps);\n fragmentVariables = (0, _objectSpread3[\"default\"])({}, rootVariables, fragmentVariables, this._refetchVariables);\n var fetchVariables = connectionConfig.getVariables(props, {\n count: paginatingVariables.count,\n cursor: paginatingVariables.cursor\n }, fragmentVariables);\n !(typeof fetchVariables === 'object' && fetchVariables !== null) ? true ? invariant(false, 'ReactRelayPaginationContainer: Expected `getVariables()` to ' + 'return an object, got `%s` in `%s`.', fetchVariables, componentName) : undefined : void 0;\n fetchVariables = (0, _objectSpread3[\"default\"])({}, fetchVariables, this._refetchVariables);\n fragmentVariables = (0, _objectSpread3[\"default\"])({}, fetchVariables, fragmentVariables);\n var cacheConfig = options ? {\n force: !!options.force\n } : undefined;\n\n if (cacheConfig != null && (options === null || options === void 0 ? void 0 : options.metadata) != null) {\n cacheConfig.metadata = options === null || options === void 0 ? void 0 : options.metadata;\n }\n\n var request = getRequest(connectionConfig.query);\n var operation = createOperationDescriptor(request, fetchVariables);\n var refetchSubscription = null;\n\n if (this._refetchSubscription) {\n this._refetchSubscription.unsubscribe();\n }\n\n this._hasFetched = true;\n\n var onNext = function onNext(payload, complete) {\n var prevData = _this2._resolver.resolve();\n\n _this2._resolver.setVariables(getFragmentVariables(fragmentVariables, paginatingVariables.totalCount), operation.request.node);\n\n var nextData = _this2._resolver.resolve(); // Workaround slightly different handling for connection in different\n // core implementations:\n // - Classic core requires the count to be explicitly incremented\n // - Modern core automatically appends new items, updating the count\n // isn't required to see new data.\n //\n // `setState` is only required if changing the variables would change the\n // resolved data.\n // TODO #14894725: remove PaginationContainer equal check\n\n\n if (!areEqual(prevData, nextData)) {\n _this2.setState({\n data: nextData,\n contextForChildren: {\n environment: _this2.props.__relayContext.environment\n }\n }, complete);\n } else {\n complete();\n }\n };\n\n var cleanup = function cleanup() {\n if (_this2._refetchSubscription === refetchSubscription) {\n _this2._refetchSubscription = null;\n _this2._isARequestInFlight = false;\n }\n };\n\n this._isARequestInFlight = true;\n refetchSubscription = this._getQueryFetcher().execute({\n environment: environment,\n operation: operation,\n cacheConfig: cacheConfig,\n preservePreviousReferences: true\n }).mergeMap(function (payload) {\n return Observable.create(function (sink) {\n onNext(payload, function () {\n sink.next(); // pass void to public observer's `next`\n\n sink.complete();\n });\n });\n }) // use do instead of finally so that observer's `complete` fires after cleanup\n [\"do\"]({\n error: cleanup,\n complete: cleanup,\n unsubscribe: cleanup\n }).subscribe(observer || {});\n this._refetchSubscription = this._isARequestInFlight ? refetchSubscription : null;\n return refetchSubscription;\n };\n\n _proto._cleanup = function _cleanup() {\n this._resolver.dispose();\n\n this._refetchVariables = null;\n this._hasFetched = false;\n\n if (this._refetchSubscription) {\n this._refetchSubscription.unsubscribe();\n\n this._refetchSubscription = null;\n this._isARequestInFlight = false;\n }\n\n if (this._queryFetcher) {\n this._queryFetcher.dispose();\n }\n };\n\n _proto.render = function render() {\n var _this$props3 = this.props,\n componentRef = _this$props3.componentRef,\n __relayContext = _this$props3.__relayContext,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props3, [\"componentRef\", \"__relayContext\"]);\n return React.createElement(ReactRelayContext.Provider, {\n value: this.state.contextForChildren\n }, React.createElement(Component, (0, _extends2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: this.state.relayProp\n })));\n };\n\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _temp;\n}\n/**\n * Wrap the basic `createContainer()` function with logic to adapt to the\n * `context.relay.environment` in which it is rendered. Specifically, the\n * extraction of the environment-specific version of fragments in the\n * `fragmentSpec` is memoized once per environment, rather than once per\n * instance of the container constructed/rendered.\n */\n\n\nfunction createContainer(Component, fragmentSpec, connectionConfig) {\n return buildReactRelayContainer(Component, fragmentSpec, function (ComponentClass, fragments) {\n return createContainerWithFragments(ComponentClass, fragments, connectionConfig);\n });\n}\n\nmodule.exports = {\n createContainer: createContainer\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayPaginationContainer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayQueryFetcher.js":
/*!*****************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayQueryFetcher.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n isRelayModernEnvironment = _require.isRelayModernEnvironment,\n fetchQuery = _require.__internal.fetchQuery;\n\nvar ReactRelayQueryFetcher =\n/*#__PURE__*/\nfunction () {\n function ReactRelayQueryFetcher(args) {\n (0, _defineProperty2[\"default\"])(this, \"_selectionReferences\", []);\n (0, _defineProperty2[\"default\"])(this, \"_callOnDataChangeWhenSet\", false);\n\n if (args != null) {\n this._cacheSelectionReference = args.cacheSelectionReference;\n this._selectionReferences = args.selectionReferences;\n }\n }\n\n var _proto = ReactRelayQueryFetcher.prototype;\n\n _proto.getSelectionReferences = function getSelectionReferences() {\n return {\n cacheSelectionReference: this._cacheSelectionReference,\n selectionReferences: this._selectionReferences\n };\n };\n\n _proto.lookupInStore = function lookupInStore(environment, operation, fetchPolicy) {\n if (fetchPolicy === 'store-and-network' || fetchPolicy === 'store-or-network') {\n if (environment.check(operation).status === 'available') {\n this._retainCachedOperation(environment, operation);\n\n return environment.lookup(operation.fragment);\n }\n }\n\n return null;\n };\n\n _proto.execute = function execute(_ref) {\n var _this = this;\n\n var environment = _ref.environment,\n operation = _ref.operation,\n cacheConfig = _ref.cacheConfig,\n _ref$preservePrevious = _ref.preservePreviousReferences,\n preservePreviousReferences = _ref$preservePrevious === void 0 ? false : _ref$preservePrevious;\n var reference = environment.retain(operation);\n var fetchQueryOptions = cacheConfig != null ? {\n networkCacheConfig: cacheConfig\n } : {};\n\n var error = function error() {\n // We may have partially fulfilled the request, so let the next request\n // or the unmount dispose of the references.\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n\n var complete = function complete() {\n if (!preservePreviousReferences) {\n _this.disposeSelectionReferences();\n }\n\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n\n var unsubscribe = function unsubscribe() {\n // Let the next request or the unmount code dispose of the references.\n // We may have partially fulfilled the request.\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n\n if (!isRelayModernEnvironment(environment)) {\n return environment.execute({\n operation: operation,\n cacheConfig: cacheConfig\n })[\"do\"]({\n error: error,\n complete: complete,\n unsubscribe: unsubscribe\n });\n }\n\n return fetchQuery(environment, operation, fetchQueryOptions)[\"do\"]({\n error: error,\n complete: complete,\n unsubscribe: unsubscribe\n });\n };\n\n _proto.setOnDataChange = function setOnDataChange(onDataChange) {\n !this._fetchOptions ? true ? invariant(false, 'ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`') : undefined : void 0;\n\n if (typeof onDataChange === 'function') {\n // Mutate the most recent fetchOptions in place,\n // So that in-progress requests can access the updated callback.\n this._fetchOptions.onDataChangeCallbacks = this._fetchOptions.onDataChangeCallbacks || [];\n\n this._fetchOptions.onDataChangeCallbacks.push(onDataChange);\n\n if (this._callOnDataChangeWhenSet) {\n // We don't reset '_callOnDataChangeWhenSet' because another callback may be set\n if (this._error != null) {\n onDataChange({\n error: this._error\n });\n } else if (this._snapshot != null) {\n onDataChange({\n snapshot: this._snapshot\n });\n }\n }\n }\n }\n /**\n * `fetch` fetches the data for the given operation.\n * If a result is immediately available synchronously, it will be synchronously\n * returned by this function.\n *\n * Otherwise, the fetched result will be communicated via the `onDataChange` callback.\n * `onDataChange` will be called with the first result (**if it wasn't returned synchronously**),\n * and then subsequently whenever the data changes.\n */\n ;\n\n _proto.fetch = function fetch(fetchOptions, cacheConfigOverride) {\n var _this2 = this;\n\n var _cacheConfigOverride;\n\n var cacheConfig = fetchOptions.cacheConfig,\n environment = fetchOptions.environment,\n operation = fetchOptions.operation,\n onDataChange = fetchOptions.onDataChange;\n var fetchHasReturned = false;\n\n var _error;\n\n this.disposeRequest();\n var oldOnDataChangeCallbacks = this._fetchOptions && this._fetchOptions.onDataChangeCallbacks;\n this._fetchOptions = {\n cacheConfig: cacheConfig,\n environment: environment,\n onDataChangeCallbacks: oldOnDataChangeCallbacks || [],\n operation: operation\n };\n\n if (onDataChange && this._fetchOptions.onDataChangeCallbacks.indexOf(onDataChange) === -1) {\n this._fetchOptions.onDataChangeCallbacks.push(onDataChange);\n }\n\n var request = this.execute({\n environment: environment,\n operation: operation,\n cacheConfig: (_cacheConfigOverride = cacheConfigOverride) !== null && _cacheConfigOverride !== void 0 ? _cacheConfigOverride : cacheConfig\n })[\"finally\"](function () {\n _this2._pendingRequest = null;\n }).subscribe({\n next: function next() {\n // If we received a response,\n // Make a note that to notify the callback when it's later added.\n _this2._callOnDataChangeWhenSet = true;\n _this2._error = null; // Only notify of the first result if `next` is being called **asynchronously**\n // (i.e. after `fetch` has returned).\n\n _this2._onQueryDataAvailable({\n notifyFirstResult: fetchHasReturned\n });\n },\n error: function error(err) {\n // If we received a response when we didn't have a change callback,\n // Make a note that to notify the callback when it's later added.\n _this2._callOnDataChangeWhenSet = true;\n _this2._error = err;\n _this2._snapshot = null;\n var onDataChangeCallbacks = _this2._fetchOptions && _this2._fetchOptions.onDataChangeCallbacks; // Only notify of error if `error` is being called **asynchronously**\n // (i.e. after `fetch` has returned).\n\n if (fetchHasReturned) {\n if (onDataChangeCallbacks) {\n onDataChangeCallbacks.forEach(function (onDataChange) {\n onDataChange({\n error: err\n });\n });\n }\n } else {\n _error = err;\n }\n }\n });\n this._pendingRequest = {\n dispose: function dispose() {\n request.unsubscribe();\n }\n };\n fetchHasReturned = true;\n\n if (_error) {\n throw _error;\n }\n\n return this._snapshot;\n };\n\n _proto.retry = function retry(cacheConfigOverride) {\n !this._fetchOptions ? true ? invariant(false, 'ReactRelayQueryFetcher: `retry` should be called after having called `fetch`') : undefined : void 0;\n return this.fetch({\n cacheConfig: this._fetchOptions.cacheConfig,\n environment: this._fetchOptions.environment,\n operation: this._fetchOptions.operation,\n onDataChange: null // If there are onDataChangeCallbacks they will be reused\n\n }, cacheConfigOverride);\n };\n\n _proto.dispose = function dispose() {\n this.disposeRequest();\n this.disposeSelectionReferences();\n };\n\n _proto.disposeRequest = function disposeRequest() {\n this._error = null;\n this._snapshot = null; // order is important, dispose of pendingFetch before selectionReferences\n\n if (this._pendingRequest) {\n this._pendingRequest.dispose();\n }\n\n if (this._rootSubscription) {\n this._rootSubscription.dispose();\n\n this._rootSubscription = null;\n }\n };\n\n _proto._retainCachedOperation = function _retainCachedOperation(environment, operation) {\n this._disposeCacheSelectionReference();\n\n this._cacheSelectionReference = environment.retain(operation);\n };\n\n _proto._disposeCacheSelectionReference = function _disposeCacheSelectionReference() {\n this._cacheSelectionReference && this._cacheSelectionReference.dispose();\n this._cacheSelectionReference = null;\n };\n\n _proto.disposeSelectionReferences = function disposeSelectionReferences() {\n this._disposeCacheSelectionReference();\n\n this._selectionReferences.forEach(function (r) {\n return r.dispose();\n });\n\n this._selectionReferences = [];\n };\n\n _proto._onQueryDataAvailable = function _onQueryDataAvailable(_ref2) {\n var _this3 = this;\n\n var notifyFirstResult = _ref2.notifyFirstResult;\n !this._fetchOptions ? true ? invariant(false, 'ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`') : undefined : void 0;\n var _this$_fetchOptions = this._fetchOptions,\n environment = _this$_fetchOptions.environment,\n onDataChangeCallbacks = _this$_fetchOptions.onDataChangeCallbacks,\n operation = _this$_fetchOptions.operation; // `_onQueryDataAvailable` can be called synchronously the first time and can be called\n // multiple times by network layers that support data subscriptions.\n // Wait until the first payload to call `onDataChange` and subscribe for data updates.\n\n if (this._snapshot) {\n return;\n }\n\n this._snapshot = environment.lookup(operation.fragment); // Subscribe to changes in the data of the root fragment\n\n this._rootSubscription = environment.subscribe(this._snapshot, function (snapshot) {\n // Read from this._fetchOptions in case onDataChange() was lazily added.\n if (_this3._fetchOptions != null) {\n var maybeNewOnDataChangeCallbacks = _this3._fetchOptions.onDataChangeCallbacks;\n\n if (Array.isArray(maybeNewOnDataChangeCallbacks)) {\n maybeNewOnDataChangeCallbacks.forEach(function (onDataChange) {\n return onDataChange({\n snapshot: snapshot\n });\n });\n }\n }\n });\n\n if (this._snapshot && notifyFirstResult && Array.isArray(onDataChangeCallbacks)) {\n var snapshot = this._snapshot;\n onDataChangeCallbacks.forEach(function (onDataChange) {\n return onDataChange({\n snapshot: snapshot\n });\n });\n }\n };\n\n return ReactRelayQueryFetcher;\n}();\n\nmodule.exports = ReactRelayQueryFetcher;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayQueryFetcher.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayQueryRenderer.js":
/*!******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayQueryRenderer.js ***!
\******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar ReactRelayQueryFetcher = __webpack_require__(/*! ./ReactRelayQueryFetcher */ \"../../node_modules/react-relay/lib/ReactRelayQueryFetcher.js\");\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar _require = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n createOperationDescriptor = _require.createOperationDescriptor,\n deepFreeze = _require.deepFreeze,\n getRequest = _require.getRequest;\n\n/**\n * React may double-fire the constructor, and we call 'fetch' in the\n * constructor. If a request is already in flight from a previous call to the\n * constructor, just reuse the query fetcher and wait for the response.\n */\nvar requestCache = {};\n\n/**\n * @public\n *\n * Orchestrates fetching and rendering data for a single view or view hierarchy:\n * - Fetches the query/variables using the given network implementation.\n * - Normalizes the response(s) to that query, publishing them to the given\n * store.\n * - Renders the pending/fail/success states with the provided render function.\n * - Subscribes for updates to the root data and re-renders with any changes.\n */\nvar ReactRelayQueryRenderer =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(ReactRelayQueryRenderer, _React$Component);\n\n function ReactRelayQueryRenderer(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this; // Callbacks are attached to the current instance and shared with static\n // lifecyles by bundling with state. This is okay to do because the\n // callbacks don't change in reaction to props. However we should not\n // \"leak\" them before mounting (since we would be unable to clean up). For\n // that reason, we define them as null initially and fill them in after\n // mounting to avoid leaking memory.\n\n var retryCallbacks = {\n handleDataChange: null,\n handleRetryAfterError: null\n };\n var queryFetcher;\n var requestCacheKey;\n\n if (props.query) {\n var query = props.query;\n var request = getRequest(query);\n requestCacheKey = getRequestCacheKey(request.params, props.variables);\n queryFetcher = requestCache[requestCacheKey] ? requestCache[requestCacheKey].queryFetcher : new ReactRelayQueryFetcher();\n } else {\n queryFetcher = new ReactRelayQueryFetcher();\n }\n\n _this.state = (0, _objectSpread2[\"default\"])({\n prevPropsEnvironment: props.environment,\n prevPropsVariables: props.variables,\n prevQuery: props.query,\n queryFetcher: queryFetcher,\n retryCallbacks: retryCallbacks\n }, fetchQueryAndComputeStateFromProps(props, queryFetcher, retryCallbacks, requestCacheKey));\n return _this;\n }\n\n ReactRelayQueryRenderer.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (prevState.prevQuery !== nextProps.query || prevState.prevPropsEnvironment !== nextProps.environment || !areEqual(prevState.prevPropsVariables, nextProps.variables)) {\n var query = nextProps.query;\n var prevSelectionReferences = prevState.queryFetcher.getSelectionReferences();\n prevState.queryFetcher.disposeRequest();\n var queryFetcher;\n\n if (query) {\n var request = getRequest(query);\n var requestCacheKey = getRequestCacheKey(request.params, nextProps.variables);\n queryFetcher = requestCache[requestCacheKey] ? requestCache[requestCacheKey].queryFetcher : new ReactRelayQueryFetcher(prevSelectionReferences);\n } else {\n queryFetcher = new ReactRelayQueryFetcher(prevSelectionReferences);\n }\n\n return (0, _objectSpread2[\"default\"])({\n prevQuery: nextProps.query,\n prevPropsEnvironment: nextProps.environment,\n prevPropsVariables: nextProps.variables,\n queryFetcher: queryFetcher\n }, fetchQueryAndComputeStateFromProps(nextProps, queryFetcher, prevState.retryCallbacks // passing no requestCacheKey will cause it to be recalculated internally\n // and we want the updated requestCacheKey, since variables may have changed\n ));\n }\n\n return null;\n };\n\n var _proto = ReactRelayQueryRenderer.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n var _this$state = this.state,\n retryCallbacks = _this$state.retryCallbacks,\n queryFetcher = _this$state.queryFetcher,\n requestCacheKey = _this$state.requestCacheKey;\n\n if (requestCacheKey) {\n delete requestCache[requestCacheKey];\n }\n\n retryCallbacks.handleDataChange = function (params) {\n var error = params.error == null ? null : params.error;\n var snapshot = params.snapshot == null ? null : params.snapshot;\n\n _this2.setState(function (prevState) {\n var prevRequestCacheKey = prevState.requestCacheKey;\n\n if (prevRequestCacheKey) {\n delete requestCache[prevRequestCacheKey];\n } // Don't update state if nothing has changed.\n\n\n if (snapshot === prevState.snapshot && error === prevState.error) {\n return null;\n }\n\n return {\n renderProps: getRenderProps(error, snapshot, prevState.queryFetcher, prevState.retryCallbacks),\n snapshot: snapshot,\n requestCacheKey: null\n };\n });\n };\n\n retryCallbacks.handleRetryAfterError = function (error) {\n return _this2.setState(function (prevState) {\n var prevRequestCacheKey = prevState.requestCacheKey;\n\n if (prevRequestCacheKey) {\n delete requestCache[prevRequestCacheKey];\n }\n\n return {\n renderProps: getLoadingRenderProps(),\n requestCacheKey: null\n };\n });\n }; // Re-initialize the ReactRelayQueryFetcher with callbacks.\n // If data has changed since constructions, this will re-render.\n\n\n if (this.props.query) {\n queryFetcher.setOnDataChange(retryCallbacks.handleDataChange);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n // We don't need to cache the request after the component commits\n var requestCacheKey = this.state.requestCacheKey;\n\n if (requestCacheKey) {\n delete requestCache[requestCacheKey]; // HACK\n\n delete this.state.requestCacheKey;\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.state.queryFetcher.dispose();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n return nextProps.render !== this.props.render || nextState.renderProps !== this.state.renderProps;\n };\n\n _proto.render = function render() {\n var _this$state2 = this.state,\n renderProps = _this$state2.renderProps,\n relayContext = _this$state2.relayContext; // Note that the root fragment results in `renderProps.props` is already\n // frozen by the store; this call is to freeze the renderProps object and\n // error property if set.\n\n if (true) {\n deepFreeze(renderProps);\n }\n\n return React.createElement(ReactRelayContext.Provider, {\n value: relayContext\n }, this.props.render(renderProps));\n };\n\n return ReactRelayQueryRenderer;\n}(React.Component);\n\nfunction getLoadingRenderProps() {\n return {\n error: null,\n props: null,\n // `props: null` indicates that the data is being fetched (i.e. loading)\n retry: null\n };\n}\n\nfunction getEmptyRenderProps() {\n return {\n error: null,\n props: {},\n // `props: {}` indicates no data available\n retry: null\n };\n}\n\nfunction getRenderProps(error, snapshot, queryFetcher, retryCallbacks) {\n return {\n error: error ? error : null,\n props: snapshot ? snapshot.data : null,\n retry: function retry(cacheConfigOverride) {\n var syncSnapshot = queryFetcher.retry(cacheConfigOverride);\n\n if (syncSnapshot && typeof retryCallbacks.handleDataChange === 'function') {\n retryCallbacks.handleDataChange({\n snapshot: syncSnapshot\n });\n } else if (error && typeof retryCallbacks.handleRetryAfterError === 'function') {\n // If retrying after an error and no synchronous result available,\n // reset the render props\n retryCallbacks.handleRetryAfterError(error);\n }\n }\n };\n}\n\nfunction getRequestCacheKey(request, variables) {\n var requestID = request.id || request.text;\n return JSON.stringify({\n id: String(requestID),\n variables: variables\n });\n}\n\nfunction fetchQueryAndComputeStateFromProps(props, queryFetcher, retryCallbacks, requestCacheKey) {\n var environment = props.environment,\n query = props.query,\n variables = props.variables;\n var genericEnvironment = environment;\n\n if (query) {\n var request = getRequest(query);\n var operation = createOperationDescriptor(request, variables);\n var relayContext = {\n environment: genericEnvironment\n };\n\n if (typeof requestCacheKey === 'string' && requestCache[requestCacheKey]) {\n // This same request is already in flight.\n var snapshot = requestCache[requestCacheKey].snapshot;\n\n if (snapshot) {\n // Use the cached response\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getRenderProps(null, snapshot, queryFetcher, retryCallbacks),\n snapshot: snapshot,\n requestCacheKey: requestCacheKey\n };\n } else {\n // Render loading state\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getLoadingRenderProps(),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n }\n\n try {\n var storeSnapshot = queryFetcher.lookupInStore(genericEnvironment, operation, props.fetchPolicy);\n var querySnapshot = queryFetcher.fetch({\n cacheConfig: props.cacheConfig,\n environment: genericEnvironment,\n onDataChange: retryCallbacks.handleDataChange,\n operation: operation\n }); // Use network data first, since it may be fresher\n\n var _snapshot = querySnapshot || storeSnapshot; // cache the request to avoid duplicate requests\n\n\n requestCacheKey = requestCacheKey || getRequestCacheKey(request.params, props.variables);\n requestCache[requestCacheKey] = {\n queryFetcher: queryFetcher,\n snapshot: _snapshot\n };\n\n if (!_snapshot) {\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getLoadingRenderProps(),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getRenderProps(null, _snapshot, queryFetcher, retryCallbacks),\n snapshot: _snapshot,\n requestCacheKey: requestCacheKey\n };\n } catch (error) {\n return {\n error: error,\n relayContext: relayContext,\n renderProps: getRenderProps(error, null, queryFetcher, retryCallbacks),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n } else {\n queryFetcher.dispose();\n var _relayContext = {\n environment: genericEnvironment\n };\n return {\n error: null,\n relayContext: _relayContext,\n renderProps: getEmptyRenderProps(),\n requestCacheKey: null // if there is an error, don't cache request\n\n };\n }\n}\n\nmodule.exports = ReactRelayQueryRenderer;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayQueryRenderer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/ReactRelayRefetchContainer.js":
/*!*********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayRefetchContainer.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar ReactRelayQueryFetcher = __webpack_require__(/*! ./ReactRelayQueryFetcher */ \"../../node_modules/react-relay/lib/ReactRelayQueryFetcher.js\");\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar buildReactRelayContainer = __webpack_require__(/*! ./buildReactRelayContainer */ \"../../node_modules/react-relay/lib/buildReactRelayContainer.js\");\n\nvar getRootVariablesForFragments = __webpack_require__(/*! ./getRootVariablesForFragments */ \"../../node_modules/react-relay/lib/getRootVariablesForFragments.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ./ReactRelayContainerUtils */ \"../../node_modules/react-relay/lib/ReactRelayContainerUtils.js\"),\n getContainerName = _require.getContainerName;\n\nvar _require2 = __webpack_require__(/*! ./RelayContext */ \"../../node_modules/react-relay/lib/RelayContext.js\"),\n assertRelayContext = _require2.assertRelayContext;\n\nvar _require3 = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n Observable = _require3.Observable,\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n getRequest = _require3.getRequest,\n getSelector = _require3.getSelector,\n getVariablesFromObject = _require3.getVariablesFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\n\n/**\n * Composes a React component class, returning a new class that intercepts\n * props, resolving them with the provided fragments and subscribing for\n * updates.\n */\nfunction createContainerWithFragments(Component, fragments, taggedNode) {\n var _class, _temp;\n\n var containerName = getContainerName(Component);\n return _temp = _class =\n /*#__PURE__*/\n function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n\n function _class(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n var resolverFromThisUpdate = _this.state.resolver;\n\n _this.setState(function (updatedState) {\n return (// If this event belongs to the current data source, update.\n // Otherwise we should ignore it.\n resolverFromThisUpdate === updatedState.resolver ? {\n data: updatedState.resolver.resolve()\n } : null\n );\n });\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_refetch\", function (refetchVariables, renderVariables, observerOrCallback, options) {\n if (_this._isUnmounted) {\n true ? warning(false, 'ReactRelayRefetchContainer: Unexpected call of `refetch` ' + 'on unmounted container `%s`. It looks like some instances ' + 'of your container still trying to refetch the data but they already ' + 'unmounted. Please make sure you clear all timers, intervals, async ' + 'calls, etc that may trigger `refetch`.', containerName) : undefined;\n return {\n dispose: function dispose() {}\n };\n }\n\n var _assertRelayContext = assertRelayContext(_this.props.__relayContext),\n environment = _assertRelayContext.environment;\n\n var rootVariables = getRootVariablesForFragments(fragments, _this.props);\n var fetchVariables = typeof refetchVariables === 'function' ? refetchVariables(_this._getFragmentVariables()) : refetchVariables;\n fetchVariables = (0, _objectSpread2[\"default\"])({}, rootVariables, fetchVariables);\n var fragmentVariables = renderVariables ? (0, _objectSpread2[\"default\"])({}, fetchVariables, renderVariables) : fetchVariables;\n var cacheConfig = options ? {\n force: !!options.force\n } : undefined;\n\n if (cacheConfig != null && (options === null || options === void 0 ? void 0 : options.metadata) != null) {\n cacheConfig.metadata = options === null || options === void 0 ? void 0 : options.metadata;\n }\n\n var observer = typeof observerOrCallback === 'function' ? {\n // callback is not exectued on complete or unsubscribe\n // for backward compatibility\n next: observerOrCallback,\n error: observerOrCallback\n } : observerOrCallback || {};\n var query = getRequest(taggedNode);\n var operation = createOperationDescriptor(query, fetchVariables); // TODO: T26288752 find a better way\n\n /* eslint-disable lint/react-state-props-mutation */\n\n _this.state.localVariables = fetchVariables;\n /* eslint-enable lint/react-state-props-mutation */\n // Cancel any previously running refetch.\n\n _this._refetchSubscription && _this._refetchSubscription.unsubscribe(); // Declare refetchSubscription before assigning it in .start(), since\n // synchronous completion may call callbacks .subscribe() returns.\n\n var refetchSubscription;\n\n var storeSnapshot = _this._getQueryFetcher().lookupInStore(environment, operation, options === null || options === void 0 ? void 0 : options.fetchPolicy);\n\n if (storeSnapshot != null) {\n _this.state.resolver.setVariables(fragmentVariables, operation.request.node);\n\n _this.setState(function (latestState) {\n return {\n data: latestState.resolver.resolve(),\n contextForChildren: {\n environment: _this.props.__relayContext.environment\n }\n };\n }, function () {\n observer.next && observer.next();\n observer.complete && observer.complete();\n });\n\n return {\n dispose: function dispose() {}\n };\n }\n\n _this._getQueryFetcher().execute({\n environment: environment,\n operation: operation,\n cacheConfig: cacheConfig,\n // TODO (T26430099): Cleanup old references\n preservePreviousReferences: true\n }).mergeMap(function (response) {\n _this.state.resolver.setVariables(fragmentVariables, operation.request.node);\n\n return Observable.create(function (sink) {\n return _this.setState(function (latestState) {\n return {\n data: latestState.resolver.resolve(),\n contextForChildren: {\n environment: _this.props.__relayContext.environment\n }\n };\n }, function () {\n sink.next();\n sink.complete();\n });\n });\n })[\"finally\"](function () {\n // Finalizing a refetch should only clear this._refetchSubscription\n // if the finizing subscription is the most recent call.\n if (_this._refetchSubscription === refetchSubscription) {\n _this._refetchSubscription = null;\n }\n }).subscribe((0, _objectSpread2[\"default\"])({}, observer, {\n start: function start(subscription) {\n _this._refetchSubscription = refetchSubscription = subscription;\n observer.start && observer.start(subscription);\n }\n }));\n\n return {\n dispose: function dispose() {\n refetchSubscription && refetchSubscription.unsubscribe();\n }\n };\n });\n var relayContext = assertRelayContext(props.__relayContext);\n _this._refetchSubscription = null; // Do not provide a subscription/callback here.\n // It is possible for this render to be interrupted or aborted,\n // In which case the subscription would cause a leak.\n // We will add the subscription in componentDidMount().\n\n var resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props);\n _this.state = {\n data: resolver.resolve(),\n localVariables: null,\n prevProps: props,\n prevPropsContext: relayContext,\n contextForChildren: relayContext,\n relayProp: getRelayProp(relayContext.environment, _this._refetch),\n resolver: resolver\n };\n _this._isUnmounted = false;\n return _this;\n }\n\n var _proto = _class.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._subscribeToNewResolver();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n // If the environment has changed or props point to new records then\n // previously fetched data and any pending fetches no longer apply:\n // - Existing references are on the old environment.\n // - Existing references are based on old variables.\n // - Pending fetches are for the previous records.\n if (this.state.resolver !== prevState.resolver) {\n prevState.resolver.dispose();\n this._queryFetcher && this._queryFetcher.dispose();\n this._refetchSubscription && this._refetchSubscription.unsubscribe();\n\n this._subscribeToNewResolver();\n }\n }\n /**\n * When new props are received, read data for the new props and add it to\n * state. Props may be the same in which case previous data can be reused.\n */\n ;\n\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n // Any props change could impact the query, so we mirror props in state.\n // This is an unusual pattern, but necessary for this container usecase.\n var prevProps = prevState.prevProps;\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var prevIDs = getDataIDsFromObject(fragments, prevProps);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var prevRootVariables = getRootVariablesForFragments(fragments, prevProps);\n var nextRootVariables = getRootVariablesForFragments(fragments, nextProps);\n var resolver = prevState.resolver; // If the environment has changed or props point to new records then\n // previously fetched data and any pending fetches no longer apply:\n // - Existing references are on the old environment.\n // - Existing references are based on old variables.\n // - Pending fetches are for the previous records.\n\n if (prevState.prevPropsContext.environment !== relayContext.environment || !areEqual(prevRootVariables, nextRootVariables) || !areEqual(prevIDs, nextIDs)) {\n // Do not provide a subscription/callback here.\n // It is possible for this render to be interrupted or aborted,\n // In which case the subscription would cause a leak.\n // We will add the subscription in componentDidUpdate().\n resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps);\n return {\n data: resolver.resolve(),\n localVariables: null,\n prevProps: nextProps,\n prevPropsContext: relayContext,\n contextForChildren: relayContext,\n relayProp: getRelayProp(relayContext.environment, prevState.relayProp.refetch),\n resolver: resolver\n };\n } else if (!prevState.localVariables) {\n resolver.setProps(nextProps);\n }\n\n var data = resolver.resolve();\n\n if (data !== prevState.data) {\n return {\n data: data,\n prevProps: nextProps\n };\n }\n\n return null;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isUnmounted = true;\n this.state.resolver.dispose();\n this._queryFetcher && this._queryFetcher.dispose();\n this._refetchSubscription && this._refetchSubscription.unsubscribe();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n // Short-circuit if any Relay-related data has changed\n if (nextState.data !== this.state.data || nextState.relayProp !== this.state.relayProp) {\n return true;\n } // Otherwise, for convenience short-circuit if all non-Relay props\n // are scalar and equal\n\n\n var keys = Object.keys(nextProps);\n\n for (var ii = 0; ii < keys.length; ii++) {\n var _key = keys[ii];\n\n if (_key === '__relayContext') {\n if (this.state.prevPropsContext.environment !== nextState.prevPropsContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(_key) && !isScalarAndEqual(nextProps[_key], this.props[_key])) {\n return true;\n }\n }\n }\n\n return false;\n };\n\n _proto._subscribeToNewResolver = function _subscribeToNewResolver() {\n var _this$state = this.state,\n data = _this$state.data,\n resolver = _this$state.resolver; // Event listeners are only safe to add during the commit phase,\n // So they won't leak if render is interrupted or errors.\n\n resolver.setCallback(this._handleFragmentDataUpdate); // External values could change between render and commit.\n // Check for this case, even though it requires an extra store read.\n\n var maybeNewData = resolver.resolve();\n\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n }\n /**\n * Render new data for the existing props/context.\n */\n ;\n\n _proto._getFragmentVariables = function _getFragmentVariables() {\n return getVariablesFromObject(fragments, this.props);\n };\n\n _proto._getQueryFetcher = function _getQueryFetcher() {\n if (!this._queryFetcher) {\n this._queryFetcher = new ReactRelayQueryFetcher();\n }\n\n return this._queryFetcher;\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n componentRef = _this$props.componentRef,\n __relayContext = _this$props.__relayContext,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, [\"componentRef\", \"__relayContext\"]);\n var _this$state2 = this.state,\n relayProp = _this$state2.relayProp,\n contextForChildren = _this$state2.contextForChildren;\n return React.createElement(ReactRelayContext.Provider, {\n value: contextForChildren\n }, React.createElement(Component, (0, _extends2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: relayProp\n })));\n };\n\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _temp;\n}\n\nfunction getRelayProp(environment, refetch) {\n return {\n environment: environment,\n refetch: refetch\n };\n}\n/**\n * Wrap the basic `createContainer()` function with logic to adapt to the\n * `context.relay.environment` in which it is rendered. Specifically, the\n * extraction of the environment-specific version of fragments in the\n * `fragmentSpec` is memoized once per environment, rather than once per\n * instance of the container constructed/rendered.\n */\n\n\nfunction createContainer(Component, fragmentSpec, taggedNode) {\n return buildReactRelayContainer(Component, fragmentSpec, function (ComponentClass, fragments) {\n return createContainerWithFragments(ComponentClass, fragments, taggedNode);\n });\n}\n\nmodule.exports = {\n createContainer: createContainer\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/ReactRelayRefetchContainer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/RelayContext.js":
/*!*******************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/RelayContext.js ***!
\*******************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar isRelayEnvironment = __webpack_require__(/*! ./isRelayEnvironment */ \"../../node_modules/react-relay/lib/isRelayEnvironment.js\");\n\n/**\n * Asserts that the input is a matches the `RelayContext` type defined in\n * `RelayEnvironmentTypes` and returns it as that type.\n */\nfunction assertRelayContext(relay) {\n !isRelayContext(relay) ? true ? invariant(false, 'RelayContext: Expected `context.relay` to be an object conforming to ' + 'the `RelayContext` interface, got `%s`.', relay) : undefined : void 0;\n return relay;\n}\n/**\n * Determine if the input is a plain object that matches the `RelayContext`\n * type defined in `RelayEnvironmentTypes`.\n */\n\n\nfunction isRelayContext(context) {\n return typeof context === 'object' && context !== null && !Array.isArray(context) && isRelayEnvironment(context.environment);\n}\n\nmodule.exports = {\n assertRelayContext: assertRelayContext,\n isRelayContext: isRelayContext\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/RelayContext.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/assertFragmentMap.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/assertFragmentMap.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\n/**\n * Fail fast if the user supplies invalid fragments as input.\n */\nfunction assertFragmentMap(componentName, fragmentSpec) {\n !(fragmentSpec && typeof fragmentSpec === 'object') ? true ? invariant(false, 'Could not create Relay Container for `%s`. ' + 'Expected a set of GraphQL fragments, got `%s` instead.', componentName, fragmentSpec) : undefined : void 0;\n\n for (var key in fragmentSpec) {\n if (fragmentSpec.hasOwnProperty(key)) {\n var fragment = fragmentSpec[key];\n !(fragment && (typeof fragment === 'object' || typeof fragment === 'function')) ? true ? invariant(false, 'Could not create Relay Container for `%s`. ' + 'The value of fragment `%s` was expected to be a fragment, got `%s` instead.', componentName, key, fragment) : undefined : void 0;\n }\n }\n}\n\nmodule.exports = assertFragmentMap;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/assertFragmentMap.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/buildReactRelayContainer.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/buildReactRelayContainer.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar assertFragmentMap = __webpack_require__(/*! ./assertFragmentMap */ \"../../node_modules/react-relay/lib/assertFragmentMap.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar mapObject = __webpack_require__(/*! fbjs/lib/mapObject */ \"../../node_modules/fbjs/lib/mapObject.js\");\n\nvar readContext = __webpack_require__(/*! ./readContext */ \"../../node_modules/react-relay/lib/readContext.js\");\n\nvar _require = __webpack_require__(/*! ./ReactRelayContainerUtils */ \"../../node_modules/react-relay/lib/ReactRelayContainerUtils.js\"),\n getComponentName = _require.getComponentName,\n getContainerName = _require.getContainerName;\n\nvar _require2 = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n getFragment = _require2.getFragment;\n\n/**\n * Helper to create the Relay HOCs with ref forwarding, setting the displayName\n * and reading the React context.\n */\nfunction buildReactRelayContainer(ComponentClass, fragmentSpec, createContainerWithFragments) {\n // Sanity-check user-defined fragment input\n var containerName = getContainerName(ComponentClass);\n assertFragmentMap(getComponentName(ComponentClass), fragmentSpec);\n var fragments = mapObject(fragmentSpec, getFragment);\n var Container = createContainerWithFragments(ComponentClass, fragments);\n Container.displayName = containerName;\n\n function forwardRef(props, ref) {\n var context = readContext(ReactRelayContext);\n !(context != null) ? true ? invariant(false, '`%s` tried to render a context that was not valid this means that ' + '`%s` was rendered outside of a query renderer.', containerName, containerName) : undefined : void 0;\n return React.createElement(Container, (0, _extends2[\"default\"])({}, props, {\n __relayContext: context,\n componentRef: props.componentRef || ref\n }));\n }\n\n forwardRef.displayName = containerName;\n var ForwardContainer = React.forwardRef(forwardRef);\n\n if (true) {\n // Used by RelayModernTestUtils\n ForwardContainer.__ComponentClass = ComponentClass;\n ForwardContainer.displayName = containerName;\n } // $FlowFixMe\n\n\n return ForwardContainer;\n}\n\nmodule.exports = buildReactRelayContainer;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/buildReactRelayContainer.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/getRootVariablesForFragments.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/getRootVariablesForFragments.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _require = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\"),\n getSelector = _require.getSelector;\n\nfunction getRootVariablesForFragments(fragments, props) {\n var rootVariables = {}; // NOTE: For extra safety, we make sure the rootVariables include the\n // variables from all owners in this fragmentSpec, even though they\n // should all point to the same owner\n\n Object.keys(fragments).forEach(function (key) {\n var _ref, _selector$selectors$, _ref2;\n\n var fragmentNode = fragments[key];\n var fragmentRef = props[key];\n var selector = getSelector(fragmentNode, fragmentRef);\n var fragmentOwnerVariables = selector != null && selector.kind === 'PluralReaderSelector' ? (_ref = (_selector$selectors$ = selector.selectors[0]) === null || _selector$selectors$ === void 0 ? void 0 : _selector$selectors$.owner.variables) !== null && _ref !== void 0 ? _ref : {} : (_ref2 = selector === null || selector === void 0 ? void 0 : selector.owner.variables) !== null && _ref2 !== void 0 ? _ref2 : {};\n rootVariables = (0, _objectSpread2[\"default\"])({}, rootVariables, fragmentOwnerVariables);\n });\n return rootVariables;\n}\n\nmodule.exports = getRootVariablesForFragments;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/getRootVariablesForFragments.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/index.js":
/*!************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/index.js ***!
\************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ReactRelayContext = __webpack_require__(/*! ./ReactRelayContext */ \"../../node_modules/react-relay/lib/ReactRelayContext.js\");\n\nvar ReactRelayFragmentContainer = __webpack_require__(/*! ./ReactRelayFragmentContainer */ \"../../node_modules/react-relay/lib/ReactRelayFragmentContainer.js\");\n\nvar ReactRelayLocalQueryRenderer = __webpack_require__(/*! ./ReactRelayLocalQueryRenderer */ \"../../node_modules/react-relay/lib/ReactRelayLocalQueryRenderer.js\");\n\nvar ReactRelayPaginationContainer = __webpack_require__(/*! ./ReactRelayPaginationContainer */ \"../../node_modules/react-relay/lib/ReactRelayPaginationContainer.js\");\n\nvar ReactRelayQueryRenderer = __webpack_require__(/*! ./ReactRelayQueryRenderer */ \"../../node_modules/react-relay/lib/ReactRelayQueryRenderer.js\");\n\nvar ReactRelayRefetchContainer = __webpack_require__(/*! ./ReactRelayRefetchContainer */ \"../../node_modules/react-relay/lib/ReactRelayRefetchContainer.js\");\n\nvar RelayRuntime = __webpack_require__(/*! relay-runtime */ \"../../node_modules/relay-runtime/index.js\");\n\n/**\n * The public interface to React Relay.\n */\nmodule.exports = {\n ConnectionHandler: RelayRuntime.ConnectionHandler,\n QueryRenderer: ReactRelayQueryRenderer,\n LocalQueryRenderer: ReactRelayLocalQueryRenderer,\n MutationTypes: RelayRuntime.MutationTypes,\n RangeOperations: RelayRuntime.RangeOperations,\n ReactRelayContext: ReactRelayContext,\n applyOptimisticMutation: RelayRuntime.applyOptimisticMutation,\n commitLocalUpdate: RelayRuntime.commitLocalUpdate,\n commitMutation: RelayRuntime.commitMutation,\n createFragmentContainer: ReactRelayFragmentContainer.createContainer,\n createPaginationContainer: ReactRelayPaginationContainer.createContainer,\n createRefetchContainer: ReactRelayRefetchContainer.createContainer,\n fetchQuery: RelayRuntime.fetchQuery,\n graphql: RelayRuntime.graphql,\n readInlineData: RelayRuntime.readInlineData,\n requestSubscription: RelayRuntime.requestSubscription\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/index.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/isRelayEnvironment.js":
/*!*************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/isRelayEnvironment.js ***!
\*************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * Determine if a given value is an object that implements the `Environment`\n * interface defined in `RelayEnvironmentTypes`.\n */\n\nfunction isRelayEnvironment(environment) {\n return typeof environment === 'object' && environment !== null && // TODO: add applyMutation/sendMutation once ready in both cores\n typeof environment.check === 'function' && typeof environment.lookup === 'function' && typeof environment.retain === 'function' && typeof environment.execute === 'function' && typeof environment.subscribe === 'function';\n}\n\nmodule.exports = isRelayEnvironment;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/isRelayEnvironment.js?");
/***/ }),
/***/ "../../node_modules/react-relay/lib/readContext.js":
/*!******************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/readContext.js ***!
\******************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar React = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n\nvar _React$__SECRET_INTER =\n/* $FlowFixMe Flow doesn't know about React's internals for good reason,\n but for now, Relay needs the dispatcher to read context. */\nReact.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,\n ReactCurrentDispatcher = _React$__SECRET_INTER.ReactCurrentDispatcher,\n ReactCurrentOwner = _React$__SECRET_INTER.ReactCurrentOwner;\n\nfunction readContext(Context) {\n var dispatcher = ReactCurrentDispatcher != null ? ReactCurrentDispatcher.current : ReactCurrentOwner.currentDispatcher;\n return dispatcher.readContext(Context);\n}\n\nmodule.exports = readContext;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/lib/readContext.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
/*!************************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
\************************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js":
/*!*****************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js ***!
\*****************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js":
/*!**********************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js ***!
\**********************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js":
/*!****************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js ***!
\****************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nmodule.exports = _inheritsLoose;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!************************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\************************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js":
/*!***************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js ***!
\***************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("var defineProperty = __webpack_require__(/*! ./defineProperty */ \"../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js\");\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nmodule.exports = _objectSpread;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread.js?");
/***/ }),
/***/ "../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
/*!*******************************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
\*******************************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js?");
/***/ }),
/***/ "../../node_modules/react/cjs/react.development.js":
/*!******************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react/cjs/react.development.js ***!
\******************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/** @license React v0.0.0-experimental-d28bd2994\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n\n\nif (true) {\n (function() {\n'use strict';\n\nvar _assign = __webpack_require__(/*! object-assign */ \"../../node_modules/object-assign/index.js\");\nvar checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ \"../../node_modules/prop-types/checkPropTypes.js\");\n\nvar ReactVersion = '16.12.0-experimental-d28bd2994';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\n/**\n * Keeps track of the current dispatcher.\n */\nvar ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\n/**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\nvar ReactCurrentBatchConfig = {\n suspense: null\n};\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nfunction describeComponentFrame (name, source, ownerName) {\n var sourceInfo = '';\n\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n\n if (match) {\n var pathBeforeSlash = match[1];\n\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n}\n\nvar Resolved = 1;\nfunction refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n\n case REACT_BLOCK_TYPE:\n return getComponentName(type.render);\n\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n\n break;\n }\n }\n }\n\n return null;\n}\n\nvar ReactDebugCurrentFrame = {};\nvar currentlyValidatingElement = null;\nfunction setCurrentlyValidatingElement(element) {\n {\n currentlyValidatingElement = element;\n }\n}\n\n{\n // Stack implementation injected by the current renderer.\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentlyValidatingElement) {\n var name = getComponentName(currentlyValidatingElement.type);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));\n } // Delegate to the injected renderer-specific implementation\n\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n\n if (impl) {\n stack += impl() || '';\n }\n\n return stack;\n };\n}\n\n/**\n * Used by act() to track whether you're inside an act() scope.\n */\nvar IsSomeRendererActing = {\n current: false\n};\n\nvar ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n};\n\n{\n _assign(ReactSharedInternals, {\n // These should not be included in production.\n ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n // TODO: remove in React 17.0.\n ReactComponentTreeHook: {}\n });\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n printWarning('warn', format, args);\n }\n}\nfunction error(format) {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\\n in') === 0;\n\n if (!hasExistingStack) {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n }\n\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(message);\n } catch (x) {}\n }\n}\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n/**\n * This is the abstract API for an update queue.\n */\n\n\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\nvar emptyObject = {};\n\n{\n Object.freeze(emptyObject);\n}\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\nComponent.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error( \"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\" );\n }\n }\n\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n\n return undefined;\n }\n });\n };\n\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\n\nComponentDummy.prototype = Component.prototype;\n/**\n * Convenience component with default shallow equality check for sCU.\n */\n\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n_assign(pureComponentPrototype, Component.prototype);\n\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n\n {\n Object.seal(refObject);\n }\n\n return refObject;\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\nfunction createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n\n props.children = childArray;\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n}\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\nfunction cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error( \"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\" );\n }\n }\n\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n\n var defaultProps;\n\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n}\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n\nvar didWarnAboutMaps = false;\nvar userProvidedKeyEscapeRegex = /\\/+/g;\n\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE = 10;\nvar traverseContextPool = [];\n\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {\n if (traverseContextPool.length) {\n var traverseContext = traverseContextPool.pop();\n traverseContext.result = mapResult;\n traverseContext.keyPrefix = keyPrefix;\n traverseContext.func = mapFunction;\n traverseContext.context = mapContext;\n traverseContext.count = 0;\n return traverseContext;\n } else {\n return {\n result: mapResult,\n keyPrefix: keyPrefix,\n func: mapFunction,\n context: mapContext,\n count: 0\n };\n }\n}\n\nfunction releaseTraverseContext(traverseContext) {\n traverseContext.result = null;\n traverseContext.keyPrefix = null;\n traverseContext.func = null;\n traverseContext.context = null;\n traverseContext.count = 0;\n\n if (traverseContextPool.length < POOL_SIZE) {\n traverseContextPool.push(traverseContext);\n }\n}\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\n\n\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n\n }\n }\n\n if (invokeCallback) {\n callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n\n if (typeof iteratorFn === 'function') {\n\n {\n // Warn about using Maps as children\n if (iteratorFn === children.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');\n }\n\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(children);\n var step;\n var ii = 0;\n\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else if (type === 'object') {\n var addendum = '';\n\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n }\n\n var childrenString = '' + children;\n\n {\n {\n throw Error( \"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \").\" + addendum );\n }\n }\n }\n }\n\n return subtreeCount;\n}\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\n\n\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof component === 'object' && component !== null && component.key != null) {\n // Explicit key\n return escape(component.key);\n } // Implicit key determined by the index in the set\n\n\n return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n func.call(context, child, bookKeeping.count++);\n}\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n\n\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n\n var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n var mappedChild = func.call(context, child, bookKeeping.count++);\n\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n\n var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n\n\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n\nfunction countChildren(children) {\n return traverseAllChildren(children, function () {\n return null;\n }, null);\n}\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, function (child) {\n return child;\n });\n return result;\n}\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n\nfunction onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error( \"React.Children.only expected to receive a single React element child.\" );\n }\n }\n\n return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n\n error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n }\n\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n\n error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n\n return context.Consumer;\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n\n return context;\n}\n\nfunction lazy(ctor) {\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _ctor: ctor,\n // React uses these fields to store the result.\n _status: -1,\n _result: null\n };\n\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes;\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n defaultProps = newDefaultProps; // Match production behavior more closely:\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n propTypes = newPropTypes; // Match production behavior more closely:\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n\n return lazyType;\n}\n\nfunction forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n}\n\nfunction block(query, render) {\n {\n if (typeof query !== 'function') {\n error('Blocks require a query function but was given %s.', query === null ? 'null' : typeof query);\n }\n\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('Blocks require a render function but received a `memo` ' + 'component. Use `memo` on an inner component instead.');\n } else if (render != null && render.$$typeof === REACT_FORWARD_REF_TYPE) {\n error('Blocks require a render function but received a `forwardRef` ' + 'component. Use `forwardRef` on an inner component instead.');\n } else if (typeof render !== 'function') {\n error('Blocks require a render function but was given %s.', render === null ? 'null' : typeof render);\n } else if (render.length !== 0 && render.length !== 2) {\n // Warn if it's not accepting two args.\n // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object\n error('Block render functions accept exactly two parameters: props and data. %s', render.length === 1 ? 'Did you forget to use the data parameter?' : 'Any additional parameter will be undefined.');\n }\n\n if (render != null && (render.defaultProps != null || render.propTypes != null)) {\n error('Block render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n\n return function () {\n var args = arguments;\n return {\n $$typeof: REACT_BLOCK_TYPE,\n query: function () {\n return query.apply(null, args);\n },\n render: render\n };\n };\n}\n\nfunction resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n\n if (!(dispatcher !== null)) {\n {\n throw Error( \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.\" );\n }\n }\n\n return dispatcher;\n}\n\nfunction useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n\n return dispatcher.useContext(Context, unstable_observedBits);\n}\nfunction useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n}\nfunction useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n}\nfunction useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n}\nfunction useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n}\nfunction useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n}\nfunction useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n}\nfunction useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n}\nfunction useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n}\nfunction useTransition(config) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useTransition(config);\n}\nfunction useDeferredValue(value, config) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDeferredValue(value, config);\n}\n\nfunction withSuspenseConfig(scope, config) {\n var previousConfig = ReactCurrentBatchConfig.suspense;\n ReactCurrentBatchConfig.suspense = config === undefined ? null : config;\n\n try {\n scope();\n } finally {\n ReactCurrentBatchConfig.suspense = previousConfig;\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n}\n\nfunction getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n\n return '';\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement(element);\n\n {\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);\n }\n\n setCurrentlyValidatingElement(null);\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var name = getComponentName(type);\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n setCurrentlyValidatingElement(element);\n checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);\n setCurrentlyValidatingElement(null);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n setCurrentlyValidatingElement(fragment);\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n break;\n }\n }\n\n if (fragment.ref !== null) {\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n }\n\n setCurrentlyValidatingElement(null);\n }\n}\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\nvar didWarnAboutDeprecatedCreateFactory = false;\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n\n validatePropTypes(newElement);\n return newElement;\n}\n\n{\n\n try {\n var frozenObject = Object.freeze({});\n var testMap = new Map([[frozenObject, null]]);\n var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.\n // https://github.com/rollup/rollup/issues/1771\n // TODO: we can remove these if Rollup fixes the bug.\n\n testMap.set(0, 0);\n testSet.add(0);\n } catch (e) {\n }\n}\n\nvar createElement$1 = createElementWithValidation ;\nvar cloneElement$1 = cloneElementWithValidation ;\nvar createFactory = createFactoryWithValidation ;\nvar Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n};\n\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\nexports.block = block;\nexports.cloneElement = cloneElement$1;\nexports.createContext = createContext;\nexports.createElement = createElement$1;\nexports.createFactory = createFactory;\nexports.createRef = createRef;\nexports.forwardRef = forwardRef;\nexports.isValidElement = isValidElement;\nexports.lazy = lazy;\nexports.memo = memo;\nexports.unstable_withSuspenseConfig = withSuspenseConfig;\nexports.useCallback = useCallback;\nexports.useContext = useContext;\nexports.useDebugValue = useDebugValue;\nexports.useDeferredValue = useDeferredValue;\nexports.useEffect = useEffect;\nexports.useImperativeHandle = useImperativeHandle;\nexports.useLayoutEffect = useLayoutEffect;\nexports.useMemo = useMemo;\nexports.useReducer = useReducer;\nexports.useRef = useRef;\nexports.useState = useState;\nexports.useTransition = useTransition;\nexports.version = ReactVersion;\n })();\n}\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react/cjs/react.development.js?");
/***/ }),
/***/ "../../node_modules/react/index.js":
/*!**************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/react/index.js ***!
\**************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react.development.js */ \"../../node_modules/react/cjs/react.development.js\");\n}\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/react/index.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/index.js":
/*!**********************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/index.js ***!
\**********************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("/**\n * Relay v9.0.0\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nmodule.exports = __webpack_require__(/*! ./lib/index.js */ \"../../node_modules/relay-runtime/lib/index.js\");\n\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/index.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js":
/*!*********************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js ***!
\*********************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ConnectionHandler = __webpack_require__(/*! ./connection/ConnectionHandler */ \"../../node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nfunction RelayDefaultHandlerProvider(handle) {\n switch (handle) {\n case 'connection':\n return ConnectionHandler;\n }\n\n true ? true ? invariant(false, 'RelayDefaultHandlerProvider: No handler provided for `%s`.', handle) : undefined : undefined;\n}\n\nmodule.exports = RelayDefaultHandlerProvider;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js":
/*!**********************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js ***!
\**********************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ConnectionInterface = __webpack_require__(/*! ./ConnectionInterface */ \"../../node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js\");\n\nvar getRelayHandleKey = __webpack_require__(/*! ../../util/getRelayHandleKey */ \"../../node_modules/relay-runtime/lib/util/getRelayHandleKey.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ../../store/ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require.generateClientID;\n\nvar CONNECTION = 'connection'; // Per-instance incrementing index used to generate unique edge IDs\n\nvar NEXT_EDGE_INDEX = '__connection_next_edge_index';\n/**\n * @public\n *\n * A default runtime handler for connection fields that appends newly fetched\n * edges onto the end of a connection, regardless of the arguments used to fetch\n * those edges.\n */\n\nfunction update(store, payload) {\n var _clientConnectionFiel;\n\n var record = store.get(payload.dataID);\n\n if (!record) {\n return;\n }\n\n var _ConnectionInterface$ = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$.EDGES,\n END_CURSOR = _ConnectionInterface$.END_CURSOR,\n HAS_NEXT_PAGE = _ConnectionInterface$.HAS_NEXT_PAGE,\n HAS_PREV_PAGE = _ConnectionInterface$.HAS_PREV_PAGE,\n PAGE_INFO = _ConnectionInterface$.PAGE_INFO,\n PAGE_INFO_TYPE = _ConnectionInterface$.PAGE_INFO_TYPE,\n START_CURSOR = _ConnectionInterface$.START_CURSOR;\n\n var serverConnection = record.getLinkedRecord(payload.fieldKey);\n var serverPageInfo = serverConnection && serverConnection.getLinkedRecord(PAGE_INFO);\n\n if (!serverConnection) {\n record.setValue(null, payload.handleKey);\n return;\n } // In rare cases the handleKey field may be unset even though the client\n // connection record exists, in this case new edges should still be merged\n // into the existing client connection record (and the field reset to point\n // to that record).\n\n\n var clientConnectionID = generateClientID(record.getDataID(), payload.handleKey);\n var clientConnectionField = record.getLinkedRecord(payload.handleKey);\n var clientConnection = (_clientConnectionFiel = clientConnectionField) !== null && _clientConnectionFiel !== void 0 ? _clientConnectionFiel : store.get(clientConnectionID);\n var clientPageInfo = clientConnection && clientConnection.getLinkedRecord(PAGE_INFO);\n\n if (!clientConnection) {\n // Initial fetch with data: copy fields from the server record\n var connection = store.create(clientConnectionID, serverConnection.getType());\n connection.setValue(0, NEXT_EDGE_INDEX);\n connection.copyFieldsFrom(serverConnection);\n var serverEdges = serverConnection.getLinkedRecords(EDGES);\n\n if (serverEdges) {\n serverEdges = serverEdges.map(function (edge) {\n return buildConnectionEdge(store, connection, edge);\n });\n connection.setLinkedRecords(serverEdges, EDGES);\n }\n\n record.setLinkedRecord(connection, payload.handleKey);\n clientPageInfo = store.create(generateClientID(connection.getDataID(), PAGE_INFO), PAGE_INFO_TYPE);\n clientPageInfo.setValue(false, HAS_NEXT_PAGE);\n clientPageInfo.setValue(false, HAS_PREV_PAGE);\n clientPageInfo.setValue(null, END_CURSOR);\n clientPageInfo.setValue(null, START_CURSOR);\n\n if (serverPageInfo) {\n clientPageInfo.copyFieldsFrom(serverPageInfo);\n }\n\n connection.setLinkedRecord(clientPageInfo, PAGE_INFO);\n } else {\n if (clientConnectionField == null) {\n // If the handleKey field was unset but the client connection record\n // existed, update the field to point to the record\n record.setLinkedRecord(clientConnection, payload.handleKey);\n }\n\n var _connection = clientConnection; // Subsequent fetches:\n // - updated fields on the connection\n // - merge prev/next edges, de-duplicating by node id\n // - synthesize page info fields\n\n var _serverEdges = serverConnection.getLinkedRecords(EDGES);\n\n if (_serverEdges) {\n _serverEdges = _serverEdges.map(function (edge) {\n return buildConnectionEdge(store, _connection, edge);\n });\n }\n\n var prevEdges = _connection.getLinkedRecords(EDGES);\n\n var prevPageInfo = _connection.getLinkedRecord(PAGE_INFO);\n\n _connection.copyFieldsFrom(serverConnection); // Reset EDGES and PAGE_INFO fields\n\n\n if (prevEdges) {\n _connection.setLinkedRecords(prevEdges, EDGES);\n }\n\n if (prevPageInfo) {\n _connection.setLinkedRecord(prevPageInfo, PAGE_INFO);\n }\n\n var nextEdges = [];\n var args = payload.args;\n\n if (prevEdges && _serverEdges) {\n if (args.after != null) {\n // Forward pagination from the end of the connection: append edges\n if (clientPageInfo && args.after === clientPageInfo.getValue(END_CURSOR)) {\n var nodeIDs = new Set();\n mergeEdges(prevEdges, nextEdges, nodeIDs);\n mergeEdges(_serverEdges, nextEdges, nodeIDs);\n } else {\n true ? warning(false, 'Relay: Unexpected after cursor `%s`, edges must ' + 'be fetched from the end of the list (`%s`).', args.after, clientPageInfo && clientPageInfo.getValue(END_CURSOR)) : undefined;\n return;\n }\n } else if (args.before != null) {\n // Backward pagination from the start of the connection: prepend edges\n if (clientPageInfo && args.before === clientPageInfo.getValue(START_CURSOR)) {\n var _nodeIDs = new Set();\n\n mergeEdges(_serverEdges, nextEdges, _nodeIDs);\n mergeEdges(prevEdges, nextEdges, _nodeIDs);\n } else {\n true ? warning(false, 'Relay: Unexpected before cursor `%s`, edges must ' + 'be fetched from the beginning of the list (`%s`).', args.before, clientPageInfo && clientPageInfo.getValue(START_CURSOR)) : undefined;\n return;\n }\n } else {\n // The connection was refetched from the beginning/end: replace edges\n nextEdges = _serverEdges;\n }\n } else if (_serverEdges) {\n nextEdges = _serverEdges;\n } else {\n nextEdges = prevEdges;\n } // Update edges only if they were updated, the null check is\n // for Flow (prevEdges could be null).\n\n\n if (nextEdges != null && nextEdges !== prevEdges) {\n _connection.setLinkedRecords(nextEdges, EDGES);\n } // Page info should be updated even if no new edge were returned.\n\n\n if (clientPageInfo && serverPageInfo) {\n if (args.after == null && args.before == null) {\n // The connection was refetched from the beginning/end: replace\n // page_info\n clientPageInfo.copyFieldsFrom(serverPageInfo);\n } else if (args.before != null || args.after == null && args.last) {\n clientPageInfo.setValue(!!serverPageInfo.getValue(HAS_PREV_PAGE), HAS_PREV_PAGE);\n var startCursor = serverPageInfo.getValue(START_CURSOR);\n\n if (typeof startCursor === 'string') {\n clientPageInfo.setValue(startCursor, START_CURSOR);\n }\n } else if (args.after != null || args.before == null && args.first) {\n clientPageInfo.setValue(!!serverPageInfo.getValue(HAS_NEXT_PAGE), HAS_NEXT_PAGE);\n var endCursor = serverPageInfo.getValue(END_CURSOR);\n\n if (typeof endCursor === 'string') {\n clientPageInfo.setValue(endCursor, END_CURSOR);\n }\n }\n }\n }\n}\n/**\n * @public\n *\n * Given a record and the name of the schema field for which a connection was\n * fetched, returns the linked connection record.\n *\n * Example:\n *\n * Given that data has already been fetched on some user `<id>` on the `friends`\n * field:\n *\n * ```\n * fragment FriendsFragment on User {\n * friends(first: 10) @connection(key: \"FriendsFragment_friends\") {\n * edges {\n * node {\n * id\n * }\n * }\n * }\n * }\n * ```\n *\n * The `friends` connection record can be accessed with:\n *\n * ```\n * store => {\n * const user = store.get('<id>');\n * const friends = ConnectionHandler.getConnection(user, 'FriendsFragment_friends');\n * // Access fields on the connection:\n * const edges = friends.getLinkedRecords('edges');\n * }\n * ```\n *\n * TODO: t15733312\n * Currently we haven't run into this case yet, but we need to add a `getConnections`\n * that returns an array of the connections under the same `key` regardless of the variables.\n */\n\n\nfunction getConnection(record, key, filters) {\n var handleKey = getRelayHandleKey(CONNECTION, key, null);\n return record.getLinkedRecord(handleKey, filters);\n}\n/**\n * @public\n *\n * Inserts an edge after the given cursor, or at the end of the list if no\n * cursor is provided.\n *\n * Example:\n *\n * Given that data has already been fetched on some user `<id>` on the `friends`\n * field:\n *\n * ```\n * fragment FriendsFragment on User {\n * friends(first: 10) @connection(key: \"FriendsFragment_friends\") {\n * edges {\n * node {\n * id\n * }\n * }\n * }\n * }\n * ```\n *\n * An edge can be appended with:\n *\n * ```\n * store => {\n * const user = store.get('<id>');\n * const friends = ConnectionHandler.getConnection(user, 'FriendsFragment_friends');\n * const edge = store.create('<edge-id>', 'FriendsEdge');\n * ConnectionHandler.insertEdgeAfter(friends, edge);\n * }\n * ```\n */\n\n\nfunction insertEdgeAfter(record, newEdge, cursor) {\n var _ConnectionInterface$2 = ConnectionInterface.get(),\n CURSOR = _ConnectionInterface$2.CURSOR,\n EDGES = _ConnectionInterface$2.EDGES;\n\n var edges = record.getLinkedRecords(EDGES);\n\n if (!edges) {\n record.setLinkedRecords([newEdge], EDGES);\n return;\n }\n\n var nextEdges;\n\n if (cursor == null) {\n nextEdges = edges.concat(newEdge);\n } else {\n nextEdges = [];\n var foundCursor = false;\n\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n nextEdges.push(edge);\n\n if (edge == null) {\n continue;\n }\n\n var edgeCursor = edge.getValue(CURSOR);\n\n if (cursor === edgeCursor) {\n nextEdges.push(newEdge);\n foundCursor = true;\n }\n }\n\n if (!foundCursor) {\n nextEdges.push(newEdge);\n }\n }\n\n record.setLinkedRecords(nextEdges, EDGES);\n}\n/**\n * @public\n *\n * Creates an edge for a connection record, given a node and edge type.\n */\n\n\nfunction createEdge(store, record, node, edgeType) {\n var _ConnectionInterface$3 = ConnectionInterface.get(),\n NODE = _ConnectionInterface$3.NODE; // An index-based client ID could easily conflict (unless it was\n // auto-incrementing, but there is nowhere to the store the id)\n // Instead, construct a client ID based on the connection ID and node ID,\n // which will only conflict if the same node is added to the same connection\n // twice. This is acceptable since the `insertEdge*` functions ignore\n // duplicates.\n\n\n var edgeID = generateClientID(record.getDataID(), node.getDataID());\n var edge = store.get(edgeID);\n\n if (!edge) {\n edge = store.create(edgeID, edgeType);\n }\n\n edge.setLinkedRecord(node, NODE);\n return edge;\n}\n/**\n * @public\n *\n * Inserts an edge before the given cursor, or at the beginning of the list if\n * no cursor is provided.\n *\n * Example:\n *\n * Given that data has already been fetched on some user `<id>` on the `friends`\n * field:\n *\n * ```\n * fragment FriendsFragment on User {\n * friends(first: 10) @connection(key: \"FriendsFragment_friends\") {\n * edges {\n * node {\n * id\n * }\n * }\n * }\n * }\n * ```\n *\n * An edge can be prepended with:\n *\n * ```\n * store => {\n * const user = store.get('<id>');\n * const friends = ConnectionHandler.getConnection(user, 'FriendsFragment_friends');\n * const edge = store.create('<edge-id>', 'FriendsEdge');\n * ConnectionHandler.insertEdgeBefore(friends, edge);\n * }\n * ```\n */\n\n\nfunction insertEdgeBefore(record, newEdge, cursor) {\n var _ConnectionInterface$4 = ConnectionInterface.get(),\n CURSOR = _ConnectionInterface$4.CURSOR,\n EDGES = _ConnectionInterface$4.EDGES;\n\n var edges = record.getLinkedRecords(EDGES);\n\n if (!edges) {\n record.setLinkedRecords([newEdge], EDGES);\n return;\n }\n\n var nextEdges;\n\n if (cursor == null) {\n nextEdges = [newEdge].concat(edges);\n } else {\n nextEdges = [];\n var foundCursor = false;\n\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n\n if (edge != null) {\n var edgeCursor = edge.getValue(CURSOR);\n\n if (cursor === edgeCursor) {\n nextEdges.push(newEdge);\n foundCursor = true;\n }\n }\n\n nextEdges.push(edge);\n }\n\n if (!foundCursor) {\n nextEdges.unshift(newEdge);\n }\n }\n\n record.setLinkedRecords(nextEdges, EDGES);\n}\n/**\n * @public\n *\n * Remove any edges whose `node.id` matches the given id.\n */\n\n\nfunction deleteNode(record, nodeID) {\n var _ConnectionInterface$5 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$5.EDGES,\n NODE = _ConnectionInterface$5.NODE;\n\n var edges = record.getLinkedRecords(EDGES);\n\n if (!edges) {\n return;\n }\n\n var nextEdges;\n\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n var node = edge && edge.getLinkedRecord(NODE);\n\n if (node != null && node.getDataID() === nodeID) {\n if (nextEdges === undefined) {\n nextEdges = edges.slice(0, ii);\n }\n } else if (nextEdges !== undefined) {\n nextEdges.push(edge);\n }\n }\n\n if (nextEdges !== undefined) {\n record.setLinkedRecords(nextEdges, EDGES);\n }\n}\n/**\n * @internal\n *\n * Creates a copy of an edge with a unique ID based on per-connection-instance\n * incrementing edge index. This is necessary to avoid collisions between edges,\n * which can occur because (edge) client IDs are assigned deterministically\n * based on the path from the nearest node with an id.\n *\n * Example: if the first N edges of the same connection are refetched, the edges\n * from the second fetch will be assigned the same IDs as the first fetch, even\n * though the nodes they point to may be different (or the same and in different\n * order).\n */\n\n\nfunction buildConnectionEdge(store, connection, edge) {\n if (edge == null) {\n return edge;\n }\n\n var _ConnectionInterface$6 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$6.EDGES;\n\n var edgeIndex = connection.getValue(NEXT_EDGE_INDEX);\n !(typeof edgeIndex === 'number') ? true ? invariant(false, 'ConnectionHandler: Expected %s to be a number, got `%s`.', NEXT_EDGE_INDEX, edgeIndex) : undefined : void 0;\n var edgeID = generateClientID(connection.getDataID(), EDGES, edgeIndex);\n var connectionEdge = store.create(edgeID, edge.getType());\n connectionEdge.copyFieldsFrom(edge);\n connection.setValue(edgeIndex + 1, NEXT_EDGE_INDEX);\n return connectionEdge;\n}\n/**\n * @internal\n *\n * Adds the source edges to the target edges, skipping edges with\n * duplicate node ids.\n */\n\n\nfunction mergeEdges(sourceEdges, targetEdges, nodeIDs) {\n var _ConnectionInterface$7 = ConnectionInterface.get(),\n NODE = _ConnectionInterface$7.NODE;\n\n for (var ii = 0; ii < sourceEdges.length; ii++) {\n var edge = sourceEdges[ii];\n\n if (!edge) {\n continue;\n }\n\n var node = edge.getLinkedRecord(NODE);\n var nodeID = node && node.getDataID();\n\n if (nodeID) {\n if (nodeIDs.has(nodeID)) {\n continue;\n }\n\n nodeIDs.add(nodeID);\n }\n\n targetEdges.push(edge);\n }\n}\n\nmodule.exports = {\n buildConnectionEdge: buildConnectionEdge,\n createEdge: createEdge,\n deleteNode: deleteNode,\n getConnection: getConnection,\n insertEdgeAfter: insertEdgeAfter,\n insertEdgeBefore: insertEdgeBefore,\n update: update\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js":
/*!************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js ***!
\************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar CONNECTION_CALLS = {\n after: true,\n before: true,\n find: true,\n first: true,\n last: true,\n surrounds: true\n};\nvar config = {\n CLIENT_MUTATION_ID: 'clientMutationId',\n CURSOR: 'cursor',\n EDGES: 'edges',\n END_CURSOR: 'endCursor',\n HAS_NEXT_PAGE: 'hasNextPage',\n HAS_PREV_PAGE: 'hasPreviousPage',\n NODE: 'node',\n PAGE_INFO_TYPE: 'PageInfo',\n PAGE_INFO: 'pageInfo',\n START_CURSOR: 'startCursor'\n};\n/**\n * @internal\n *\n * Defines logic relevant to the informal \"Connection\" GraphQL interface.\n */\n\nvar ConnectionInterface = {\n inject: function inject(newConfig) {\n config = newConfig;\n },\n get: function get() {\n return config;\n },\n\n /**\n * Checks whether a call exists strictly to encode which parts of a connection\n * to fetch. Fields that only differ by connection call values should have the\n * same identity.\n */\n isConnectionCall: function isConnectionCall(call) {\n return CONNECTION_CALLS.hasOwnProperty(call.name);\n }\n};\nmodule.exports = ConnectionInterface;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/index.js":
/*!**************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/index.js ***!
\**************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ConnectionHandler = __webpack_require__(/*! ./handlers/connection/ConnectionHandler */ \"../../node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js\");\n\nvar ConnectionInterface = __webpack_require__(/*! ./handlers/connection/ConnectionInterface */ \"../../node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js\");\n\nvar GraphQLTag = __webpack_require__(/*! ./query/GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\");\n\nvar RelayConcreteNode = __webpack_require__(/*! ./util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\");\n\nvar RelayConcreteVariables = __webpack_require__(/*! ./store/RelayConcreteVariables */ \"../../node_modules/relay-runtime/lib/store/RelayConcreteVariables.js\");\n\nvar RelayDeclarativeMutationConfig = __webpack_require__(/*! ./mutations/RelayDeclarativeMutationConfig */ \"../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js\");\n\nvar RelayDefaultHandleKey = __webpack_require__(/*! ./util/RelayDefaultHandleKey */ \"../../node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js\");\n\nvar RelayDefaultHandlerProvider = __webpack_require__(/*! ./handlers/RelayDefaultHandlerProvider */ \"../../node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js\");\n\nvar RelayError = __webpack_require__(/*! ./util/RelayError */ \"../../node_modules/relay-runtime/lib/util/RelayError.js\");\n\nvar RelayFeatureFlags = __webpack_require__(/*! ./util/RelayFeatureFlags */ \"../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js\");\n\nvar RelayModernEnvironment = __webpack_require__(/*! ./store/RelayModernEnvironment */ \"../../node_modules/relay-runtime/lib/store/RelayModernEnvironment.js\");\n\nvar RelayModernOperationDescriptor = __webpack_require__(/*! ./store/RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\");\n\nvar RelayModernRecord = __webpack_require__(/*! ./store/RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayModernSelector = __webpack_require__(/*! ./store/RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\");\n\nvar RelayModernStore = __webpack_require__(/*! ./store/RelayModernStore */ \"../../node_modules/relay-runtime/lib/store/RelayModernStore.js\");\n\nvar RelayNetwork = __webpack_require__(/*! ./network/RelayNetwork */ \"../../node_modules/relay-runtime/lib/network/RelayNetwork.js\");\n\nvar RelayObservable = __webpack_require__(/*! ./network/RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\nvar RelayOperationTracker = __webpack_require__(/*! ./store/RelayOperationTracker */ \"../../node_modules/relay-runtime/lib/store/RelayOperationTracker.js\");\n\nvar RelayProfiler = __webpack_require__(/*! ./util/RelayProfiler */ \"../../node_modules/relay-runtime/lib/util/RelayProfiler.js\");\n\nvar RelayQueryResponseCache = __webpack_require__(/*! ./network/RelayQueryResponseCache */ \"../../node_modules/relay-runtime/lib/network/RelayQueryResponseCache.js\");\n\nvar RelayRecordSource = __webpack_require__(/*! ./store/RelayRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSource.js\");\n\nvar RelayReplaySubject = __webpack_require__(/*! ./util/RelayReplaySubject */ \"../../node_modules/relay-runtime/lib/util/RelayReplaySubject.js\");\n\nvar RelayStoreUtils = __webpack_require__(/*! ./store/RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\");\n\nvar ViewerPattern = __webpack_require__(/*! ./store/ViewerPattern */ \"../../node_modules/relay-runtime/lib/store/ViewerPattern.js\");\n\nvar applyOptimisticMutation = __webpack_require__(/*! ./mutations/applyOptimisticMutation */ \"../../node_modules/relay-runtime/lib/mutations/applyOptimisticMutation.js\");\n\nvar commitLocalUpdate = __webpack_require__(/*! ./mutations/commitLocalUpdate */ \"../../node_modules/relay-runtime/lib/mutations/commitLocalUpdate.js\");\n\nvar commitMutation = __webpack_require__(/*! ./mutations/commitMutation */ \"../../node_modules/relay-runtime/lib/mutations/commitMutation.js\");\n\nvar createFragmentSpecResolver = __webpack_require__(/*! ./store/createFragmentSpecResolver */ \"../../node_modules/relay-runtime/lib/store/createFragmentSpecResolver.js\");\n\nvar createPayloadFor3DField = __webpack_require__(/*! ./util/createPayloadFor3DField */ \"../../node_modules/relay-runtime/lib/util/createPayloadFor3DField.js\");\n\nvar createRelayContext = __webpack_require__(/*! ./store/createRelayContext */ \"../../node_modules/relay-runtime/lib/store/createRelayContext.js\");\n\nvar deepFreeze = __webpack_require__(/*! ./util/deepFreeze */ \"../../node_modules/relay-runtime/lib/util/deepFreeze.js\");\n\nvar fetchQuery = __webpack_require__(/*! ./query/fetchQuery */ \"../../node_modules/relay-runtime/lib/query/fetchQuery.js\");\n\nvar fetchQueryInternal = __webpack_require__(/*! ./query/fetchQueryInternal */ \"../../node_modules/relay-runtime/lib/query/fetchQueryInternal.js\");\n\nvar getFragmentIdentifier = __webpack_require__(/*! ./util/getFragmentIdentifier */ \"../../node_modules/relay-runtime/lib/util/getFragmentIdentifier.js\");\n\nvar getRelayHandleKey = __webpack_require__(/*! ./util/getRelayHandleKey */ \"../../node_modules/relay-runtime/lib/util/getRelayHandleKey.js\");\n\nvar getRequestIdentifier = __webpack_require__(/*! ./util/getRequestIdentifier */ \"../../node_modules/relay-runtime/lib/util/getRequestIdentifier.js\");\n\nvar isPromise = __webpack_require__(/*! ./util/isPromise */ \"../../node_modules/relay-runtime/lib/util/isPromise.js\");\n\nvar isRelayModernEnvironment = __webpack_require__(/*! ./store/isRelayModernEnvironment */ \"../../node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js\");\n\nvar isScalarAndEqual = __webpack_require__(/*! ./util/isScalarAndEqual */ \"../../node_modules/relay-runtime/lib/util/isScalarAndEqual.js\");\n\nvar readInlineData = __webpack_require__(/*! ./store/readInlineData */ \"../../node_modules/relay-runtime/lib/store/readInlineData.js\");\n\nvar recycleNodesInto = __webpack_require__(/*! ./util/recycleNodesInto */ \"../../node_modules/relay-runtime/lib/util/recycleNodesInto.js\");\n\nvar requestSubscription = __webpack_require__(/*! ./subscription/requestSubscription */ \"../../node_modules/relay-runtime/lib/subscription/requestSubscription.js\");\n\nvar stableCopy = __webpack_require__(/*! ./util/stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\nvar _require = __webpack_require__(/*! ./store/ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require.generateClientID,\n generateUniqueClientID = _require.generateUniqueClientID,\n isClientID = _require.isClientID;\n\n// As early as possible, check for the existence of the JavaScript globals which\n// Relay Runtime relies upon, and produce a clear message if they do not exist.\nif (true) {\n var mapStr = typeof Map !== 'function' ? 'Map' : null;\n var setStr = typeof Set !== 'function' ? 'Set' : null;\n var promiseStr = typeof Promise !== 'function' ? 'Promise' : null;\n var objStr = typeof Object.assign !== 'function' ? 'Object.assign' : null;\n\n if (mapStr || setStr || promiseStr || objStr) {\n throw new Error(\"relay-runtime requires \".concat([mapStr, setStr, promiseStr, objStr].filter(Boolean).join(', and '), \" to exist. \") + 'Use a polyfill to provide these for older browsers.');\n }\n}\n/**\n * The public interface to Relay Runtime.\n */\n\n\nmodule.exports = {\n // Core API\n Environment: RelayModernEnvironment,\n Network: RelayNetwork,\n Observable: RelayObservable,\n QueryResponseCache: RelayQueryResponseCache,\n RecordSource: RelayRecordSource,\n Record: RelayModernRecord,\n ReplaySubject: RelayReplaySubject,\n Store: RelayModernStore,\n areEqualSelectors: RelayModernSelector.areEqualSelectors,\n createFragmentSpecResolver: createFragmentSpecResolver,\n createNormalizationSelector: RelayModernSelector.createNormalizationSelector,\n createOperationDescriptor: RelayModernOperationDescriptor.createOperationDescriptor,\n createReaderSelector: RelayModernSelector.createReaderSelector,\n createRequestDescriptor: RelayModernOperationDescriptor.createRequestDescriptor,\n getDataIDsFromFragment: RelayModernSelector.getDataIDsFromFragment,\n getDataIDsFromObject: RelayModernSelector.getDataIDsFromObject,\n getFragment: GraphQLTag.getFragment,\n getInlineDataFragment: GraphQLTag.getInlineDataFragment,\n getModuleComponentKey: RelayStoreUtils.getModuleComponentKey,\n getModuleOperationKey: RelayStoreUtils.getModuleOperationKey,\n getPaginationFragment: GraphQLTag.getPaginationFragment,\n getPluralSelector: RelayModernSelector.getPluralSelector,\n getRefetchableFragment: GraphQLTag.getRefetchableFragment,\n getRequest: GraphQLTag.getRequest,\n getRequestIdentifier: getRequestIdentifier,\n getSelector: RelayModernSelector.getSelector,\n getSelectorsFromObject: RelayModernSelector.getSelectorsFromObject,\n getSingularSelector: RelayModernSelector.getSingularSelector,\n getStorageKey: RelayStoreUtils.getStorageKey,\n getVariablesFromFragment: RelayModernSelector.getVariablesFromFragment,\n getVariablesFromObject: RelayModernSelector.getVariablesFromObject,\n getVariablesFromPluralFragment: RelayModernSelector.getVariablesFromPluralFragment,\n getVariablesFromSingularFragment: RelayModernSelector.getVariablesFromSingularFragment,\n graphql: GraphQLTag.graphql,\n readInlineData: readInlineData,\n // Declarative mutation API\n MutationTypes: RelayDeclarativeMutationConfig.MutationTypes,\n RangeOperations: RelayDeclarativeMutationConfig.RangeOperations,\n // Extensions\n DefaultHandlerProvider: RelayDefaultHandlerProvider,\n ConnectionHandler: ConnectionHandler,\n VIEWER_ID: ViewerPattern.VIEWER_ID,\n VIEWER_TYPE: ViewerPattern.VIEWER_TYPE,\n // Helpers (can be implemented via the above API)\n applyOptimisticMutation: applyOptimisticMutation,\n commitLocalUpdate: commitLocalUpdate,\n commitMutation: commitMutation,\n fetchQuery: fetchQuery,\n isRelayModernEnvironment: isRelayModernEnvironment,\n requestSubscription: requestSubscription,\n // Configuration interface for legacy or special uses\n ConnectionInterface: ConnectionInterface,\n // Utilities\n RelayProfiler: RelayProfiler,\n createPayloadFor3DField: createPayloadFor3DField,\n // INTERNAL-ONLY: These exports might be removed at any point.\n RelayConcreteNode: RelayConcreteNode,\n RelayError: RelayError,\n RelayFeatureFlags: RelayFeatureFlags,\n DEFAULT_HANDLE_KEY: RelayDefaultHandleKey.DEFAULT_HANDLE_KEY,\n FRAGMENTS_KEY: RelayStoreUtils.FRAGMENTS_KEY,\n FRAGMENT_OWNER_KEY: RelayStoreUtils.FRAGMENT_OWNER_KEY,\n ID_KEY: RelayStoreUtils.ID_KEY,\n REF_KEY: RelayStoreUtils.REF_KEY,\n REFS_KEY: RelayStoreUtils.REFS_KEY,\n ROOT_ID: RelayStoreUtils.ROOT_ID,\n ROOT_TYPE: RelayStoreUtils.ROOT_TYPE,\n TYPENAME_KEY: RelayStoreUtils.TYPENAME_KEY,\n deepFreeze: deepFreeze,\n generateClientID: generateClientID,\n generateUniqueClientID: generateUniqueClientID,\n getRelayHandleKey: getRelayHandleKey,\n isClientID: isClientID,\n isPromise: isPromise,\n isScalarAndEqual: isScalarAndEqual,\n recycleNodesInto: recycleNodesInto,\n stableCopy: stableCopy,\n getFragmentIdentifier: getFragmentIdentifier,\n __internal: {\n OperationTracker: RelayOperationTracker,\n createRelayContext: createRelayContext,\n getOperationVariables: RelayConcreteVariables.getOperationVariables,\n fetchQuery: fetchQueryInternal.fetchQuery,\n fetchQueryDeduped: fetchQueryInternal.fetchQueryDeduped,\n getPromiseForActiveRequest: fetchQueryInternal.getPromiseForActiveRequest,\n getObservableForActiveRequest: fetchQueryInternal.getObservableForActiveRequest,\n isRequestActive: fetchQueryInternal.isRequestActive\n }\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/index.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js":
/*!*************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js ***!
\*************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ConnectionHandler = __webpack_require__(/*! ../handlers/connection/ConnectionHandler */ \"../../node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar MutationTypes = Object.freeze({\n RANGE_ADD: 'RANGE_ADD',\n RANGE_DELETE: 'RANGE_DELETE',\n NODE_DELETE: 'NODE_DELETE'\n});\nvar RangeOperations = Object.freeze({\n APPEND: 'append',\n PREPEND: 'prepend'\n});\n\nfunction convert(configs, request, optimisticUpdater, updater) {\n var configOptimisticUpdates = optimisticUpdater ? [optimisticUpdater] : [];\n var configUpdates = updater ? [updater] : [];\n configs.forEach(function (config) {\n switch (config.type) {\n case 'NODE_DELETE':\n var nodeDeleteResult = nodeDelete(config, request);\n\n if (nodeDeleteResult) {\n configOptimisticUpdates.push(nodeDeleteResult);\n configUpdates.push(nodeDeleteResult);\n }\n\n break;\n\n case 'RANGE_ADD':\n var rangeAddResult = rangeAdd(config, request);\n\n if (rangeAddResult) {\n configOptimisticUpdates.push(rangeAddResult);\n configUpdates.push(rangeAddResult);\n }\n\n break;\n\n case 'RANGE_DELETE':\n var rangeDeleteResult = rangeDelete(config, request);\n\n if (rangeDeleteResult) {\n configOptimisticUpdates.push(rangeDeleteResult);\n configUpdates.push(rangeDeleteResult);\n }\n\n break;\n }\n });\n return {\n optimisticUpdater: function optimisticUpdater(store, data) {\n configOptimisticUpdates.forEach(function (eachOptimisticUpdater) {\n eachOptimisticUpdater(store, data);\n });\n },\n updater: function updater(store, data) {\n configUpdates.forEach(function (eachUpdater) {\n eachUpdater(store, data);\n });\n }\n };\n}\n\nfunction nodeDelete(config, request) {\n var deletedIDFieldName = config.deletedIDFieldName;\n var rootField = getRootField(request);\n\n if (!rootField) {\n return null;\n }\n\n return function (store, data) {\n var payload = store.getRootField(rootField);\n\n if (!payload) {\n return;\n }\n\n var deleteID = payload.getValue(deletedIDFieldName);\n var deleteIDs = Array.isArray(deleteID) ? deleteID : [deleteID];\n deleteIDs.forEach(function (id) {\n if (id && typeof id === 'string') {\n store[\"delete\"](id);\n }\n });\n };\n}\n\nfunction rangeAdd(config, request) {\n var parentID = config.parentID,\n connectionInfo = config.connectionInfo,\n edgeName = config.edgeName;\n\n if (!parentID) {\n true ? warning(false, 'RelayDeclarativeMutationConfig: For mutation config RANGE_ADD ' + 'to work you must include a parentID') : undefined;\n return null;\n }\n\n var rootField = getRootField(request);\n\n if (!connectionInfo || !rootField) {\n return null;\n }\n\n return function (store, data) {\n var parent = store.get(parentID);\n\n if (!parent) {\n return;\n }\n\n var payload = store.getRootField(rootField);\n\n if (!payload) {\n return;\n }\n\n var serverEdge = payload.getLinkedRecord(edgeName);\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = connectionInfo[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var info = _step.value;\n\n if (!serverEdge) {\n continue;\n }\n\n var connection = ConnectionHandler.getConnection(parent, info.key, info.filters);\n\n if (!connection) {\n continue;\n }\n\n var clientEdge = ConnectionHandler.buildConnectionEdge(store, connection, serverEdge);\n\n if (!clientEdge) {\n continue;\n }\n\n switch (info.rangeBehavior) {\n case 'append':\n ConnectionHandler.insertEdgeAfter(connection, clientEdge);\n break;\n\n case 'prepend':\n ConnectionHandler.insertEdgeBefore(connection, clientEdge);\n break;\n\n default:\n true ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` ' + 'will not work as expected in RelayModern, supported range ' + \"behaviors are 'append', 'prepend'.\", info.rangeBehavior) : undefined;\n break;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n };\n}\n\nfunction rangeDelete(config, request) {\n var parentID = config.parentID,\n connectionKeys = config.connectionKeys,\n pathToConnection = config.pathToConnection,\n deletedIDFieldName = config.deletedIDFieldName;\n\n if (!parentID) {\n true ? warning(false, 'RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE ' + 'to work you must include a parentID') : undefined;\n return null;\n }\n\n var rootField = getRootField(request);\n\n if (!rootField) {\n return null;\n }\n\n return function (store, data) {\n if (!data) {\n return;\n }\n\n var deleteIDs = [];\n var deletedIDField = data[rootField];\n\n if (deletedIDField && Array.isArray(deletedIDFieldName)) {\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = deletedIDFieldName[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var eachField = _step2.value;\n\n if (deletedIDField && typeof deletedIDField === 'object') {\n deletedIDField = deletedIDField[eachField];\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2[\"return\"] != null) {\n _iterator2[\"return\"]();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n if (Array.isArray(deletedIDField)) {\n deletedIDField.forEach(function (idObject) {\n if (idObject && idObject.id && typeof idObject === 'object' && typeof idObject.id === 'string') {\n deleteIDs.push(idObject.id);\n }\n });\n } else if (deletedIDField && deletedIDField.id && typeof deletedIDField.id === 'string') {\n deleteIDs.push(deletedIDField.id);\n }\n } else if (deletedIDField && typeof deletedIDFieldName === 'string' && typeof deletedIDField === 'object') {\n deletedIDField = deletedIDField[deletedIDFieldName];\n\n if (typeof deletedIDField === 'string') {\n deleteIDs.push(deletedIDField);\n } else if (Array.isArray(deletedIDField)) {\n deletedIDField.forEach(function (id) {\n if (typeof id === 'string') {\n deleteIDs.push(id);\n }\n });\n }\n }\n\n deleteNode(parentID, connectionKeys, pathToConnection, store, deleteIDs);\n };\n}\n\nfunction deleteNode(parentID, connectionKeys, pathToConnection, store, deleteIDs) {\n true ? warning(connectionKeys != null, 'RelayDeclarativeMutationConfig: RANGE_DELETE must provide a ' + 'connectionKeys') : undefined;\n var parent = store.get(parentID);\n\n if (!parent) {\n return;\n }\n\n if (pathToConnection.length < 2) {\n true ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_DELETE ' + 'pathToConnection must include at least parent and connection') : undefined;\n return;\n }\n\n var recordProxy = parent;\n\n for (var i = 1; i < pathToConnection.length - 1; i++) {\n if (recordProxy) {\n recordProxy = recordProxy.getLinkedRecord(pathToConnection[i]);\n }\n } // Should never enter loop except edge cases\n\n\n if (!connectionKeys || !recordProxy) {\n true ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_DELETE ' + 'pathToConnection is incorrect. Unable to find connection with ' + 'parentID: %s and path: %s', parentID, pathToConnection.toString()) : undefined;\n return;\n }\n\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n var _loop = function _loop() {\n var key = _step3.value;\n var connection = ConnectionHandler.getConnection(recordProxy, key.key, key.filters);\n\n if (connection) {\n deleteIDs.forEach(function (deleteID) {\n ConnectionHandler.deleteNode(connection, deleteID);\n });\n }\n };\n\n for (var _iterator3 = connectionKeys[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n _loop();\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3[\"return\"] != null) {\n _iterator3[\"return\"]();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n}\n\nfunction getRootField(request) {\n if (request.fragment.selections && request.fragment.selections.length > 0 && request.fragment.selections[0].kind === 'LinkedField') {\n return request.fragment.selections[0].name;\n }\n\n return null;\n}\n\nmodule.exports = {\n MutationTypes: MutationTypes,\n RangeOperations: RangeOperations,\n convert: convert\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/RelayRecordProxy.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordProxy.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../store/ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require.generateClientID;\n\nvar _require2 = __webpack_require__(/*! ../store/RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n getStableStorageKey = _require2.getStableStorageKey;\n\n/**\n * @internal\n *\n * A helper class for manipulating a given record from a record source via an\n * imperative/OO-style API.\n */\nvar RelayRecordProxy =\n/*#__PURE__*/\nfunction () {\n function RelayRecordProxy(source, mutator, dataID) {\n this._dataID = dataID;\n this._mutator = mutator;\n this._source = source;\n }\n\n var _proto = RelayRecordProxy.prototype;\n\n _proto.copyFieldsFrom = function copyFieldsFrom(source) {\n this._mutator.copyFields(source.getDataID(), this._dataID);\n };\n\n _proto.getDataID = function getDataID() {\n return this._dataID;\n };\n\n _proto.getType = function getType() {\n var type = this._mutator.getType(this._dataID);\n\n !(type != null) ? true ? invariant(false, 'RelayRecordProxy: Cannot get the type of deleted record `%s`.', this._dataID) : undefined : void 0;\n return type;\n };\n\n _proto.getValue = function getValue(name, args) {\n var storageKey = getStableStorageKey(name, args);\n return this._mutator.getValue(this._dataID, storageKey);\n };\n\n _proto.setValue = function setValue(value, name, args) {\n !isValidLeafValue(value) ? true ? invariant(false, 'RelayRecordProxy#setValue(): Expected a scalar or array of scalars, ' + 'got `%s`.', JSON.stringify(value)) : undefined : void 0;\n var storageKey = getStableStorageKey(name, args);\n\n this._mutator.setValue(this._dataID, storageKey, value);\n\n return this;\n };\n\n _proto.getLinkedRecord = function getLinkedRecord(name, args) {\n var storageKey = getStableStorageKey(name, args);\n\n var linkedID = this._mutator.getLinkedRecordID(this._dataID, storageKey);\n\n return linkedID != null ? this._source.get(linkedID) : linkedID;\n };\n\n _proto.setLinkedRecord = function setLinkedRecord(record, name, args) {\n !(record instanceof RelayRecordProxy) ? true ? invariant(false, 'RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.', record) : undefined : void 0;\n var storageKey = getStableStorageKey(name, args);\n var linkedID = record.getDataID();\n\n this._mutator.setLinkedRecordID(this._dataID, storageKey, linkedID);\n\n return this;\n };\n\n _proto.getOrCreateLinkedRecord = function getOrCreateLinkedRecord(name, typeName, args) {\n var linkedRecord = this.getLinkedRecord(name, args);\n\n if (!linkedRecord) {\n var _this$_source$get;\n\n var storageKey = getStableStorageKey(name, args);\n var clientID = generateClientID(this.getDataID(), storageKey); // NOTE: it's possible that a client record for this field exists\n // but the field itself was unset.\n\n linkedRecord = (_this$_source$get = this._source.get(clientID)) !== null && _this$_source$get !== void 0 ? _this$_source$get : this._source.create(clientID, typeName);\n this.setLinkedRecord(linkedRecord, name, args);\n }\n\n return linkedRecord;\n };\n\n _proto.getLinkedRecords = function getLinkedRecords(name, args) {\n var _this = this;\n\n var storageKey = getStableStorageKey(name, args);\n\n var linkedIDs = this._mutator.getLinkedRecordIDs(this._dataID, storageKey);\n\n if (linkedIDs == null) {\n return linkedIDs;\n }\n\n return linkedIDs.map(function (linkedID) {\n return linkedID != null ? _this._source.get(linkedID) : linkedID;\n });\n };\n\n _proto.setLinkedRecords = function setLinkedRecords(records, name, args) {\n !Array.isArray(records) ? true ? invariant(false, 'RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.', records) : undefined : void 0;\n var storageKey = getStableStorageKey(name, args);\n var linkedIDs = records.map(function (record) {\n return record && record.getDataID();\n });\n\n this._mutator.setLinkedRecordIDs(this._dataID, storageKey, linkedIDs);\n\n return this;\n };\n\n _proto.invalidateRecord = function invalidateRecord() {\n this._source.markIDForInvalidation(this._dataID);\n };\n\n return RelayRecordProxy;\n}();\n\nfunction isValidLeafValue(value) {\n return value == null || typeof value !== 'object' || Array.isArray(value) && value.every(isValidLeafValue);\n}\n\nmodule.exports = RelayRecordProxy;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordProxy.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js":
/*!*******************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js ***!
\*******************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayModernRecord = __webpack_require__(/*! ../store/RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../store/RelayRecordState */ \"../../node_modules/relay-runtime/lib/store/RelayRecordState.js\"),\n EXISTENT = _require.EXISTENT;\n\n/**\n * @internal\n *\n * Wrapper API that is an amalgam of the `RelayModernRecord` API and\n * `MutableRecordSource` interface, implementing copy-on-write semantics for records\n * in a record source.\n *\n * Modifications are applied to fresh copies of records:\n * - Records in `base` are never modified.\n * - Modifications cause a fresh version of a record to be created in `sink`.\n * These sink records contain only modified fields.\n */\nvar RelayRecordSourceMutator =\n/*#__PURE__*/\nfunction () {\n function RelayRecordSourceMutator(base, sink) {\n this.__sources = [sink, base];\n this._base = base;\n this._sink = sink;\n }\n /**\n * **UNSTABLE**\n * This method is likely to be removed in an upcoming release\n * and should not be relied upon.\n * TODO T41593196: Remove unstable_getRawRecordWithChanges\n */\n\n\n var _proto = RelayRecordSourceMutator.prototype;\n\n _proto.unstable_getRawRecordWithChanges = function unstable_getRawRecordWithChanges(dataID) {\n var baseRecord = this._base.get(dataID);\n\n var sinkRecord = this._sink.get(dataID);\n\n if (sinkRecord === undefined) {\n if (baseRecord == null) {\n return baseRecord;\n }\n\n var nextRecord = RelayModernRecord.clone(baseRecord);\n\n if (true) {\n // Prevent mutation of a record from outside the store.\n RelayModernRecord.freeze(nextRecord);\n }\n\n return nextRecord;\n } else if (sinkRecord === null) {\n return null;\n } else if (baseRecord != null) {\n var _nextRecord = RelayModernRecord.update(baseRecord, sinkRecord);\n\n if (true) {\n if (_nextRecord !== baseRecord) {\n // Prevent mutation of a record from outside the store.\n RelayModernRecord.freeze(_nextRecord);\n }\n }\n\n return _nextRecord;\n } else {\n var _nextRecord2 = RelayModernRecord.clone(sinkRecord);\n\n if (true) {\n // Prevent mutation of a record from outside the store.\n RelayModernRecord.freeze(_nextRecord2);\n }\n\n return _nextRecord2;\n }\n };\n\n _proto._getSinkRecord = function _getSinkRecord(dataID) {\n var sinkRecord = this._sink.get(dataID);\n\n if (!sinkRecord) {\n var baseRecord = this._base.get(dataID);\n\n !baseRecord ? true ? invariant(false, 'RelayRecordSourceMutator: Cannot modify non-existent record `%s`.', dataID) : undefined : void 0;\n sinkRecord = RelayModernRecord.create(dataID, RelayModernRecord.getType(baseRecord));\n\n this._sink.set(dataID, sinkRecord);\n }\n\n return sinkRecord;\n };\n\n _proto.copyFields = function copyFields(sourceID, sinkID) {\n var sinkSource = this._sink.get(sourceID);\n\n var baseSource = this._base.get(sourceID);\n\n !(sinkSource || baseSource) ? true ? invariant(false, 'RelayRecordSourceMutator#copyFields(): Cannot copy fields from ' + 'non-existent record `%s`.', sourceID) : undefined : void 0;\n\n var sink = this._getSinkRecord(sinkID);\n\n if (baseSource) {\n RelayModernRecord.copyFields(baseSource, sink);\n }\n\n if (sinkSource) {\n RelayModernRecord.copyFields(sinkSource, sink);\n }\n };\n\n _proto.copyFieldsFromRecord = function copyFieldsFromRecord(record, sinkID) {\n var sink = this._getSinkRecord(sinkID);\n\n RelayModernRecord.copyFields(record, sink);\n };\n\n _proto.create = function create(dataID, typeName) {\n !(this._base.getStatus(dataID) !== EXISTENT && this._sink.getStatus(dataID) !== EXISTENT) ? true ? invariant(false, 'RelayRecordSourceMutator#create(): Cannot create a record with id ' + '`%s`, this record already exists.', dataID) : undefined : void 0;\n var record = RelayModernRecord.create(dataID, typeName);\n\n this._sink.set(dataID, record);\n };\n\n _proto[\"delete\"] = function _delete(dataID) {\n this._sink[\"delete\"](dataID);\n };\n\n _proto.getStatus = function getStatus(dataID) {\n return this._sink.has(dataID) ? this._sink.getStatus(dataID) : this._base.getStatus(dataID);\n };\n\n _proto.getType = function getType(dataID) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n\n if (record) {\n return RelayModernRecord.getType(record);\n } else if (record === null) {\n return null;\n }\n }\n };\n\n _proto.getValue = function getValue(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n\n if (record) {\n var value = RelayModernRecord.getValue(record, storageKey);\n\n if (value !== undefined) {\n return value;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n\n _proto.setValue = function setValue(dataID, storageKey, value) {\n var sinkRecord = this._getSinkRecord(dataID);\n\n RelayModernRecord.setValue(sinkRecord, storageKey, value);\n };\n\n _proto.getLinkedRecordID = function getLinkedRecordID(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n\n if (record) {\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n\n if (linkedID !== undefined) {\n return linkedID;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n\n _proto.setLinkedRecordID = function setLinkedRecordID(dataID, storageKey, linkedID) {\n var sinkRecord = this._getSinkRecord(dataID);\n\n RelayModernRecord.setLinkedRecordID(sinkRecord, storageKey, linkedID);\n };\n\n _proto.getLinkedRecordIDs = function getLinkedRecordIDs(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n\n if (record) {\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n\n if (linkedIDs !== undefined) {\n return linkedIDs;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n\n _proto.setLinkedRecordIDs = function setLinkedRecordIDs(dataID, storageKey, linkedIDs) {\n var sinkRecord = this._getSinkRecord(dataID);\n\n RelayModernRecord.setLinkedRecordIDs(sinkRecord, storageKey, linkedIDs);\n };\n\n return RelayRecordSourceMutator;\n}();\n\nmodule.exports = RelayRecordSourceMutator;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js":
/*!*****************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js ***!
\*****************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayModernRecord = __webpack_require__(/*! ../store/RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayRecordProxy = __webpack_require__(/*! ./RelayRecordProxy */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordProxy.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../store/RelayRecordState */ \"../../node_modules/relay-runtime/lib/store/RelayRecordState.js\"),\n EXISTENT = _require.EXISTENT,\n NONEXISTENT = _require.NONEXISTENT;\n\nvar _require2 = __webpack_require__(/*! ../store/RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ROOT_ID = _require2.ROOT_ID,\n ROOT_TYPE = _require2.ROOT_TYPE;\n\n/**\n * @internal\n *\n * A helper for manipulating a `RecordSource` via an imperative/OO-style API.\n */\nvar RelayRecordSourceProxy =\n/*#__PURE__*/\nfunction () {\n function RelayRecordSourceProxy(mutator, getDataID, handlerProvider) {\n this.__mutator = mutator;\n this._handlerProvider = handlerProvider || null;\n this._proxies = {};\n this._getDataID = getDataID;\n this._invalidatedStore = false;\n this._idsMarkedForInvalidation = new Set();\n }\n\n var _proto = RelayRecordSourceProxy.prototype;\n\n _proto.publishSource = function publishSource(source, fieldPayloads) {\n var _this = this;\n\n var dataIDs = source.getRecordIDs();\n dataIDs.forEach(function (dataID) {\n var status = source.getStatus(dataID);\n\n if (status === EXISTENT) {\n var sourceRecord = source.get(dataID);\n\n if (sourceRecord) {\n if (_this.__mutator.getStatus(dataID) !== EXISTENT) {\n _this.create(dataID, RelayModernRecord.getType(sourceRecord));\n }\n\n _this.__mutator.copyFieldsFromRecord(sourceRecord, dataID);\n }\n } else if (status === NONEXISTENT) {\n _this[\"delete\"](dataID);\n }\n });\n\n if (fieldPayloads && fieldPayloads.length) {\n fieldPayloads.forEach(function (fieldPayload) {\n var handler = _this._handlerProvider && _this._handlerProvider(fieldPayload.handle);\n\n !handler ? true ? invariant(false, 'RelayModernEnvironment: Expected a handler to be provided for handle `%s`.', fieldPayload.handle) : undefined : void 0;\n handler.update(_this, fieldPayload);\n });\n }\n };\n\n _proto.create = function create(dataID, typeName) {\n this.__mutator.create(dataID, typeName);\n\n delete this._proxies[dataID];\n var record = this.get(dataID); // For flow\n\n !record ? true ? invariant(false, 'RelayRecordSourceProxy#create(): Expected the created record to exist.') : undefined : void 0;\n return record;\n };\n\n _proto[\"delete\"] = function _delete(dataID) {\n !(dataID !== ROOT_ID) ? true ? invariant(false, 'RelayRecordSourceProxy#delete(): Cannot delete the root record.') : undefined : void 0;\n delete this._proxies[dataID];\n\n this.__mutator[\"delete\"](dataID);\n };\n\n _proto.get = function get(dataID) {\n if (!this._proxies.hasOwnProperty(dataID)) {\n var status = this.__mutator.getStatus(dataID);\n\n if (status === EXISTENT) {\n this._proxies[dataID] = new RelayRecordProxy(this, this.__mutator, dataID);\n } else {\n this._proxies[dataID] = status === NONEXISTENT ? null : undefined;\n }\n }\n\n return this._proxies[dataID];\n };\n\n _proto.getRoot = function getRoot() {\n var root = this.get(ROOT_ID);\n\n if (!root) {\n root = this.create(ROOT_ID, ROOT_TYPE);\n }\n\n !(root && root.getType() === ROOT_TYPE) ? true ? invariant(false, 'RelayRecordSourceProxy#getRoot(): Expected the source to contain a ' + 'root record, %s.', root == null ? 'no root record found' : \"found a root record of type `\".concat(root.getType(), \"`\")) : undefined : void 0;\n return root;\n };\n\n _proto.invalidateStore = function invalidateStore() {\n this._invalidatedStore = true;\n };\n\n _proto.isStoreMarkedForInvalidation = function isStoreMarkedForInvalidation() {\n return this._invalidatedStore;\n };\n\n _proto.markIDForInvalidation = function markIDForInvalidation(dataID) {\n this._idsMarkedForInvalidation.add(dataID);\n };\n\n _proto.getIDsMarkedForInvalidation = function getIDsMarkedForInvalidation() {\n return this._idsMarkedForInvalidation;\n };\n\n return RelayRecordSourceProxy;\n}();\n\nmodule.exports = RelayRecordSourceProxy;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceSelectorProxy.js":
/*!*************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceSelectorProxy.js ***!
\*************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../store/RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n getStorageKey = _require.getStorageKey,\n ROOT_TYPE = _require.ROOT_TYPE;\n\n/**\n * @internal\n *\n * A subclass of RecordSourceProxy that provides convenience methods for\n * accessing the root fields of a given query/mutation. These fields accept\n * complex arguments and it can be tedious to re-construct the correct sets of\n * arguments to pass to e.g. `getRoot().getLinkedRecord()`.\n */\nvar RelayRecordSourceSelectorProxy =\n/*#__PURE__*/\nfunction () {\n function RelayRecordSourceSelectorProxy(mutator, recordSource, readSelector) {\n this.__mutator = mutator;\n this.__recordSource = recordSource;\n this._readSelector = readSelector;\n }\n\n var _proto = RelayRecordSourceSelectorProxy.prototype;\n\n _proto.create = function create(dataID, typeName) {\n return this.__recordSource.create(dataID, typeName);\n };\n\n _proto[\"delete\"] = function _delete(dataID) {\n this.__recordSource[\"delete\"](dataID);\n };\n\n _proto.get = function get(dataID) {\n return this.__recordSource.get(dataID);\n };\n\n _proto.getRoot = function getRoot() {\n return this.__recordSource.getRoot();\n };\n\n _proto.getOperationRoot = function getOperationRoot() {\n var root = this.__recordSource.get(this._readSelector.dataID);\n\n if (!root) {\n root = this.__recordSource.create(this._readSelector.dataID, ROOT_TYPE);\n }\n\n return root;\n };\n\n _proto._getRootField = function _getRootField(selector, fieldName, plural) {\n var field = selector.node.selections.find(function (selection) {\n return selection.kind === 'LinkedField' && selection.name === fieldName;\n });\n !(field && field.kind === 'LinkedField') ? true ? invariant(false, 'RelayRecordSourceSelectorProxy#getRootField(): Cannot find root ' + 'field `%s`, no such field is defined on GraphQL document `%s`.', fieldName, selector.node.name) : undefined : void 0;\n !(field.plural === plural) ? true ? invariant(false, 'RelayRecordSourceSelectorProxy#getRootField(): Expected root field ' + '`%s` to be %s.', fieldName, plural ? 'plural' : 'singular') : undefined : void 0;\n return field;\n };\n\n _proto.getRootField = function getRootField(fieldName) {\n var field = this._getRootField(this._readSelector, fieldName, false);\n\n var storageKey = getStorageKey(field, this._readSelector.variables);\n return this.getOperationRoot().getLinkedRecord(storageKey);\n };\n\n _proto.getPluralRootField = function getPluralRootField(fieldName) {\n var field = this._getRootField(this._readSelector, fieldName, true);\n\n var storageKey = getStorageKey(field, this._readSelector.variables);\n return this.getOperationRoot().getLinkedRecords(storageKey);\n };\n\n _proto.invalidateStore = function invalidateStore() {\n this.__recordSource.invalidateStore();\n };\n\n return RelayRecordSourceSelectorProxy;\n}();\n\nmodule.exports = RelayRecordSourceSelectorProxy;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/RelayRecordSourceSelectorProxy.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/applyOptimisticMutation.js":
/*!******************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/applyOptimisticMutation.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayDeclarativeMutationConfig = __webpack_require__(/*! ./RelayDeclarativeMutationConfig */ \"../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar isRelayModernEnvironment = __webpack_require__(/*! ../store/isRelayModernEnvironment */ \"../../node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js\");\n\nvar _require = __webpack_require__(/*! ../query/GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\"),\n getRequest = _require.getRequest;\n\nvar _require2 = __webpack_require__(/*! ../store/RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\"),\n createOperationDescriptor = _require2.createOperationDescriptor;\n\n/**\n * Higher-level helper function to execute a mutation against a specific\n * environment.\n */\nfunction applyOptimisticMutation(environment, config) {\n !isRelayModernEnvironment(environment) ? true ? invariant(false, 'commitMutation: expected `environment` to be an instance of ' + '`RelayModernEnvironment`.') : undefined : void 0;\n var mutation = getRequest(config.mutation);\n\n if (mutation.params.operationKind !== 'mutation') {\n throw new Error('commitMutation: Expected mutation operation');\n }\n\n var optimisticUpdater = config.optimisticUpdater;\n var configs = config.configs,\n optimisticResponse = config.optimisticResponse,\n variables = config.variables;\n var operation = createOperationDescriptor(mutation, variables);\n\n if (configs) {\n var _RelayDeclarativeMuta = RelayDeclarativeMutationConfig.convert(configs, mutation, optimisticUpdater);\n\n optimisticUpdater = _RelayDeclarativeMuta.optimisticUpdater;\n }\n\n return environment.applyMutation({\n operation: operation,\n response: optimisticResponse,\n updater: optimisticUpdater\n });\n}\n\nmodule.exports = applyOptimisticMutation;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/applyOptimisticMutation.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/commitLocalUpdate.js":
/*!************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/commitLocalUpdate.js ***!
\************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nfunction commitLocalUpdate(environment, updater) {\n environment.commitUpdate(updater);\n}\n\nmodule.exports = commitLocalUpdate;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/commitLocalUpdate.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/commitMutation.js":
/*!*********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/commitMutation.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js\"));\n\nvar RelayDeclarativeMutationConfig = __webpack_require__(/*! ./RelayDeclarativeMutationConfig */ \"../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js\");\n\nvar RelayFeatureFlags = __webpack_require__(/*! ../util/RelayFeatureFlags */ \"../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar isRelayModernEnvironment = __webpack_require__(/*! ../store/isRelayModernEnvironment */ \"../../node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js\");\n\nvar validateMutation = __webpack_require__(/*! ./validateMutation */ \"../../node_modules/relay-runtime/lib/mutations/validateMutation.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ../query/GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\"),\n getRequest = _require.getRequest;\n\nvar _require2 = __webpack_require__(/*! ../store/ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateUniqueClientID = _require2.generateUniqueClientID;\n\nvar _require3 = __webpack_require__(/*! ../store/RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\"),\n createOperationDescriptor = _require3.createOperationDescriptor;\n\n/**\n * Higher-level helper function to execute a mutation against a specific\n * environment.\n */\nfunction commitMutation(environment, config) {\n !isRelayModernEnvironment(environment) ? true ? invariant(false, 'commitMutation: expected `environment` to be an instance of ' + '`RelayModernEnvironment`.') : undefined : void 0;\n var mutation = getRequest(config.mutation);\n\n if (mutation.params.operationKind !== 'mutation') {\n throw new Error('commitMutation: Expected mutation operation');\n }\n\n if (mutation.kind !== 'Request') {\n throw new Error('commitMutation: Expected mutation to be of type request');\n }\n\n var optimisticResponse = config.optimisticResponse,\n optimisticUpdater = config.optimisticUpdater,\n updater = config.updater;\n var configs = config.configs,\n onError = config.onError,\n onUnsubscribe = config.onUnsubscribe,\n variables = config.variables,\n uploadables = config.uploadables;\n var operation = createOperationDescriptor(mutation, variables, RelayFeatureFlags.ENABLE_UNIQUE_MUTATION_ROOT ? generateUniqueClientID() : undefined); // TODO: remove this check after we fix flow.\n\n if (typeof optimisticResponse === 'function') {\n optimisticResponse = optimisticResponse();\n true ? warning(false, 'commitMutation: Expected `optimisticResponse` to be an object, ' + 'received a function.') : undefined;\n }\n\n if (true) {\n if (optimisticResponse instanceof Object) {\n validateMutation(optimisticResponse, mutation, variables);\n }\n }\n\n if (configs) {\n var _RelayDeclarativeMuta = RelayDeclarativeMutationConfig.convert(configs, mutation, optimisticUpdater, updater);\n\n optimisticUpdater = _RelayDeclarativeMuta.optimisticUpdater;\n updater = _RelayDeclarativeMuta.updater;\n }\n\n var errors = [];\n var subscription = environment.executeMutation({\n operation: operation,\n optimisticResponse: optimisticResponse,\n optimisticUpdater: optimisticUpdater,\n updater: updater,\n uploadables: uploadables\n }).subscribe({\n next: function next(payload) {\n if (Array.isArray(payload)) {\n payload.forEach(function (item) {\n if (item.errors) {\n errors.push.apply(errors, (0, _toConsumableArray2[\"default\"])(item.errors));\n }\n });\n } else {\n if (payload.errors) {\n errors.push.apply(errors, (0, _toConsumableArray2[\"default\"])(payload.errors));\n }\n }\n },\n complete: function complete() {\n var onCompleted = config.onCompleted;\n\n if (onCompleted) {\n var snapshot = environment.lookup(operation.fragment);\n onCompleted(snapshot.data, errors.length !== 0 ? errors : null);\n }\n },\n error: onError,\n unsubscribe: onUnsubscribe\n });\n return {\n dispose: subscription.unsubscribe\n };\n}\n\nmodule.exports = commitMutation;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/commitMutation.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/mutations/validateMutation.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/validateMutation.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar validateMutation = function validateMutation() {};\n\nif (true) {\n var addFieldToDiff = function addFieldToDiff(path, diff, isScalar) {\n var deepLoc = diff;\n path.split('.').forEach(function (key, index, arr) {\n if (deepLoc[key] == null) {\n deepLoc[key] = {};\n }\n\n if (isScalar && index === arr.length - 1) {\n deepLoc[key] = '<scalar>';\n }\n\n deepLoc = deepLoc[key];\n });\n };\n\n validateMutation = function validateMutation(optimisticResponse, mutation, variables) {\n var operationName = mutation.operation.name;\n var context = {\n path: 'ROOT',\n visitedPaths: new Set(),\n variables: variables || {},\n missingDiff: {},\n extraDiff: {}\n };\n validateSelections(optimisticResponse, mutation.operation.selections, context);\n validateOptimisticResponse(optimisticResponse, context);\n true ? warning(context.missingDiff.ROOT == null, 'Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\\n%s', operationName, JSON.stringify(context.missingDiff.ROOT, null, 2)) : undefined;\n true ? warning(context.extraDiff.ROOT == null, 'Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\\n%s', operationName, JSON.stringify(context.extraDiff.ROOT, null, 2)) : undefined;\n };\n\n var validateSelections = function validateSelections(optimisticResponse, selections, context) {\n selections.forEach(function (selection) {\n return validateSelection(optimisticResponse, selection, context);\n });\n };\n\n var validateSelection = function validateSelection(optimisticResponse, selection, context) {\n switch (selection.kind) {\n case 'Condition':\n validateSelections(optimisticResponse, selection.selections, context);\n return;\n\n case 'ScalarField':\n case 'LinkedField':\n return validateField(optimisticResponse, selection, context);\n\n case 'InlineFragment':\n var type = selection.type;\n selection.selections.forEach(function (subselection) {\n if (optimisticResponse.__typename !== type) {\n return;\n }\n\n validateSelection(optimisticResponse, subselection, context);\n });\n return;\n\n case 'ClientExtension':\n case 'ModuleImport':\n case 'LinkedHandle':\n case 'ScalarHandle':\n case 'Defer':\n case 'Stream':\n {\n // TODO(T35864292) - Add missing validations for these types\n return;\n }\n\n default:\n selection;\n return;\n }\n };\n\n var validateField = function validateField(optimisticResponse, field, context) {\n var fieldName = field.alias || field.name;\n var path = \"\".concat(context.path, \".\").concat(fieldName);\n context.visitedPaths.add(path);\n\n switch (field.kind) {\n case 'ScalarField':\n if (optimisticResponse.hasOwnProperty(fieldName) === false) {\n addFieldToDiff(path, context.missingDiff, true);\n }\n\n return;\n\n case 'LinkedField':\n var selections = field.selections;\n\n if (optimisticResponse[fieldName] === null || Object.hasOwnProperty(fieldName) && optimisticResponse[fieldName] === undefined) {\n return;\n }\n\n if (field.plural) {\n if (Array.isArray(optimisticResponse[fieldName])) {\n optimisticResponse[fieldName].forEach(function (r) {\n if (r !== null) {\n validateSelections(r, selections, (0, _objectSpread2[\"default\"])({}, context, {\n path: path\n }));\n }\n });\n return;\n } else {\n addFieldToDiff(path, context.missingDiff);\n return;\n }\n } else {\n if (optimisticResponse[fieldName] instanceof Object) {\n validateSelections(optimisticResponse[fieldName], selections, (0, _objectSpread2[\"default\"])({}, context, {\n path: path\n }));\n return;\n } else {\n addFieldToDiff(path, context.missingDiff);\n return;\n }\n }\n\n }\n };\n\n var validateOptimisticResponse = function validateOptimisticResponse(optimisticResponse, context) {\n if (Array.isArray(optimisticResponse)) {\n optimisticResponse.forEach(function (r) {\n if (r instanceof Object) {\n validateOptimisticResponse(r, context);\n }\n });\n return;\n }\n\n Object.keys(optimisticResponse).forEach(function (key) {\n var value = optimisticResponse[key];\n var path = \"\".concat(context.path, \".\").concat(key);\n\n if (!context.visitedPaths.has(path)) {\n addFieldToDiff(path, context.extraDiff);\n return;\n }\n\n if (value instanceof Object) {\n validateOptimisticResponse(value, (0, _objectSpread2[\"default\"])({}, context, {\n path: path\n }));\n }\n });\n };\n}\n\nmodule.exports = validateMutation;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/mutations/validateMutation.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/network/ConvertToExecuteFunction.js":
/*!*****************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/ConvertToExecuteFunction.js ***!
\*****************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayObservable = __webpack_require__(/*! ./RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\n/**\n * Converts a FetchFunction into an ExecuteFunction for use by RelayNetwork.\n */\nfunction convertFetch(fn) {\n return function fetch(request, variables, cacheConfig, uploadables, logRequestInfo) {\n var result = fn(request, variables, cacheConfig, uploadables, logRequestInfo); // Note: We allow FetchFunction to directly return Error to indicate\n // a failure to fetch. To avoid handling this special case throughout the\n // Relay codebase, it is explicitly handled here.\n\n if (result instanceof Error) {\n return RelayObservable.create(function (sink) {\n return sink.error(result);\n });\n }\n\n return RelayObservable.from(result);\n };\n}\n\nmodule.exports = {\n convertFetch: convertFetch\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/ConvertToExecuteFunction.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/network/RelayNetwork.js":
/*!*****************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayNetwork.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ./ConvertToExecuteFunction */ \"../../node_modules/relay-runtime/lib/network/ConvertToExecuteFunction.js\"),\n convertFetch = _require.convertFetch;\n\n/**\n * Creates an implementation of the `Network` interface defined in\n * `RelayNetworkTypes` given `fetch` and `subscribe` functions.\n */\nfunction create(fetchFn, subscribe) {\n // Convert to functions that returns RelayObservable.\n var observeFetch = convertFetch(fetchFn);\n\n function execute(request, variables, cacheConfig, uploadables, logRequestInfo) {\n if (request.operationKind === 'subscription') {\n !subscribe ? true ? invariant(false, 'RelayNetwork: This network layer does not support Subscriptions. ' + 'To use Subscriptions, provide a custom network layer.') : undefined : void 0;\n !!uploadables ? true ? invariant(false, 'RelayNetwork: Cannot provide uploadables while subscribing.') : undefined : void 0;\n return subscribe(request, variables, cacheConfig);\n }\n\n var pollInterval = cacheConfig.poll;\n\n if (pollInterval != null) {\n !!uploadables ? true ? invariant(false, 'RelayNetwork: Cannot provide uploadables while polling.') : undefined : void 0;\n return observeFetch(request, variables, {\n force: true\n }).poll(pollInterval);\n }\n\n return observeFetch(request, variables, cacheConfig, uploadables, logRequestInfo);\n }\n\n return {\n execute: execute\n };\n}\n\nmodule.exports = {\n create: create\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayNetwork.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/network/RelayObservable.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayObservable.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar isPromise = __webpack_require__(/*! ../util/isPromise */ \"../../node_modules/relay-runtime/lib/util/isPromise.js\");\n/**\n * A Subscription object is returned from .subscribe(), which can be\n * unsubscribed or checked to see if the resulting subscription has closed.\n */\n\n\nvar hostReportError = swallowError;\n/**\n * Limited implementation of ESObservable, providing the limited set of behavior\n * Relay networking requires.\n *\n * Observables retain the benefit of callbacks which can be called\n * synchronously, avoiding any UI jitter, while providing a compositional API,\n * which simplifies logic and prevents mishandling of errors compared to\n * the direct use of callback functions.\n *\n * ESObservable: https://github.com/tc39/proposal-observable\n */\n\nvar RelayObservable =\n/*#__PURE__*/\nfunction () {\n RelayObservable.create = function create(source) {\n return new RelayObservable(source);\n } // Use RelayObservable.create()\n ;\n\n function RelayObservable(source) {\n if (true) {\n // Early runtime errors for ill-formed sources.\n if (!source || typeof source !== 'function') {\n throw new Error('Source must be a Function: ' + String(source));\n }\n }\n\n this._source = source;\n }\n /**\n * When an emitted error event is not handled by an Observer, it is reported\n * to the host environment (what the ESObservable spec refers to as\n * \"HostReportErrors()\").\n *\n * The default implementation in development rethrows thrown errors, and\n * logs emitted error events to the console, while in production does nothing\n * (swallowing unhandled errors).\n *\n * Called during application initialization, this method allows\n * application-specific handling of unhandled errors. Allowing, for example,\n * integration with error logging or developer tools.\n *\n * A second parameter `isUncaughtThrownError` is true when the unhandled error\n * was thrown within an Observer handler, and false when the unhandled error\n * was an unhandled emitted event.\n *\n * - Uncaught thrown errors typically represent avoidable errors thrown from\n * application code, which should be handled with a try/catch block, and\n * usually have useful stack traces.\n *\n * - Unhandled emitted event errors typically represent unavoidable events in\n * application flow such as network failure, and may not have useful\n * stack traces.\n */\n\n\n RelayObservable.onUnhandledError = function onUnhandledError(callback) {\n hostReportError = callback;\n }\n /**\n * Accepts various kinds of data sources, and always returns a RelayObservable\n * useful for accepting the result of a user-provided FetchFunction.\n */\n ;\n\n RelayObservable.from = function from(obj) {\n return isObservable(obj) ? fromObservable(obj) : isPromise(obj) ? fromPromise(obj) : fromValue(obj);\n }\n /**\n * Similar to promise.catch(), observable.catch() handles error events, and\n * provides an alternative observable to use in it's place.\n *\n * If the catch handler throws a new error, it will appear as an error event\n * on the resulting Observable.\n */\n ;\n\n var _proto = RelayObservable.prototype;\n\n _proto[\"catch\"] = function _catch(fn) {\n var _this = this;\n\n return RelayObservable.create(function (sink) {\n var subscription;\n\n _this.subscribe({\n start: function start(sub) {\n subscription = sub;\n },\n next: sink.next,\n complete: sink.complete,\n error: function error(_error2) {\n try {\n fn(_error2).subscribe({\n start: function start(sub) {\n subscription = sub;\n },\n next: sink.next,\n complete: sink.complete,\n error: sink.error\n });\n } catch (error2) {\n sink.error(error2, true\n /* isUncaughtThrownError */\n );\n }\n }\n });\n\n return function () {\n return subscription.unsubscribe();\n };\n });\n }\n /**\n * Returns a new Observable which first yields values from this Observable,\n * then yields values from the next Observable. This is useful for chaining\n * together Observables of finite length.\n */\n ;\n\n _proto.concat = function concat(next) {\n var _this2 = this;\n\n return RelayObservable.create(function (sink) {\n var current;\n\n _this2.subscribe({\n start: function start(subscription) {\n current = subscription;\n },\n next: sink.next,\n error: sink.error,\n complete: function complete() {\n current = next.subscribe(sink);\n }\n });\n\n return function () {\n current && current.unsubscribe();\n };\n });\n }\n /**\n * Returns a new Observable which returns the same values as this one, but\n * modified so that the provided Observer is called to perform a side-effects\n * for all events emitted by the source.\n *\n * Any errors that are thrown in the side-effect Observer are unhandled, and\n * do not affect the source Observable or its Observer.\n *\n * This is useful for when debugging your Observables or performing other\n * side-effects such as logging or performance monitoring.\n */\n ;\n\n _proto[\"do\"] = function _do(observer) {\n var _this3 = this;\n\n return RelayObservable.create(function (sink) {\n var both = function both(action) {\n return function () {\n try {\n observer[action] && observer[action].apply(observer, arguments);\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n }\n\n sink[action] && sink[action].apply(sink, arguments);\n };\n };\n\n return _this3.subscribe({\n start: both('start'),\n next: both('next'),\n error: both('error'),\n complete: both('complete'),\n unsubscribe: both('unsubscribe')\n });\n });\n }\n /**\n * Returns a new Observable which returns the same values as this one, but\n * modified so that the finally callback is performed after completion,\n * whether normal or due to error or unsubscription.\n *\n * This is useful for cleanup such as resource finalization.\n */\n ;\n\n _proto[\"finally\"] = function _finally(fn) {\n var _this4 = this;\n\n return RelayObservable.create(function (sink) {\n var subscription = _this4.subscribe(sink);\n\n return function () {\n subscription.unsubscribe();\n fn();\n };\n });\n }\n /**\n * Returns a new Observable which is identical to this one, unless this\n * Observable completes before yielding any values, in which case the new\n * Observable will yield the values from the alternate Observable.\n *\n * If this Observable does yield values, the alternate is never subscribed to.\n *\n * This is useful for scenarios where values may come from multiple sources\n * which should be tried in order, i.e. from a cache before a network.\n */\n ;\n\n _proto.ifEmpty = function ifEmpty(alternate) {\n var _this5 = this;\n\n return RelayObservable.create(function (sink) {\n var hasValue = false;\n\n var current = _this5.subscribe({\n next: function next(value) {\n hasValue = true;\n sink.next(value);\n },\n error: sink.error,\n complete: function complete() {\n if (hasValue) {\n sink.complete();\n } else {\n current = alternate.subscribe(sink);\n }\n }\n });\n\n return function () {\n current.unsubscribe();\n };\n });\n }\n /**\n * Observable's primary API: returns an unsubscribable Subscription to the\n * source of this Observable.\n *\n * Note: A sink may be passed directly to .subscribe() as its observer,\n * allowing for easily composing Observables.\n */\n ;\n\n _proto.subscribe = function subscribe(observer) {\n if (true) {\n // Early runtime errors for ill-formed observers.\n if (!observer || typeof observer !== 'object') {\n throw new Error('Observer must be an Object with callbacks: ' + String(observer));\n }\n }\n\n return _subscribe(this._source, observer);\n }\n /**\n * Returns a new Observerable where each value has been transformed by\n * the mapping function.\n */\n ;\n\n _proto.map = function map(fn) {\n var _this6 = this;\n\n return RelayObservable.create(function (sink) {\n var subscription = _this6.subscribe({\n complete: sink.complete,\n error: sink.error,\n next: function next(value) {\n try {\n var mapValue = fn(value);\n sink.next(mapValue);\n } catch (error) {\n sink.error(error, true\n /* isUncaughtThrownError */\n );\n }\n }\n });\n\n return function () {\n subscription.unsubscribe();\n };\n });\n }\n /**\n * Returns a new Observable where each value is replaced with a new Observable\n * by the mapping function, the results of which returned as a single\n * merged Observable.\n */\n ;\n\n _proto.mergeMap = function mergeMap(fn) {\n var _this7 = this;\n\n return RelayObservable.create(function (sink) {\n var subscriptions = [];\n\n function start(subscription) {\n this._sub = subscription;\n subscriptions.push(subscription);\n }\n\n function complete() {\n subscriptions.splice(subscriptions.indexOf(this._sub), 1);\n\n if (subscriptions.length === 0) {\n sink.complete();\n }\n }\n\n _this7.subscribe({\n start: start,\n next: function next(value) {\n try {\n if (!sink.closed) {\n RelayObservable.from(fn(value)).subscribe({\n start: start,\n next: sink.next,\n error: sink.error,\n complete: complete\n });\n }\n } catch (error) {\n sink.error(error, true\n /* isUncaughtThrownError */\n );\n }\n },\n error: sink.error,\n complete: complete\n });\n\n return function () {\n subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n subscriptions.length = 0;\n };\n });\n }\n /**\n * Returns a new Observable which first mirrors this Observable, then when it\n * completes, waits for `pollInterval` milliseconds before re-subscribing to\n * this Observable again, looping in this manner until unsubscribed.\n *\n * The returned Observable never completes.\n */\n ;\n\n _proto.poll = function poll(pollInterval) {\n var _this8 = this;\n\n if (true) {\n if (typeof pollInterval !== 'number' || pollInterval <= 0) {\n throw new Error('RelayObservable: Expected pollInterval to be positive, got: ' + pollInterval);\n }\n }\n\n return RelayObservable.create(function (sink) {\n var subscription;\n var timeout;\n\n var poll = function poll() {\n subscription = _this8.subscribe({\n next: sink.next,\n error: sink.error,\n complete: function complete() {\n timeout = setTimeout(poll, pollInterval);\n }\n });\n };\n\n poll();\n return function () {\n clearTimeout(timeout);\n subscription.unsubscribe();\n };\n });\n }\n /**\n * Returns a Promise which resolves when this Observable yields a first value\n * or when it completes with no value.\n */\n ;\n\n _proto.toPromise = function toPromise() {\n var _this9 = this;\n\n return new Promise(function (resolve, reject) {\n var subscription;\n\n _this9.subscribe({\n start: function start(sub) {\n subscription = sub;\n },\n next: function next(val) {\n resolve(val);\n subscription.unsubscribe();\n },\n error: reject,\n complete: resolve\n });\n });\n };\n\n return RelayObservable;\n}(); // Use declarations to teach Flow how to check isObservable.\n\n\nfunction isObservable(obj) {\n return typeof obj === 'object' && obj !== null && typeof obj.subscribe === 'function';\n}\n\nfunction fromObservable(obj) {\n return obj instanceof RelayObservable ? obj : RelayObservable.create(function (sink) {\n return obj.subscribe(sink);\n });\n}\n\nfunction fromPromise(promise) {\n return RelayObservable.create(function (sink) {\n // Since sink methods do not throw, the resulting Promise can be ignored.\n promise.then(function (value) {\n sink.next(value);\n sink.complete();\n }, sink.error);\n });\n}\n\nfunction fromValue(value) {\n return RelayObservable.create(function (sink) {\n sink.next(value);\n sink.complete();\n });\n}\n\nfunction _subscribe(source, observer) {\n var closed = false;\n var cleanup; // Ideally we would simply describe a `get closed()` method on the Sink and\n // Subscription objects below, however not all flow environments we expect\n // Relay to be used within will support property getters, and many minifier\n // tools still do not support ES5 syntax. Instead, we can use defineProperty.\n\n var withClosed = function withClosed(obj) {\n return Object.defineProperty(obj, 'closed', {\n get: function get() {\n return closed;\n }\n });\n };\n\n function doCleanup() {\n if (cleanup) {\n if (cleanup.unsubscribe) {\n cleanup.unsubscribe();\n } else {\n try {\n cleanup();\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n }\n }\n\n cleanup = undefined;\n }\n } // Create a Subscription.\n\n\n var subscription = withClosed({\n unsubscribe: function unsubscribe() {\n if (!closed) {\n closed = true; // Tell Observer that unsubscribe was called.\n\n try {\n observer.unsubscribe && observer.unsubscribe(subscription);\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n } finally {\n doCleanup();\n }\n }\n }\n }); // Tell Observer that observation is about to begin.\n\n try {\n observer.start && observer.start(subscription);\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n } // If closed already, don't bother creating a Sink.\n\n\n if (closed) {\n return subscription;\n } // Create a Sink respecting subscription state and cleanup.\n\n\n var sink = withClosed({\n next: function next(value) {\n if (!closed && observer.next) {\n try {\n observer.next(value);\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n }\n }\n },\n error: function error(_error3, isUncaughtThrownError) {\n if (closed || !observer.error) {\n closed = true;\n hostReportError(_error3, isUncaughtThrownError || false);\n doCleanup();\n } else {\n closed = true;\n\n try {\n observer.error(_error3);\n } catch (error2) {\n hostReportError(error2, true\n /* isUncaughtThrownError */\n );\n } finally {\n doCleanup();\n }\n }\n },\n complete: function complete() {\n if (!closed) {\n closed = true;\n\n try {\n observer.complete && observer.complete();\n } catch (error) {\n hostReportError(error, true\n /* isUncaughtThrownError */\n );\n } finally {\n doCleanup();\n }\n }\n }\n }); // If anything goes wrong during observing the source, handle the error.\n\n try {\n cleanup = source(sink);\n } catch (error) {\n sink.error(error, true\n /* isUncaughtThrownError */\n );\n }\n\n if (true) {\n // Early runtime errors for ill-formed returned cleanup.\n if (cleanup !== undefined && typeof cleanup !== 'function' && (!cleanup || typeof cleanup.unsubscribe !== 'function')) {\n throw new Error('Returned cleanup function which cannot be called: ' + String(cleanup));\n }\n } // If closed before the source function existed, cleanup now.\n\n\n if (closed) {\n doCleanup();\n }\n\n return subscription;\n}\n\nfunction swallowError(_error, _isUncaughtThrownError) {// do nothing.\n}\n\nif (true) {\n // Default implementation of HostReportErrors() in development builds.\n // Can be replaced by the host application environment.\n RelayObservable.onUnhandledError(function (error, isUncaughtThrownError) {\n if (typeof fail === 'function') {\n // In test environments (Jest), fail() immediately fails the current test.\n fail(String(error));\n } else if (isUncaughtThrownError) {\n // Rethrow uncaught thrown errors on the next frame to avoid breaking\n // current logic.\n setTimeout(function () {\n throw error;\n });\n } else if (typeof console !== 'undefined') {\n // Otherwise, log the unhandled error for visibility.\n // eslint-disable-next-line no-console\n console.error('RelayObservable: Unhandled Error', error);\n }\n });\n}\n\nmodule.exports = RelayObservable;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayObservable.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/network/RelayQueryResponseCache.js":
/*!****************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayQueryResponseCache.js ***!
\****************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar stableCopy = __webpack_require__(/*! ../util/stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\n/**\n * A cache for storing query responses, featuring:\n * - `get` with TTL\n * - cache size limiting, with least-recently *updated* entries purged first\n */\nvar RelayQueryResponseCache =\n/*#__PURE__*/\nfunction () {\n function RelayQueryResponseCache(_ref) {\n var size = _ref.size,\n ttl = _ref.ttl;\n !(size > 0) ? true ? invariant(false, 'RelayQueryResponseCache: Expected the max cache size to be > 0, got ' + '`%s`.', size) : undefined : void 0;\n !(ttl > 0) ? true ? invariant(false, 'RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.', ttl) : undefined : void 0;\n this._responses = new Map();\n this._size = size;\n this._ttl = ttl;\n }\n\n var _proto = RelayQueryResponseCache.prototype;\n\n _proto.clear = function clear() {\n this._responses.clear();\n };\n\n _proto.get = function get(queryID, variables) {\n var _this = this;\n\n var cacheKey = getCacheKey(queryID, variables);\n\n this._responses.forEach(function (response, key) {\n if (!isCurrent(response.fetchTime, _this._ttl)) {\n _this._responses[\"delete\"](key);\n }\n });\n\n var response = this._responses.get(cacheKey);\n\n return response != null ? (0, _objectSpread2[\"default\"])({}, response.payload, {\n extensions: (0, _objectSpread2[\"default\"])({}, response.payload.extensions, {\n cacheTimestamp: response.fetchTime\n })\n }) : null;\n };\n\n _proto.set = function set(queryID, variables, payload) {\n var fetchTime = Date.now();\n var cacheKey = getCacheKey(queryID, variables);\n\n this._responses[\"delete\"](cacheKey); // deletion resets key ordering\n\n\n this._responses.set(cacheKey, {\n fetchTime: fetchTime,\n payload: payload\n }); // Purge least-recently updated key when max size reached\n\n\n if (this._responses.size > this._size) {\n var firstKey = this._responses.keys().next();\n\n if (!firstKey.done) {\n this._responses[\"delete\"](firstKey.value);\n }\n }\n };\n\n return RelayQueryResponseCache;\n}();\n\nfunction getCacheKey(queryID, variables) {\n return JSON.stringify(stableCopy({\n queryID: queryID,\n variables: variables\n }));\n}\n/**\n * Determine whether a response fetched at `fetchTime` is still valid given\n * some `ttl`.\n */\n\n\nfunction isCurrent(fetchTime, ttl) {\n return fetchTime + ttl >= Date.now();\n}\n\nmodule.exports = RelayQueryResponseCache;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/network/RelayQueryResponseCache.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/query/GraphQLTag.js":
/*!*************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/GraphQLTag.js ***!
\*************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayConcreteNode = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\n/**\n * Runtime function to correspond to the `graphql` tagged template function.\n * All calls to this function should be transformed by the plugin.\n */\nfunction graphql(strings) {\n true ? true ? invariant(false, 'graphql: Unexpected invocation at runtime. Either the Babel transform ' + 'was not set up, or it failed to identify this call site. Make sure it ' + 'is being used verbatim as `graphql`.') : undefined : undefined;\n}\n\nfunction getNode(taggedNode) {\n var node = taggedNode;\n\n if (typeof node === 'function') {\n node = node();\n true ? warning(false, 'RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.', node.kind === 'Fragment' ? node.name : node.operation.name) : undefined;\n } else if (node[\"default\"]) {\n // Support for languages that work (best) with ES6 modules, such as TypeScript.\n node = node[\"default\"];\n }\n\n return node;\n}\n\nfunction isFragment(node) {\n var fragment = getNode(node);\n return typeof fragment === 'object' && fragment !== null && fragment.kind === RelayConcreteNode.FRAGMENT;\n}\n\nfunction isRequest(node) {\n var request = getNode(node);\n return typeof request === 'object' && request !== null && request.kind === RelayConcreteNode.REQUEST;\n}\n\nfunction isInlineDataFragment(node) {\n var fragment = getNode(node);\n return typeof fragment === 'object' && fragment !== null && fragment.kind === RelayConcreteNode.INLINE_DATA_FRAGMENT;\n}\n\nfunction getFragment(taggedNode) {\n var fragment = getNode(taggedNode);\n !isFragment(fragment) ? true ? invariant(false, 'GraphQLTag: Expected a fragment, got `%s`.', JSON.stringify(fragment)) : undefined : void 0;\n return fragment;\n}\n\nfunction getPaginationFragment(taggedNode) {\n var _fragment$metadata;\n\n var fragment = getFragment(taggedNode);\n var refetch = (_fragment$metadata = fragment.metadata) === null || _fragment$metadata === void 0 ? void 0 : _fragment$metadata.refetch;\n var connection = refetch === null || refetch === void 0 ? void 0 : refetch.connection;\n\n if (refetch === null || typeof refetch !== 'object' || connection === null || typeof connection !== 'object') {\n return null;\n }\n\n return fragment;\n}\n\nfunction getRefetchableFragment(taggedNode) {\n var _fragment$metadata2;\n\n var fragment = getFragment(taggedNode);\n var refetch = (_fragment$metadata2 = fragment.metadata) === null || _fragment$metadata2 === void 0 ? void 0 : _fragment$metadata2.refetch;\n\n if (refetch === null || typeof refetch !== 'object') {\n return null;\n }\n\n return fragment;\n}\n\nfunction getRequest(taggedNode) {\n var request = getNode(taggedNode);\n !isRequest(request) ? true ? invariant(false, 'GraphQLTag: Expected a request, got `%s`.', JSON.stringify(request)) : undefined : void 0;\n return request;\n}\n\nfunction getInlineDataFragment(taggedNode) {\n var fragment = getNode(taggedNode);\n !isInlineDataFragment(fragment) ? true ? invariant(false, 'GraphQLTag: Expected an inline data fragment, got `%s`.', JSON.stringify(fragment)) : undefined : void 0;\n return fragment;\n}\n\nmodule.exports = {\n getFragment: getFragment,\n getPaginationFragment: getPaginationFragment,\n getRefetchableFragment: getRefetchableFragment,\n getRequest: getRequest,\n getInlineDataFragment: getInlineDataFragment,\n graphql: graphql,\n isFragment: isFragment,\n isRequest: isRequest,\n isInlineDataFragment: isInlineDataFragment\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/GraphQLTag.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/query/fetchQuery.js":
/*!*************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/fetchQuery.js ***!
\*************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _require = __webpack_require__(/*! ../store/RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\"),\n createOperationDescriptor = _require.createOperationDescriptor;\n\nvar _require2 = __webpack_require__(/*! ./GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\"),\n getRequest = _require2.getRequest;\n\n/**\n * A helper function to fetch the results of a query. Note that results for\n * fragment spreads are masked: fields must be explicitly listed in the query in\n * order to be accessible in the result object.\n */\nfunction fetchQuery(environment, taggedNode, variables, cacheConfig) {\n var query = getRequest(taggedNode);\n\n if (query.params.operationKind !== 'query') {\n throw new Error('fetchQuery: Expected query operation');\n }\n\n var operation = createOperationDescriptor(query, variables);\n return environment.execute({\n operation: operation,\n cacheConfig: cacheConfig\n }).map(function () {\n return environment.lookup(operation.fragment).data;\n }).toPromise();\n}\n\nmodule.exports = fetchQuery;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/fetchQuery.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/query/fetchQueryInternal.js":
/*!*********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/fetchQueryInternal.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar Observable = __webpack_require__(/*! ../network/RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\nvar RelayReplaySubject = __webpack_require__(/*! ../util/RelayReplaySubject */ \"../../node_modules/relay-runtime/lib/util/RelayReplaySubject.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar WEAKMAP_SUPPORTED = typeof WeakMap === 'function';\nvar requestCachesByEnvironment = WEAKMAP_SUPPORTED ? new WeakMap() : new Map();\n/**\n * Fetches the given query and variables on the provided environment,\n * and de-dupes identical in-flight requests.\n *\n * Observing a request:\n * ====================\n * fetchQuery returns an Observable which you can call .subscribe()\n * on. subscribe() takes an Observer, which you can provide to\n * observe network events:\n *\n * ```\n * fetchQuery(environment, query, variables).subscribe({\n * // Called when network requests starts\n * start: (subscription) => {},\n *\n * // Called after a payload is received and written to the local store\n * next: (payload) => {},\n *\n * // Called when network requests errors\n * error: (error) => {},\n *\n * // Called when network requests fully completes\n * complete: () => {},\n *\n * // Called when network request is unsubscribed\n * unsubscribe: (subscription) => {},\n * });\n * ```\n *\n * In-flight request de-duping:\n * ============================\n * By default, calling fetchQuery multiple times with the same\n * environment, query and variables will not initiate a new request if a request\n * for those same parameters is already in flight.\n *\n * A request is marked in-flight from the moment it starts until the moment it\n * fully completes, regardless of error or successful completion.\n *\n * NOTE: If the request completes _synchronously_, calling fetchQuery\n * a second time with the same arguments in the same tick will _NOT_ de-dupe\n * the request given that it will no longer be in-flight.\n *\n *\n * Data Retention:\n * ===============\n * This function will not retain any query data outside the scope of the\n * request, which means it is not guaranteed that it won't be garbage\n * collected after the request completes.\n * If you need to retain data, you can do so manually with environment.retain().\n *\n * Cancelling requests:\n * ====================\n * If the subscription returned by subscribe is called while the\n * request is in-flight, apart from releasing retained data, the request will\n * also be cancelled.\n *\n * ```\n * const subscription = fetchQuery(...).subscribe(...);\n *\n * // This will cancel the request if it is in-flight.\n * subscription.unsubscribe();\n * ```\n */\n\nfunction fetchQuery(environment, operation, options) {\n return fetchQueryDeduped(environment, operation.request, function () {\n return environment.execute({\n operation: operation,\n cacheConfig: options === null || options === void 0 ? void 0 : options.networkCacheConfig\n });\n });\n}\n/**\n * Low-level implementation details of `fetchQuery`.\n *\n * `fetchQueryDeduped` can also be used to share a single cache for\n * requests that aren't using `fetchQuery` directly (e.g. because they don't\n * have an `OperationDescriptor` when they are called).\n */\n\n\nfunction fetchQueryDeduped(environment, request, fetchFn) {\n return Observable.create(function (sink) {\n var requestCache = getRequestCache(environment);\n var identifier = request.identifier;\n var cachedRequest = requestCache.get(identifier);\n\n if (!cachedRequest) {\n fetchFn()[\"finally\"](function () {\n return requestCache[\"delete\"](identifier);\n }).subscribe({\n start: function start(subscription) {\n cachedRequest = {\n identifier: identifier,\n subject: new RelayReplaySubject(),\n subjectForInFlightStatus: new RelayReplaySubject(),\n subscription: subscription\n };\n requestCache.set(identifier, cachedRequest);\n },\n next: function next(response) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.next(response);\n cachedReq.subjectForInFlightStatus.next(response);\n },\n error: function error(_error) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.error(_error);\n cachedReq.subjectForInFlightStatus.error(_error);\n },\n complete: function complete() {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.complete();\n cachedReq.subjectForInFlightStatus.complete();\n },\n unsubscribe: function unsubscribe(subscription) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.unsubscribe();\n cachedReq.subjectForInFlightStatus.unsubscribe();\n }\n });\n }\n\n !(cachedRequest != null) ? true ? invariant(false, '[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be ' + 'called synchronously') : undefined : void 0;\n return getObservableForCachedRequest(requestCache, cachedRequest).subscribe(sink);\n });\n}\n/**\n * @private\n */\n\n\nfunction getObservableForCachedRequest(requestCache, cachedRequest) {\n return Observable.create(function (sink) {\n var subscription = cachedRequest.subject.subscribe(sink);\n return function () {\n subscription.unsubscribe();\n var cachedRequestInstance = requestCache.get(cachedRequest.identifier);\n\n if (cachedRequestInstance) {\n var requestSubscription = cachedRequestInstance.subscription;\n\n if (requestSubscription != null && cachedRequestInstance.subject.getObserverCount() === 0) {\n requestSubscription.unsubscribe();\n requestCache[\"delete\"](cachedRequest.identifier);\n }\n }\n };\n });\n}\n/**\n * @private\n */\n\n\nfunction getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest) {\n return Observable.create(function (sink) {\n var subscription = cachedRequest.subjectForInFlightStatus.subscribe({\n error: sink.error,\n next: function next(response) {\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n sink.complete();\n return;\n }\n\n sink.next();\n },\n complete: sink.complete,\n unsubscribe: sink.complete\n });\n return function () {\n subscription.unsubscribe();\n };\n });\n}\n/**\n * If a request is active for the given query, variables and environment,\n * this function will return a Promise that will resolve when that request has\n * stops being active (receives a final payload), and the data has been saved\n * to the store.\n * If no request is active, null will be returned\n */\n\n\nfunction getPromiseForActiveRequest(environment, request) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(request.identifier);\n\n if (!cachedRequest) {\n return null;\n }\n\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n return null;\n }\n\n return new Promise(function (resolve, reject) {\n var resolveOnNext = false;\n getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest).subscribe({\n complete: resolve,\n error: reject,\n next: function next(response) {\n /*\n * The underlying `RelayReplaySubject` will synchronously replay events\n * as soon as we subscribe, but since we want the *next* asynchronous\n * one, we'll ignore them until the replay finishes.\n */\n if (resolveOnNext) {\n resolve(response);\n }\n }\n });\n resolveOnNext = true;\n });\n}\n/**\n * If there is a pending request for the given query, returns an Observable of\n * *all* its responses. Existing responses are published synchronously and\n * subsequent responses are published asynchronously. Returns null if there is\n * no pending request. This is similar to fetchQuery() except that it will not\n * issue a fetch if there isn't already one pending.\n */\n\n\nfunction getObservableForActiveRequest(environment, request) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(request.identifier);\n\n if (!cachedRequest) {\n return null;\n }\n\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n return null;\n }\n\n return getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest);\n}\n\nfunction isRequestActive(environment, request) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(request.identifier);\n return cachedRequest != null && environment.isRequestActive(cachedRequest.identifier);\n}\n/**\n * @private\n */\n\n\nfunction getRequestCache(environment) {\n var cached = requestCachesByEnvironment.get(environment);\n\n if (cached != null) {\n return cached;\n }\n\n var requestCache = new Map();\n requestCachesByEnvironment.set(environment, requestCache);\n return requestCache;\n}\n/**\n * @private\n */\n\n\nfunction getCachedRequest(requestCache, identifier) {\n var cached = requestCache.get(identifier);\n !(cached != null) ? true ? invariant(false, '[fetchQueryInternal] getCachedRequest: Expected request to be cached') : undefined : void 0;\n return cached;\n}\n\nmodule.exports = {\n fetchQuery: fetchQuery,\n fetchQueryDeduped: fetchQueryDeduped,\n getPromiseForActiveRequest: getPromiseForActiveRequest,\n getObservableForActiveRequest: getObservableForActiveRequest,\n isRequestActive: isRequestActive\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/query/fetchQueryInternal.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/ClientID.js":
/*!***********************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/ClientID.js ***!
\***********************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar PREFIX = 'client:';\n\nfunction generateClientID(id, storageKey, index) {\n var key = id + ':' + storageKey;\n\n if (index != null) {\n key += ':' + index;\n }\n\n if (key.indexOf(PREFIX) !== 0) {\n key = PREFIX + key;\n }\n\n return key;\n}\n\nfunction isClientID(id) {\n return id.indexOf(PREFIX) === 0;\n}\n\nvar localID = 0;\n\nfunction generateUniqueClientID() {\n return \"\".concat(PREFIX, \"local:\").concat(localID++);\n}\n\nmodule.exports = {\n generateClientID: generateClientID,\n generateUniqueClientID: generateUniqueClientID,\n isClientID: isClientID\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/ClientID.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/DataChecker.js":
/*!**************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/DataChecker.js ***!
\**************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @emails oncall+relay\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayConcreteNode = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\");\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayRecordSourceMutator = __webpack_require__(/*! ../mutations/RelayRecordSourceMutator */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js\");\n\nvar RelayRecordSourceProxy = __webpack_require__(/*! ../mutations/RelayRecordSourceProxy */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js\");\n\nvar RelayStoreUtils = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\");\n\nvar cloneRelayHandleSourceField = __webpack_require__(/*! ./cloneRelayHandleSourceField */ \"../../node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ./ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n isClientID = _require.isClientID;\n\nvar _require2 = __webpack_require__(/*! ./RelayRecordState */ \"../../node_modules/relay-runtime/lib/store/RelayRecordState.js\"),\n EXISTENT = _require2.EXISTENT,\n UNKNOWN = _require2.UNKNOWN;\n\nvar CONDITION = RelayConcreteNode.CONDITION,\n CLIENT_EXTENSION = RelayConcreteNode.CLIENT_EXTENSION,\n DEFER = RelayConcreteNode.DEFER,\n FRAGMENT_SPREAD = RelayConcreteNode.FRAGMENT_SPREAD,\n INLINE_FRAGMENT = RelayConcreteNode.INLINE_FRAGMENT,\n LINKED_FIELD = RelayConcreteNode.LINKED_FIELD,\n LINKED_HANDLE = RelayConcreteNode.LINKED_HANDLE,\n MODULE_IMPORT = RelayConcreteNode.MODULE_IMPORT,\n SCALAR_FIELD = RelayConcreteNode.SCALAR_FIELD,\n SCALAR_HANDLE = RelayConcreteNode.SCALAR_HANDLE,\n STREAM = RelayConcreteNode.STREAM;\nvar getModuleOperationKey = RelayStoreUtils.getModuleOperationKey,\n getStorageKey = RelayStoreUtils.getStorageKey,\n getArgumentValues = RelayStoreUtils.getArgumentValues;\n/**\n * Synchronously check whether the records required to fulfill the given\n * `selector` are present in `source`.\n *\n * If a field is missing, it uses the provided handlers to attempt to substitute\n * data. The `target` will store all records that are modified because of a\n * successful substitution.\n *\n * If all records are present, returns `true`, otherwise `false`.\n */\n\nfunction check(source, target, selector, handlers, operationLoader, getDataID) {\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var checker = new DataChecker(source, target, variables, handlers, operationLoader, getDataID);\n return checker.check(node, dataID);\n}\n/**\n * @private\n */\n\n\nvar DataChecker =\n/*#__PURE__*/\nfunction () {\n function DataChecker(source, target, variables, handlers, operationLoader, getDataID) {\n var _operationLoader;\n\n var mutator = new RelayRecordSourceMutator(source, target);\n this._mostRecentlyInvalidatedAt = null;\n this._handlers = handlers;\n this._mutator = mutator;\n this._operationLoader = (_operationLoader = operationLoader) !== null && _operationLoader !== void 0 ? _operationLoader : null;\n this._recordSourceProxy = new RelayRecordSourceProxy(mutator, getDataID);\n this._recordWasMissing = false;\n this._source = source;\n this._variables = variables;\n }\n\n var _proto = DataChecker.prototype;\n\n _proto.check = function check(node, dataID) {\n this._traverse(node, dataID);\n\n return this._recordWasMissing === true ? {\n status: 'missing',\n mostRecentlyInvalidatedAt: this._mostRecentlyInvalidatedAt\n } : {\n status: 'available',\n mostRecentlyInvalidatedAt: this._mostRecentlyInvalidatedAt\n };\n };\n\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? true ? invariant(false, 'RelayAsyncLoader(): Undefined variable `%s`.', name) : undefined : void 0;\n return this._variables[name];\n };\n\n _proto._handleMissing = function _handleMissing() {\n this._recordWasMissing = true;\n };\n\n _proto._getDataForHandlers = function _getDataForHandlers(field, dataID) {\n return {\n args: field.args ? getArgumentValues(field.args, this._variables) : {},\n // Getting a snapshot of the record state is potentially expensive since\n // we will need to merge the sink and source records. Since we do not create\n // any new records in this process, it is probably reasonable to provide\n // handlers with a copy of the source record.\n // The only thing that the provided record will not contain is fields\n // added by previous handlers.\n record: this._source.get(dataID)\n };\n };\n\n _proto._handleMissingScalarField = function _handleMissingScalarField(field, dataID) {\n if (field.name === 'id' && field.alias == null && isClientID(dataID)) {\n return undefined;\n }\n\n var _this$_getDataForHand = this._getDataForHandlers(field, dataID),\n args = _this$_getDataForHand.args,\n record = _this$_getDataForHand.record;\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = this._handlers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var handler = _step.value;\n\n if (handler.kind === 'scalar') {\n var newValue = handler.handle(field, record, args, this._recordSourceProxy);\n\n if (newValue !== undefined) {\n return newValue;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n this._handleMissing();\n };\n\n _proto._handleMissingLinkField = function _handleMissingLinkField(field, dataID) {\n var _this$_getDataForHand2 = this._getDataForHandlers(field, dataID),\n args = _this$_getDataForHand2.args,\n record = _this$_getDataForHand2.record;\n\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = this._handlers[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var handler = _step2.value;\n\n if (handler.kind === 'linked') {\n var newValue = handler.handle(field, record, args, this._recordSourceProxy);\n\n if (newValue != null && this._mutator.getStatus(newValue) === EXISTENT) {\n return newValue;\n }\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2[\"return\"] != null) {\n _iterator2[\"return\"]();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n this._handleMissing();\n };\n\n _proto._handleMissingPluralLinkField = function _handleMissingPluralLinkField(field, dataID) {\n var _this = this;\n\n var _this$_getDataForHand3 = this._getDataForHandlers(field, dataID),\n args = _this$_getDataForHand3.args,\n record = _this$_getDataForHand3.record;\n\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = this._handlers[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var handler = _step3.value;\n\n if (handler.kind === 'pluralLinked') {\n var newValue = handler.handle(field, record, args, this._recordSourceProxy);\n\n if (newValue != null) {\n var allItemsKnown = newValue.every(function (linkedID) {\n return linkedID != null && _this._mutator.getStatus(linkedID) === EXISTENT;\n });\n\n if (allItemsKnown) {\n return newValue;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3[\"return\"] != null) {\n _iterator3[\"return\"]();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n\n this._handleMissing();\n };\n\n _proto._traverse = function _traverse(node, dataID) {\n var status = this._mutator.getStatus(dataID);\n\n if (status === UNKNOWN) {\n this._handleMissing();\n }\n\n if (status === EXISTENT) {\n var record = this._source.get(dataID);\n\n var invalidatedAt = RelayModernRecord.getInvalidationEpoch(record);\n\n if (invalidatedAt != null) {\n this._mostRecentlyInvalidatedAt = this._mostRecentlyInvalidatedAt != null ? Math.max(this._mostRecentlyInvalidatedAt, invalidatedAt) : invalidatedAt;\n }\n\n this._traverseSelections(node.selections, dataID);\n }\n };\n\n _proto._traverseSelections = function _traverseSelections(selections, dataID) {\n var _this2 = this;\n\n selections.forEach(function (selection) {\n switch (selection.kind) {\n case SCALAR_FIELD:\n _this2._checkScalar(selection, dataID);\n\n break;\n\n case LINKED_FIELD:\n if (selection.plural) {\n _this2._checkPluralLink(selection, dataID);\n } else {\n _this2._checkLink(selection, dataID);\n }\n\n break;\n\n case CONDITION:\n var conditionValue = _this2._getVariableValue(selection.condition);\n\n if (conditionValue === selection.passingValue) {\n _this2._traverseSelections(selection.selections, dataID);\n }\n\n break;\n\n case INLINE_FRAGMENT:\n var typeName = _this2._mutator.getType(dataID);\n\n if (typeName != null && typeName === selection.type) {\n _this2._traverseSelections(selection.selections, dataID);\n }\n\n break;\n\n case LINKED_HANDLE:\n // Handles have no selections themselves; traverse the original field\n // where the handle was set-up instead.\n var handleField = cloneRelayHandleSourceField(selection, selections, _this2._variables);\n\n if (handleField.plural) {\n _this2._checkPluralLink(handleField, dataID);\n } else {\n _this2._checkLink(handleField, dataID);\n }\n\n break;\n\n case MODULE_IMPORT:\n _this2._checkModuleImport(selection, dataID);\n\n break;\n\n case DEFER:\n case STREAM:\n _this2._traverseSelections(selection.selections, dataID);\n\n break;\n\n case SCALAR_HANDLE:\n case FRAGMENT_SPREAD:\n true ? true ? invariant(false, 'RelayAsyncLoader(): Unexpected ast kind `%s`.', selection.kind) : undefined : undefined; // $FlowExpectedError - we need the break; for OSS linter\n\n break;\n\n case CLIENT_EXTENSION:\n var recordWasMissing = _this2._recordWasMissing;\n\n _this2._traverseSelections(selection.selections, dataID);\n\n _this2._recordWasMissing = recordWasMissing;\n break;\n\n default:\n selection;\n true ? true ? invariant(false, 'RelayAsyncLoader(): Unexpected ast kind `%s`.', selection.kind) : undefined : undefined;\n }\n });\n };\n\n _proto._checkModuleImport = function _checkModuleImport(moduleImport, dataID) {\n var operationLoader = this._operationLoader;\n !(operationLoader !== null) ? true ? invariant(false, 'DataChecker: Expected an operationLoader to be configured when using `@module`.') : undefined : void 0;\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n\n var operationReference = this._mutator.getValue(dataID, operationKey);\n\n if (operationReference == null) {\n if (operationReference === undefined) {\n this._handleMissing();\n }\n\n return;\n }\n\n var operation = operationLoader.get(operationReference);\n\n if (operation != null) {\n this._traverse(operation, dataID);\n } else {\n // If the fragment is not available, we assume that the data cannot have been\n // processed yet and must therefore be missing.\n this._handleMissing();\n }\n };\n\n _proto._checkScalar = function _checkScalar(field, dataID) {\n var storageKey = getStorageKey(field, this._variables);\n\n var fieldValue = this._mutator.getValue(dataID, storageKey);\n\n if (fieldValue === undefined) {\n fieldValue = this._handleMissingScalarField(field, dataID);\n\n if (fieldValue !== undefined) {\n this._mutator.setValue(dataID, storageKey, fieldValue);\n }\n }\n };\n\n _proto._checkLink = function _checkLink(field, dataID) {\n var storageKey = getStorageKey(field, this._variables);\n\n var linkedID = this._mutator.getLinkedRecordID(dataID, storageKey);\n\n if (linkedID === undefined) {\n linkedID = this._handleMissingLinkField(field, dataID);\n\n if (linkedID != null) {\n this._mutator.setLinkedRecordID(dataID, storageKey, linkedID);\n }\n }\n\n if (linkedID != null) {\n this._traverse(field, linkedID);\n }\n };\n\n _proto._checkPluralLink = function _checkPluralLink(field, dataID) {\n var _this3 = this;\n\n var storageKey = getStorageKey(field, this._variables);\n\n var linkedIDs = this._mutator.getLinkedRecordIDs(dataID, storageKey);\n\n if (linkedIDs === undefined) {\n linkedIDs = this._handleMissingPluralLinkField(field, dataID);\n\n if (linkedIDs != null) {\n this._mutator.setLinkedRecordIDs(dataID, storageKey, linkedIDs);\n }\n }\n\n if (linkedIDs) {\n linkedIDs.forEach(function (linkedID) {\n if (linkedID != null) {\n _this3._traverse(field, linkedID);\n }\n });\n }\n };\n\n return DataChecker;\n}();\n\nmodule.exports = {\n check: check\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/DataChecker.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayConcreteVariables.js":
/*!*************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayConcreteVariables.js ***!
\*************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\n/**\n * Determines the variables that are in scope for a fragment given the variables\n * in scope at the root query as well as any arguments applied at the fragment\n * spread via `@arguments`.\n *\n * Note that this is analagous to determining function arguments given a function call.\n */\nfunction getFragmentVariables(fragment, rootVariables, argumentVariables) {\n var variables;\n fragment.argumentDefinitions.forEach(function (definition) {\n if (argumentVariables.hasOwnProperty(definition.name)) {\n return;\n }\n\n variables = variables || (0, _objectSpread2[\"default\"])({}, argumentVariables);\n\n switch (definition.kind) {\n case 'LocalArgument':\n variables[definition.name] = definition.defaultValue;\n break;\n\n case 'RootArgument':\n if (!rootVariables.hasOwnProperty(definition.name)) {\n /*\n * Global variables passed as values of @arguments are not required to\n * be declared unless they are used by the callee fragment or a\n * descendant. In this case, the root variable may not be defined when\n * resolving the callee's variables. The value is explicitly set to\n * undefined to conform to the check in\n * RelayStoreUtils.getStableVariableValue() that variable keys are all\n * present.\n */\n variables[definition.name] = undefined;\n break;\n }\n\n variables[definition.name] = rootVariables[definition.name];\n break;\n\n default:\n definition;\n true ? true ? invariant(false, 'RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.', definition.kind, fragment.name) : undefined : undefined;\n }\n });\n return variables || argumentVariables;\n}\n/**\n * Determines the variables that are in scope for a given operation given values\n * for some/all of its arguments. Extraneous input variables are filtered from\n * the output, and missing variables are set to default values (if given in the\n * operation's definition).\n */\n\n\nfunction getOperationVariables(operation, variables) {\n var operationVariables = {};\n operation.argumentDefinitions.forEach(function (def) {\n var value = def.defaultValue;\n\n if (variables[def.name] != null) {\n value = variables[def.name];\n }\n\n operationVariables[def.name] = value;\n });\n return operationVariables;\n}\n\nmodule.exports = {\n getFragmentVariables: getFragmentVariables,\n getOperationVariables: getOperationVariables\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayConcreteVariables.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernEnvironment.js":
/*!*************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernEnvironment.js ***!
\*************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @emails oncall+relay\n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayDefaultHandlerProvider = __webpack_require__(/*! ../handlers/RelayDefaultHandlerProvider */ \"../../node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js\");\n\nvar RelayFeatureFlags = __webpack_require__(/*! ../util/RelayFeatureFlags */ \"../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js\");\n\nvar RelayModernQueryExecutor = __webpack_require__(/*! ./RelayModernQueryExecutor */ \"../../node_modules/relay-runtime/lib/store/RelayModernQueryExecutor.js\");\n\nvar RelayObservable = __webpack_require__(/*! ../network/RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\nvar RelayOperationTracker = __webpack_require__(/*! ../store/RelayOperationTracker */ \"../../node_modules/relay-runtime/lib/store/RelayOperationTracker.js\");\n\nvar RelayPublishQueue = __webpack_require__(/*! ./RelayPublishQueue */ \"../../node_modules/relay-runtime/lib/store/RelayPublishQueue.js\");\n\nvar RelayRecordSource = __webpack_require__(/*! ./RelayRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSource.js\");\n\nvar defaultGetDataID = __webpack_require__(/*! ./defaultGetDataID */ \"../../node_modules/relay-runtime/lib/store/defaultGetDataID.js\");\n\nvar generateID = __webpack_require__(/*! ../util/generateID */ \"../../node_modules/relay-runtime/lib/util/generateID.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar RelayModernEnvironment =\n/*#__PURE__*/\nfunction () {\n function RelayModernEnvironment(config) {\n var _this = this;\n\n var _config$log, _config$UNSTABLE_defa, _config$UNSTABLE_DO_N, _config$scheduler, _config$operationTrac;\n\n this.configName = config.configName;\n var handlerProvider = config.handlerProvider ? config.handlerProvider : RelayDefaultHandlerProvider;\n var operationLoader = config.operationLoader;\n\n if (true) {\n if (operationLoader != null) {\n !(typeof operationLoader === 'object' && typeof operationLoader.get === 'function' && typeof operationLoader.load === 'function') ? true ? invariant(false, 'RelayModernEnvironment: Expected `operationLoader` to be an object ' + 'with get() and load() functions, got `%s`.', operationLoader) : undefined : void 0;\n }\n }\n\n this.__log = (_config$log = config.log) !== null && _config$log !== void 0 ? _config$log : emptyFunction;\n this._defaultRenderPolicy = ((_config$UNSTABLE_defa = config.UNSTABLE_defaultRenderPolicy) !== null && _config$UNSTABLE_defa !== void 0 ? _config$UNSTABLE_defa : RelayFeatureFlags.ENABLE_PARTIAL_RENDERING_DEFAULT === true) ? 'partial' : 'full';\n this._operationLoader = operationLoader;\n this._operationExecutions = new Map();\n this._network = config.network;\n this._getDataID = (_config$UNSTABLE_DO_N = config.UNSTABLE_DO_NOT_USE_getDataID) !== null && _config$UNSTABLE_DO_N !== void 0 ? _config$UNSTABLE_DO_N : defaultGetDataID;\n this._publishQueue = new RelayPublishQueue(config.store, handlerProvider, this._getDataID);\n this._scheduler = (_config$scheduler = config.scheduler) !== null && _config$scheduler !== void 0 ? _config$scheduler : null;\n this._store = config.store;\n this.options = config.options;\n\n this.__setNet = function (newNet) {\n return _this._network = newNet;\n };\n\n if (true) {\n var _require = __webpack_require__(/*! ./StoreInspector */ \"../../node_modules/relay-runtime/lib/store/StoreInspector.js\"),\n inspect = _require.inspect;\n\n this.DEBUG_inspect = function (dataID) {\n return inspect(_this, dataID);\n };\n } // Register this Relay Environment with Relay DevTools if it exists.\n // Note: this must always be the last step in the constructor.\n\n\n var _global = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : undefined;\n\n var devToolsHook = _global && _global.__RELAY_DEVTOOLS_HOOK__;\n\n if (devToolsHook) {\n devToolsHook.registerEnvironment(this);\n }\n\n this._missingFieldHandlers = config.missingFieldHandlers;\n this._operationTracker = (_config$operationTrac = config.operationTracker) !== null && _config$operationTrac !== void 0 ? _config$operationTrac : new RelayOperationTracker();\n }\n\n var _proto = RelayModernEnvironment.prototype;\n\n _proto.getStore = function getStore() {\n return this._store;\n };\n\n _proto.getNetwork = function getNetwork() {\n return this._network;\n };\n\n _proto.getOperationTracker = function getOperationTracker() {\n return this._operationTracker;\n };\n\n _proto.isRequestActive = function isRequestActive(requestIdentifier) {\n var activeState = this._operationExecutions.get(requestIdentifier);\n\n return activeState === 'active';\n };\n\n _proto.UNSTABLE_getDefaultRenderPolicy = function UNSTABLE_getDefaultRenderPolicy() {\n return this._defaultRenderPolicy;\n };\n\n _proto.applyUpdate = function applyUpdate(optimisticUpdate) {\n var _this2 = this;\n\n var dispose = function dispose() {\n _this2._publishQueue.revertUpdate(optimisticUpdate);\n\n _this2._publishQueue.run();\n };\n\n this._publishQueue.applyUpdate(optimisticUpdate);\n\n this._publishQueue.run();\n\n return {\n dispose: dispose\n };\n };\n\n _proto.revertUpdate = function revertUpdate(update) {\n this._publishQueue.revertUpdate(update);\n\n this._publishQueue.run();\n };\n\n _proto.replaceUpdate = function replaceUpdate(update, newUpdate) {\n this._publishQueue.revertUpdate(update);\n\n this._publishQueue.applyUpdate(newUpdate);\n\n this._publishQueue.run();\n };\n\n _proto.applyMutation = function applyMutation(optimisticConfig) {\n var _this3 = this;\n\n var subscription = RelayObservable.create(function (sink) {\n var source = RelayObservable.create(function (_sink) {});\n var executor = RelayModernQueryExecutor.execute({\n operation: optimisticConfig.operation,\n operationExecutions: _this3._operationExecutions,\n operationLoader: _this3._operationLoader,\n optimisticConfig: optimisticConfig,\n publishQueue: _this3._publishQueue,\n scheduler: _this3._scheduler,\n sink: sink,\n source: source,\n store: _this3._store,\n updater: null,\n operationTracker: _this3._operationTracker,\n getDataID: _this3._getDataID\n });\n return function () {\n return executor.cancel();\n };\n }).subscribe({});\n return {\n dispose: function dispose() {\n return subscription.unsubscribe();\n }\n };\n };\n\n _proto.check = function check(operation) {\n if (this._missingFieldHandlers == null || this._missingFieldHandlers.length === 0) {\n return this._store.check(operation);\n }\n\n return this._checkSelectorAndHandleMissingFields(operation, this._missingFieldHandlers);\n };\n\n _proto.commitPayload = function commitPayload(operation, payload) {\n var _this4 = this;\n\n RelayObservable.create(function (sink) {\n var executor = RelayModernQueryExecutor.execute({\n operation: operation,\n operationExecutions: _this4._operationExecutions,\n operationLoader: _this4._operationLoader,\n optimisticConfig: null,\n publishQueue: _this4._publishQueue,\n scheduler: null,\n // make sure the first payload is sync\n sink: sink,\n source: RelayObservable.from({\n data: payload\n }),\n store: _this4._store,\n updater: null,\n operationTracker: _this4._operationTracker,\n getDataID: _this4._getDataID,\n isClientPayload: true\n });\n return function () {\n return executor.cancel();\n };\n }).subscribe({});\n };\n\n _proto.commitUpdate = function commitUpdate(updater) {\n this._publishQueue.commitUpdate(updater);\n\n this._publishQueue.run();\n };\n\n _proto.lookup = function lookup(readSelector) {\n return this._store.lookup(readSelector);\n };\n\n _proto.subscribe = function subscribe(snapshot, callback) {\n return this._store.subscribe(snapshot, callback);\n };\n\n _proto.retain = function retain(operation) {\n return this._store.retain(operation);\n };\n\n _proto._checkSelectorAndHandleMissingFields = function _checkSelectorAndHandleMissingFields(operation, handlers) {\n var target = RelayRecordSource.create();\n\n var result = this._store.check(operation, {\n target: target,\n handlers: handlers\n });\n\n if (target.size() > 0) {\n this._publishQueue.commitSource(target);\n\n this._publishQueue.run();\n }\n\n return result;\n }\n /**\n * Returns an Observable of GraphQLResponse resulting from executing the\n * provided Query or Subscription operation, each result of which is then\n * normalized and committed to the publish queue.\n *\n * Note: Observables are lazy, so calling this method will do nothing until\n * the result is subscribed to: environment.execute({...}).subscribe({...}).\n */\n ;\n\n _proto.execute = function execute(_ref) {\n var _this5 = this;\n\n var operation = _ref.operation,\n cacheConfig = _ref.cacheConfig,\n updater = _ref.updater;\n\n var _this$__createLogObse = this.__createLogObserver(operation.request.node.params, operation.request.variables),\n logObserver = _this$__createLogObse[0],\n logRequestInfo = _this$__createLogObse[1];\n\n return RelayObservable.create(function (sink) {\n var source = _this5._network.execute(operation.request.node.params, operation.request.variables, cacheConfig || {}, null, logRequestInfo);\n\n var executor = RelayModernQueryExecutor.execute({\n operation: operation,\n operationExecutions: _this5._operationExecutions,\n operationLoader: _this5._operationLoader,\n optimisticConfig: null,\n publishQueue: _this5._publishQueue,\n scheduler: _this5._scheduler,\n sink: sink,\n source: source,\n store: _this5._store,\n updater: updater,\n operationTracker: _this5._operationTracker,\n getDataID: _this5._getDataID\n });\n return function () {\n return executor.cancel();\n };\n })[\"do\"](logObserver);\n }\n /**\n * Returns an Observable of GraphQLResponse resulting from executing the\n * provided Mutation operation, the result of which is then normalized and\n * committed to the publish queue along with an optional optimistic response\n * or updater.\n *\n * Note: Observables are lazy, so calling this method will do nothing until\n * the result is subscribed to:\n * environment.executeMutation({...}).subscribe({...}).\n */\n ;\n\n _proto.executeMutation = function executeMutation(_ref2) {\n var _this6 = this;\n\n var operation = _ref2.operation,\n optimisticResponse = _ref2.optimisticResponse,\n optimisticUpdater = _ref2.optimisticUpdater,\n updater = _ref2.updater,\n uploadables = _ref2.uploadables;\n\n var _this$__createLogObse2 = this.__createLogObserver(operation.request.node.params, operation.request.variables),\n logObserver = _this$__createLogObse2[0],\n logRequestInfo = _this$__createLogObse2[1];\n\n return RelayObservable.create(function (sink) {\n var optimisticConfig;\n\n if (optimisticResponse || optimisticUpdater) {\n optimisticConfig = {\n operation: operation,\n response: optimisticResponse,\n updater: optimisticUpdater\n };\n }\n\n var source = _this6._network.execute(operation.request.node.params, operation.request.variables, {\n force: true\n }, uploadables, logRequestInfo);\n\n var executor = RelayModernQueryExecutor.execute({\n operation: operation,\n operationExecutions: _this6._operationExecutions,\n operationLoader: _this6._operationLoader,\n optimisticConfig: optimisticConfig,\n publishQueue: _this6._publishQueue,\n scheduler: _this6._scheduler,\n sink: sink,\n source: source,\n store: _this6._store,\n updater: updater,\n operationTracker: _this6._operationTracker,\n getDataID: _this6._getDataID\n });\n return function () {\n return executor.cancel();\n };\n })[\"do\"](logObserver);\n }\n /**\n * Returns an Observable of GraphQLResponse resulting from executing the\n * provided Query or Subscription operation responses, the result of which is\n * then normalized and comitted to the publish queue.\n *\n * Note: Observables are lazy, so calling this method will do nothing until\n * the result is subscribed to:\n * environment.executeWithSource({...}).subscribe({...}).\n */\n ;\n\n _proto.executeWithSource = function executeWithSource(_ref3) {\n var _this7 = this;\n\n var operation = _ref3.operation,\n source = _ref3.source;\n return RelayObservable.create(function (sink) {\n var executor = RelayModernQueryExecutor.execute({\n operation: operation,\n operationExecutions: _this7._operationExecutions,\n operationLoader: _this7._operationLoader,\n operationTracker: _this7._operationTracker,\n optimisticConfig: null,\n publishQueue: _this7._publishQueue,\n scheduler: _this7._scheduler,\n sink: sink,\n source: source,\n store: _this7._store,\n getDataID: _this7._getDataID\n });\n return function () {\n return executor.cancel();\n };\n });\n };\n\n _proto.toJSON = function toJSON() {\n var _this$configName;\n\n return \"RelayModernEnvironment(\".concat((_this$configName = this.configName) !== null && _this$configName !== void 0 ? _this$configName : '', \")\");\n };\n\n _proto.__createLogObserver = function __createLogObserver(params, variables) {\n var transactionID = generateID();\n var log = this.__log;\n var logObserver = {\n start: function start(subscription) {\n log({\n name: 'execute.start',\n transactionID: transactionID,\n params: params,\n variables: variables\n });\n },\n next: function next(response) {\n log({\n name: 'execute.next',\n transactionID: transactionID,\n response: response\n });\n },\n error: function error(_error) {\n log({\n name: 'execute.error',\n transactionID: transactionID,\n error: _error\n });\n },\n complete: function complete() {\n log({\n name: 'execute.complete',\n transactionID: transactionID\n });\n },\n unsubscribe: function unsubscribe() {\n log({\n name: 'execute.unsubscribe',\n transactionID: transactionID\n });\n }\n };\n\n var logRequestInfo = function logRequestInfo(info) {\n log({\n name: 'execute.info',\n transactionID: transactionID,\n info: info\n });\n };\n\n return [logObserver, logRequestInfo];\n };\n\n return RelayModernEnvironment;\n}(); // Add a sigil for detection by `isRelayModernEnvironment()` to avoid a\n// realm-specific instanceof check, and to aid in module tree-shaking to\n// avoid requiring all of RelayRuntime just to detect its environment.\n\n\nRelayModernEnvironment.prototype['@@RelayModernEnvironment'] = true;\n\nfunction emptyFunction() {}\n\nmodule.exports = RelayModernEnvironment;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernEnvironment.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernFragmentSpecResolver.js":
/*!**********************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernFragmentSpecResolver.js ***!
\**********************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar RelayFeatureFlags = __webpack_require__(/*! ../util/RelayFeatureFlags */ \"../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js\");\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar isScalarAndEqual = __webpack_require__(/*! ../util/isScalarAndEqual */ \"../../node_modules/relay-runtime/lib/util/isScalarAndEqual.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ../query/fetchQueryInternal */ \"../../node_modules/relay-runtime/lib/query/fetchQueryInternal.js\"),\n getPromiseForActiveRequest = _require.getPromiseForActiveRequest;\n\nvar _require2 = __webpack_require__(/*! ./RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\"),\n createRequestDescriptor = _require2.createRequestDescriptor;\n\nvar _require3 = __webpack_require__(/*! ./RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\"),\n areEqualSelectors = _require3.areEqualSelectors,\n createReaderSelector = _require3.createReaderSelector,\n getSelectorsFromObject = _require3.getSelectorsFromObject;\n\n/**\n * A utility for resolving and subscribing to the results of a fragment spec\n * (key -> fragment mapping) given some \"props\" that determine the root ID\n * and variables to use when reading each fragment. When props are changed via\n * `setProps()`, the resolver will update its results and subscriptions\n * accordingly. Internally, the resolver:\n * - Converts the fragment map & props map into a map of `Selector`s.\n * - Removes any resolvers for any props that became null.\n * - Creates resolvers for any props that became non-null.\n * - Updates resolvers with the latest props.\n *\n * This utility is implemented as an imperative, stateful API for performance\n * reasons: reusing previous resolvers, callback functions, and subscriptions\n * all helps to reduce object allocation and thereby decrease GC time.\n *\n * The `resolve()` function is also lazy and memoized: changes in the store mark\n * the resolver as stale and notify the caller, and the actual results are\n * recomputed the first time `resolve()` is called.\n */\nvar RelayModernFragmentSpecResolver =\n/*#__PURE__*/\nfunction () {\n function RelayModernFragmentSpecResolver(context, fragments, props, callback) {\n var _this = this;\n\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function () {\n _this._stale = true;\n\n if (typeof _this._callback === 'function') {\n _this._callback();\n }\n });\n this._callback = callback;\n this._context = context;\n this._data = {};\n this._fragments = fragments;\n this._props = {};\n this._resolvers = {};\n this._stale = false;\n this.setProps(props);\n }\n\n var _proto = RelayModernFragmentSpecResolver.prototype;\n\n _proto.dispose = function dispose() {\n for (var _key in this._resolvers) {\n if (this._resolvers.hasOwnProperty(_key)) {\n disposeCallback(this._resolvers[_key]);\n }\n }\n };\n\n _proto.resolve = function resolve() {\n if (this._stale) {\n // Avoid mapping the object multiple times, which could occur if data for\n // multiple keys changes in the same event loop.\n var prevData = this._data;\n var nextData;\n\n for (var _key2 in this._resolvers) {\n if (this._resolvers.hasOwnProperty(_key2)) {\n var resolver = this._resolvers[_key2];\n var prevItem = prevData[_key2];\n\n if (resolver) {\n var nextItem = resolver.resolve();\n\n if (nextData || nextItem !== prevItem) {\n nextData = nextData || (0, _objectSpread2[\"default\"])({}, prevData);\n nextData[_key2] = nextItem;\n }\n } else {\n var prop = this._props[_key2];\n\n var _nextItem = prop !== undefined ? prop : null;\n\n if (nextData || !isScalarAndEqual(_nextItem, prevItem)) {\n nextData = nextData || (0, _objectSpread2[\"default\"])({}, prevData);\n nextData[_key2] = _nextItem;\n }\n }\n }\n }\n\n this._data = nextData || prevData;\n this._stale = false;\n }\n\n return this._data;\n };\n\n _proto.setCallback = function setCallback(callback) {\n this._callback = callback;\n };\n\n _proto.setProps = function setProps(props) {\n var ownedSelectors = getSelectorsFromObject(this._fragments, props);\n this._props = {};\n\n for (var _key3 in ownedSelectors) {\n if (ownedSelectors.hasOwnProperty(_key3)) {\n var ownedSelector = ownedSelectors[_key3];\n var resolver = this._resolvers[_key3];\n\n if (ownedSelector == null) {\n if (resolver != null) {\n resolver.dispose();\n }\n\n resolver = null;\n } else if (ownedSelector.kind === 'PluralReaderSelector') {\n if (resolver == null) {\n resolver = new SelectorListResolver(this._context.environment, ownedSelector, this._onChange);\n } else {\n !(resolver instanceof SelectorListResolver) ? true ? invariant(false, 'RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.', _key3) : undefined : void 0;\n resolver.setSelector(ownedSelector);\n }\n } else {\n if (resolver == null) {\n resolver = new SelectorResolver(this._context.environment, ownedSelector, this._onChange);\n } else {\n !(resolver instanceof SelectorResolver) ? true ? invariant(false, 'RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.', _key3) : undefined : void 0;\n resolver.setSelector(ownedSelector);\n }\n }\n\n this._props[_key3] = props[_key3];\n this._resolvers[_key3] = resolver;\n }\n }\n\n this._stale = true;\n };\n\n _proto.setVariables = function setVariables(variables, request) {\n for (var _key4 in this._resolvers) {\n if (this._resolvers.hasOwnProperty(_key4)) {\n var resolver = this._resolvers[_key4];\n\n if (resolver) {\n resolver.setVariables(variables, request);\n }\n }\n }\n\n this._stale = true;\n };\n\n return RelayModernFragmentSpecResolver;\n}();\n/**\n * A resolver for a single Selector.\n */\n\n\nvar SelectorResolver =\n/*#__PURE__*/\nfunction () {\n function SelectorResolver(environment, selector, callback) {\n var _this2 = this;\n\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function (snapshot) {\n _this2._data = snapshot.data;\n _this2._isMissingData = snapshot.isMissingData;\n\n _this2._callback();\n });\n\n var _snapshot = environment.lookup(selector);\n\n this._callback = callback;\n this._data = _snapshot.data;\n this._isMissingData = _snapshot.isMissingData;\n this._environment = environment;\n this._selector = selector;\n this._subscription = environment.subscribe(_snapshot, this._onChange);\n }\n\n var _proto2 = SelectorResolver.prototype;\n\n _proto2.dispose = function dispose() {\n if (this._subscription) {\n this._subscription.dispose();\n\n this._subscription = null;\n }\n };\n\n _proto2.resolve = function resolve() {\n if (RelayFeatureFlags.ENABLE_RELAY_CONTAINERS_SUSPENSE === true && this._isMissingData === true) {\n var _getPromiseForActiveR;\n\n // NOTE: This branch exists to handle the case in which:\n // - A RelayModern container is rendered as a descendant of a Relay Hook\n // root using a \"partial\" renderPolicy (this means that eargerly\n // reading any cached data that is available instead of blocking\n // at the root until the whole query is fetched).\n // - A parent Relay Hook didnt' suspend earlier on data being fetched,\n // either because the fragment data for the parent was available, or\n // the parent fragment didn't have any data dependencies.\n // Even though our Flow types reflect the possiblity of null data, there\n // might still be cases where it's not handled at runtime becuase the\n // Flow types are being ignored, or simply not being used (for example,\n // the case reported here: https://fburl.com/srnbucf8, was due to\n // misuse of Flow types here: https://fburl.com/g3m0mqqh).\n // Additionally, even though the null data might be handled without a\n // runtime error, we might not suspend when we intended to if a parent\n // Relay Hook (e.g. that is using @defer) decided not to suspend becuase\n // it's immediate data was already available (even if it was deferred),\n // or it didn't actually need any data (was just spreading other fragments).\n // This should eventually go away with something like @optional, where we only\n // suspend at specific boundaries depending on whether the boundary\n // can be fulfilled or not.\n var promise = (_getPromiseForActiveR = getPromiseForActiveRequest(this._environment, this._selector.owner)) !== null && _getPromiseForActiveR !== void 0 ? _getPromiseForActiveR : this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);\n\n if (promise != null) {\n true ? warning(false, 'Relay: Relay Container for fragment `%s` suspended. When using ' + 'features such as @defer or @module, use `useFragment` instead ' + 'of a Relay Container.', this._selector.node.name) : undefined;\n throw promise;\n }\n }\n\n return this._data;\n };\n\n _proto2.setSelector = function setSelector(selector) {\n if (this._subscription != null && areEqualSelectors(selector, this._selector)) {\n return;\n }\n\n this.dispose();\n\n var snapshot = this._environment.lookup(selector);\n\n this._data = snapshot.data;\n this._isMissingData = snapshot.isMissingData;\n this._selector = selector;\n this._subscription = this._environment.subscribe(snapshot, this._onChange);\n };\n\n _proto2.setVariables = function setVariables(variables, request) {\n if (areEqual(variables, this._selector.variables)) {\n // If we're not actually setting new variables, we don't actually want\n // to create a new fragment owner, since areEqualSelectors relies on\n // owner identity.\n // In fact, we don't even need to try to attempt to set a new selector.\n // When fragment ownership is not enabled, setSelector will also bail\n // out since the selector doesn't really change, so we're doing it here\n // earlier.\n return;\n } // NOTE: We manually create the request descriptor here instead of\n // calling createOperationDescriptor() because we want to set a\n // descriptor with *unaltered* variables as the fragment owner.\n // This is a hack that allows us to preserve exisiting (broken)\n // behavior of RelayModern containers while using fragment ownership\n // to propagate variables instead of Context.\n // For more details, see the summary of D13999308\n\n\n var requestDescriptor = createRequestDescriptor(request, variables);\n var selector = createReaderSelector(this._selector.node, this._selector.dataID, variables, requestDescriptor);\n this.setSelector(selector);\n };\n\n return SelectorResolver;\n}();\n/**\n * A resolver for an array of Selectors.\n */\n\n\nvar SelectorListResolver =\n/*#__PURE__*/\nfunction () {\n function SelectorListResolver(environment, selector, callback) {\n var _this3 = this;\n\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function (data) {\n _this3._stale = true;\n\n _this3._callback();\n });\n this._callback = callback;\n this._data = [];\n this._environment = environment;\n this._resolvers = [];\n this._stale = true;\n this.setSelector(selector);\n }\n\n var _proto3 = SelectorListResolver.prototype;\n\n _proto3.dispose = function dispose() {\n this._resolvers.forEach(disposeCallback);\n };\n\n _proto3.resolve = function resolve() {\n if (this._stale) {\n // Avoid mapping the array multiple times, which could occur if data for\n // multiple indices changes in the same event loop.\n var prevData = this._data;\n var nextData;\n\n for (var ii = 0; ii < this._resolvers.length; ii++) {\n var prevItem = prevData[ii];\n\n var nextItem = this._resolvers[ii].resolve();\n\n if (nextData || nextItem !== prevItem) {\n nextData = nextData || prevData.slice(0, ii);\n nextData.push(nextItem);\n }\n }\n\n if (!nextData && this._resolvers.length !== prevData.length) {\n nextData = prevData.slice(0, this._resolvers.length);\n }\n\n this._data = nextData || prevData;\n this._stale = false;\n }\n\n return this._data;\n };\n\n _proto3.setSelector = function setSelector(selector) {\n var selectors = selector.selectors;\n\n while (this._resolvers.length > selectors.length) {\n var resolver = this._resolvers.pop();\n\n resolver.dispose();\n }\n\n for (var ii = 0; ii < selectors.length; ii++) {\n if (ii < this._resolvers.length) {\n this._resolvers[ii].setSelector(selectors[ii]);\n } else {\n this._resolvers[ii] = new SelectorResolver(this._environment, selectors[ii], this._onChange);\n }\n }\n\n this._stale = true;\n };\n\n _proto3.setVariables = function setVariables(variables, request) {\n this._resolvers.forEach(function (resolver) {\n return resolver.setVariables(variables, request);\n });\n\n this._stale = true;\n };\n\n return SelectorListResolver;\n}();\n\nfunction disposeCallback(disposable) {\n disposable && disposable.dispose();\n}\n\nmodule.exports = RelayModernFragmentSpecResolver;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernFragmentSpecResolver.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js":
/*!*********************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js ***!
\*********************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar deepFreeze = __webpack_require__(/*! ../util/deepFreeze */ \"../../node_modules/relay-runtime/lib/util/deepFreeze.js\");\n\nvar getRequestIdentifier = __webpack_require__(/*! ../util/getRequestIdentifier */ \"../../node_modules/relay-runtime/lib/util/getRequestIdentifier.js\");\n\nvar _require = __webpack_require__(/*! ./RelayConcreteVariables */ \"../../node_modules/relay-runtime/lib/store/RelayConcreteVariables.js\"),\n getOperationVariables = _require.getOperationVariables;\n\nvar _require2 = __webpack_require__(/*! ./RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\"),\n createNormalizationSelector = _require2.createNormalizationSelector,\n createReaderSelector = _require2.createReaderSelector;\n\nvar _require3 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ROOT_ID = _require3.ROOT_ID;\n\n/**\n * Creates an instance of the `OperationDescriptor` type defined in\n * `RelayStoreTypes` given an operation and some variables. The input variables\n * are filtered to exclude variables that do not match defined arguments on the\n * operation, and default values are populated for null values.\n */\nfunction createOperationDescriptor(request, variables) {\n var dataID = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ROOT_ID;\n var operation = request.operation;\n var operationVariables = getOperationVariables(operation, variables);\n var requestDescriptor = createRequestDescriptor(request, operationVariables);\n var operationDescriptor = {\n fragment: createReaderSelector(request.fragment, dataID, operationVariables, requestDescriptor),\n request: requestDescriptor,\n root: createNormalizationSelector(operation, dataID, operationVariables)\n };\n\n if (true) {\n // Freezing properties short-circuits a deepFreeze of snapshots that contain\n // an OperationDescriptor via their selector's owner, avoiding stack\n // overflow on larger queries.\n Object.freeze(operationDescriptor.fragment);\n Object.freeze(operationDescriptor.root);\n Object.freeze(operationDescriptor);\n }\n\n return operationDescriptor;\n}\n\nfunction createRequestDescriptor(request, variables) {\n var requestDescriptor = {\n identifier: getRequestIdentifier(request.params, variables),\n node: request,\n variables: variables\n };\n\n if (true) {\n deepFreeze(variables);\n Object.freeze(request);\n Object.freeze(requestDescriptor);\n }\n\n return requestDescriptor;\n}\n\nmodule.exports = {\n createOperationDescriptor: createOperationDescriptor,\n createRequestDescriptor: createRequestDescriptor\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernQueryExecutor.js":
/*!***************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernQueryExecutor.js ***!
\***************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @emails oncall+relay\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js\"));\n\nvar RelayError = __webpack_require__(/*! ../util/RelayError */ \"../../node_modules/relay-runtime/lib/util/RelayError.js\");\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayObservable = __webpack_require__(/*! ../network/RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\nvar RelayRecordSource = __webpack_require__(/*! ./RelayRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSource.js\");\n\nvar RelayResponseNormalizer = __webpack_require__(/*! ./RelayResponseNormalizer */ \"../../node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar stableCopy = __webpack_require__(/*! ../util/stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ./ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require.generateClientID;\n\nvar _require2 = __webpack_require__(/*! ./RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\"),\n createNormalizationSelector = _require2.createNormalizationSelector;\n\nvar _require3 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ROOT_TYPE = _require3.ROOT_TYPE,\n TYPENAME_KEY = _require3.TYPENAME_KEY,\n getStorageKey = _require3.getStorageKey;\n\nfunction execute(config) {\n return new Executor(config);\n}\n/**\n * Coordinates the execution of a query, handling network callbacks\n * including optimistic payloads, standard payloads, resolution of match\n * dependencies, etc.\n */\n\n\nvar Executor =\n/*#__PURE__*/\nfunction () {\n function Executor(_ref) {\n var _this = this;\n\n var operation = _ref.operation,\n operationExecutions = _ref.operationExecutions,\n operationLoader = _ref.operationLoader,\n optimisticConfig = _ref.optimisticConfig,\n publishQueue = _ref.publishQueue,\n scheduler = _ref.scheduler,\n sink = _ref.sink,\n source = _ref.source,\n store = _ref.store,\n updater = _ref.updater,\n operationTracker = _ref.operationTracker,\n getDataID = _ref.getDataID,\n isClientPayload = _ref.isClientPayload;\n this._getDataID = getDataID;\n this._incrementalPayloadsPending = false;\n this._incrementalResults = new Map();\n this._nextSubscriptionId = 0;\n this._operation = operation;\n this._operationExecutions = operationExecutions;\n this._operationLoader = operationLoader;\n this._operationTracker = operationTracker;\n this._operationUpdateEpochs = new Map();\n this._optimisticUpdates = null;\n this._pendingModulePayloadsCount = 0;\n this._publishQueue = publishQueue;\n this._scheduler = scheduler;\n this._sink = sink;\n this._source = new Map();\n this._state = 'started';\n this._store = store;\n this._subscriptions = new Map();\n this._updater = updater;\n this._isClientPayload = isClientPayload === true;\n var id = this._nextSubscriptionId++;\n source.subscribe({\n complete: function complete() {\n return _this._complete(id);\n },\n error: function error(_error2) {\n return _this._error(_error2);\n },\n next: function next(response) {\n try {\n _this._next(id, response);\n } catch (error) {\n sink.error(error);\n }\n },\n start: function start(subscription) {\n return _this._start(id, subscription);\n }\n });\n\n if (optimisticConfig != null) {\n this._processOptimisticResponse(optimisticConfig.response != null ? {\n data: optimisticConfig.response\n } : null, optimisticConfig.updater);\n }\n } // Cancel any pending execution tasks and mark the executor as completed.\n\n\n var _proto = Executor.prototype;\n\n _proto.cancel = function cancel() {\n var _this2 = this;\n\n if (this._state === 'completed') {\n return;\n }\n\n this._state = 'completed';\n\n this._operationExecutions[\"delete\"](this._operation.request.identifier);\n\n if (this._subscriptions.size !== 0) {\n this._subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n\n this._subscriptions.clear();\n }\n\n var optimisticUpdates = this._optimisticUpdates;\n\n if (optimisticUpdates !== null) {\n this._optimisticUpdates = null;\n optimisticUpdates.forEach(function (update) {\n return _this2._publishQueue.revertUpdate(update);\n });\n\n this._publishQueue.run();\n }\n\n this._incrementalResults.clear();\n\n this._completeOperationTracker();\n };\n\n _proto._updateActiveState = function _updateActiveState() {\n var activeState;\n\n switch (this._state) {\n case 'started':\n {\n activeState = 'active';\n break;\n }\n\n case 'loading_incremental':\n {\n activeState = 'active';\n break;\n }\n\n case 'completed':\n {\n activeState = 'inactive';\n break;\n }\n\n case 'loading_final':\n {\n activeState = this._pendingModulePayloadsCount > 0 ? 'active' : 'inactive';\n break;\n }\n\n default:\n this._state;\n true ? true ? invariant(false, 'RelayModernQueryExecutor: invalid executor state.') : undefined : undefined;\n }\n\n this._operationExecutions.set(this._operation.request.identifier, activeState);\n };\n\n _proto._schedule = function _schedule(task) {\n var _this3 = this;\n\n var scheduler = this._scheduler;\n\n if (scheduler != null) {\n var _id2 = this._nextSubscriptionId++;\n\n RelayObservable.create(function (sink) {\n var cancellationToken = scheduler.schedule(function () {\n try {\n task();\n sink.complete();\n } catch (error) {\n sink.error(error);\n }\n });\n return function () {\n return scheduler.cancel(cancellationToken);\n };\n }).subscribe({\n complete: function complete() {\n return _this3._complete(_id2);\n },\n error: function error(_error3) {\n return _this3._error(_error3);\n },\n start: function start(subscription) {\n return _this3._start(_id2, subscription);\n }\n });\n } else {\n task();\n }\n };\n\n _proto._complete = function _complete(id) {\n this._subscriptions[\"delete\"](id);\n\n if (this._subscriptions.size === 0) {\n this.cancel();\n\n this._sink.complete();\n }\n };\n\n _proto._error = function _error(error) {\n this.cancel();\n\n this._sink.error(error);\n };\n\n _proto._start = function _start(id, subscription) {\n this._subscriptions.set(id, subscription);\n\n this._updateActiveState();\n } // Handle a raw GraphQL response.\n ;\n\n _proto._next = function _next(_id, response) {\n var _this4 = this;\n\n this._schedule(function () {\n _this4._handleNext(response);\n\n _this4._maybeCompleteSubscriptionOperationTracking();\n });\n };\n\n _proto._handleErrorResponse = function _handleErrorResponse(responses) {\n var _this5 = this;\n\n // Once thing to notice here: if one of the responses in array has errors\n // All batch will be ignored.\n return responses.map(function (response) {\n if (response.data == null) {\n var messages = response.errors ? response.errors.map(function (_ref2) {\n var message = _ref2.message;\n return message;\n }).join('\\n') : '(No errors)';\n var error = RelayError.create('RelayNetwork', 'No data returned for operation `' + _this5._operation.request.node.params.name + '`, got error(s):\\n' + messages + '\\n\\nSee the error `source` property for more information.');\n error.source = {\n errors: response.errors,\n operation: _this5._operation.request.node,\n variables: _this5._operation.request.variables\n };\n throw error;\n }\n\n var responseWithData = response;\n return responseWithData;\n });\n }\n /**\n * This method return boolean to indicate if the optimistic\n * response has been handled\n */\n ;\n\n _proto._handleOptimisticResponses = function _handleOptimisticResponses(responses) {\n var _response$extensions;\n\n if (responses.length > 1) {\n if (responses.some(function (responsePart) {\n var _responsePart$extensi;\n\n return ((_responsePart$extensi = responsePart.extensions) === null || _responsePart$extensi === void 0 ? void 0 : _responsePart$extensi.isOptimistic) === true;\n })) {\n true ? true ? invariant(false, 'Optimistic responses cannot be batched.') : undefined : undefined;\n }\n\n return false;\n }\n\n var response = responses[0];\n var isOptimistic = ((_response$extensions = response.extensions) === null || _response$extensions === void 0 ? void 0 : _response$extensions.isOptimistic) === true;\n\n if (isOptimistic && this._state !== 'started') {\n true ? true ? invariant(false, 'RelayModernQueryExecutor: optimistic payload received after server payload.') : undefined : undefined;\n }\n\n if (isOptimistic) {\n this._processOptimisticResponse(response, null);\n\n this._sink.next(response);\n\n return true;\n }\n\n return false;\n };\n\n _proto._handleNext = function _handleNext(response) {\n if (this._state === 'completed') {\n return;\n }\n\n var responsesWithData = this._handleErrorResponse(Array.isArray(response) ? response : [response]); // Next, handle optimistic responses\n\n\n var isOptimistic = this._handleOptimisticResponses(responsesWithData);\n\n if (isOptimistic) {\n return;\n }\n\n var _partitionGraphQLResp = partitionGraphQLResponses(responsesWithData),\n nonIncrementalResponses = _partitionGraphQLResp[0],\n incrementalResponses = _partitionGraphQLResp[1]; // In theory this doesn't preserve the ordering of the batch.\n // The idea is that a batch is always:\n // * at-most one non-incremental payload\n // * followed zero or more incremental payloads\n // The non-incremental payload can appear if the server sends a batch\n // w the initial payload followed by some early-to-resolve incremental\n // payloads (although, can that even happen?)\n\n\n if (nonIncrementalResponses.length > 0) {\n var payloadFollowups = this._processResponses(nonIncrementalResponses); // Please note, that we're passing `this._operation` to the publish\n // queue here, which will later passed to the store (via notify)\n // to indicate that this is an operation that cause the store to update\n\n\n var updatedOwners = this._publishQueue.run(this._operation);\n\n this._updateOperationTracker(updatedOwners);\n\n this._processPayloadFollowups(payloadFollowups);\n }\n\n if (incrementalResponses.length > 0) {\n var _payloadFollowups = this._processIncrementalResponses(incrementalResponses); // For the incremental case, we're only handling follow-up responses\n // for already initiated operation (and we're not passing it to\n // the run(...) call)\n\n\n var _updatedOwners = this._publishQueue.run();\n\n this._updateOperationTracker(_updatedOwners);\n\n this._processPayloadFollowups(_payloadFollowups);\n }\n\n this._sink.next(response);\n };\n\n _proto._processOptimisticResponse = function _processOptimisticResponse(response, updater) {\n var _this6 = this;\n\n !(this._optimisticUpdates === null) ? true ? invariant(false, 'environment.execute: only support one optimistic response per ' + 'execute.') : undefined : void 0;\n\n if (response == null && updater == null) {\n return;\n }\n\n var optimisticUpdates = [];\n\n if (response) {\n var payload = normalizeResponse(response, this._operation.root, ROOT_TYPE, {\n getDataID: this._getDataID,\n path: [],\n request: this._operation.request\n });\n validateOptimisticResponsePayload(payload);\n optimisticUpdates.push({\n operation: this._operation,\n payload: payload,\n updater: updater\n });\n\n this._processOptimisticFollowups(payload, optimisticUpdates);\n } else if (updater) {\n optimisticUpdates.push({\n operation: this._operation,\n payload: {\n errors: null,\n fieldPayloads: null,\n incrementalPlaceholders: null,\n moduleImportPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: false\n },\n updater: updater\n });\n }\n\n this._optimisticUpdates = optimisticUpdates;\n optimisticUpdates.forEach(function (update) {\n return _this6._publishQueue.applyUpdate(update);\n });\n\n this._publishQueue.run();\n };\n\n _proto._processOptimisticFollowups = function _processOptimisticFollowups(payload, optimisticUpdates) {\n if (payload.moduleImportPayloads && payload.moduleImportPayloads.length) {\n var moduleImportPayloads = payload.moduleImportPayloads;\n var operationLoader = this._operationLoader;\n !operationLoader ? true ? invariant(false, 'RelayModernEnvironment: Expected an operationLoader to be ' + 'configured when using `@match`.') : undefined : void 0;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = moduleImportPayloads[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var moduleImportPayload = _step.value;\n var operation = operationLoader.get(moduleImportPayload.operationReference);\n\n if (operation == null) {\n this._processAsyncOptimisticModuleImport(operationLoader, moduleImportPayload);\n } else {\n var moduleImportOptimisitcUpdates = this._processOptimisticModuleImport(operation, moduleImportPayload);\n\n optimisticUpdates.push.apply(optimisticUpdates, (0, _toConsumableArray2[\"default\"])(moduleImportOptimisitcUpdates));\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n };\n\n _proto._normalizeModuleImport = function _normalizeModuleImport(moduleImportPayload, operation) {\n var selector = createNormalizationSelector(operation, moduleImportPayload.dataID, moduleImportPayload.variables);\n return normalizeResponse({\n data: moduleImportPayload.data\n }, selector, moduleImportPayload.typeName, {\n getDataID: this._getDataID,\n path: moduleImportPayload.path,\n request: this._operation.request\n });\n };\n\n _proto._processOptimisticModuleImport = function _processOptimisticModuleImport(operation, moduleImportPayload) {\n var optimisticUpdates = [];\n\n var modulePayload = this._normalizeModuleImport(moduleImportPayload, operation);\n\n validateOptimisticResponsePayload(modulePayload);\n optimisticUpdates.push({\n operation: this._operation,\n payload: modulePayload,\n updater: null\n });\n\n this._processOptimisticFollowups(modulePayload, optimisticUpdates);\n\n return optimisticUpdates;\n };\n\n _proto._processAsyncOptimisticModuleImport = function _processAsyncOptimisticModuleImport(operationLoader, moduleImportPayload) {\n var _this7 = this;\n\n operationLoader.load(moduleImportPayload.operationReference).then(function (operation) {\n if (operation == null || _this7._state !== 'started') {\n return;\n }\n\n var moduleImportOptimisitcUpdates = _this7._processOptimisticModuleImport(operation, moduleImportPayload);\n\n moduleImportOptimisitcUpdates.forEach(function (update) {\n return _this7._publishQueue.applyUpdate(update);\n });\n\n if (_this7._optimisticUpdates == null) {\n true ? warning(false, 'RelayModernQueryExecutor: Unexpected ModuleImport optimisitc ' + 'update in operation %s.' + _this7._operation.request.node.params.name) : undefined;\n } else {\n var _this$_optimisticUpda;\n\n (_this$_optimisticUpda = _this7._optimisticUpdates).push.apply(_this$_optimisticUpda, (0, _toConsumableArray2[\"default\"])(moduleImportOptimisitcUpdates));\n\n _this7._publishQueue.run();\n }\n });\n };\n\n _proto._processResponses = function _processResponses(responses) {\n var _this8 = this;\n\n if (this._optimisticUpdates !== null) {\n this._optimisticUpdates.forEach(function (update) {\n return _this8._publishQueue.revertUpdate(update);\n });\n\n this._optimisticUpdates = null;\n }\n\n this._incrementalPayloadsPending = false;\n\n this._incrementalResults.clear();\n\n this._source.clear();\n\n return responses.map(function (payloadPart) {\n var relayPayload = normalizeResponse(payloadPart, _this8._operation.root, ROOT_TYPE, {\n getDataID: _this8._getDataID,\n path: [],\n request: _this8._operation.request\n });\n\n _this8._publishQueue.commitPayload(_this8._operation, relayPayload, _this8._updater);\n\n return relayPayload;\n });\n }\n /**\n * Handles any follow-up actions for a Relay payload for @match, @defer,\n * and @stream directives.\n */\n ;\n\n _proto._processPayloadFollowups = function _processPayloadFollowups(payloads) {\n var _this9 = this;\n\n if (this._state === 'completed') {\n return;\n }\n\n payloads.forEach(function (payload) {\n var incrementalPlaceholders = payload.incrementalPlaceholders,\n moduleImportPayloads = payload.moduleImportPayloads,\n isFinal = payload.isFinal;\n _this9._state = isFinal ? 'loading_final' : 'loading_incremental';\n\n _this9._updateActiveState();\n\n if (isFinal) {\n _this9._incrementalPayloadsPending = false;\n }\n\n if (moduleImportPayloads && moduleImportPayloads.length !== 0) {\n var operationLoader = _this9._operationLoader;\n !operationLoader ? true ? invariant(false, 'RelayModernEnvironment: Expected an operationLoader to be ' + 'configured when using `@match`.') : undefined : void 0;\n moduleImportPayloads.forEach(function (moduleImportPayload) {\n _this9._processModuleImportPayload(moduleImportPayload, operationLoader);\n });\n }\n\n if (incrementalPlaceholders && incrementalPlaceholders.length !== 0) {\n _this9._incrementalPayloadsPending = _this9._state !== 'loading_final';\n incrementalPlaceholders.forEach(function (incrementalPlaceholder) {\n _this9._processIncrementalPlaceholder(payload, incrementalPlaceholder);\n });\n\n if (_this9._isClientPayload || _this9._state === 'loading_final') {\n // The query has defer/stream selections that are enabled, but either\n // the server indicated that this is a \"final\" payload: no incremental\n // payloads will be delivered, then warn that the query was (likely)\n // executed on the server in non-streaming mode, with incremental\n // delivery disabled; or this is a client payload, and there will be\n // no incremental payload.\n true ? warning(_this9._isClientPayload, 'RelayModernEnvironment: Operation `%s` contains @defer/@stream ' + 'directives but was executed in non-streaming mode. See ' + 'https://fburl.com/relay-incremental-delivery-non-streaming-warning.', _this9._operation.request.node.params.name) : undefined; // But eagerly process any deferred payloads\n\n var relayPayloads = [];\n incrementalPlaceholders.forEach(function (placeholder) {\n if (placeholder.kind === 'defer') {\n relayPayloads.push(_this9._processDeferResponse(placeholder.label, placeholder.path, placeholder, {\n data: placeholder.data\n }));\n }\n });\n\n if (relayPayloads.length > 0) {\n var updatedOwners = _this9._publishQueue.run();\n\n _this9._updateOperationTracker(updatedOwners);\n\n _this9._processPayloadFollowups(relayPayloads);\n }\n }\n }\n });\n };\n\n _proto._maybeCompleteSubscriptionOperationTracking = function _maybeCompleteSubscriptionOperationTracking() {\n var isSubscriptionOperation = this._operation.request.node.params.operationKind === 'subscription';\n\n if (!isSubscriptionOperation) {\n return;\n }\n\n if (this._pendingModulePayloadsCount === 0 && this._incrementalPayloadsPending === false) {\n this._completeOperationTracker();\n }\n }\n /**\n * Processes a ModuleImportPayload, asynchronously resolving the normalization\n * AST and using it to normalize the field data into a RelayResponsePayload.\n * The resulting payload may contain other incremental payloads (match,\n * defer, stream, etc); these are handled by calling\n * `_processPayloadFollowups()`.\n */\n ;\n\n _proto._processModuleImportPayload = function _processModuleImportPayload(moduleImportPayload, operationLoader) {\n var _this10 = this;\n\n var syncOperation = operationLoader.get(moduleImportPayload.operationReference);\n\n if (syncOperation != null) {\n // If the operation module is available synchronously, normalize the\n // data synchronously.\n this._schedule(function () {\n _this10._handleModuleImportPayload(moduleImportPayload, syncOperation);\n\n _this10._maybeCompleteSubscriptionOperationTracking();\n });\n } else {\n // Otherwise load the operation module and schedule a task to normalize\n // the data when the module is available.\n var _id3 = this._nextSubscriptionId++;\n\n this._pendingModulePayloadsCount++;\n\n var decrementPendingCount = function decrementPendingCount() {\n _this10._pendingModulePayloadsCount--;\n\n _this10._maybeCompleteSubscriptionOperationTracking();\n }; // Observable.from(operationLoader.load()) wouldn't catch synchronous\n // errors thrown by the load function, which is user-defined. Guard\n // against that with Observable.from(new Promise(<work>)).\n\n\n RelayObservable.from(new Promise(function (resolve, reject) {\n operationLoader.load(moduleImportPayload.operationReference).then(resolve, reject);\n })).map(function (operation) {\n if (operation != null) {\n _this10._schedule(function () {\n _this10._handleModuleImportPayload(moduleImportPayload, operation);\n });\n }\n }).subscribe({\n complete: function complete() {\n _this10._complete(_id3);\n\n decrementPendingCount();\n },\n error: function error(_error4) {\n _this10._error(_error4);\n\n decrementPendingCount();\n },\n start: function start(subscription) {\n return _this10._start(_id3, subscription);\n }\n });\n }\n };\n\n _proto._handleModuleImportPayload = function _handleModuleImportPayload(moduleImportPayload, operation) {\n var relayPayload = this._normalizeModuleImport(moduleImportPayload, operation);\n\n this._publishQueue.commitPayload(this._operation, relayPayload);\n\n var updatedOwners = this._publishQueue.run();\n\n this._updateOperationTracker(updatedOwners);\n\n this._processPayloadFollowups([relayPayload]);\n }\n /**\n * The executor now knows that GraphQL responses are expected for a given\n * label/path:\n * - Store the placeholder in order to process any future responses that may\n * arrive.\n * - Then process any responses that had already arrived.\n *\n * The placeholder contains the normalization selector, path (for nested\n * defer/stream), and other metadata used to normalize the incremental\n * response(s).\n */\n ;\n\n _proto._processIncrementalPlaceholder = function _processIncrementalPlaceholder(relayPayload, placeholder) {\n var _this11 = this;\n\n var _relayPayload$fieldPa;\n\n // Update the label => path => placeholder map\n var label = placeholder.label,\n path = placeholder.path;\n var pathKey = path.map(String).join('.');\n\n var resultForLabel = this._incrementalResults.get(label);\n\n if (resultForLabel == null) {\n resultForLabel = new Map();\n\n this._incrementalResults.set(label, resultForLabel);\n }\n\n var resultForPath = resultForLabel.get(pathKey);\n var pendingResponses = resultForPath != null && resultForPath.kind === 'response' ? resultForPath.responses : null;\n resultForLabel.set(pathKey, {\n kind: 'placeholder',\n placeholder: placeholder\n }); // Store references to the parent node to allow detecting concurrent\n // modifications to the parent before items arrive and to replay\n // handle field payloads to account for new information on source records.\n\n var parentID;\n\n if (placeholder.kind === 'stream') {\n parentID = placeholder.parentID;\n } else if (placeholder.kind === 'defer') {\n parentID = placeholder.selector.dataID;\n } else {\n placeholder;\n true ? true ? invariant(false, 'Unsupported incremental placeholder kind `%s`.', placeholder.kind) : undefined : undefined;\n }\n\n var parentRecord = relayPayload.source.get(parentID);\n var parentPayloads = ((_relayPayload$fieldPa = relayPayload.fieldPayloads) !== null && _relayPayload$fieldPa !== void 0 ? _relayPayload$fieldPa : []).filter(function (fieldPayload) {\n var fieldID = generateClientID(fieldPayload.dataID, fieldPayload.fieldKey);\n return (// handlers applied to the streamed field itself\n fieldPayload.dataID === parentID || // handlers applied to a field on an ancestor object, where\n // ancestor.field links to the parent record (example: connections)\n fieldID === parentID\n );\n }); // If an incremental payload exists for some id that record should also\n // exist.\n\n !(parentRecord != null) ? true ? invariant(false, 'RelayModernEnvironment: Expected record `%s` to exist.', parentID) : undefined : void 0;\n var nextParentRecord;\n var nextParentPayloads;\n\n var previousParentEntry = this._source.get(parentID);\n\n if (previousParentEntry != null) {\n // If a previous entry exists, merge the previous/next records and\n // payloads together.\n nextParentRecord = RelayModernRecord.update(previousParentEntry.record, parentRecord);\n var handlePayloads = new Map();\n\n var dedupePayload = function dedupePayload(payload) {\n var key = stableStringify(payload);\n handlePayloads.set(key, payload);\n };\n\n previousParentEntry.fieldPayloads.forEach(dedupePayload);\n parentPayloads.forEach(dedupePayload);\n nextParentPayloads = Array.from(handlePayloads.values());\n } else {\n nextParentRecord = parentRecord;\n nextParentPayloads = parentPayloads;\n }\n\n this._source.set(parentID, {\n record: nextParentRecord,\n fieldPayloads: nextParentPayloads\n }); // If there were any queued responses, process them now that placeholders\n // are in place\n\n\n if (pendingResponses != null) {\n this._schedule(function () {\n var payloadFollowups = _this11._processIncrementalResponses(pendingResponses);\n\n var updatedOwners = _this11._publishQueue.run();\n\n _this11._updateOperationTracker(updatedOwners);\n\n _this11._processPayloadFollowups(payloadFollowups);\n });\n }\n }\n /**\n * Lookup the placeholder the describes how to process an incremental\n * response, normalize/publish it, and process any nested defer/match/stream\n * metadata.\n */\n ;\n\n _proto._processIncrementalResponses = function _processIncrementalResponses(incrementalResponses) {\n var _this12 = this;\n\n var relayPayloads = [];\n incrementalResponses.forEach(function (incrementalResponse) {\n var label = incrementalResponse.label,\n path = incrementalResponse.path,\n response = incrementalResponse.response;\n\n var resultForLabel = _this12._incrementalResults.get(label);\n\n if (resultForLabel == null) {\n resultForLabel = new Map();\n\n _this12._incrementalResults.set(label, resultForLabel);\n }\n\n if (label.indexOf('$defer$') !== -1) {\n var pathKey = path.map(String).join('.');\n var resultForPath = resultForLabel.get(pathKey);\n\n if (resultForPath == null) {\n resultForPath = {\n kind: 'response',\n responses: [incrementalResponse]\n };\n resultForLabel.set(pathKey, resultForPath);\n return;\n } else if (resultForPath.kind === 'response') {\n resultForPath.responses.push(incrementalResponse);\n return;\n }\n\n var placeholder = resultForPath.placeholder;\n !(placeholder.kind === 'defer') ? true ? invariant(false, 'RelayModernEnvironment: Expected data for path `%s` for label `%s` ' + 'to be data for @defer, was `@%s`.', pathKey, label, placeholder.kind) : undefined : void 0;\n relayPayloads.push(_this12._processDeferResponse(label, path, placeholder, response));\n } else {\n // @stream payload path values end in the field name and item index,\n // but Relay records paths relative to the parent of the stream node:\n // therefore we strip the last two elements just to lookup the path\n // (the item index is used later to insert the element in the list)\n var _pathKey = path.slice(0, -2).map(String).join('.');\n\n var _resultForPath = resultForLabel.get(_pathKey);\n\n if (_resultForPath == null) {\n _resultForPath = {\n kind: 'response',\n responses: [incrementalResponse]\n };\n resultForLabel.set(_pathKey, _resultForPath);\n return;\n } else if (_resultForPath.kind === 'response') {\n _resultForPath.responses.push(incrementalResponse);\n\n return;\n }\n\n var _placeholder = _resultForPath.placeholder;\n !(_placeholder.kind === 'stream') ? true ? invariant(false, 'RelayModernEnvironment: Expected data for path `%s` for label `%s` ' + 'to be data for @stream, was `@%s`.', _pathKey, label, _placeholder.kind) : undefined : void 0;\n relayPayloads.push(_this12._processStreamResponse(label, path, _placeholder, response));\n }\n });\n return relayPayloads;\n };\n\n _proto._processDeferResponse = function _processDeferResponse(label, path, placeholder, response) {\n var parentID = placeholder.selector.dataID;\n var relayPayload = normalizeResponse(response, placeholder.selector, placeholder.typeName, {\n getDataID: this._getDataID,\n path: placeholder.path,\n request: this._operation.request\n });\n\n this._publishQueue.commitPayload(this._operation, relayPayload); // Load the version of the parent record from which this incremental data\n // was derived\n\n\n var parentEntry = this._source.get(parentID);\n\n !(parentEntry != null) ? true ? invariant(false, 'RelayModernEnvironment: Expected the parent record `%s` for @defer ' + 'data to exist.', parentID) : undefined : void 0;\n var fieldPayloads = parentEntry.fieldPayloads;\n\n if (fieldPayloads.length !== 0) {\n var _response$extensions2;\n\n var handleFieldsRelayPayload = {\n errors: null,\n fieldPayloads: fieldPayloads,\n incrementalPlaceholders: null,\n moduleImportPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: ((_response$extensions2 = response.extensions) === null || _response$extensions2 === void 0 ? void 0 : _response$extensions2.is_final) === true\n };\n\n this._publishQueue.commitPayload(this._operation, handleFieldsRelayPayload);\n }\n\n return relayPayload;\n }\n /**\n * Process the data for one item in a @stream field.\n */\n ;\n\n _proto._processStreamResponse = function _processStreamResponse(label, path, placeholder, response) {\n var parentID = placeholder.parentID,\n node = placeholder.node,\n variables = placeholder.variables; // Find the LinkedField where @stream was applied\n\n var field = node.selections[0];\n !(field != null && field.kind === 'LinkedField' && field.plural === true) ? true ? invariant(false, 'RelayModernEnvironment: Expected @stream to be used on a plural field.') : undefined : void 0;\n\n var _this$_normalizeStrea = this._normalizeStreamItem(response, parentID, field, variables, path, placeholder.path),\n fieldPayloads = _this$_normalizeStrea.fieldPayloads,\n itemID = _this$_normalizeStrea.itemID,\n itemIndex = _this$_normalizeStrea.itemIndex,\n prevIDs = _this$_normalizeStrea.prevIDs,\n relayPayload = _this$_normalizeStrea.relayPayload,\n storageKey = _this$_normalizeStrea.storageKey; // Publish the new item and update the parent record to set\n // field[index] = item *if* the parent record hasn't been concurrently\n // modified.\n\n\n this._publishQueue.commitPayload(this._operation, relayPayload, function (store) {\n var currentParentRecord = store.get(parentID);\n\n if (currentParentRecord == null) {\n // parent has since been deleted, stream data is stale\n return;\n }\n\n var currentItems = currentParentRecord.getLinkedRecords(storageKey);\n\n if (currentItems == null) {\n // field has since been deleted, stream data is stale\n return;\n }\n\n if (currentItems.length !== prevIDs.length || currentItems.some(function (currentItem, index) {\n return prevIDs[index] !== (currentItem && currentItem.getDataID());\n })) {\n // field has been modified by something other than this query,\n // stream data is stale\n return;\n } // parent.field has not been concurrently modified:\n // update `parent.field[index] = item`\n\n\n var nextItems = (0, _toConsumableArray2[\"default\"])(currentItems);\n nextItems[itemIndex] = store.get(itemID);\n currentParentRecord.setLinkedRecords(nextItems, storageKey);\n }); // Now that the parent record has been updated to include the new item,\n // also update any handle fields that are derived from the parent record.\n\n\n if (fieldPayloads.length !== 0) {\n var handleFieldsRelayPayload = {\n errors: null,\n fieldPayloads: fieldPayloads,\n incrementalPlaceholders: null,\n moduleImportPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: false\n };\n\n this._publishQueue.commitPayload(this._operation, handleFieldsRelayPayload);\n }\n\n return relayPayload;\n };\n\n _proto._normalizeStreamItem = function _normalizeStreamItem(response, parentID, field, variables, path, normalizationPath) {\n var _field$alias, _field$concreteType, _this$_getDataID;\n\n var data = response.data;\n !(typeof data === 'object') ? true ? invariant(false, 'RelayModernEnvironment: Expected the GraphQL @stream payload `data` ' + 'value to be an object.') : undefined : void 0;\n var responseKey = (_field$alias = field.alias) !== null && _field$alias !== void 0 ? _field$alias : field.name;\n var storageKey = getStorageKey(field, variables); // Load the version of the parent record from which this incremental data\n // was derived\n\n var parentEntry = this._source.get(parentID);\n\n !(parentEntry != null) ? true ? invariant(false, 'RelayModernEnvironment: Expected the parent record `%s` for @stream ' + 'data to exist.', parentID) : undefined : void 0;\n var parentRecord = parentEntry.record,\n fieldPayloads = parentEntry.fieldPayloads; // Load the field value (items) that were created by *this* query executor\n // in order to check if there has been any concurrent modifications by some\n // other operation.\n\n var prevIDs = RelayModernRecord.getLinkedRecordIDs(parentRecord, storageKey);\n !(prevIDs != null) ? true ? invariant(false, 'RelayModernEnvironment: Expected record `%s` to have fetched field ' + '`%s` with @stream.', parentID, field.name) : undefined : void 0; // Determine the index in the field of the new item\n\n var finalPathEntry = path[path.length - 1];\n var itemIndex = parseInt(finalPathEntry, 10);\n !(itemIndex === finalPathEntry && itemIndex >= 0) ? true ? invariant(false, 'RelayModernEnvironment: Expected path for @stream to end in a ' + 'positive integer index, got `%s`', finalPathEntry) : undefined : void 0;\n var typeName = (_field$concreteType = field.concreteType) !== null && _field$concreteType !== void 0 ? _field$concreteType : data[TYPENAME_KEY];\n !(typeof typeName === 'string') ? true ? invariant(false, 'RelayModernEnvironment: Expected @stream field `%s` to have a ' + '__typename.', field.name) : undefined : void 0; // Determine the __id of the new item: this must equal the value that would\n // be assigned had the item not been streamed\n\n var itemID = // https://github.com/prettier/prettier/issues/6403\n // prettier-ignore\n ((_this$_getDataID = this._getDataID(data, typeName)) !== null && _this$_getDataID !== void 0 ? _this$_getDataID : prevIDs && prevIDs[itemIndex]) || // Reuse previously generated client IDs\n generateClientID(parentID, storageKey, itemIndex);\n !(typeof itemID === 'string') ? true ? invariant(false, 'RelayModernEnvironment: Expected id of elements of field `%s` to ' + 'be strings.', storageKey) : undefined : void 0; // Build a selector to normalize the item data with\n\n var selector = createNormalizationSelector(field, itemID, variables); // Update the cached version of the parent record to reflect the new item:\n // this is used when subsequent stream payloads arrive to see if there\n // have been concurrent modifications to the list\n\n var nextParentRecord = RelayModernRecord.clone(parentRecord);\n var nextIDs = (0, _toConsumableArray2[\"default\"])(prevIDs);\n nextIDs[itemIndex] = itemID;\n RelayModernRecord.setLinkedRecordIDs(nextParentRecord, storageKey, nextIDs);\n\n this._source.set(parentID, {\n record: nextParentRecord,\n fieldPayloads: fieldPayloads\n });\n\n var relayPayload = normalizeResponse(response, selector, typeName, {\n getDataID: this._getDataID,\n path: [].concat((0, _toConsumableArray2[\"default\"])(normalizationPath), [responseKey, String(itemIndex)]),\n request: this._operation.request\n });\n return {\n fieldPayloads: fieldPayloads,\n itemID: itemID,\n itemIndex: itemIndex,\n prevIDs: prevIDs,\n relayPayload: relayPayload,\n storageKey: storageKey\n };\n };\n\n _proto._updateOperationTracker = function _updateOperationTracker(updatedOwners) {\n if (this._operationTracker != null && updatedOwners != null && updatedOwners.length > 0) {\n this._operationTracker.update(this._operation.request, new Set(updatedOwners));\n }\n };\n\n _proto._completeOperationTracker = function _completeOperationTracker() {\n if (this._operationTracker != null) {\n this._operationTracker.complete(this._operation.request);\n }\n };\n\n return Executor;\n}();\n\nfunction partitionGraphQLResponses(responses) {\n var nonIncrementalResponses = [];\n var incrementalResponses = [];\n responses.forEach(function (response) {\n if (response.path != null || response.label != null) {\n var label = response.label,\n path = response.path;\n\n if (label == null || path == null) {\n true ? true ? invariant(false, 'RelayModernQueryExecutor: invalid incremental payload, expected ' + '`path` and `label` to either both be null/undefined, or ' + '`path` to be an `Array<string | number>` and `label` to be a ' + '`string`.') : undefined : undefined;\n }\n\n incrementalResponses.push({\n label: label,\n path: path,\n response: response\n });\n } else {\n nonIncrementalResponses.push(response);\n }\n });\n return [nonIncrementalResponses, incrementalResponses];\n}\n\nfunction normalizeResponse(response, selector, typeName, options) {\n var _response$extensions3;\n\n var data = response.data,\n errors = response.errors;\n var source = RelayRecordSource.create();\n var record = RelayModernRecord.create(selector.dataID, typeName);\n source.set(selector.dataID, record);\n var relayPayload = RelayResponseNormalizer.normalize(source, selector, data, options);\n return (0, _objectSpread2[\"default\"])({}, relayPayload, {\n errors: errors,\n isFinal: ((_response$extensions3 = response.extensions) === null || _response$extensions3 === void 0 ? void 0 : _response$extensions3.is_final) === true\n });\n}\n\nfunction stableStringify(value) {\n var _JSON$stringify;\n\n return (_JSON$stringify = JSON.stringify(stableCopy(value))) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : ''; // null-check for flow\n}\n\nfunction validateOptimisticResponsePayload(payload) {\n var incrementalPlaceholders = payload.incrementalPlaceholders;\n\n if (incrementalPlaceholders != null && incrementalPlaceholders.length !== 0) {\n true ? true ? invariant(false, 'RelayModernQueryExecutor: optimistic responses cannot be returned ' + 'for operations that use incremental data delivery (@defer, ' + '@stream, and @stream_connection).') : undefined : undefined;\n }\n}\n\nmodule.exports = {\n execute: execute\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernQueryExecutor.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernRecord.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernRecord.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar deepFreeze = __webpack_require__(/*! ../util/deepFreeze */ \"../../node_modules/relay-runtime/lib/util/deepFreeze.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ./ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n isClientID = _require.isClientID;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ID_KEY = _require2.ID_KEY,\n REF_KEY = _require2.REF_KEY,\n REFS_KEY = _require2.REFS_KEY,\n TYPENAME_KEY = _require2.TYPENAME_KEY,\n INVALIDATED_AT_KEY = _require2.INVALIDATED_AT_KEY;\n\n/**\n * @public\n *\n * Low-level record manipulation methods.\n *\n * A note about perf: we use long-hand property access rather than computed\n * properties in this file for speed ie.\n *\n * const object = {};\n * object[KEY] = value;\n * record[storageKey] = object;\n *\n * instead of:\n *\n * record[storageKey] = {\n * [KEY]: value,\n * };\n *\n * The latter gets transformed by Babel into something like:\n *\n * function _defineProperty(obj, key, value) {\n * if (key in obj) {\n * Object.defineProperty(obj, key, {\n * value: value,\n * enumerable: true,\n * configurable: true,\n * writable: true,\n * });\n * } else {\n * obj[key] = value;\n * }\n * return obj;\n * }\n *\n * record[storageKey] = _defineProperty({}, KEY, value);\n *\n * A quick benchmark shows that computed property access is an order of\n * magnitude slower (times in seconds for 100,000 iterations):\n *\n * best avg sd\n * computed 0.02175 0.02292 0.00113\n * manual 0.00110 0.00123 0.00008\n */\n\n/**\n * @public\n *\n * Clone a record.\n */\nfunction clone(record) {\n return (0, _objectSpread2[\"default\"])({}, record);\n}\n/**\n * @public\n *\n * Copies all fields from `source` to `sink`, excluding `__id` and `__typename`.\n *\n * NOTE: This function does not treat `id` specially. To preserve the id,\n * manually reset it after calling this function. Also note that values are\n * copied by reference and not value; callers should ensure that values are\n * copied on write.\n */\n\n\nfunction copyFields(source, sink) {\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n if (key !== ID_KEY && key !== TYPENAME_KEY) {\n sink[key] = source[key];\n }\n }\n }\n}\n/**\n * @public\n *\n * Create a new record.\n */\n\n\nfunction create(dataID, typeName) {\n // See perf note above for why we aren't using computed property access.\n var record = {};\n record[ID_KEY] = dataID;\n record[TYPENAME_KEY] = typeName;\n return record;\n}\n/**\n * @public\n *\n * Get the record's `id` if available or the client-generated identifier.\n */\n\n\nfunction getDataID(record) {\n return record[ID_KEY];\n}\n/**\n * @public\n *\n * Get the concrete type of the record.\n */\n\n\nfunction getType(record) {\n return record[TYPENAME_KEY];\n}\n/**\n * @public\n *\n * Get a scalar (non-link) field value.\n */\n\n\nfunction getValue(record, storageKey) {\n var value = record[storageKey];\n\n if (value && typeof value === 'object') {\n !(!value.hasOwnProperty(REF_KEY) && !value.hasOwnProperty(REFS_KEY)) ? true ? invariant(false, 'RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` ' + 'but found %s.', record[ID_KEY], storageKey, value.hasOwnProperty(REF_KEY) ? 'a linked record' : 'plural linked records') : undefined : void 0;\n }\n\n return value;\n}\n/**\n * @public\n *\n * Get the value of a field as a reference to another record. Throws if the\n * field has a different type.\n */\n\n\nfunction getLinkedRecordID(record, storageKey) {\n var link = record[storageKey];\n\n if (link == null) {\n return link;\n }\n\n !(typeof link === 'object' && link && typeof link[REF_KEY] === 'string') ? true ? invariant(false, 'RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, ' + 'was `%s`.', record[ID_KEY], storageKey, JSON.stringify(link)) : undefined : void 0;\n return link[REF_KEY];\n}\n/**\n * @public\n *\n * Get the value of a field as a list of references to other records. Throws if\n * the field has a different type.\n */\n\n\nfunction getLinkedRecordIDs(record, storageKey) {\n var links = record[storageKey];\n\n if (links == null) {\n return links;\n }\n\n !(typeof links === 'object' && Array.isArray(links[REFS_KEY])) ? true ? invariant(false, 'RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array ' + 'of linked IDs, got `%s`.', record[ID_KEY], storageKey, JSON.stringify(links)) : undefined : void 0; // assume items of the array are ids\n\n return links[REFS_KEY];\n}\n/**\n * @public\n *\n * Returns the epoch at which the record was invalidated, if it\n * ever was; otherwise returns null;\n */\n\n\nfunction getInvalidationEpoch(record) {\n if (record == null) {\n return null;\n }\n\n var invalidatedAt = record[INVALIDATED_AT_KEY];\n\n if (typeof invalidatedAt !== 'number') {\n // If the record has never been invalidated, it isn't stale.\n return null;\n }\n\n return invalidatedAt;\n}\n/**\n * @public\n *\n * Compares the fields of a previous and new record, returning either the\n * previous record if all fields are equal or a new record (with merged fields)\n * if any fields have changed.\n */\n\n\nfunction update(prevRecord, nextRecord) {\n if (true) {\n var _getType, _getType2;\n\n var prevID = getDataID(prevRecord);\n var nextID = getDataID(nextRecord);\n true ? warning(prevID === nextID, 'RelayModernRecord: Invalid record update, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, nextID) : undefined; // note: coalesce null/undefined to null\n\n var prevType = (_getType = getType(prevRecord)) !== null && _getType !== void 0 ? _getType : null;\n var nextType = (_getType2 = getType(nextRecord)) !== null && _getType2 !== void 0 ? _getType2 : null;\n true ? warning(isClientID(nextID) || prevType === nextType, 'RelayModernRecord: Invalid record update, expected both versions of ' + 'record `%s` to have the same `%s` but got conflicting types `%s` ' + 'and `%s`. The GraphQL server likely violated the globally unique ' + 'id requirement by returning the same id for different objects.', prevID, TYPENAME_KEY, prevType, nextType) : undefined;\n }\n\n var updated = null;\n var keys = Object.keys(nextRecord);\n\n for (var ii = 0; ii < keys.length; ii++) {\n var key = keys[ii];\n\n if (updated || !areEqual(prevRecord[key], nextRecord[key])) {\n updated = updated !== null ? updated : (0, _objectSpread2[\"default\"])({}, prevRecord);\n updated[key] = nextRecord[key];\n }\n }\n\n return updated !== null ? updated : prevRecord;\n}\n/**\n * @public\n *\n * Returns a new record with the contents of the given records. Fields in the\n * second record will overwrite identical fields in the first record.\n */\n\n\nfunction merge(record1, record2) {\n if (true) {\n var _getType3, _getType4;\n\n var prevID = getDataID(record1);\n var nextID = getDataID(record2);\n true ? warning(prevID === nextID, 'RelayModernRecord: Invalid record merge, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, nextID) : undefined; // note: coalesce null/undefined to null\n\n var prevType = (_getType3 = getType(record1)) !== null && _getType3 !== void 0 ? _getType3 : null;\n var nextType = (_getType4 = getType(record2)) !== null && _getType4 !== void 0 ? _getType4 : null;\n true ? warning(isClientID(nextID) || prevType === nextType, 'RelayModernRecord: Invalid record merge, expected both versions of ' + 'record `%s` to have the same `%s` but got conflicting types `%s` ' + 'and `%s`. The GraphQL server likely violated the globally unique ' + 'id requirement by returning the same id for different objects.', prevID, TYPENAME_KEY, prevType, nextType) : undefined;\n }\n\n return Object.assign({}, record1, record2);\n}\n/**\n * @public\n *\n * Prevent modifications to the record. Attempts to call `set*` functions on a\n * frozen record will fatal at runtime.\n */\n\n\nfunction freeze(record) {\n deepFreeze(record);\n}\n/**\n * @public\n *\n * Set the value of a storageKey to a scalar.\n */\n\n\nfunction setValue(record, storageKey, value) {\n if (true) {\n var prevID = getDataID(record);\n\n if (storageKey === ID_KEY) {\n true ? warning(prevID === value, 'RelayModernRecord: Invalid field update, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, value) : undefined;\n } else if (storageKey === TYPENAME_KEY) {\n var _getType5, _value;\n\n // note: coalesce null/undefined to null\n var prevType = (_getType5 = getType(record)) !== null && _getType5 !== void 0 ? _getType5 : null;\n var nextType = (_value = value) !== null && _value !== void 0 ? _value : null;\n true ? warning(isClientID(getDataID(record)) || prevType === nextType, 'RelayModernRecord: Invalid field update, expected both versions of ' + 'record `%s` to have the same `%s` but got conflicting types `%s` ' + 'and `%s`. The GraphQL server likely violated the globally unique ' + 'id requirement by returning the same id for different objects.', prevID, TYPENAME_KEY, prevType, nextType) : undefined;\n }\n }\n\n record[storageKey] = value;\n}\n/**\n * @public\n *\n * Set the value of a field to a reference to another record.\n */\n\n\nfunction setLinkedRecordID(record, storageKey, linkedID) {\n // See perf note above for why we aren't using computed property access.\n var link = {};\n link[REF_KEY] = linkedID;\n record[storageKey] = link;\n}\n/**\n * @public\n *\n * Set the value of a field to a list of references other records.\n */\n\n\nfunction setLinkedRecordIDs(record, storageKey, linkedIDs) {\n // See perf note above for why we aren't using computed property access.\n var links = {};\n links[REFS_KEY] = linkedIDs;\n record[storageKey] = links;\n}\n\nmodule.exports = {\n clone: clone,\n copyFields: copyFields,\n create: create,\n freeze: freeze,\n getDataID: getDataID,\n getInvalidationEpoch: getInvalidationEpoch,\n getLinkedRecordID: getLinkedRecordID,\n getLinkedRecordIDs: getLinkedRecordIDs,\n getType: getType,\n getValue: getValue,\n merge: merge,\n setValue: setValue,\n setLinkedRecordID: setLinkedRecordID,\n setLinkedRecordIDs: setLinkedRecordIDs,\n update: update\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernRecord.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernSelector.js":
/*!**********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernSelector.js ***!
\**********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ./RelayConcreteVariables */ \"../../node_modules/relay-runtime/lib/store/RelayConcreteVariables.js\"),\n getFragmentVariables = _require.getFragmentVariables;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n FRAGMENT_OWNER_KEY = _require2.FRAGMENT_OWNER_KEY,\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY,\n ID_KEY = _require2.ID_KEY;\n\n/**\n * @public\n *\n * Given the result `item` from a parent that fetched `fragment`, creates a\n * selector that can be used to read the results of that fragment for that item.\n *\n * Example:\n *\n * Given two fragments as follows:\n *\n * ```\n * fragment Parent on User {\n * id\n * ...Child\n * }\n * fragment Child on User {\n * name\n * }\n * ```\n *\n * And given some object `parent` that is the results of `Parent` for id \"4\",\n * the results of `Child` can be accessed by first getting a selector and then\n * using that selector to `lookup()` the results against the environment:\n *\n * ```\n * const childSelector = getSingularSelector(queryVariables, Child, parent);\n * const childData = environment.lookup(childSelector).data;\n * ```\n */\nfunction getSingularSelector(fragment, item) {\n !(typeof item === 'object' && item !== null && !Array.isArray(item)) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an object, got ' + '`%s`.', fragment.name, JSON.stringify(item)) : undefined : void 0;\n var dataID = item[ID_KEY];\n var fragments = item[FRAGMENTS_KEY];\n var mixedOwner = item[FRAGMENT_OWNER_KEY];\n\n if (typeof dataID === 'string' && typeof fragments === 'object' && fragments !== null && typeof fragments[fragment.name] === 'object' && fragments[fragment.name] !== null && typeof mixedOwner === 'object' && mixedOwner !== null) {\n var owner = mixedOwner;\n var argumentVariables = fragments[fragment.name];\n var fragmentVariables = getFragmentVariables(fragment, owner.variables, argumentVariables);\n return createReaderSelector(fragment, dataID, fragmentVariables, owner);\n }\n\n if (true) {\n var stringifiedItem = JSON.stringify(item);\n\n if (stringifiedItem.length > 499) {\n stringifiedItem = stringifiedItem.substr(0, 498) + \"\\u2026\";\n }\n\n true ? warning(false, 'RelayModernSelector: Expected object to contain data for fragment `%s`, got ' + '`%s`. Make sure that the parent operation/fragment included fragment ' + '`...%s` without `@relay(mask: false)`.', fragment.name, stringifiedItem, fragment.name) : undefined;\n }\n\n return null;\n}\n/**\n * @public\n *\n * Given the result `items` from a parent that fetched `fragment`, creates a\n * selector that can be used to read the results of that fragment on those\n * items. This is similar to `getSingularSelector` but for \"plural\" fragments that\n * expect an array of results and therefore return an array of selectors.\n */\n\n\nfunction getPluralSelector(fragment, items) {\n var selectors = null;\n items.forEach(function (item, ii) {\n var selector = item != null ? getSingularSelector(fragment, item) : null;\n\n if (selector != null) {\n selectors = selectors || [];\n selectors.push(selector);\n }\n });\n\n if (selectors == null) {\n return null;\n } else {\n return {\n kind: 'PluralReaderSelector',\n selectors: selectors\n };\n }\n}\n\nfunction getSelector(fragment, item) {\n if (item == null) {\n return item;\n } else if (fragment.metadata && fragment.metadata.plural === true) {\n !Array.isArray(item) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. ' + 'Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getPluralSelector(fragment, item);\n } else {\n !!Array.isArray(item) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. ' + 'Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getSingularSelector(fragment, item);\n }\n}\n/**\n * @public\n *\n * Given a mapping of keys -> results and a mapping of keys -> fragments,\n * extracts the selectors for those fragments from the results.\n *\n * The canonical use-case for this function is ReactRelayFragmentContainer, which\n * uses this function to convert (props, fragments) into selectors so that it\n * can read the results to pass to the inner component.\n */\n\n\nfunction getSelectorsFromObject(fragments, object) {\n var selectors = {};\n\n for (var _key in fragments) {\n if (fragments.hasOwnProperty(_key)) {\n var fragment = fragments[_key];\n var item = object[_key];\n selectors[_key] = getSelector(fragment, item);\n }\n }\n\n return selectors;\n}\n/**\n * @public\n *\n * Given a mapping of keys -> results and a mapping of keys -> fragments,\n * extracts a mapping of keys -> id(s) of the results.\n *\n * Similar to `getSelectorsFromObject()`, this function can be useful in\n * determining the \"identity\" of the props passed to a component.\n */\n\n\nfunction getDataIDsFromObject(fragments, object) {\n var ids = {};\n\n for (var _key2 in fragments) {\n if (fragments.hasOwnProperty(_key2)) {\n var fragment = fragments[_key2];\n var item = object[_key2];\n ids[_key2] = getDataIDsFromFragment(fragment, item);\n }\n }\n\n return ids;\n}\n\nfunction getDataIDsFromFragment(fragment, item) {\n if (item == null) {\n return item;\n } else if (fragment.metadata && fragment.metadata.plural === true) {\n !Array.isArray(item) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. ' + 'Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getDataIDs(fragment, item);\n } else {\n !!Array.isArray(item) ? true ? invariant(false, 'RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. ' + 'Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getDataID(fragment, item);\n }\n}\n/**\n * @internal\n */\n\n\nfunction getDataIDs(fragment, items) {\n var ids = null;\n items.forEach(function (item) {\n var id = item != null ? getDataID(fragment, item) : null;\n\n if (id != null) {\n ids = ids || [];\n ids.push(id);\n }\n });\n return ids;\n}\n/**\n * @internal\n */\n\n\nfunction getDataID(fragment, item) {\n !(typeof item === 'object' && item !== null && !Array.isArray(item)) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an object, got ' + '`%s`.', fragment.name, JSON.stringify(item)) : undefined : void 0;\n var dataID = item[ID_KEY];\n\n if (typeof dataID === 'string') {\n return dataID;\n }\n\n true ? warning(false, 'RelayModernSelector: Expected object to contain data for fragment `%s`, got ' + '`%s`. Make sure that the parent operation/fragment included fragment ' + '`...%s` without `@relay(mask: false)`, or `null` is passed as the fragment ' + \"reference for `%s` if it's conditonally included and the condition isn't met.\", fragment.name, JSON.stringify(item), fragment.name, fragment.name) : undefined;\n return null;\n}\n/**\n * @public\n *\n * Given a mapping of keys -> results and a mapping of keys -> fragments,\n * extracts the merged variables that would be in scope for those\n * fragments/results.\n *\n * This can be useful in determing what varaibles were used to fetch the data\n * for a Relay container, for example.\n */\n\n\nfunction getVariablesFromObject(fragments, object) {\n var variables = {};\n\n for (var _key3 in fragments) {\n if (fragments.hasOwnProperty(_key3)) {\n var fragment = fragments[_key3];\n var item = object[_key3];\n var itemVariables = getVariablesFromFragment(fragment, item);\n Object.assign(variables, itemVariables);\n }\n }\n\n return variables;\n}\n\nfunction getVariablesFromFragment(fragment, item) {\n var _fragment$metadata;\n\n if (item == null) {\n return {};\n } else if (((_fragment$metadata = fragment.metadata) === null || _fragment$metadata === void 0 ? void 0 : _fragment$metadata.plural) === true) {\n !Array.isArray(item) ? true ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. ' + 'Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getVariablesFromPluralFragment(fragment, item);\n } else {\n !!Array.isArray(item) ? true ? invariant(false, 'RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. ' + 'Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.', fragment.name, JSON.stringify(item), fragment.name) : undefined : void 0;\n return getVariablesFromSingularFragment(fragment, item) || {};\n }\n}\n\nfunction getVariablesFromSingularFragment(fragment, item) {\n var selector = getSingularSelector(fragment, item);\n\n if (!selector) {\n return null;\n }\n\n return selector.variables;\n}\n\nfunction getVariablesFromPluralFragment(fragment, items) {\n var variables = {};\n items.forEach(function (value, ii) {\n if (value != null) {\n var itemVariables = getVariablesFromSingularFragment(fragment, value);\n\n if (itemVariables != null) {\n Object.assign(variables, itemVariables);\n }\n }\n });\n return variables;\n}\n/**\n * @public\n *\n * Determine if two selectors are equal (represent the same selection). Note\n * that this function returns `false` when the two queries/fragments are\n * different objects, even if they select the same fields.\n */\n\n\nfunction areEqualSelectors(thisSelector, thatSelector) {\n return thisSelector.owner === thatSelector.owner && thisSelector.dataID === thatSelector.dataID && thisSelector.node === thatSelector.node && areEqual(thisSelector.variables, thatSelector.variables);\n}\n\nfunction createReaderSelector(fragment, dataID, variables, request) {\n return {\n kind: 'SingularReaderSelector',\n dataID: dataID,\n node: fragment,\n variables: variables,\n owner: request\n };\n}\n\nfunction createNormalizationSelector(node, dataID, variables) {\n return {\n dataID: dataID,\n node: node,\n variables: variables\n };\n}\n\nmodule.exports = {\n areEqualSelectors: areEqualSelectors,\n createReaderSelector: createReaderSelector,\n createNormalizationSelector: createNormalizationSelector,\n getDataIDsFromFragment: getDataIDsFromFragment,\n getDataIDsFromObject: getDataIDsFromObject,\n getSingularSelector: getSingularSelector,\n getPluralSelector: getPluralSelector,\n getSelector: getSelector,\n getSelectorsFromObject: getSelectorsFromObject,\n getVariablesFromSingularFragment: getVariablesFromSingularFragment,\n getVariablesFromPluralFragment: getVariablesFromPluralFragment,\n getVariablesFromFragment: getVariablesFromFragment,\n getVariablesFromObject: getVariablesFromObject\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernSelector.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayModernStore.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernStore.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar DataChecker = __webpack_require__(/*! ./DataChecker */ \"../../node_modules/relay-runtime/lib/store/DataChecker.js\");\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayOptimisticRecordSource = __webpack_require__(/*! ./RelayOptimisticRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayOptimisticRecordSource.js\");\n\nvar RelayProfiler = __webpack_require__(/*! ../util/RelayProfiler */ \"../../node_modules/relay-runtime/lib/util/RelayProfiler.js\");\n\nvar RelayReader = __webpack_require__(/*! ./RelayReader */ \"../../node_modules/relay-runtime/lib/store/RelayReader.js\");\n\nvar RelayReferenceMarker = __webpack_require__(/*! ./RelayReferenceMarker */ \"../../node_modules/relay-runtime/lib/store/RelayReferenceMarker.js\");\n\nvar RelayStoreUtils = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\");\n\nvar deepFreeze = __webpack_require__(/*! ../util/deepFreeze */ \"../../node_modules/relay-runtime/lib/util/deepFreeze.js\");\n\nvar defaultGetDataID = __webpack_require__(/*! ./defaultGetDataID */ \"../../node_modules/relay-runtime/lib/store/defaultGetDataID.js\");\n\nvar hasOverlappingIDs = __webpack_require__(/*! ./hasOverlappingIDs */ \"../../node_modules/relay-runtime/lib/store/hasOverlappingIDs.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar recycleNodesInto = __webpack_require__(/*! ../util/recycleNodesInto */ \"../../node_modules/relay-runtime/lib/util/recycleNodesInto.js\");\n\nvar resolveImmediate = __webpack_require__(/*! ../util/resolveImmediate */ \"../../node_modules/relay-runtime/lib/util/resolveImmediate.js\");\n\nvar _require = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ROOT_ID = _require.ROOT_ID,\n ROOT_TYPE = _require.ROOT_TYPE;\n\nvar DEFAULT_RELEASE_BUFFER_SIZE = 0;\n/**\n * @public\n *\n * An implementation of the `Store` interface defined in `RelayStoreTypes`.\n *\n * Note that a Store takes ownership of all records provided to it: other\n * objects may continue to hold a reference to such records but may not mutate\n * them. The static Relay core is architected to avoid mutating records that may have been\n * passed to a store: operations that mutate records will either create fresh\n * records or clone existing records and modify the clones. Record immutability\n * is also enforced in development mode by freezing all records passed to a store.\n */\n\nvar RelayModernStore =\n/*#__PURE__*/\nfunction () {\n function RelayModernStore(source, options) {\n var _ref, _ref2, _ref3, _ref4;\n\n // Prevent mutation of a record from outside the store.\n if (true) {\n var storeIDs = source.getRecordIDs();\n\n for (var ii = 0; ii < storeIDs.length; ii++) {\n var record = source.get(storeIDs[ii]);\n\n if (record) {\n RelayModernRecord.freeze(record);\n }\n }\n }\n\n this._currentWriteEpoch = 0;\n this._gcHoldCounter = 0;\n this._gcReleaseBufferSize = (_ref = options === null || options === void 0 ? void 0 : options.gcReleaseBufferSize) !== null && _ref !== void 0 ? _ref : DEFAULT_RELEASE_BUFFER_SIZE;\n this._gcScheduler = (_ref2 = options === null || options === void 0 ? void 0 : options.gcScheduler) !== null && _ref2 !== void 0 ? _ref2 : resolveImmediate;\n this._getDataID = (_ref3 = options === null || options === void 0 ? void 0 : options.UNSTABLE_DO_NOT_USE_getDataID) !== null && _ref3 !== void 0 ? _ref3 : defaultGetDataID;\n this._globalInvalidationEpoch = null;\n this._hasScheduledGC = false;\n this._index = 0;\n this._invalidationSubscriptions = new Set();\n this._invalidatedRecordIDs = new Set();\n this._operationLoader = (_ref4 = options === null || options === void 0 ? void 0 : options.operationLoader) !== null && _ref4 !== void 0 ? _ref4 : null;\n this._optimisticSource = null;\n this._recordSource = source;\n this._releaseBuffer = [];\n this._roots = new Map();\n this._shouldScheduleGC = false;\n this._subscriptions = new Set();\n this._updatedRecordIDs = {};\n initializeRecordSource(this._recordSource);\n }\n\n var _proto = RelayModernStore.prototype;\n\n _proto.getSource = function getSource() {\n var _this$_optimisticSour;\n\n return (_this$_optimisticSour = this._optimisticSource) !== null && _this$_optimisticSour !== void 0 ? _this$_optimisticSour : this._recordSource;\n };\n\n _proto.check = function check(operation, options) {\n var _this$_optimisticSour2, _ref5, _ref6;\n\n var selector = operation.root;\n var source = (_this$_optimisticSour2 = this._optimisticSource) !== null && _this$_optimisticSour2 !== void 0 ? _this$_optimisticSour2 : this._recordSource;\n var globalInvalidationEpoch = this._globalInvalidationEpoch;\n\n var rootEntry = this._roots.get(operation.request.identifier);\n\n var operationLastWrittenAt = rootEntry != null ? rootEntry.epoch : null; // Check if store has been globally invalidated\n\n if (globalInvalidationEpoch != null) {\n // If so, check if the operation we're checking was last written\n // before or after invalidation occured.\n if (operationLastWrittenAt == null || operationLastWrittenAt <= globalInvalidationEpoch) {\n // If the operation was written /before/ global invalidation ocurred,\n // or if this operation has never been written to the store before,\n // we will consider the data for this operation to be stale\n // (i.e. not resolvable from the store).\n return {\n status: 'stale'\n };\n }\n }\n\n var target = (_ref5 = options === null || options === void 0 ? void 0 : options.target) !== null && _ref5 !== void 0 ? _ref5 : source;\n var handlers = (_ref6 = options === null || options === void 0 ? void 0 : options.handlers) !== null && _ref6 !== void 0 ? _ref6 : [];\n var operationAvailability = DataChecker.check(source, target, selector, handlers, this._operationLoader, this._getDataID);\n return getAvailablityStatus(operationAvailability, operationLastWrittenAt, rootEntry === null || rootEntry === void 0 ? void 0 : rootEntry.fetchTime);\n };\n\n _proto.retain = function retain(operation) {\n var _this = this;\n\n var id = operation.request.identifier;\n\n var dispose = function dispose() {\n // When disposing, instead of immediately decrementing the refCount and\n // potentially deleting/collecting the root, move the operation onto\n // the release buffer. When the operation is extracted from the release\n // buffer, we will determine if it needs to be collected.\n _this._releaseBuffer.push(id); // Only when the release buffer is full do we actually:\n // - extract the least recent operation in the release buffer\n // - attempt to release it and run GC if it's no longer referenced\n // (refCount reached 0).\n\n\n if (_this._releaseBuffer.length > _this._gcReleaseBufferSize) {\n var _id = _this._releaseBuffer.shift();\n\n var _rootEntry = _this._roots.get(_id);\n\n if (_rootEntry == null) {\n // If operation has already been fully released, we don't need\n // to do anything.\n return;\n }\n\n if (_rootEntry.refCount > 0) {\n // If the operation is still retained by other callers\n // decrement the refCount\n _rootEntry.refCount -= 1;\n } else {\n // Otherwise fully release the query and run GC.\n _this._roots[\"delete\"](_id);\n\n _this._scheduleGC();\n }\n }\n };\n\n var rootEntry = this._roots.get(id);\n\n if (rootEntry != null) {\n // If we've previously retained this operation, inrement the refCount\n rootEntry.refCount += 1;\n } else {\n // Otherwise create a new entry for the operation\n this._roots.set(id, {\n operation: operation,\n refCount: 0,\n epoch: null,\n fetchTime: null\n });\n }\n\n return {\n dispose: dispose\n };\n };\n\n _proto.lookup = function lookup(selector) {\n var source = this.getSource();\n var snapshot = RelayReader.read(source, selector);\n\n if (true) {\n deepFreeze(snapshot);\n }\n\n return snapshot;\n } // This method will return a list of updated owners form the subscriptions\n ;\n\n _proto.notify = function notify(sourceOperation, invalidateStore) {\n var _this2 = this;\n\n // Increment the current write when notifying after executing\n // a set of changes to the store.\n this._currentWriteEpoch++;\n\n if (invalidateStore === true) {\n this._globalInvalidationEpoch = this._currentWriteEpoch;\n }\n\n var source = this.getSource();\n var updatedOwners = [];\n\n this._subscriptions.forEach(function (subscription) {\n var owner = _this2._updateSubscription(source, subscription);\n\n if (owner != null) {\n updatedOwners.push(owner);\n }\n });\n\n this._invalidationSubscriptions.forEach(function (subscription) {\n _this2._updateInvalidationSubscription(subscription, invalidateStore === true);\n });\n\n this._updatedRecordIDs = {};\n\n this._invalidatedRecordIDs.clear(); // If a source operation was provided (indicating the operation\n // that produced this update to the store), record the current epoch\n // at which this operation was written.\n\n\n if (sourceOperation != null) {\n // We only track the epoch at which the operation was written if\n // it was previously retained, to keep the size of our operation\n // epoch map bounded. If a query wasn't retained, we assume it can\n // may be deleted at any moment and thus is not relevant for us to track\n // for the purposes of invalidation.\n var id = sourceOperation.request.identifier;\n\n var rootEntry = this._roots.get(id);\n\n if (rootEntry != null) {\n var _rootEntry$fetchTime;\n\n rootEntry.epoch = this._currentWriteEpoch;\n rootEntry.fetchTime = (_rootEntry$fetchTime = rootEntry.fetchTime) !== null && _rootEntry$fetchTime !== void 0 ? _rootEntry$fetchTime : Date.now();\n }\n }\n\n return updatedOwners;\n };\n\n _proto.publish = function publish(source, idsMarkedForInvalidation) {\n var _this$_optimisticSour3;\n\n var target = (_this$_optimisticSour3 = this._optimisticSource) !== null && _this$_optimisticSour3 !== void 0 ? _this$_optimisticSour3 : this._recordSource;\n updateTargetFromSource(target, source, // We increment the current epoch at the end of the set of updates,\n // in notify(). Here, we pass what will be the incremented value of\n // the epoch to use to write to invalidated records.\n this._currentWriteEpoch + 1, idsMarkedForInvalidation, this._updatedRecordIDs, this._invalidatedRecordIDs);\n };\n\n _proto.subscribe = function subscribe(snapshot, callback) {\n var _this3 = this;\n\n var subscription = {\n backup: null,\n callback: callback,\n snapshot: snapshot,\n stale: false\n };\n\n var dispose = function dispose() {\n _this3._subscriptions[\"delete\"](subscription);\n };\n\n this._subscriptions.add(subscription);\n\n return {\n dispose: dispose\n };\n };\n\n _proto.holdGC = function holdGC() {\n var _this4 = this;\n\n this._gcHoldCounter++;\n\n var dispose = function dispose() {\n if (_this4._gcHoldCounter > 0) {\n _this4._gcHoldCounter--;\n\n if (_this4._gcHoldCounter === 0 && _this4._shouldScheduleGC) {\n _this4._scheduleGC();\n\n _this4._shouldScheduleGC = false;\n }\n }\n };\n\n return {\n dispose: dispose\n };\n };\n\n _proto.toJSON = function toJSON() {\n return 'RelayModernStore()';\n } // Internal API\n ;\n\n _proto.__getUpdatedRecordIDs = function __getUpdatedRecordIDs() {\n return this._updatedRecordIDs;\n } // Returns the owner (RequestDescriptor) if the subscription was affected by the\n // latest update, or null if it was not affected.\n ;\n\n _proto._updateSubscription = function _updateSubscription(source, subscription) {\n var backup = subscription.backup,\n callback = subscription.callback,\n snapshot = subscription.snapshot,\n stale = subscription.stale;\n var hasOverlappingUpdates = hasOverlappingIDs(snapshot.seenRecords, this._updatedRecordIDs);\n\n if (!stale && !hasOverlappingUpdates) {\n return;\n }\n\n var nextSnapshot = hasOverlappingUpdates || !backup ? RelayReader.read(source, snapshot.selector) : backup;\n var nextData = recycleNodesInto(snapshot.data, nextSnapshot.data);\n nextSnapshot = {\n data: nextData,\n isMissingData: nextSnapshot.isMissingData,\n seenRecords: nextSnapshot.seenRecords,\n selector: nextSnapshot.selector\n };\n\n if (true) {\n deepFreeze(nextSnapshot);\n }\n\n subscription.snapshot = nextSnapshot;\n subscription.stale = false;\n\n if (nextSnapshot.data !== snapshot.data) {\n callback(nextSnapshot);\n return snapshot.selector.owner;\n }\n };\n\n _proto.lookupInvalidationState = function lookupInvalidationState(dataIDs) {\n var _this5 = this;\n\n var invalidations = new Map();\n dataIDs.forEach(function (dataID) {\n var _RelayModernRecord$ge;\n\n var record = _this5.getSource().get(dataID);\n\n invalidations.set(dataID, (_RelayModernRecord$ge = RelayModernRecord.getInvalidationEpoch(record)) !== null && _RelayModernRecord$ge !== void 0 ? _RelayModernRecord$ge : null);\n });\n invalidations.set('global', this._globalInvalidationEpoch);\n return {\n dataIDs: dataIDs,\n invalidations: invalidations\n };\n };\n\n _proto.checkInvalidationState = function checkInvalidationState(prevInvalidationState) {\n var latestInvalidationState = this.lookupInvalidationState(prevInvalidationState.dataIDs);\n var currentInvalidations = latestInvalidationState.invalidations;\n var prevInvalidations = prevInvalidationState.invalidations; // Check if global invalidation has changed\n\n if (currentInvalidations.get('global') !== prevInvalidations.get('global')) {\n return true;\n } // Check if the invalidation state for any of the ids has changed.\n\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = prevInvalidationState.dataIDs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var dataID = _step.value;\n\n if (currentInvalidations.get(dataID) !== prevInvalidations.get(dataID)) {\n return true;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return false;\n };\n\n _proto.subscribeToInvalidationState = function subscribeToInvalidationState(invalidationState, callback) {\n var _this6 = this;\n\n var subscription = {\n callback: callback,\n invalidationState: invalidationState\n };\n\n var dispose = function dispose() {\n _this6._invalidationSubscriptions[\"delete\"](subscription);\n };\n\n this._invalidationSubscriptions.add(subscription);\n\n return {\n dispose: dispose\n };\n };\n\n _proto._updateInvalidationSubscription = function _updateInvalidationSubscription(subscription, invalidatedStore) {\n var _this7 = this;\n\n var callback = subscription.callback,\n invalidationState = subscription.invalidationState;\n var dataIDs = invalidationState.dataIDs;\n var isSubscribedToInvalidatedIDs = invalidatedStore || dataIDs.some(function (dataID) {\n return _this7._invalidatedRecordIDs.has(dataID);\n });\n\n if (!isSubscribedToInvalidatedIDs) {\n return;\n }\n\n callback();\n };\n\n _proto.snapshot = function snapshot() {\n var _this8 = this;\n\n !(this._optimisticSource == null) ? true ? invariant(false, 'RelayModernStore: Unexpected call to snapshot() while a previous ' + 'snapshot exists.') : undefined : void 0;\n\n this._subscriptions.forEach(function (subscription) {\n // Backup occurs after writing a new \"final\" payload(s) and before (re)applying\n // optimistic changes. Each subscription's `snapshot` represents what was *last\n // published to the subscriber*, which notably may include previous optimistic\n // updates. Therefore a subscription can be in any of the following states:\n // - stale=true: This subscription was restored to a different value than\n // `snapshot`. That means this subscription has changes relative to its base,\n // but its base has changed (we just applied a final payload): recompute\n // a backup so that we can later restore to the state the subscription\n // should be in.\n // - stale=false: This subscription was restored to the same value than\n // `snapshot`. That means this subscription does *not* have changes relative\n // to its base, so the current `snapshot` is valid to use as a backup.\n if (!subscription.stale) {\n subscription.backup = subscription.snapshot;\n return;\n }\n\n var snapshot = subscription.snapshot;\n var backup = RelayReader.read(_this8.getSource(), snapshot.selector);\n var nextData = recycleNodesInto(snapshot.data, backup.data);\n backup.data = nextData; // backup owns the snapshot and can safely mutate\n\n subscription.backup = backup;\n });\n\n this._optimisticSource = RelayOptimisticRecordSource.create(this.getSource());\n };\n\n _proto.restore = function restore() {\n !(this._optimisticSource != null) ? true ? invariant(false, 'RelayModernStore: Unexpected call to restore(), expected a snapshot ' + 'to exist (make sure to call snapshot()).') : undefined : void 0;\n this._optimisticSource = null;\n\n this._subscriptions.forEach(function (subscription) {\n var backup = subscription.backup;\n subscription.backup = null;\n\n if (backup) {\n if (backup.data !== subscription.snapshot.data) {\n subscription.stale = true;\n }\n\n subscription.snapshot = {\n data: subscription.snapshot.data,\n isMissingData: backup.isMissingData,\n seenRecords: backup.seenRecords,\n selector: backup.selector\n };\n } else {\n subscription.stale = true;\n }\n });\n };\n\n _proto._scheduleGC = function _scheduleGC() {\n var _this9 = this;\n\n if (this._gcHoldCounter > 0) {\n this._shouldScheduleGC = true;\n return;\n }\n\n if (this._hasScheduledGC) {\n return;\n }\n\n this._hasScheduledGC = true;\n\n this._gcScheduler(function () {\n _this9.__gc();\n\n _this9._hasScheduledGC = false;\n });\n };\n\n _proto.__gc = function __gc() {\n var _this10 = this;\n\n // Don't run GC while there are optimistic updates applied\n if (this._optimisticSource != null) {\n return;\n }\n\n var references = new Set(); // Mark all records that are traversable from a root\n\n this._roots.forEach(function (_ref7) {\n var operation = _ref7.operation;\n var selector = operation.root;\n RelayReferenceMarker.mark(_this10._recordSource, selector, references, _this10._operationLoader);\n });\n\n if (references.size === 0) {\n // Short-circuit if *nothing* is referenced\n this._recordSource.clear();\n } else {\n // Evict any unreferenced nodes\n var storeIDs = this._recordSource.getRecordIDs();\n\n for (var ii = 0; ii < storeIDs.length; ii++) {\n var dataID = storeIDs[ii];\n\n if (!references.has(dataID)) {\n this._recordSource.remove(dataID);\n }\n }\n }\n };\n\n return RelayModernStore;\n}();\n\nfunction initializeRecordSource(target) {\n if (!target.has(ROOT_ID)) {\n var rootRecord = RelayModernRecord.create(ROOT_ID, ROOT_TYPE);\n target.set(ROOT_ID, rootRecord);\n }\n}\n/**\n * Updates the target with information from source, also updating a mapping of\n * which records in the target were changed as a result.\n * Additionally, will marc records as invalidated at the current write epoch\n * given the set of record ids marked as stale in this update.\n */\n\n\nfunction updateTargetFromSource(target, source, currentWriteEpoch, idsMarkedForInvalidation, updatedRecordIDs, invalidatedRecordIDs) {\n // First, update any records that were marked for invalidation.\n // For each provided dataID that was invalidated, we write the\n // INVALIDATED_AT_KEY on the record, indicating\n // the epoch at which the record was invalidated.\n if (idsMarkedForInvalidation) {\n idsMarkedForInvalidation.forEach(function (dataID) {\n var targetRecord = target.get(dataID);\n var sourceRecord = source.get(dataID); // If record was deleted during the update (and also invalidated),\n // we don't need to count it as an invalidated id\n\n if (sourceRecord === null) {\n return;\n }\n\n var nextRecord;\n\n if (targetRecord != null) {\n // If the target record exists, use it to set the epoch\n // at which it was invalidated. This record will be updated with\n // any changes from source in the section below\n // where we update the target records based on the source.\n nextRecord = RelayModernRecord.clone(targetRecord);\n } else {\n // If the target record doesn't exist, it means that a new record\n // in the source was created (and also invalidated), so we use that\n // record to set the epoch at which it was invalidated. This record\n // will be updated with any changes from source in the section below\n // where we update the target records based on the source.\n nextRecord = sourceRecord != null ? RelayModernRecord.clone(sourceRecord) : null;\n }\n\n if (!nextRecord) {\n return;\n }\n\n RelayModernRecord.setValue(nextRecord, RelayStoreUtils.INVALIDATED_AT_KEY, currentWriteEpoch);\n invalidatedRecordIDs.add(dataID);\n target.set(dataID, nextRecord);\n });\n } // Update the target based on the changes present in source\n\n\n var dataIDs = source.getRecordIDs();\n\n for (var ii = 0; ii < dataIDs.length; ii++) {\n var dataID = dataIDs[ii];\n var sourceRecord = source.get(dataID);\n var targetRecord = target.get(dataID); // Prevent mutation of a record from outside the store.\n\n if (true) {\n if (sourceRecord) {\n RelayModernRecord.freeze(sourceRecord);\n }\n }\n\n if (sourceRecord && targetRecord) {\n var nextRecord = RelayModernRecord.update(targetRecord, sourceRecord);\n\n if (nextRecord !== targetRecord) {\n // Prevent mutation of a record from outside the store.\n if (true) {\n RelayModernRecord.freeze(nextRecord);\n }\n\n updatedRecordIDs[dataID] = true;\n target.set(dataID, nextRecord);\n }\n } else if (sourceRecord === null) {\n target[\"delete\"](dataID);\n\n if (targetRecord !== null) {\n updatedRecordIDs[dataID] = true;\n }\n } else if (sourceRecord) {\n target.set(dataID, sourceRecord);\n updatedRecordIDs[dataID] = true;\n } // don't add explicit undefined\n\n }\n}\n/**\n * Returns an OperationAvailability given the Availability returned\n * by checking an operation, and when that operation was last written to the store.\n * Specifically, the provided Availablity of a an operation will contain the\n * value of when a record referenced by the operation was most recently\n * invalidated; given that value, and given when this operation was last\n * written to the store, this function will return the overall\n * OperationAvailability for the operation.\n */\n\n\nfunction getAvailablityStatus(opearionAvailability, operationLastWrittenAt, operationFetchTime) {\n var _operationFetchTime;\n\n var mostRecentlyInvalidatedAt = opearionAvailability.mostRecentlyInvalidatedAt,\n status = opearionAvailability.status;\n\n if (typeof mostRecentlyInvalidatedAt === 'number') {\n // If some record referenced by this operation is stale, then the operation itself is stale\n // if either the operation itself was never written *or* the operation was last written\n // before the most recent invalidation of its reachable records.\n if (operationLastWrittenAt == null || mostRecentlyInvalidatedAt > operationLastWrittenAt) {\n return {\n status: 'stale'\n };\n }\n } // There were no invalidations of any reachable records *or* the operation is known to have\n // been fetched after the most recent record invalidation.\n\n\n return status === 'missing' ? {\n status: 'missing'\n } : {\n status: 'available',\n fetchTime: (_operationFetchTime = operationFetchTime) !== null && _operationFetchTime !== void 0 ? _operationFetchTime : null\n };\n}\n\nRelayProfiler.instrumentMethods(RelayModernStore.prototype, {\n lookup: 'RelayModernStore.prototype.lookup',\n notify: 'RelayModernStore.prototype.notify',\n publish: 'RelayModernStore.prototype.publish',\n __gc: 'RelayModernStore.prototype.__gc'\n});\nmodule.exports = RelayModernStore;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayModernStore.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayOperationTracker.js":
/*!************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayOperationTracker.js ***!
\************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar RelayOperationTracker =\n/*#__PURE__*/\nfunction () {\n function RelayOperationTracker() {\n this._ownersToPendingOperations = new Map();\n this._pendingOperationsToOwners = new Map();\n this._ownersToPromise = new Map();\n }\n /**\n * Update the map of current processing operations with the set of\n * affected owners and notify subscribers\n */\n\n\n var _proto = RelayOperationTracker.prototype;\n\n _proto.update = function update(pendingOperation, affectedOwners) {\n if (affectedOwners.size === 0) {\n return;\n }\n\n var newlyAffectedOwners = new Set();\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = affectedOwners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var owner = _step.value;\n\n var pendingOperationsAffectingOwner = this._ownersToPendingOperations.get(owner);\n\n if (pendingOperationsAffectingOwner != null) {\n // In this case the `owner` already affected by some operations\n // We just need to detect, is it the same operation that we already\n // have in the list, or it's a new operation\n if (!pendingOperationsAffectingOwner.has(pendingOperation)) {\n pendingOperationsAffectingOwner.add(pendingOperation);\n newlyAffectedOwners.add(owner);\n }\n } else {\n // This is a new `owner` that is affected by the operation\n this._ownersToPendingOperations.set(owner, new Set([pendingOperation]));\n\n newlyAffectedOwners.add(owner);\n }\n } // No new owners were affected by this operation, we may stop here\n\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n if (newlyAffectedOwners.size === 0) {\n return;\n } // But, if some owners were affected we need to add them to\n // the `_pendingOperationsToOwners` set\n\n\n var ownersAffectedByOperation = this._pendingOperationsToOwners.get(pendingOperation) || new Set();\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = newlyAffectedOwners[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var _owner = _step2.value;\n\n this._resolveOwnerResolvers(_owner);\n\n ownersAffectedByOperation.add(_owner);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2[\"return\"] != null) {\n _iterator2[\"return\"]();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n this._pendingOperationsToOwners.set(pendingOperation, ownersAffectedByOperation);\n }\n /**\n * Once pending operation is completed we need to remove it\n * from all tracking maps\n */\n ;\n\n _proto.complete = function complete(pendingOperation) {\n var affectedOwners = this._pendingOperationsToOwners.get(pendingOperation);\n\n if (affectedOwners == null) {\n return;\n } // These were the owners affected only by `pendingOperation`\n\n\n var completedOwners = new Set(); // These were the owners affected by `pendingOperation`\n // and some other operations\n\n var updatedOwners = new Set();\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = affectedOwners[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var owner = _step3.value;\n\n var pendingOperationsAffectingOwner = this._ownersToPendingOperations.get(owner);\n\n if (!pendingOperationsAffectingOwner) {\n continue;\n }\n\n pendingOperationsAffectingOwner[\"delete\"](pendingOperation);\n\n if (pendingOperationsAffectingOwner.size > 0) {\n updatedOwners.add(owner);\n } else {\n completedOwners.add(owner);\n }\n } // Complete subscriptions for all owners, affected by `pendingOperation`\n\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3[\"return\"] != null) {\n _iterator3[\"return\"]();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n\n var _iteratorNormalCompletion4 = true;\n var _didIteratorError4 = false;\n var _iteratorError4 = undefined;\n\n try {\n for (var _iterator4 = completedOwners[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n var _owner2 = _step4.value;\n\n this._resolveOwnerResolvers(_owner2);\n\n this._ownersToPendingOperations[\"delete\"](_owner2);\n } // Update all owner that were updated by `pendingOperation` but still\n // are affected by other operations\n\n } catch (err) {\n _didIteratorError4 = true;\n _iteratorError4 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion4 && _iterator4[\"return\"] != null) {\n _iterator4[\"return\"]();\n }\n } finally {\n if (_didIteratorError4) {\n throw _iteratorError4;\n }\n }\n }\n\n var _iteratorNormalCompletion5 = true;\n var _didIteratorError5 = false;\n var _iteratorError5 = undefined;\n\n try {\n for (var _iterator5 = updatedOwners[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {\n var _owner3 = _step5.value;\n\n this._resolveOwnerResolvers(_owner3);\n } // Finally, remove pending operation\n\n } catch (err) {\n _didIteratorError5 = true;\n _iteratorError5 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion5 && _iterator5[\"return\"] != null) {\n _iterator5[\"return\"]();\n }\n } finally {\n if (_didIteratorError5) {\n throw _iteratorError5;\n }\n }\n }\n\n this._pendingOperationsToOwners[\"delete\"](pendingOperation);\n };\n\n _proto._resolveOwnerResolvers = function _resolveOwnerResolvers(owner) {\n var promiseEntry = this._ownersToPromise.get(owner);\n\n if (promiseEntry != null) {\n promiseEntry.resolve();\n }\n\n this._ownersToPromise[\"delete\"](owner);\n };\n\n _proto.getPromiseForPendingOperationsAffectingOwner = function getPromiseForPendingOperationsAffectingOwner(owner) {\n if (!this._ownersToPendingOperations.has(owner)) {\n return null;\n }\n\n var cachedPromiseEntry = this._ownersToPromise.get(owner);\n\n if (cachedPromiseEntry != null) {\n return cachedPromiseEntry.promise;\n }\n\n var resolve;\n var promise = new Promise(function (r) {\n resolve = r;\n });\n !(resolve != null) ? true ? invariant(false, 'RelayOperationTracker: Expected resolver to be defined. If you' + 'are seeing this, it is likely a bug in Relay.') : undefined : void 0;\n\n this._ownersToPromise.set(owner, {\n promise: promise,\n resolve: resolve\n });\n\n return promise;\n };\n\n return RelayOperationTracker;\n}();\n\nmodule.exports = RelayOperationTracker;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayOperationTracker.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayOptimisticRecordSource.js":
/*!******************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayOptimisticRecordSource.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar RelayRecordSource = __webpack_require__(/*! ./RelayRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSource.js\");\n\nvar UNPUBLISH_RECORD_SENTINEL = Object.freeze({\n __UNPUBLISH_RECORD_SENTINEL: true\n});\n/**\n * An implementation of MutableRecordSource that represents a base RecordSource\n * with optimistic updates stacked on top: records with optimistic updates\n * shadow the base version of the record rather than updating/replacing them.\n */\n\nvar RelayOptimisticRecordSource =\n/*#__PURE__*/\nfunction () {\n function RelayOptimisticRecordSource(base) {\n this._base = base;\n this._sink = RelayRecordSource.create();\n }\n\n var _proto = RelayOptimisticRecordSource.prototype;\n\n _proto.has = function has(dataID) {\n if (this._sink.has(dataID)) {\n var sinkRecord = this._sink.get(dataID);\n\n return sinkRecord !== UNPUBLISH_RECORD_SENTINEL;\n } else {\n return this._base.has(dataID);\n }\n };\n\n _proto.get = function get(dataID) {\n if (this._sink.has(dataID)) {\n var sinkRecord = this._sink.get(dataID);\n\n if (sinkRecord === UNPUBLISH_RECORD_SENTINEL) {\n return undefined;\n } else {\n return sinkRecord;\n }\n } else {\n return this._base.get(dataID);\n }\n };\n\n _proto.getStatus = function getStatus(dataID) {\n var record = this.get(dataID);\n\n if (record === undefined) {\n return 'UNKNOWN';\n } else if (record === null) {\n return 'NONEXISTENT';\n } else {\n return 'EXISTENT';\n }\n };\n\n _proto.clear = function clear() {\n this._base = RelayRecordSource.create();\n\n this._sink.clear();\n };\n\n _proto[\"delete\"] = function _delete(dataID) {\n this._sink[\"delete\"](dataID);\n };\n\n _proto.remove = function remove(dataID) {\n this._sink.set(dataID, UNPUBLISH_RECORD_SENTINEL);\n };\n\n _proto.set = function set(dataID, record) {\n this._sink.set(dataID, record);\n };\n\n _proto.getRecordIDs = function getRecordIDs() {\n return Object.keys(this.toJSON());\n };\n\n _proto.size = function size() {\n return Object.keys(this.toJSON()).length;\n };\n\n _proto.toJSON = function toJSON() {\n var _this = this;\n\n var merged = (0, _objectSpread2[\"default\"])({}, this._base.toJSON());\n\n this._sink.getRecordIDs().forEach(function (dataID) {\n var record = _this.get(dataID);\n\n if (record === undefined) {\n delete merged[dataID];\n } else {\n merged[dataID] = record;\n }\n });\n\n return merged;\n };\n\n return RelayOptimisticRecordSource;\n}();\n\nfunction create(base) {\n return new RelayOptimisticRecordSource(base);\n}\n\nmodule.exports = {\n create: create\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayOptimisticRecordSource.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayPublishQueue.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayPublishQueue.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar ErrorUtils = __webpack_require__(/*! fbjs/lib/ErrorUtils */ \"../../node_modules/fbjs/lib/ErrorUtils.js\");\n\nvar RelayReader = __webpack_require__(/*! ./RelayReader */ \"../../node_modules/relay-runtime/lib/store/RelayReader.js\");\n\nvar RelayRecordSource = __webpack_require__(/*! ./RelayRecordSource */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSource.js\");\n\nvar RelayRecordSourceMutator = __webpack_require__(/*! ../mutations/RelayRecordSourceMutator */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js\");\n\nvar RelayRecordSourceProxy = __webpack_require__(/*! ../mutations/RelayRecordSourceProxy */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js\");\n\nvar RelayRecordSourceSelectorProxy = __webpack_require__(/*! ../mutations/RelayRecordSourceSelectorProxy */ \"../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceSelectorProxy.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\n/**\n * Coordinates the concurrent modification of a `Store` due to optimistic and\n * non-revertable client updates and server payloads:\n * - Applies optimistic updates.\n * - Reverts optimistic updates, rebasing any subsequent updates.\n * - Commits client updates (typically for client schema extensions).\n * - Commits server updates:\n * - Normalizes query/mutation/subscription responses.\n * - Executes handlers for \"handle\" fields.\n * - Reverts and reapplies pending optimistic updates.\n */\nvar RelayPublishQueue =\n/*#__PURE__*/\nfunction () {\n // True if the next `run()` should apply the backup and rerun all optimistic\n // updates performing a rebase.\n // Payloads to apply or Sources to publish to the store with the next `run()`.\n // Optimistic updaters to add with the next `run()`.\n // Optimistic updaters that are already added and might be rerun in order to\n // rebase them.\n // Garbage collection hold, should rerun gc on dispose\n function RelayPublishQueue(store, handlerProvider, getDataID) {\n this._hasStoreSnapshot = false;\n this._handlerProvider = handlerProvider || null;\n this._pendingBackupRebase = false;\n this._pendingData = new Set();\n this._pendingOptimisticUpdates = new Set();\n this._store = store;\n this._appliedOptimisticUpdates = new Set();\n this._gcHold = null;\n this._getDataID = getDataID;\n }\n /**\n * Schedule applying an optimistic updates on the next `run()`.\n */\n\n\n var _proto = RelayPublishQueue.prototype;\n\n _proto.applyUpdate = function applyUpdate(updater) {\n !(!this._appliedOptimisticUpdates.has(updater) && !this._pendingOptimisticUpdates.has(updater)) ? true ? invariant(false, 'RelayPublishQueue: Cannot apply the same update function more than ' + 'once concurrently.') : undefined : void 0;\n\n this._pendingOptimisticUpdates.add(updater);\n }\n /**\n * Schedule reverting an optimistic updates on the next `run()`.\n */\n ;\n\n _proto.revertUpdate = function revertUpdate(updater) {\n if (this._pendingOptimisticUpdates.has(updater)) {\n // Reverted before it was applied\n this._pendingOptimisticUpdates[\"delete\"](updater);\n } else if (this._appliedOptimisticUpdates.has(updater)) {\n this._pendingBackupRebase = true;\n\n this._appliedOptimisticUpdates[\"delete\"](updater);\n }\n }\n /**\n * Schedule a revert of all optimistic updates on the next `run()`.\n */\n ;\n\n _proto.revertAll = function revertAll() {\n this._pendingBackupRebase = true;\n\n this._pendingOptimisticUpdates.clear();\n\n this._appliedOptimisticUpdates.clear();\n }\n /**\n * Schedule applying a payload to the store on the next `run()`.\n */\n ;\n\n _proto.commitPayload = function commitPayload(operation, payload, updater) {\n this._pendingBackupRebase = true;\n\n this._pendingData.add({\n kind: 'payload',\n operation: operation,\n payload: payload,\n updater: updater\n });\n }\n /**\n * Schedule an updater to mutate the store on the next `run()` typically to\n * update client schema fields.\n */\n ;\n\n _proto.commitUpdate = function commitUpdate(updater) {\n this._pendingBackupRebase = true;\n\n this._pendingData.add({\n kind: 'updater',\n updater: updater\n });\n }\n /**\n * Schedule a publish to the store from the provided source on the next\n * `run()`. As an example, to update the store with substituted fields that\n * are missing in the store.\n */\n ;\n\n _proto.commitSource = function commitSource(source) {\n this._pendingBackupRebase = true;\n\n this._pendingData.add({\n kind: 'source',\n source: source\n });\n }\n /**\n * Execute all queued up operations from the other public methods.\n */\n ;\n\n _proto.run = function run(sourceOperation) {\n if (true) {\n true ? warning(this._isRunning !== true, 'A store update was detected within another store update. Please ' + 'make sure new store updates aren’t being executed within an ' + 'updater function for a different update.') : undefined;\n this._isRunning = true;\n }\n\n if (this._pendingBackupRebase) {\n if (this._hasStoreSnapshot) {\n this._store.restore();\n\n this._hasStoreSnapshot = false;\n }\n }\n\n var invalidatedStore = this._commitData();\n\n if (this._pendingOptimisticUpdates.size || this._pendingBackupRebase && this._appliedOptimisticUpdates.size) {\n if (!this._hasStoreSnapshot) {\n this._store.snapshot();\n\n this._hasStoreSnapshot = true;\n }\n\n this._applyUpdates();\n }\n\n this._pendingBackupRebase = false;\n\n if (this._appliedOptimisticUpdates.size > 0) {\n if (!this._gcHold) {\n this._gcHold = this._store.holdGC();\n }\n } else {\n if (this._gcHold) {\n this._gcHold.dispose();\n\n this._gcHold = null;\n }\n }\n\n if (true) {\n this._isRunning = false;\n }\n\n return this._store.notify(sourceOperation, invalidatedStore);\n }\n /**\n * _publishSourceFromPayload will return a boolean indicating if the\n * publish caused the store to be globally invalidated.\n */\n ;\n\n _proto._publishSourceFromPayload = function _publishSourceFromPayload(pendingPayload) {\n var _this = this;\n\n var payload = pendingPayload.payload,\n operation = pendingPayload.operation,\n updater = pendingPayload.updater;\n var source = payload.source,\n fieldPayloads = payload.fieldPayloads;\n var mutator = new RelayRecordSourceMutator(this._store.getSource(), source);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, this._getDataID);\n\n if (fieldPayloads && fieldPayloads.length) {\n fieldPayloads.forEach(function (fieldPayload) {\n var handler = _this._handlerProvider && _this._handlerProvider(fieldPayload.handle);\n\n !handler ? true ? invariant(false, 'RelayModernEnvironment: Expected a handler to be provided for ' + 'handle `%s`.', fieldPayload.handle) : undefined : void 0;\n handler.update(recordSourceProxy, fieldPayload);\n });\n }\n\n if (updater) {\n var selector = operation.fragment;\n !(selector != null) ? true ? invariant(false, 'RelayModernEnvironment: Expected a selector to be provided with updater function.') : undefined : void 0;\n var recordSourceSelectorProxy = new RelayRecordSourceSelectorProxy(mutator, recordSourceProxy, selector);\n var selectorData = lookupSelector(source, selector);\n updater(recordSourceSelectorProxy, selectorData);\n }\n\n var idsMarkedForInvalidation = recordSourceProxy.getIDsMarkedForInvalidation();\n\n this._store.publish(source, idsMarkedForInvalidation);\n\n return recordSourceProxy.isStoreMarkedForInvalidation();\n }\n /**\n * _commitData will return a boolean indicating if any of\n * the pending commits caused the store to be globally invalidated.\n */\n ;\n\n _proto._commitData = function _commitData() {\n var _this2 = this;\n\n if (!this._pendingData.size) {\n return false;\n }\n\n var invalidatedStore = false;\n\n this._pendingData.forEach(function (data) {\n if (data.kind === 'payload') {\n var payloadInvalidatedStore = _this2._publishSourceFromPayload(data);\n\n invalidatedStore = invalidatedStore || payloadInvalidatedStore;\n } else if (data.kind === 'source') {\n var source = data.source;\n\n _this2._store.publish(source);\n } else {\n var updater = data.updater;\n var sink = RelayRecordSource.create();\n var mutator = new RelayRecordSourceMutator(_this2._store.getSource(), sink);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, _this2._getDataID);\n ErrorUtils.applyWithGuard(updater, null, [recordSourceProxy], null, 'RelayPublishQueue:commitData');\n invalidatedStore = invalidatedStore || recordSourceProxy.isStoreMarkedForInvalidation();\n var idsMarkedForInvalidation = recordSourceProxy.getIDsMarkedForInvalidation();\n\n _this2._store.publish(sink, idsMarkedForInvalidation);\n }\n });\n\n this._pendingData.clear();\n\n return invalidatedStore;\n }\n /**\n * Note that unlike _commitData, _applyUpdates will NOT return a boolean\n * indicating if the store was globally invalidated, since invalidating the\n * store during an optimistic update is a no-op.\n */\n ;\n\n _proto._applyUpdates = function _applyUpdates() {\n var _this3 = this;\n\n var sink = RelayRecordSource.create();\n var mutator = new RelayRecordSourceMutator(this._store.getSource(), sink);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, this._getDataID, this._handlerProvider);\n\n var processUpdate = function processUpdate(optimisticUpdate) {\n if (optimisticUpdate.storeUpdater) {\n var storeUpdater = optimisticUpdate.storeUpdater;\n ErrorUtils.applyWithGuard(storeUpdater, null, [recordSourceProxy], null, 'RelayPublishQueue:applyUpdates');\n } else {\n var operation = optimisticUpdate.operation,\n payload = optimisticUpdate.payload,\n updater = optimisticUpdate.updater;\n var source = payload.source,\n fieldPayloads = payload.fieldPayloads;\n var recordSourceSelectorProxy = new RelayRecordSourceSelectorProxy(mutator, recordSourceProxy, operation.fragment);\n var selectorData;\n\n if (source) {\n recordSourceProxy.publishSource(source, fieldPayloads);\n selectorData = lookupSelector(source, operation.fragment);\n }\n\n if (updater) {\n ErrorUtils.applyWithGuard(updater, null, [recordSourceSelectorProxy, selectorData], null, 'RelayPublishQueue:applyUpdates');\n }\n }\n }; // rerun all updaters in case we are running a rebase\n\n\n if (this._pendingBackupRebase && this._appliedOptimisticUpdates.size) {\n this._appliedOptimisticUpdates.forEach(processUpdate);\n } // apply any new updaters\n\n\n if (this._pendingOptimisticUpdates.size) {\n this._pendingOptimisticUpdates.forEach(function (optimisticUpdate) {\n processUpdate(optimisticUpdate);\n\n _this3._appliedOptimisticUpdates.add(optimisticUpdate);\n });\n\n this._pendingOptimisticUpdates.clear();\n }\n\n this._store.publish(sink);\n };\n\n return RelayPublishQueue;\n}();\n\nfunction lookupSelector(source, selector) {\n var selectorData = RelayReader.read(source, selector).data;\n\n if (true) {\n var deepFreeze = __webpack_require__(/*! ../util/deepFreeze */ \"../../node_modules/relay-runtime/lib/util/deepFreeze.js\");\n\n if (selectorData) {\n deepFreeze(selectorData);\n }\n }\n\n return selectorData;\n}\n\nmodule.exports = RelayPublishQueue;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayPublishQueue.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayReader.js":
/*!**************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayReader.js ***!
\**************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\"),\n CLIENT_EXTENSION = _require.CLIENT_EXTENSION,\n CONDITION = _require.CONDITION,\n DEFER = _require.DEFER,\n FRAGMENT_SPREAD = _require.FRAGMENT_SPREAD,\n INLINE_DATA_FRAGMENT_SPREAD = _require.INLINE_DATA_FRAGMENT_SPREAD,\n INLINE_FRAGMENT = _require.INLINE_FRAGMENT,\n LINKED_FIELD = _require.LINKED_FIELD,\n MODULE_IMPORT = _require.MODULE_IMPORT,\n SCALAR_FIELD = _require.SCALAR_FIELD,\n STREAM = _require.STREAM;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY,\n FRAGMENT_OWNER_KEY = _require2.FRAGMENT_OWNER_KEY,\n FRAGMENT_PROP_NAME_KEY = _require2.FRAGMENT_PROP_NAME_KEY,\n ID_KEY = _require2.ID_KEY,\n MODULE_COMPONENT_KEY = _require2.MODULE_COMPONENT_KEY,\n getArgumentValues = _require2.getArgumentValues,\n getStorageKey = _require2.getStorageKey,\n getModuleComponentKey = _require2.getModuleComponentKey;\n\nfunction read(recordSource, selector) {\n var reader = new RelayReader(recordSource, selector);\n return reader.read();\n}\n/**\n * @private\n */\n\n\nvar RelayReader =\n/*#__PURE__*/\nfunction () {\n function RelayReader(recordSource, selector) {\n this._isMissingData = false;\n this._owner = selector.owner;\n this._recordSource = recordSource;\n this._seenRecords = {};\n this._selector = selector;\n this._variables = selector.variables;\n }\n\n var _proto = RelayReader.prototype;\n\n _proto.read = function read() {\n var _this$_selector = this._selector,\n node = _this$_selector.node,\n dataID = _this$_selector.dataID;\n\n var data = this._traverse(node, dataID, null);\n\n return {\n data: data,\n isMissingData: this._isMissingData,\n seenRecords: this._seenRecords,\n selector: this._selector\n };\n };\n\n _proto._traverse = function _traverse(node, dataID, prevData) {\n var record = this._recordSource.get(dataID);\n\n this._seenRecords[dataID] = record;\n\n if (record == null) {\n if (record === undefined) {\n this._isMissingData = true;\n }\n\n return record;\n }\n\n var data = prevData || {};\n\n this._traverseSelections(node.selections, record, data);\n\n return data;\n };\n\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? true ? invariant(false, 'RelayReader(): Undefined variable `%s`.', name) : undefined : void 0;\n return this._variables[name];\n };\n\n _proto._traverseSelections = function _traverseSelections(selections, record, data) {\n for (var i = 0; i < selections.length; i++) {\n var selection = selections[i];\n\n switch (selection.kind) {\n case SCALAR_FIELD:\n this._readScalar(selection, record, data);\n\n break;\n\n case LINKED_FIELD:\n if (selection.plural) {\n this._readPluralLink(selection, record, data);\n } else {\n this._readLink(selection, record, data);\n }\n\n break;\n\n case CONDITION:\n var conditionValue = this._getVariableValue(selection.condition);\n\n if (conditionValue === selection.passingValue) {\n this._traverseSelections(selection.selections, record, data);\n }\n\n break;\n\n case INLINE_FRAGMENT:\n var typeName = RelayModernRecord.getType(record);\n\n if (typeName != null && typeName === selection.type) {\n this._traverseSelections(selection.selections, record, data);\n }\n\n break;\n\n case FRAGMENT_SPREAD:\n this._createFragmentPointer(selection, record, data);\n\n break;\n\n case MODULE_IMPORT:\n this._readModuleImport(selection, record, data);\n\n break;\n\n case INLINE_DATA_FRAGMENT_SPREAD:\n this._createInlineDataFragmentPointer(selection, record, data);\n\n break;\n\n case DEFER:\n case CLIENT_EXTENSION:\n var isMissingData = this._isMissingData;\n\n this._traverseSelections(selection.selections, record, data);\n\n this._isMissingData = isMissingData;\n break;\n\n case STREAM:\n this._traverseSelections(selection.selections, record, data);\n\n break;\n\n default:\n selection;\n true ? true ? invariant(false, 'RelayReader(): Unexpected ast kind `%s`.', selection.kind) : undefined : undefined;\n }\n }\n };\n\n _proto._readScalar = function _readScalar(field, record, data) {\n var _field$alias;\n\n var applicationName = (_field$alias = field.alias) !== null && _field$alias !== void 0 ? _field$alias : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var value = RelayModernRecord.getValue(record, storageKey);\n\n if (value === undefined) {\n this._isMissingData = true;\n }\n\n data[applicationName] = value;\n };\n\n _proto._readLink = function _readLink(field, record, data) {\n var _field$alias2;\n\n var applicationName = (_field$alias2 = field.alias) !== null && _field$alias2 !== void 0 ? _field$alias2 : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n\n if (linkedID == null) {\n data[applicationName] = linkedID;\n\n if (linkedID === undefined) {\n this._isMissingData = true;\n }\n\n return;\n }\n\n var prevData = data[applicationName];\n !(prevData == null || typeof prevData === 'object') ? true ? invariant(false, 'RelayReader(): Expected data for field `%s` on record `%s` ' + 'to be an object, got `%s`.', applicationName, RelayModernRecord.getDataID(record), prevData) : undefined : void 0;\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the error\n * delete this comment and run Flow. */\n\n data[applicationName] = this._traverse(field, linkedID, prevData);\n };\n\n _proto._readPluralLink = function _readPluralLink(field, record, data) {\n var _this = this;\n\n var _field$alias3;\n\n var applicationName = (_field$alias3 = field.alias) !== null && _field$alias3 !== void 0 ? _field$alias3 : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n\n if (linkedIDs == null) {\n data[applicationName] = linkedIDs;\n\n if (linkedIDs === undefined) {\n this._isMissingData = true;\n }\n\n return;\n }\n\n var prevData = data[applicationName];\n !(prevData == null || Array.isArray(prevData)) ? true ? invariant(false, 'RelayReader(): Expected data for field `%s` on record `%s` ' + 'to be an array, got `%s`.', applicationName, RelayModernRecord.getDataID(record), prevData) : undefined : void 0;\n var linkedArray = prevData || [];\n linkedIDs.forEach(function (linkedID, nextIndex) {\n if (linkedID == null) {\n if (linkedID === undefined) {\n _this._isMissingData = true;\n }\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n\n\n linkedArray[nextIndex] = linkedID;\n return;\n }\n\n var prevItem = linkedArray[nextIndex];\n !(prevItem == null || typeof prevItem === 'object') ? true ? invariant(false, 'RelayReader(): Expected data for field `%s` on record `%s` ' + 'to be an object, got `%s`.', applicationName, RelayModernRecord.getDataID(record), prevItem) : undefined : void 0;\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n\n linkedArray[nextIndex] = _this._traverse(field, linkedID, prevItem);\n });\n data[applicationName] = linkedArray;\n }\n /**\n * Reads a ReaderModuleImport, which was generated from using the @module\n * directive.\n */\n ;\n\n _proto._readModuleImport = function _readModuleImport(moduleImport, record, data) {\n // Determine the component module from the store: if the field is missing\n // it means we don't know what component to render the match with.\n var componentKey = getModuleComponentKey(moduleImport.documentName);\n var component = RelayModernRecord.getValue(record, componentKey);\n\n if (component == null) {\n if (component === undefined) {\n this._isMissingData = true;\n }\n\n return;\n } // Otherwise, read the fragment and module associated to the concrete\n // type, and put that data with the result:\n // - For the matched fragment, create the relevant fragment pointer and add\n // the expected fragmentPropName\n // - For the matched module, create a reference to the module\n\n\n this._createFragmentPointer({\n kind: 'FragmentSpread',\n name: moduleImport.fragmentName,\n args: null\n }, record, data);\n\n data[FRAGMENT_PROP_NAME_KEY] = moduleImport.fragmentPropName;\n data[MODULE_COMPONENT_KEY] = component;\n };\n\n _proto._createFragmentPointer = function _createFragmentPointer(fragmentSpread, record, data) {\n var fragmentPointers = data[FRAGMENTS_KEY];\n\n if (fragmentPointers == null) {\n fragmentPointers = data[FRAGMENTS_KEY] = {};\n }\n\n !(typeof fragmentPointers === 'object' && fragmentPointers != null) ? true ? invariant(false, 'RelayReader: Expected fragment spread data to be an object, got `%s`.', fragmentPointers) : undefined : void 0;\n\n if (data[ID_KEY] == null) {\n data[ID_KEY] = RelayModernRecord.getDataID(record);\n } // $FlowFixMe - writing into read-only field\n\n\n fragmentPointers[fragmentSpread.name] = fragmentSpread.args ? getArgumentValues(fragmentSpread.args, this._variables) : {};\n data[FRAGMENT_OWNER_KEY] = this._owner;\n };\n\n _proto._createInlineDataFragmentPointer = function _createInlineDataFragmentPointer(inlineDataFragmentSpread, record, data) {\n var fragmentPointers = data[FRAGMENTS_KEY];\n\n if (fragmentPointers == null) {\n fragmentPointers = data[FRAGMENTS_KEY] = {};\n }\n\n !(typeof fragmentPointers === 'object' && fragmentPointers != null) ? true ? invariant(false, 'RelayReader: Expected fragment spread data to be an object, got `%s`.', fragmentPointers) : undefined : void 0;\n\n if (data[ID_KEY] == null) {\n data[ID_KEY] = RelayModernRecord.getDataID(record);\n }\n\n var inlineData = {};\n\n this._traverseSelections(inlineDataFragmentSpread.selections, record, inlineData); // $FlowFixMe - writing into read-only field\n\n\n fragmentPointers[inlineDataFragmentSpread.name] = inlineData;\n };\n\n return RelayReader;\n}();\n\nmodule.exports = {\n read: read\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayReader.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayRecordSource.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordSource.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayRecordSourceMapImpl = __webpack_require__(/*! ./RelayRecordSourceMapImpl */ \"../../node_modules/relay-runtime/lib/store/RelayRecordSourceMapImpl.js\");\n\nvar RelayRecordSource =\n/*#__PURE__*/\nfunction () {\n function RelayRecordSource(records) {\n return RelayRecordSource.create(records);\n }\n\n RelayRecordSource.create = function create(records) {\n return new RelayRecordSourceMapImpl(records);\n };\n\n return RelayRecordSource;\n}();\n\nmodule.exports = RelayRecordSource;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordSource.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayRecordSourceMapImpl.js":
/*!***************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordSourceMapImpl.js ***!
\***************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayRecordState = __webpack_require__(/*! ./RelayRecordState */ \"../../node_modules/relay-runtime/lib/store/RelayRecordState.js\");\n\nvar EXISTENT = RelayRecordState.EXISTENT,\n NONEXISTENT = RelayRecordState.NONEXISTENT,\n UNKNOWN = RelayRecordState.UNKNOWN;\n/**\n * An implementation of the `MutableRecordSource` interface (defined in\n * `RelayStoreTypes`) that holds all records in memory (JS Map).\n */\n\nvar RelayMapRecordSourceMapImpl =\n/*#__PURE__*/\nfunction () {\n function RelayMapRecordSourceMapImpl(records) {\n var _this = this;\n\n this._records = new Map();\n\n if (records != null) {\n Object.keys(records).forEach(function (key) {\n _this._records.set(key, records[key]);\n });\n }\n }\n\n var _proto = RelayMapRecordSourceMapImpl.prototype;\n\n _proto.clear = function clear() {\n this._records = new Map();\n };\n\n _proto[\"delete\"] = function _delete(dataID) {\n this._records.set(dataID, null);\n };\n\n _proto.get = function get(dataID) {\n return this._records.get(dataID);\n };\n\n _proto.getRecordIDs = function getRecordIDs() {\n return Array.from(this._records.keys());\n };\n\n _proto.getStatus = function getStatus(dataID) {\n if (!this._records.has(dataID)) {\n return UNKNOWN;\n }\n\n return this._records.get(dataID) == null ? NONEXISTENT : EXISTENT;\n };\n\n _proto.has = function has(dataID) {\n return this._records.has(dataID);\n };\n\n _proto.remove = function remove(dataID) {\n this._records[\"delete\"](dataID);\n };\n\n _proto.set = function set(dataID, record) {\n this._records.set(dataID, record);\n };\n\n _proto.size = function size() {\n return this._records.size;\n };\n\n _proto.toJSON = function toJSON() {\n var obj = {};\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = this._records[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _step$value = _step.value,\n key = _step$value[0],\n value = _step$value[1];\n obj[key] = value;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator[\"return\"] != null) {\n _iterator[\"return\"]();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return obj;\n };\n\n return RelayMapRecordSourceMapImpl;\n}();\n\nmodule.exports = RelayMapRecordSourceMapImpl;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordSourceMapImpl.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayRecordState.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordState.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayRecordState = {\n /**\n * Record exists (either fetched from the server or produced by a local,\n * optimistic update).\n */\n EXISTENT: 'EXISTENT',\n\n /**\n * Record is known not to exist (either as the result of a mutation, or\n * because the server returned `null` when queried for the record).\n */\n NONEXISTENT: 'NONEXISTENT',\n\n /**\n * Record State is unknown because it has not yet been fetched from the\n * server.\n */\n UNKNOWN: 'UNKNOWN'\n};\nmodule.exports = RelayRecordState;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayRecordState.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayReferenceMarker.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayReferenceMarker.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayConcreteNode = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\");\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayStoreUtils = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\");\n\nvar cloneRelayHandleSourceField = __webpack_require__(/*! ./cloneRelayHandleSourceField */ \"../../node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar CONDITION = RelayConcreteNode.CONDITION,\n CLIENT_EXTENSION = RelayConcreteNode.CLIENT_EXTENSION,\n DEFER = RelayConcreteNode.DEFER,\n FRAGMENT_SPREAD = RelayConcreteNode.FRAGMENT_SPREAD,\n INLINE_FRAGMENT = RelayConcreteNode.INLINE_FRAGMENT,\n LINKED_FIELD = RelayConcreteNode.LINKED_FIELD,\n MODULE_IMPORT = RelayConcreteNode.MODULE_IMPORT,\n LINKED_HANDLE = RelayConcreteNode.LINKED_HANDLE,\n SCALAR_FIELD = RelayConcreteNode.SCALAR_FIELD,\n SCALAR_HANDLE = RelayConcreteNode.SCALAR_HANDLE,\n STREAM = RelayConcreteNode.STREAM;\nvar getStorageKey = RelayStoreUtils.getStorageKey,\n getModuleOperationKey = RelayStoreUtils.getModuleOperationKey;\n\nfunction mark(recordSource, selector, references, operationLoader) {\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var marker = new RelayReferenceMarker(recordSource, variables, references, operationLoader);\n marker.mark(node, dataID);\n}\n/**\n * @private\n */\n\n\nvar RelayReferenceMarker =\n/*#__PURE__*/\nfunction () {\n function RelayReferenceMarker(recordSource, variables, references, operationLoader) {\n var _operationLoader;\n\n this._operationLoader = (_operationLoader = operationLoader) !== null && _operationLoader !== void 0 ? _operationLoader : null;\n this._recordSource = recordSource;\n this._references = references;\n this._variables = variables;\n }\n\n var _proto = RelayReferenceMarker.prototype;\n\n _proto.mark = function mark(node, dataID) {\n this._traverse(node, dataID);\n };\n\n _proto._traverse = function _traverse(node, dataID) {\n this._references.add(dataID);\n\n var record = this._recordSource.get(dataID);\n\n if (record == null) {\n return;\n }\n\n this._traverseSelections(node.selections, record);\n };\n\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? true ? invariant(false, 'RelayReferenceMarker(): Undefined variable `%s`.', name) : undefined : void 0;\n return this._variables[name];\n };\n\n _proto._traverseSelections = function _traverseSelections(selections, record) {\n var _this = this;\n\n selections.forEach(function (selection) {\n /* eslint-disable no-fallthrough */\n switch (selection.kind) {\n case LINKED_FIELD:\n if (selection.plural) {\n _this._traversePluralLink(selection, record);\n } else {\n _this._traverseLink(selection, record);\n }\n\n break;\n\n case CONDITION:\n var conditionValue = _this._getVariableValue(selection.condition);\n\n if (conditionValue === selection.passingValue) {\n _this._traverseSelections(selection.selections, record);\n }\n\n break;\n\n case INLINE_FRAGMENT:\n var typeName = RelayModernRecord.getType(record);\n\n if (typeName != null && typeName === selection.type) {\n _this._traverseSelections(selection.selections, record);\n }\n\n break;\n\n case FRAGMENT_SPREAD:\n true ? true ? invariant(false, 'RelayReferenceMarker(): Unexpected fragment spread `...%s`, ' + 'expected all fragments to be inlined.', selection.name) : undefined : undefined;\n\n case LINKED_HANDLE:\n // The selections for a \"handle\" field are the same as those of the\n // original linked field where the handle was applied. Reference marking\n // therefore requires traversing the original field selections against\n // the synthesized client field.\n //\n // TODO: Instead of finding the source field in `selections`, change\n // the concrete structure to allow shared subtrees, and have the linked\n // handle directly refer to the same selections as the LinkedField that\n // it was split from.\n var handleField = cloneRelayHandleSourceField(selection, selections, _this._variables);\n\n if (handleField.plural) {\n _this._traversePluralLink(handleField, record);\n } else {\n _this._traverseLink(handleField, record);\n }\n\n break;\n\n case DEFER:\n case STREAM:\n _this._traverseSelections(selection.selections, record);\n\n break;\n\n case SCALAR_FIELD:\n case SCALAR_HANDLE:\n break;\n\n case MODULE_IMPORT:\n _this._traverseModuleImport(selection, record);\n\n break;\n\n case CLIENT_EXTENSION:\n _this._traverseSelections(selection.selections, record);\n\n break;\n\n default:\n selection;\n true ? true ? invariant(false, 'RelayReferenceMarker: Unknown AST node `%s`.', selection) : undefined : undefined;\n }\n });\n };\n\n _proto._traverseModuleImport = function _traverseModuleImport(moduleImport, record) {\n var operationLoader = this._operationLoader;\n !(operationLoader !== null) ? true ? invariant(false, 'RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`.') : undefined : void 0;\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n var operationReference = RelayModernRecord.getValue(record, operationKey);\n\n if (operationReference == null) {\n return;\n }\n\n var operation = operationLoader.get(operationReference);\n\n if (operation != null) {\n this._traverseSelections(operation.selections, record);\n } // Otherwise, if the operation is not available, we assume that the data\n // cannot have been processed yet and therefore isn't in the store to\n // begin with.\n\n };\n\n _proto._traverseLink = function _traverseLink(field, record) {\n var storageKey = getStorageKey(field, this._variables);\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n\n if (linkedID == null) {\n return;\n }\n\n this._traverse(field, linkedID);\n };\n\n _proto._traversePluralLink = function _traversePluralLink(field, record) {\n var _this2 = this;\n\n var storageKey = getStorageKey(field, this._variables);\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n\n if (linkedIDs == null) {\n return;\n }\n\n linkedIDs.forEach(function (linkedID) {\n if (linkedID != null) {\n _this2._traverse(field, linkedID);\n }\n });\n };\n\n return RelayReferenceMarker;\n}();\n\nmodule.exports = {\n mark: mark\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayReferenceMarker.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js":
/*!**************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js ***!
\**************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js\"));\n\nvar RelayModernRecord = __webpack_require__(/*! ./RelayModernRecord */ \"../../node_modules/relay-runtime/lib/store/RelayModernRecord.js\");\n\nvar RelayProfiler = __webpack_require__(/*! ../util/RelayProfiler */ \"../../node_modules/relay-runtime/lib/util/RelayProfiler.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\"),\n CONDITION = _require.CONDITION,\n CLIENT_EXTENSION = _require.CLIENT_EXTENSION,\n DEFER = _require.DEFER,\n INLINE_FRAGMENT = _require.INLINE_FRAGMENT,\n LINKED_FIELD = _require.LINKED_FIELD,\n LINKED_HANDLE = _require.LINKED_HANDLE,\n MODULE_IMPORT = _require.MODULE_IMPORT,\n SCALAR_FIELD = _require.SCALAR_FIELD,\n SCALAR_HANDLE = _require.SCALAR_HANDLE,\n STREAM = _require.STREAM;\n\nvar _require2 = __webpack_require__(/*! ./ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require2.generateClientID,\n isClientID = _require2.isClientID;\n\nvar _require3 = __webpack_require__(/*! ./RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\"),\n createNormalizationSelector = _require3.createNormalizationSelector;\n\nvar _require4 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n getArgumentValues = _require4.getArgumentValues,\n getHandleStorageKey = _require4.getHandleStorageKey,\n getModuleComponentKey = _require4.getModuleComponentKey,\n getModuleOperationKey = _require4.getModuleOperationKey,\n getStorageKey = _require4.getStorageKey,\n TYPENAME_KEY = _require4.TYPENAME_KEY;\n\n/**\n * Normalizes the results of a query and standard GraphQL response, writing the\n * normalized records/fields into the given MutableRecordSource.\n */\nfunction normalize(recordSource, selector, response, options) {\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var normalizer = new RelayResponseNormalizer(recordSource, variables, options);\n return normalizer.normalizeResponse(node, dataID, response);\n}\n/**\n * @private\n *\n * Helper for handling payloads.\n */\n\n\nvar RelayResponseNormalizer =\n/*#__PURE__*/\nfunction () {\n function RelayResponseNormalizer(recordSource, variables, options) {\n this._getDataId = options.getDataID;\n this._handleFieldPayloads = [];\n this._incrementalPlaceholders = [];\n this._isClientExtension = false;\n this._moduleImportPayloads = [];\n this._path = options.path ? (0, _toConsumableArray2[\"default\"])(options.path) : [];\n this._recordSource = recordSource;\n this._request = options.request;\n this._variables = variables;\n }\n\n var _proto = RelayResponseNormalizer.prototype;\n\n _proto.normalizeResponse = function normalizeResponse(node, dataID, data) {\n var record = this._recordSource.get(dataID);\n\n !record ? true ? invariant(false, 'RelayResponseNormalizer(): Expected root record `%s` to exist.', dataID) : undefined : void 0;\n\n this._traverseSelections(node, record, data);\n\n return {\n errors: null,\n fieldPayloads: this._handleFieldPayloads,\n incrementalPlaceholders: this._incrementalPlaceholders,\n moduleImportPayloads: this._moduleImportPayloads,\n source: this._recordSource,\n isFinal: false\n };\n };\n\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? true ? invariant(false, 'RelayResponseNormalizer(): Undefined variable `%s`.', name) : undefined : void 0;\n return this._variables[name];\n };\n\n _proto._getRecordType = function _getRecordType(data) {\n var typeName = data[TYPENAME_KEY];\n !(typeName != null) ? true ? invariant(false, 'RelayResponseNormalizer(): Expected a typename for record `%s`.', JSON.stringify(data, null, 2)) : undefined : void 0;\n return typeName;\n };\n\n _proto._traverseSelections = function _traverseSelections(node, record, data) {\n for (var i = 0; i < node.selections.length; i++) {\n var selection = node.selections[i];\n\n switch (selection.kind) {\n case SCALAR_FIELD:\n case LINKED_FIELD:\n this._normalizeField(node, selection, record, data);\n\n break;\n\n case CONDITION:\n var conditionValue = this._getVariableValue(selection.condition);\n\n if (conditionValue === selection.passingValue) {\n this._traverseSelections(selection, record, data);\n }\n\n break;\n\n case INLINE_FRAGMENT:\n var _typeName = RelayModernRecord.getType(record);\n\n if (_typeName === selection.type) {\n this._traverseSelections(selection, record, data);\n }\n\n break;\n\n case LINKED_HANDLE:\n case SCALAR_HANDLE:\n var args = selection.args ? getArgumentValues(selection.args, this._variables) : {};\n var fieldKey = getStorageKey(selection, this._variables);\n var handleKey = getHandleStorageKey(selection, this._variables);\n\n this._handleFieldPayloads.push({\n args: args,\n dataID: RelayModernRecord.getDataID(record),\n fieldKey: fieldKey,\n handle: selection.handle,\n handleKey: handleKey\n });\n\n break;\n\n case MODULE_IMPORT:\n this._normalizeModuleImport(node, selection, record, data);\n\n break;\n\n case DEFER:\n this._normalizeDefer(selection, record, data);\n\n break;\n\n case STREAM:\n this._normalizeStream(selection, record, data);\n\n break;\n\n case CLIENT_EXTENSION:\n var isClientExtension = this._isClientExtension;\n this._isClientExtension = true;\n\n this._traverseSelections(selection, record, data);\n\n this._isClientExtension = isClientExtension;\n break;\n\n default:\n selection;\n true ? true ? invariant(false, 'RelayResponseNormalizer(): Unexpected ast kind `%s`.', selection.kind) : undefined : undefined;\n }\n }\n };\n\n _proto._normalizeDefer = function _normalizeDefer(defer, record, data) {\n var isDeferred = defer[\"if\"] === null || this._getVariableValue(defer[\"if\"]);\n\n if (true) {\n true ? warning(typeof isDeferred === 'boolean', 'RelayResponseNormalizer: Expected value for @defer `if` argument to ' + 'be a boolean, got `%s`.', isDeferred) : undefined;\n }\n\n if (isDeferred === false) {\n // If defer is disabled there will be no additional response chunk:\n // normalize the data already present.\n this._traverseSelections(defer, record, data);\n } else {\n // Otherwise data *for this selection* should not be present: enqueue\n // metadata to process the subsequent response chunk.\n this._incrementalPlaceholders.push({\n kind: 'defer',\n data: data,\n label: defer.label,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n selector: createNormalizationSelector(defer, RelayModernRecord.getDataID(record), this._variables),\n typeName: RelayModernRecord.getType(record)\n });\n }\n };\n\n _proto._normalizeStream = function _normalizeStream(stream, record, data) {\n // Always normalize regardless of whether streaming is enabled or not,\n // this populates the initial array value (including any items when\n // initial_count > 0).\n this._traverseSelections(stream, record, data);\n\n var isStreamed = stream[\"if\"] === null || this._getVariableValue(stream[\"if\"]);\n\n if (true) {\n true ? warning(typeof isStreamed === 'boolean', 'RelayResponseNormalizer: Expected value for @stream `if` argument ' + 'to be a boolean, got `%s`.', isStreamed) : undefined;\n }\n\n if (isStreamed === true) {\n // If streaming is enabled, *also* emit metadata to process any\n // response chunks that may be delivered.\n this._incrementalPlaceholders.push({\n kind: 'stream',\n label: stream.label,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n parentID: RelayModernRecord.getDataID(record),\n node: stream,\n variables: this._variables\n });\n }\n };\n\n _proto._normalizeModuleImport = function _normalizeModuleImport(parent, moduleImport, record, data) {\n var _componentReference, _operationReference;\n\n !(typeof data === 'object' && data) ? true ? invariant(false, 'RelayResponseNormalizer: Expected data for @module to be an object.') : undefined : void 0;\n var typeName = RelayModernRecord.getType(record);\n var componentKey = getModuleComponentKey(moduleImport.documentName);\n var componentReference = data[componentKey];\n RelayModernRecord.setValue(record, componentKey, (_componentReference = componentReference) !== null && _componentReference !== void 0 ? _componentReference : null);\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n var operationReference = data[operationKey];\n RelayModernRecord.setValue(record, operationKey, (_operationReference = operationReference) !== null && _operationReference !== void 0 ? _operationReference : null);\n\n if (operationReference != null) {\n this._moduleImportPayloads.push({\n data: data,\n dataID: RelayModernRecord.getDataID(record),\n operationReference: operationReference,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n typeName: typeName,\n variables: this._variables\n });\n }\n };\n\n _proto._normalizeField = function _normalizeField(parent, selection, record, data) {\n !(typeof data === 'object' && data) ? true ? invariant(false, 'writeField(): Expected data for field `%s` to be an object.', selection.name) : undefined : void 0;\n var responseKey = selection.alias || selection.name;\n var storageKey = getStorageKey(selection, this._variables);\n var fieldValue = data[responseKey];\n\n if (fieldValue == null) {\n if (fieldValue === undefined) {\n // Fields that are missing in the response are not set on the record.\n // There are three main cases where this can occur:\n // - Inside a client extension: the server will not generally return\n // values for these fields, but a local update may provide them.\n // - Fields on abstract types: these may be missing if the concrete\n // response type does not match the abstract type.\n //\n // Otherwise, missing fields usually indicate a server or user error (\n // the latter for manually constructed payloads).\n if (true) {\n true ? warning(this._isClientExtension || parent.kind === LINKED_FIELD && parent.concreteType == null ? true : Object.prototype.hasOwnProperty.call(data, responseKey), 'RelayResponseNormalizer: Payload did not contain a value ' + 'for field `%s: %s`. Check that you are parsing with the same ' + 'query that was used to fetch the payload.', responseKey, storageKey) : undefined;\n }\n\n return;\n }\n\n RelayModernRecord.setValue(record, storageKey, null);\n return;\n }\n\n if (selection.kind === SCALAR_FIELD) {\n RelayModernRecord.setValue(record, storageKey, fieldValue);\n } else if (selection.kind === LINKED_FIELD) {\n this._path.push(responseKey);\n\n if (selection.plural) {\n this._normalizePluralLink(selection, record, storageKey, fieldValue);\n } else {\n this._normalizeLink(selection, record, storageKey, fieldValue);\n }\n\n this._path.pop();\n } else {\n selection;\n true ? true ? invariant(false, 'RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.', selection.kind) : undefined : undefined;\n }\n };\n\n _proto._normalizeLink = function _normalizeLink(field, record, storageKey, fieldValue) {\n var _field$concreteType;\n\n !(typeof fieldValue === 'object' && fieldValue) ? true ? invariant(false, 'RelayResponseNormalizer: Expected data for field `%s` to be an object.', storageKey) : undefined : void 0;\n var nextID = this._getDataId(\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n fieldValue,\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n (_field$concreteType = field.concreteType) !== null && _field$concreteType !== void 0 ? _field$concreteType : this._getRecordType(fieldValue)) || // Reuse previously generated client IDs\n RelayModernRecord.getLinkedRecordID(record, storageKey) || generateClientID(RelayModernRecord.getDataID(record), storageKey);\n !(typeof nextID === 'string') ? true ? invariant(false, 'RelayResponseNormalizer: Expected id on field `%s` to be a string.', storageKey) : undefined : void 0;\n RelayModernRecord.setLinkedRecordID(record, storageKey, nextID);\n\n var nextRecord = this._recordSource.get(nextID);\n\n if (!nextRecord) {\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n var _typeName2 = field.concreteType || this._getRecordType(fieldValue);\n\n nextRecord = RelayModernRecord.create(nextID, _typeName2);\n\n this._recordSource.set(nextID, nextRecord);\n } else if (true) {\n this._validateRecordType(nextRecord, field, fieldValue);\n }\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the error\n * delete this comment and run Flow. */\n\n\n this._traverseSelections(field, nextRecord, fieldValue);\n };\n\n _proto._normalizePluralLink = function _normalizePluralLink(field, record, storageKey, fieldValue) {\n var _this = this;\n\n !Array.isArray(fieldValue) ? true ? invariant(false, 'RelayResponseNormalizer: Expected data for field `%s` to be an array ' + 'of objects.', storageKey) : undefined : void 0;\n var prevIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n var nextIDs = [];\n fieldValue.forEach(function (item, nextIndex) {\n var _field$concreteType2;\n\n // validate response data\n if (item == null) {\n nextIDs.push(item);\n return;\n }\n\n _this._path.push(String(nextIndex));\n\n !(typeof item === 'object') ? true ? invariant(false, 'RelayResponseNormalizer: Expected elements for field `%s` to be ' + 'objects.', storageKey) : undefined : void 0;\n var nextID = _this._getDataId(\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n item,\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n (_field$concreteType2 = field.concreteType) !== null && _field$concreteType2 !== void 0 ? _field$concreteType2 : _this._getRecordType(item)) || prevIDs && prevIDs[nextIndex] || // Reuse previously generated client IDs:\n generateClientID(RelayModernRecord.getDataID(record), storageKey, nextIndex);\n !(typeof nextID === 'string') ? true ? invariant(false, 'RelayResponseNormalizer: Expected id of elements of field `%s` to ' + 'be strings.', storageKey) : undefined : void 0;\n nextIDs.push(nextID);\n\n var nextRecord = _this._recordSource.get(nextID);\n\n if (!nextRecord) {\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n var _typeName3 = field.concreteType || _this._getRecordType(item);\n\n nextRecord = RelayModernRecord.create(nextID, _typeName3);\n\n _this._recordSource.set(nextID, nextRecord);\n } else if (true) {\n _this._validateRecordType(nextRecord, field, item);\n }\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This comment\n * suppresses an error found when Flow v0.98 was deployed. To see the\n * error delete this comment and run Flow. */\n\n\n _this._traverseSelections(field, nextRecord, item);\n\n _this._path.pop();\n });\n RelayModernRecord.setLinkedRecordIDs(record, storageKey, nextIDs);\n }\n /**\n * Warns if the type of the record does not match the type of the field/payload.\n */\n ;\n\n _proto._validateRecordType = function _validateRecordType(record, field, payload) {\n var _field$concreteType3;\n\n var typeName = (_field$concreteType3 = field.concreteType) !== null && _field$concreteType3 !== void 0 ? _field$concreteType3 : this._getRecordType(payload);\n true ? warning(isClientID(RelayModernRecord.getDataID(record)) || RelayModernRecord.getType(record) === typeName, 'RelayResponseNormalizer: Invalid record `%s`. Expected %s to be ' + 'consistent, but the record was assigned conflicting types `%s` ' + 'and `%s`. The GraphQL server likely violated the globally unique ' + 'id requirement by returning the same id for different objects.', RelayModernRecord.getDataID(record), TYPENAME_KEY, RelayModernRecord.getType(record), typeName) : undefined;\n };\n\n return RelayResponseNormalizer;\n}();\n\nvar instrumentedNormalize = RelayProfiler.instrument('RelayResponseNormalizer.normalize', normalize);\nmodule.exports = {\n normalize: instrumentedNormalize\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js":
/*!******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayStoreUtils.js ***!
\******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js\"));\n\nvar RelayConcreteNode = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\");\n\nvar getRelayHandleKey = __webpack_require__(/*! ../util/getRelayHandleKey */ \"../../node_modules/relay-runtime/lib/util/getRelayHandleKey.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar stableCopy = __webpack_require__(/*! ../util/stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\nvar VARIABLE = RelayConcreteNode.VARIABLE,\n LITERAL = RelayConcreteNode.LITERAL,\n OBJECT_VALUE = RelayConcreteNode.OBJECT_VALUE,\n LIST_VALUE = RelayConcreteNode.LIST_VALUE;\nvar MODULE_COMPONENT_KEY_PREFIX = '__module_component_';\nvar MODULE_OPERATION_KEY_PREFIX = '__module_operation_';\n\nfunction getArgumentValue(arg, variables) {\n if (arg.kind === VARIABLE) {\n // Variables are provided at runtime and are not guaranteed to be stable.\n return getStableVariableValue(arg.variableName, variables);\n } else if (arg.kind === LITERAL) {\n // The Relay compiler generates stable ConcreteArgument values.\n return arg.value;\n } else if (arg.kind === OBJECT_VALUE) {\n var value = {};\n arg.fields.forEach(function (field) {\n value[field.name] = getArgumentValue(field, variables);\n });\n return value;\n } else if (arg.kind === LIST_VALUE) {\n var _value = [];\n arg.items.forEach(function (item) {\n item != null ? _value.push(getArgumentValue(item, variables)) : null;\n });\n return _value;\n }\n}\n/**\n * Returns the values of field/fragment arguments as an object keyed by argument\n * names. Guaranteed to return a result with stable ordered nested values.\n */\n\n\nfunction getArgumentValues(args, variables) {\n var values = {};\n args.forEach(function (arg) {\n values[arg.name] = getArgumentValue(arg, variables);\n });\n return values;\n}\n/**\n * Given a handle field and variable values, returns a key that can be used to\n * uniquely identify the combination of the handle name and argument values.\n *\n * Note: the word \"storage\" here refers to the fact this key is primarily used\n * when writing the results of a key in a normalized graph or \"store\". This\n * name was used in previous implementations of Relay internals and is also\n * used here for consistency.\n */\n\n\nfunction getHandleStorageKey(handleField, variables) {\n var dynamicKey = handleField.dynamicKey,\n handle = handleField.handle,\n key = handleField.key,\n name = handleField.name,\n args = handleField.args,\n filters = handleField.filters;\n var handleName = getRelayHandleKey(handle, key, name);\n var filterArgs = null;\n\n if (args && filters && args.length !== 0 && filters.length !== 0) {\n filterArgs = args.filter(function (arg) {\n return filters.indexOf(arg.name) > -1;\n });\n }\n\n if (dynamicKey) {\n // \"Sort\" the arguments by argument name: this is done by the compiler for\n // user-supplied arguments but the dynamic argument must also be in sorted\n // order. Note that dynamic key argument name is double-underscore-\n // -prefixed, and a double-underscore prefix is disallowed for user-supplied\n // argument names, so there's no need to actually sort.\n filterArgs = filterArgs != null ? [dynamicKey].concat((0, _toConsumableArray2[\"default\"])(filterArgs)) : [dynamicKey];\n }\n\n if (filterArgs === null) {\n return handleName;\n } else {\n return formatStorageKey(handleName, getArgumentValues(filterArgs, variables));\n }\n}\n/**\n * Given a field and variable values, returns a key that can be used to\n * uniquely identify the combination of the field name and argument values.\n *\n * Note: the word \"storage\" here refers to the fact this key is primarily used\n * when writing the results of a key in a normalized graph or \"store\". This\n * name was used in previous implementations of Relay internals and is also\n * used here for consistency.\n */\n\n\nfunction getStorageKey(field, variables) {\n if (field.storageKey) {\n // TODO T23663664: Handle nodes do not yet define a static storageKey.\n return field.storageKey;\n }\n\n var args = field.args,\n name = field.name;\n return args && args.length !== 0 ? formatStorageKey(name, getArgumentValues(args, variables)) : name;\n}\n/**\n * Given a `name` (eg. \"foo\") and an object representing argument values\n * (eg. `{orberBy: \"name\", first: 10}`) returns a unique storage key\n * (ie. `foo{\"first\":10,\"orderBy\":\"name\"}`).\n *\n * This differs from getStorageKey which requires a ConcreteNode where arguments\n * are assumed to already be sorted into a stable order.\n */\n\n\nfunction getStableStorageKey(name, args) {\n return formatStorageKey(name, stableCopy(args));\n}\n/**\n * Given a name and argument values, format a storage key.\n *\n * Arguments and the values within them are expected to be ordered in a stable\n * alphabetical ordering.\n */\n\n\nfunction formatStorageKey(name, argValues) {\n if (!argValues) {\n return name;\n }\n\n var values = [];\n\n for (var argName in argValues) {\n if (argValues.hasOwnProperty(argName)) {\n var value = argValues[argName];\n\n if (value != null) {\n var _JSON$stringify;\n\n values.push(argName + ':' + ((_JSON$stringify = JSON.stringify(value)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : 'undefined'));\n }\n }\n }\n\n return values.length === 0 ? name : name + \"(\".concat(values.join(','), \")\");\n}\n/**\n * Given Variables and a variable name, return a variable value with\n * all values in a stable order.\n */\n\n\nfunction getStableVariableValue(name, variables) {\n !variables.hasOwnProperty(name) ? true ? invariant(false, 'getVariableValue(): Undefined variable `%s`.', name) : undefined : void 0;\n return stableCopy(variables[name]);\n}\n\nfunction getModuleComponentKey(documentName) {\n return \"\".concat(MODULE_COMPONENT_KEY_PREFIX).concat(documentName);\n}\n\nfunction getModuleOperationKey(documentName) {\n return \"\".concat(MODULE_OPERATION_KEY_PREFIX).concat(documentName);\n}\n/**\n * Constants shared by all implementations of RecordSource/MutableRecordSource/etc.\n */\n\n\nvar RelayStoreUtils = {\n FRAGMENTS_KEY: '__fragments',\n FRAGMENT_OWNER_KEY: '__fragmentOwner',\n FRAGMENT_PROP_NAME_KEY: '__fragmentPropName',\n MODULE_COMPONENT_KEY: '__module_component',\n // alias returned by Reader\n ID_KEY: '__id',\n REF_KEY: '__ref',\n REFS_KEY: '__refs',\n ROOT_ID: 'client:root',\n ROOT_TYPE: '__Root',\n TYPENAME_KEY: '__typename',\n INVALIDATED_AT_KEY: '__invalidated_at',\n formatStorageKey: formatStorageKey,\n getArgumentValue: getArgumentValue,\n getArgumentValues: getArgumentValues,\n getHandleStorageKey: getHandleStorageKey,\n getStorageKey: getStorageKey,\n getStableStorageKey: getStableStorageKey,\n getModuleComponentKey: getModuleComponentKey,\n getModuleOperationKey: getModuleOperationKey\n};\nmodule.exports = RelayStoreUtils;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/RelayStoreUtils.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/StoreInspector.js":
/*!*****************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/StoreInspector.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @emails oncall+relay\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js\"));\n\nvar inspect = function inspect() {};\n\nif (true) {\n var formattersInstalled = false;\n /**\n * Installs a Chrome Developer Tools custom formatter for Relay proxy objects\n * returned by StoreInspector.inspect.\n *\n * bit.ly/object-formatters\n */\n\n var installDevtoolFormatters = function installDevtoolFormatters() {\n var _window$devtoolsForma;\n\n if (formattersInstalled) {\n return;\n }\n\n formattersInstalled = true;\n\n if (window.devtoolsFormatters == null) {\n window.devtoolsFormatters = [];\n }\n\n if (!Array.isArray(window.devtoolsFormatters)) {\n return;\n } // eslint-disable-next-line no-console\n\n\n console.info('Make sure to select \"Enable custom formatters\" in the Chrome ' + 'Developer Tools settings, tab \"Preferences\" under the \"Console\" ' + 'section.');\n\n (_window$devtoolsForma = window.devtoolsFormatters).push.apply(_window$devtoolsForma, (0, _toConsumableArray2[\"default\"])(createFormatters()));\n };\n\n var createFormatters = function createFormatters() {\n var listStyle = {\n style: 'list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal'\n };\n var keyStyle = {\n style: 'rgb(136, 19, 145)'\n };\n var nullStyle = {\n style: 'color: #777'\n };\n\n var reference = function reference(object, config) {\n return object == null ? ['span', nullStyle, 'undefined'] : ['object', {\n object: object,\n config: config\n }];\n };\n\n var renderRecordHeader = function renderRecordHeader(record) {\n return ['span', {\n style: 'font-style: italic'\n }, record.__typename, ['span', nullStyle, ' {id: \"', record.__id, '\", …}']];\n };\n\n var isRecord = function isRecord(o) {\n return o != null && typeof o.__id === 'string';\n };\n\n var RecordEntry = function RecordEntry(key, value) {\n this.key = key;\n this.value = value;\n };\n\n var renderRecordEntries = function renderRecordEntries(record) {\n var children = Object.keys(record).map(function (key) {\n return ['li', {}, ['object', {\n object: new RecordEntry(key, record[key])\n }]];\n });\n return ['ol', listStyle].concat((0, _toConsumableArray2[\"default\"])(children));\n };\n\n var recordFormatter = {\n header: function header(obj) {\n if (!isRecord(obj)) {\n return null;\n }\n\n return renderRecordHeader(obj);\n },\n hasBody: function hasBody(obj) {\n return true;\n },\n body: function body(obj) {\n return renderRecordEntries(obj);\n }\n };\n var recordEntryFormatter = {\n header: function header(obj) {\n if (obj instanceof RecordEntry) {\n var value = isRecord(obj.value) ? renderRecordHeader(obj.value) : reference(obj.value);\n return ['span', keyStyle, obj.key, ': ', value];\n }\n\n return null;\n },\n hasBody: function hasBody(obj) {\n return isRecord(obj.value);\n },\n body: function body(obj) {\n return renderRecordEntries(obj.value);\n }\n };\n return [recordFormatter, recordEntryFormatter];\n };\n\n var getWrappedRecord = function getWrappedRecord(source, dataID) {\n var record = source.get(dataID);\n\n if (record == null) {\n return record;\n }\n\n return new Proxy((0, _objectSpread2[\"default\"])({}, record), {\n get: function get(target, prop) {\n var value = target[prop];\n\n if (value == null) {\n return value;\n }\n\n if (typeof value === 'object') {\n if (typeof value.__ref === 'string') {\n return getWrappedRecord(source, value.__ref);\n }\n\n if (Array.isArray(value.__refs)) {\n /* $FlowFixMe(>=0.111.0) This comment suppresses an error found\n * when Flow v0.111.0 was deployed. To see the error, delete this\n * comment and run Flow. */\n return value.__refs.map(function (ref) {\n return getWrappedRecord(source, ref);\n });\n }\n }\n\n return value;\n }\n });\n };\n\n inspect = function inspect(environment, dataID) {\n var _dataID;\n\n installDevtoolFormatters();\n return getWrappedRecord(environment.getStore().getSource(), (_dataID = dataID) !== null && _dataID !== void 0 ? _dataID : 'client:root');\n };\n}\n\nmodule.exports = {\n inspect: inspect\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/StoreInspector.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/ViewerPattern.js":
/*!****************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/ViewerPattern.js ***!
\****************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _require = __webpack_require__(/*! ./ClientID */ \"../../node_modules/relay-runtime/lib/store/ClientID.js\"),\n generateClientID = _require.generateClientID;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n ROOT_ID = _require2.ROOT_ID;\n\nvar VIEWER_ID = generateClientID(ROOT_ID, 'viewer');\nvar VIEWER_TYPE = 'Viewer';\nmodule.exports = {\n VIEWER_ID: VIEWER_ID,\n VIEWER_TYPE: VIEWER_TYPE\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/ViewerPattern.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js":
/*!******************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar areEqual = __webpack_require__(/*! fbjs/lib/areEqual */ \"../../node_modules/fbjs/lib/areEqual.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../util/RelayConcreteNode */ \"../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js\"),\n LINKED_FIELD = _require.LINKED_FIELD;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n getHandleStorageKey = _require2.getHandleStorageKey;\n\n/**\n * @private\n *\n * Creates a clone of the supplied `handleField` by finding the original linked\n * field (on which the handle was declared) among the sibling `selections`, and\n * copying its selections into the clone.\n */\nfunction cloneRelayHandleSourceField(handleField, selections, variables) {\n var sourceField = selections.find(function (source) {\n return source.kind === LINKED_FIELD && source.name === handleField.name && source.alias === handleField.alias && areEqual(source.args, handleField.args);\n });\n !(sourceField && sourceField.kind === LINKED_FIELD) ? true ? invariant(false, 'cloneRelayHandleSourceField: Expected a corresponding source field for ' + 'handle `%s`.', handleField.handle) : undefined : void 0;\n var handleKey = getHandleStorageKey(handleField, variables);\n return {\n kind: 'LinkedField',\n alias: sourceField.alias,\n name: handleKey,\n storageKey: handleKey,\n args: null,\n concreteType: sourceField.concreteType,\n plural: sourceField.plural,\n selections: sourceField.selections\n };\n}\n\nmodule.exports = cloneRelayHandleSourceField;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/createFragmentSpecResolver.js":
/*!*****************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/createFragmentSpecResolver.js ***!
\*****************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayModernFragmentSpecResolver = __webpack_require__(/*! ./RelayModernFragmentSpecResolver */ \"../../node_modules/relay-runtime/lib/store/RelayModernFragmentSpecResolver.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nfunction createFragmentSpecResolver(context, containerName, fragments, props, callback) {\n if (true) {\n var fragmentNames = Object.keys(fragments);\n fragmentNames.forEach(function (fragmentName) {\n var propValue = props[fragmentName];\n true ? warning(propValue !== undefined, 'createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but ' + 'got `undefined`. Pass an explicit `null` if this is intentional.', fragmentName, containerName) : undefined;\n });\n }\n\n return new RelayModernFragmentSpecResolver(context, fragments, props, callback);\n}\n\nmodule.exports = createFragmentSpecResolver;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/createFragmentSpecResolver.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/createRelayContext.js":
/*!*********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/createRelayContext.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar relayContext;\nvar firstReact;\n\nfunction createRelayContext(react) {\n if (!relayContext) {\n relayContext = react.createContext(null);\n firstReact = react;\n }\n\n !(react === firstReact) ? true ? invariant(false, '[createRelayContext]: You passing a different instance of React', react.version) : undefined : void 0;\n return relayContext;\n}\n\nmodule.exports = createRelayContext;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/createRelayContext.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/defaultGetDataID.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/defaultGetDataID.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _require = __webpack_require__(/*! ./ViewerPattern */ \"../../node_modules/relay-runtime/lib/store/ViewerPattern.js\"),\n VIEWER_ID = _require.VIEWER_ID,\n VIEWER_TYPE = _require.VIEWER_TYPE;\n\nfunction defaultGetDataID(fieldValue, typeName) {\n if (typeName === VIEWER_TYPE) {\n return fieldValue.id == null ? VIEWER_ID : fieldValue.id;\n }\n\n return fieldValue.id;\n}\n\nmodule.exports = defaultGetDataID;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/defaultGetDataID.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/hasOverlappingIDs.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/hasOverlappingIDs.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction hasOverlappingIDs(seenRecords, updatedRecordIDs) {\n for (var key in seenRecords) {\n if (hasOwnProperty.call(seenRecords, key) && hasOwnProperty.call(updatedRecordIDs, key)) {\n return true;\n }\n }\n\n return false;\n}\n\nmodule.exports = hasOverlappingIDs;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/hasOverlappingIDs.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js":
/*!***************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js ***!
\***************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * Determine if a given value is an object that implements the `Environment`\n * interface defined in `RelayStoreTypes`.\n *\n * Use a sigil for detection to avoid a realm-specific instanceof check, and to\n * aid in module tree-shaking to avoid requiring all of RelayRuntime just to\n * detect its environment.\n */\n\nfunction isRelayModernEnvironment(environment) {\n return Boolean(environment && environment['@@RelayModernEnvironment']);\n}\n\nmodule.exports = isRelayModernEnvironment;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/store/readInlineData.js":
/*!*****************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/readInlineData.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ../query/GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\"),\n getInlineDataFragment = _require.getInlineDataFragment;\n\nvar _require2 = __webpack_require__(/*! ./RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY;\n\nfunction readInlineData(fragment, fragmentRef) {\n var _fragmentRef$FRAGMENT;\n\n var inlineDataFragment = getInlineDataFragment(fragment);\n\n if (fragmentRef == null) {\n return fragmentRef;\n }\n\n !(typeof fragmentRef === 'object') ? true ? invariant(false, 'readInlineData(): Expected an object, got `%s`.', typeof fragmentRef) : undefined : void 0; // $FlowFixMe\n\n var inlineData = (_fragmentRef$FRAGMENT = fragmentRef[FRAGMENTS_KEY]) === null || _fragmentRef$FRAGMENT === void 0 ? void 0 : _fragmentRef$FRAGMENT[inlineDataFragment.name];\n !(inlineData != null) ? true ? invariant(false, 'readInlineData(): Expected fragment `%s` to be spread in the parent ' + 'fragment.', inlineDataFragment.name) : undefined : void 0;\n return inlineData;\n}\n\nmodule.exports = readInlineData;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/store/readInlineData.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/subscription/requestSubscription.js":
/*!*****************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/subscription/requestSubscription.js ***!
\*****************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayDeclarativeMutationConfig = __webpack_require__(/*! ../mutations/RelayDeclarativeMutationConfig */ \"../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js\");\n\nvar warning = __webpack_require__(/*! fbjs/lib/warning */ \"../../node_modules/fbjs/lib/warning.js\");\n\nvar _require = __webpack_require__(/*! ../query/GraphQLTag */ \"../../node_modules/relay-runtime/lib/query/GraphQLTag.js\"),\n getRequest = _require.getRequest;\n\nvar _require2 = __webpack_require__(/*! ../store/RelayModernOperationDescriptor */ \"../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js\"),\n createOperationDescriptor = _require2.createOperationDescriptor;\n\nfunction requestSubscription(environment, config) {\n var subscription = getRequest(config.subscription);\n\n if (subscription.params.operationKind !== 'subscription') {\n throw new Error('requestSubscription: Must use Subscription operation');\n }\n\n var configs = config.configs,\n onCompleted = config.onCompleted,\n onError = config.onError,\n onNext = config.onNext,\n variables = config.variables;\n var operation = createOperationDescriptor(subscription, variables);\n true ? warning(!(config.updater && configs), 'requestSubscription: Expected only one of `updater` and `configs` to be provided') : undefined;\n\n var _ref = configs ? RelayDeclarativeMutationConfig.convert(configs, subscription, null\n /* optimisticUpdater */\n , config.updater) : config,\n updater = _ref.updater;\n\n var sub = environment.execute({\n operation: operation,\n updater: updater\n }).map(function () {\n var data = environment.lookup(operation.fragment).data; // $FlowFixMe\n\n return data;\n }).subscribe({\n next: onNext,\n error: onError,\n complete: onCompleted\n });\n return {\n dispose: sub.unsubscribe\n };\n}\n\nmodule.exports = requestSubscription;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/subscription/requestSubscription.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayConcreteNode.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\n/**\n * Represents a common GraphQL request with `text` (or persisted `id`) can be\n * used to execute it, an `operation` containing information to normalize the\n * results, and a `fragment` derived from that operation to read the response\n * data (masking data from child fragments).\n */\n\n/**\n * Contains the `text` (or persisted `id`) required for executing a common\n * GraphQL request.\n */\nvar RelayConcreteNode = {\n CONDITION: 'Condition',\n CLIENT_EXTENSION: 'ClientExtension',\n DEFER: 'Defer',\n CONNECTION: 'Connection',\n FRAGMENT: 'Fragment',\n FRAGMENT_SPREAD: 'FragmentSpread',\n INLINE_DATA_FRAGMENT_SPREAD: 'InlineDataFragmentSpread',\n INLINE_DATA_FRAGMENT: 'InlineDataFragment',\n INLINE_FRAGMENT: 'InlineFragment',\n LINKED_FIELD: 'LinkedField',\n LINKED_HANDLE: 'LinkedHandle',\n LITERAL: 'Literal',\n LIST_VALUE: 'ListValue',\n LOCAL_ARGUMENT: 'LocalArgument',\n MODULE_IMPORT: 'ModuleImport',\n OBJECT_VALUE: 'ObjectValue',\n OPERATION: 'Operation',\n REQUEST: 'Request',\n ROOT_ARGUMENT: 'RootArgument',\n SCALAR_FIELD: 'ScalarField',\n SCALAR_HANDLE: 'ScalarHandle',\n SPLIT_OPERATION: 'SplitOperation',\n STREAM: 'Stream',\n VARIABLE: 'Variable'\n};\nmodule.exports = RelayConcreteNode;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayConcreteNode.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nmodule.exports = {\n DEFAULT_HANDLE_KEY: ''\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayError.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayError.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * @private\n */\n\nfunction createError(type, name, message) {\n var error = new Error(message);\n error.name = name;\n error.type = type;\n error.framesToPop = 2;\n return error;\n}\n\nmodule.exports = {\n create: function create(name, message) {\n return createError('error', name, message);\n },\n createWarning: function createWarning(name, message) {\n return createError('warn', name, message);\n }\n};\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayError.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayFeatureFlags.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar RelayFeatureFlags = {\n // T45504512: new connection model\n ENABLE_VARIABLE_CONNECTION_KEY: false,\n ENABLE_PARTIAL_RENDERING_DEFAULT: false,\n ENABLE_RELAY_CONTAINERS_SUSPENSE: true,\n ENABLE_UNIQUE_MUTATION_ROOT: true\n};\nmodule.exports = RelayFeatureFlags;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayFeatureFlags.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayProfiler.js":
/*!***************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayProfiler.js ***!
\***************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nfunction emptyFunction() {}\n\nvar aggregateHandlersByName = {\n '*': []\n};\nvar profileHandlersByName = {\n '*': []\n};\nvar NOT_INVOKED = {};\nvar defaultProfiler = {\n stop: emptyFunction\n};\n\nvar shouldInstrument = function shouldInstrument(name) {\n if (true) {\n return true;\n }\n\n return name.charAt(0) !== '@';\n};\n/**\n * @public\n *\n * Instruments methods to allow profiling various parts of Relay. Profiling code\n * in Relay consists of three steps:\n *\n * - Instrument the function to be profiled.\n * - Attach handlers to the instrumented function.\n * - Run the code which triggers the handlers.\n *\n * Handlers attached to instrumented methods are called with an instrumentation\n * name and a callback that must be synchronously executed:\n *\n * instrumentedMethod.attachHandler(function(name, callback) {\n * const start = performance.now();\n * callback();\n * console.log('Duration', performance.now() - start);\n * });\n *\n * Handlers for profiles are callbacks that return a stop method:\n *\n * RelayProfiler.attachProfileHandler('profileName', (name, state) => {\n * const start = performance.now();\n * return function stop(name, state) {\n * console.log(`Duration (${name})`, performance.now() - start);\n * }\n * });\n *\n * In order to reduce the impact on performance in production, instrumented\n * methods and profilers with names that begin with `@` will only be measured\n * if `__DEV__` is true. This should be used for very hot functions.\n */\n\n\nvar RelayProfiler = {\n /**\n * Instruments methods on a class or object. This re-assigns the method in\n * order to preserve function names in stack traces (which are detected by\n * modern debuggers via heuristics). Example usage:\n *\n * const RelayStore = { primeCache: function() {...} };\n * RelayProfiler.instrumentMethods(RelayStore, {\n * primeCache: 'RelayStore.primeCache'\n * });\n *\n * RelayStore.primeCache.attachHandler(...);\n *\n * As a result, the methods will be replaced by wrappers that provide the\n * `attachHandler` and `detachHandler` methods.\n */\n instrumentMethods: function instrumentMethods(object, names) {\n for (var _key in names) {\n if (names.hasOwnProperty(_key)) {\n if (typeof object[_key] === 'function') {\n object[_key] = RelayProfiler.instrument(names[_key], object[_key]);\n }\n }\n }\n },\n\n /**\n * Wraps the supplied function with one that provides the `attachHandler` and\n * `detachHandler` methods. Example usage:\n *\n * const printRelayQuery =\n * RelayProfiler.instrument('printRelayQuery', printRelayQuery);\n *\n * printRelayQuery.attachHandler(...);\n *\n * NOTE: The instrumentation assumes that no handlers are attached or detached\n * in the course of executing another handler.\n */\n instrument: function instrument(name, originalFunction) {\n if (!shouldInstrument(name)) {\n originalFunction.attachHandler = emptyFunction;\n originalFunction.detachHandler = emptyFunction;\n return originalFunction;\n }\n\n if (!aggregateHandlersByName.hasOwnProperty(name)) {\n aggregateHandlersByName[name] = [];\n }\n\n var catchallHandlers = aggregateHandlersByName['*'];\n var aggregateHandlers = aggregateHandlersByName[name];\n var handlers = [];\n var contexts = [];\n\n var invokeHandlers = function invokeHandlers() {\n var context = contexts[contexts.length - 1];\n\n if (context[0]) {\n context[0]--;\n catchallHandlers[context[0]](name, invokeHandlers);\n } else if (context[1]) {\n context[1]--;\n aggregateHandlers[context[1]](name, invokeHandlers);\n } else if (context[2]) {\n context[2]--;\n handlers[context[2]](name, invokeHandlers);\n } else {\n context[5] = originalFunction.apply(context[3], context[4]);\n }\n };\n\n var instrumentedCallback = function instrumentedCallback() {\n var returnValue;\n\n if (aggregateHandlers.length === 0 && handlers.length === 0 && catchallHandlers.length === 0) {\n returnValue = originalFunction.apply(this, arguments);\n } else {\n contexts.push([catchallHandlers.length, aggregateHandlers.length, handlers.length, this, arguments, NOT_INVOKED]);\n invokeHandlers();\n var context = contexts.pop();\n returnValue = context[5];\n\n if (returnValue === NOT_INVOKED) {\n throw new Error('RelayProfiler: Handler did not invoke original function.');\n }\n }\n\n return returnValue;\n };\n\n instrumentedCallback.attachHandler = function (handler) {\n handlers.push(handler);\n };\n\n instrumentedCallback.detachHandler = function (handler) {\n removeFromArray(handlers, handler);\n };\n\n instrumentedCallback.displayName = '(instrumented ' + name + ')';\n return instrumentedCallback;\n },\n\n /**\n * Attaches a handler to all methods instrumented with the supplied name.\n *\n * function createRenderer() {\n * return RelayProfiler.instrument('render', function() {...});\n * }\n * const renderA = createRenderer();\n * const renderB = createRenderer();\n *\n * // Only profiles `renderA`.\n * renderA.attachHandler(...);\n *\n * // Profiles both `renderA` and `renderB`.\n * RelayProfiler.attachAggregateHandler('render', ...);\n *\n */\n attachAggregateHandler: function attachAggregateHandler(name, handler) {\n if (shouldInstrument(name)) {\n if (!aggregateHandlersByName.hasOwnProperty(name)) {\n aggregateHandlersByName[name] = [];\n }\n\n aggregateHandlersByName[name].push(handler);\n }\n },\n\n /**\n * Detaches a handler attached via `attachAggregateHandler`.\n */\n detachAggregateHandler: function detachAggregateHandler(name, handler) {\n if (shouldInstrument(name)) {\n if (aggregateHandlersByName.hasOwnProperty(name)) {\n removeFromArray(aggregateHandlersByName[name], handler);\n }\n }\n },\n\n /**\n * Instruments profiling for arbitrarily asynchronous code by a name.\n *\n * const timerProfiler = RelayProfiler.profile('timeout');\n * setTimeout(function() {\n * timerProfiler.stop();\n * }, 1000);\n *\n * RelayProfiler.attachProfileHandler('timeout', ...);\n *\n * Arbitrary state can also be passed into `profile` as a second argument. The\n * attached profile handlers will receive this as the second argument.\n */\n profile: function profile(name, state) {\n var hasCatchAllHandlers = profileHandlersByName['*'].length > 0;\n var hasNamedHandlers = profileHandlersByName.hasOwnProperty(name);\n\n if (hasNamedHandlers || hasCatchAllHandlers) {\n var profileHandlers = hasNamedHandlers && hasCatchAllHandlers ? profileHandlersByName[name].concat(profileHandlersByName['*']) : hasNamedHandlers ? profileHandlersByName[name] : profileHandlersByName['*'];\n var stopHandlers;\n\n for (var ii = profileHandlers.length - 1; ii >= 0; ii--) {\n var profileHandler = profileHandlers[ii];\n var stopHandler = profileHandler(name, state);\n stopHandlers = stopHandlers || [];\n stopHandlers.unshift(stopHandler);\n }\n\n return {\n stop: function stop(error) {\n if (stopHandlers) {\n stopHandlers.forEach(function (stopHandler) {\n return stopHandler(error);\n });\n }\n }\n };\n }\n\n return defaultProfiler;\n },\n\n /**\n * Attaches a handler to profiles with the supplied name. You can also\n * attach to the special name '*' which is a catch all.\n */\n attachProfileHandler: function attachProfileHandler(name, handler) {\n if (shouldInstrument(name)) {\n if (!profileHandlersByName.hasOwnProperty(name)) {\n profileHandlersByName[name] = [];\n }\n\n profileHandlersByName[name].push(handler);\n }\n },\n\n /**\n * Detaches a handler attached via `attachProfileHandler`.\n */\n detachProfileHandler: function detachProfileHandler(name, handler) {\n if (shouldInstrument(name)) {\n if (profileHandlersByName.hasOwnProperty(name)) {\n removeFromArray(profileHandlersByName[name], handler);\n }\n }\n }\n};\n\nfunction removeFromArray(array, element) {\n var index = array.indexOf(element);\n\n if (index !== -1) {\n array.splice(index, 1);\n }\n}\n\nmodule.exports = RelayProfiler;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayProfiler.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/RelayReplaySubject.js":
/*!********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayReplaySubject.js ***!
\********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar RelayObservable = __webpack_require__(/*! ../network/RelayObservable */ \"../../node_modules/relay-runtime/lib/network/RelayObservable.js\");\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\n/**\n * An implementation of a `ReplaySubject` for Relay Observables.\n *\n * Records events provided and synchronously plays them back to new subscribers,\n * as well as forwarding new asynchronous events.\n */\nvar RelayReplaySubject =\n/*#__PURE__*/\nfunction () {\n function RelayReplaySubject() {\n var _this = this;\n\n (0, _defineProperty2[\"default\"])(this, \"_complete\", false);\n (0, _defineProperty2[\"default\"])(this, \"_events\", []);\n (0, _defineProperty2[\"default\"])(this, \"_sinks\", new Set());\n (0, _defineProperty2[\"default\"])(this, \"_subscription\", null);\n this._observable = RelayObservable.create(function (sink) {\n _this._sinks.add(sink);\n\n var events = _this._events;\n\n for (var i = 0; i < events.length; i++) {\n if (sink.closed) {\n // Bail if an event made the observer unsubscribe.\n break;\n }\n\n var event = events[i];\n\n switch (event.kind) {\n case 'complete':\n sink.complete();\n break;\n\n case 'error':\n sink.error(event.error);\n break;\n\n case 'next':\n sink.next(event.data);\n break;\n\n default:\n event.kind;\n true ? true ? invariant(false, 'RelayReplaySubject: Unknown event kind `%s`.', event.kind) : undefined : undefined;\n }\n }\n\n return function () {\n _this._sinks[\"delete\"](sink);\n };\n });\n }\n\n var _proto = RelayReplaySubject.prototype;\n\n _proto.complete = function complete() {\n if (this._complete === true) {\n return;\n }\n\n this._complete = true;\n\n this._events.push({\n kind: 'complete'\n });\n\n this._sinks.forEach(function (sink) {\n return sink.complete();\n });\n };\n\n _proto.error = function error(_error) {\n if (this._complete === true) {\n return;\n }\n\n this._complete = true;\n\n this._events.push({\n kind: 'error',\n error: _error\n });\n\n this._sinks.forEach(function (sink) {\n return sink.error(_error);\n });\n };\n\n _proto.next = function next(data) {\n if (this._complete === true) {\n return;\n }\n\n this._events.push({\n kind: 'next',\n data: data\n });\n\n this._sinks.forEach(function (sink) {\n return sink.next(data);\n });\n };\n\n _proto.subscribe = function subscribe(observer) {\n this._subscription = this._observable.subscribe(observer);\n return this._subscription;\n };\n\n _proto.unsubscribe = function unsubscribe() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n };\n\n _proto.getObserverCount = function getObserverCount() {\n return this._sinks.size;\n };\n\n return RelayReplaySubject;\n}();\n\nmodule.exports = RelayReplaySubject;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/RelayReplaySubject.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/createPayloadFor3DField.js":
/*!*************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/createPayloadFor3DField.js ***!
\*************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @emails oncall+relay\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\nvar _require = __webpack_require__(/*! ../store/RelayStoreUtils */ \"../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js\"),\n getModuleComponentKey = _require.getModuleComponentKey,\n getModuleOperationKey = _require.getModuleOperationKey;\n\nfunction createPayloadFor3DField(name, operation, component, response) {\n var data = (0, _objectSpread2[\"default\"])({}, response);\n data[getModuleComponentKey(name)] = component;\n data[getModuleOperationKey(name)] = operation;\n return data;\n}\n\nmodule.exports = createPayloadFor3DField;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/createPayloadFor3DField.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/deepFreeze.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/deepFreeze.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * Recursively \"deep\" freezes the supplied object.\n *\n * For convenience, and for consistency with the behavior of `Object.freeze`,\n * returns the now-frozen original object.\n */\n\nfunction deepFreeze(object) {\n Object.freeze(object);\n Object.getOwnPropertyNames(object).forEach(function (name) {\n var property = object[name];\n\n if (property && typeof property === 'object' && !Object.isFrozen(property)) {\n deepFreeze(property);\n }\n });\n return object;\n}\n\nmodule.exports = deepFreeze;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/deepFreeze.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/generateID.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/generateID.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar id = 100000;\n\nfunction generateID() {\n return id++;\n}\n\nmodule.exports = generateID;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/generateID.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/getFragmentIdentifier.js":
/*!***********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getFragmentIdentifier.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @emails oncall+relay\n */\n// flowlint ambiguous-object-type:error\n\n\nvar stableCopy = __webpack_require__(/*! ./stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\nvar _require = __webpack_require__(/*! ../store/RelayModernSelector */ \"../../node_modules/relay-runtime/lib/store/RelayModernSelector.js\"),\n getDataIDsFromFragment = _require.getDataIDsFromFragment,\n getVariablesFromFragment = _require.getVariablesFromFragment,\n getSelector = _require.getSelector;\n\nfunction getFragmentIdentifier(fragmentNode, fragmentRef) {\n var _JSON$stringify;\n\n var selector = getSelector(fragmentNode, fragmentRef);\n var fragmentOwnerIdentifier = selector == null ? 'null' : selector.kind === 'SingularReaderSelector' ? selector.owner.identifier : '[' + selector.selectors.map(function (sel) {\n return sel.owner.identifier;\n }).join(',') + ']';\n var fragmentVariables = getVariablesFromFragment(fragmentNode, fragmentRef);\n var dataIDs = getDataIDsFromFragment(fragmentNode, fragmentRef);\n return fragmentOwnerIdentifier + '/' + fragmentNode.name + '/' + JSON.stringify(stableCopy(fragmentVariables)) + '/' + ((_JSON$stringify = JSON.stringify(dataIDs)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : 'missing');\n}\n\nmodule.exports = getFragmentIdentifier;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getFragmentIdentifier.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/getRelayHandleKey.js":
/*!*******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getRelayHandleKey.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar _require = __webpack_require__(/*! ./RelayDefaultHandleKey */ \"../../node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js\"),\n DEFAULT_HANDLE_KEY = _require.DEFAULT_HANDLE_KEY;\n/**\n * @internal\n *\n * Helper to create a unique name for a handle field based on the handle name, handle key and\n * source field.\n */\n\n\nfunction getRelayHandleKey(handleName, key, fieldName) {\n if (key && key !== DEFAULT_HANDLE_KEY) {\n return \"__\".concat(key, \"_\").concat(handleName);\n }\n\n !(fieldName != null) ? true ? invariant(false, 'getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided') : undefined : void 0;\n return \"__\".concat(fieldName, \"_\").concat(handleName);\n}\n\nmodule.exports = getRelayHandleKey;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getRelayHandleKey.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/getRequestIdentifier.js":
/*!**********************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getRequestIdentifier.js ***!
\**********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar invariant = __webpack_require__(/*! fbjs/lib/invariant */ \"../../node_modules/fbjs/lib/invariant.js\");\n\nvar stableCopy = __webpack_require__(/*! ./stableCopy */ \"../../node_modules/relay-runtime/lib/util/stableCopy.js\");\n\n/**\n * Returns a stable identifier for the given pair of `RequestParameters` +\n * variables.\n */\nfunction getRequestIdentifier(parameters, variables) {\n var requestID = parameters.id != null ? parameters.id : parameters.text;\n !(requestID != null) ? true ? invariant(false, 'getRequestIdentifier: Expected request `%s` to have either a ' + 'valid `id` or `text` property', parameters.name) : undefined : void 0;\n return requestID + JSON.stringify(stableCopy(variables));\n}\n\nmodule.exports = getRequestIdentifier;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/getRequestIdentifier.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/isPromise.js":
/*!***********************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/isPromise.js ***!
\***********************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nfunction isPromise(p) {\n return !!p && typeof p.then === 'function';\n}\n\nmodule.exports = isPromise;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/isPromise.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/isScalarAndEqual.js":
/*!******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/isScalarAndEqual.js ***!
\******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * A fast test to determine if two values are equal scalars:\n * - compares scalars such as booleans, strings, numbers by value\n * - compares functions by identity\n * - returns false for complex values, since these cannot be cheaply tested for\n * equality (use `areEquals` instead)\n */\n\nfunction isScalarAndEqual(valueA, valueB) {\n return valueA === valueB && (valueA === null || typeof valueA !== 'object');\n}\n\nmodule.exports = isScalarAndEqual;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/isScalarAndEqual.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/recycleNodesInto.js":
/*!******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/recycleNodesInto.js ***!
\******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * Recycles subtrees from `prevData` by replacing equal subtrees in `nextData`.\n */\n\nfunction recycleNodesInto(prevData, nextData) {\n if (prevData === nextData || typeof prevData !== 'object' || !prevData || typeof nextData !== 'object' || !nextData) {\n return nextData;\n }\n\n var canRecycle = false; // Assign local variables to preserve Flow type refinement.\n\n var prevArray = Array.isArray(prevData) ? prevData : null;\n var nextArray = Array.isArray(nextData) ? nextData : null;\n\n if (prevArray && nextArray) {\n canRecycle = nextArray.reduce(function (wasEqual, nextItem, ii) {\n var prevValue = prevArray[ii];\n var nextValue = recycleNodesInto(prevValue, nextItem);\n\n if (nextValue !== nextArray[ii]) {\n if (true) {\n if (!Object.isFrozen(nextArray)) {\n nextArray[ii] = nextValue;\n }\n } else {}\n }\n\n return wasEqual && nextValue === prevArray[ii];\n }, true) && prevArray.length === nextArray.length;\n } else if (!prevArray && !nextArray) {\n // Assign local variables to preserve Flow type refinement.\n var prevObject = prevData;\n var nextObject = nextData;\n var prevKeys = Object.keys(prevObject);\n var nextKeys = Object.keys(nextObject);\n canRecycle = nextKeys.reduce(function (wasEqual, key) {\n var prevValue = prevObject[key];\n var nextValue = recycleNodesInto(prevValue, nextObject[key]);\n\n if (nextValue !== nextObject[key]) {\n if (true) {\n if (!Object.isFrozen(nextObject)) {\n /* $FlowFixMe(>=0.98.0 site=www,mobile,react_native_fb,oss) This\n * comment suppresses an error found when Flow v0.98 was deployed.\n * To see the error delete this comment and run Flow. */\n nextObject[key] = nextValue;\n }\n } else {}\n }\n\n return wasEqual && nextValue === prevObject[key];\n }, true) && prevKeys.length === nextKeys.length;\n }\n\n return canRecycle ? prevData : nextData;\n}\n\nmodule.exports = recycleNodesInto;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/recycleNodesInto.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/resolveImmediate.js":
/*!******************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/resolveImmediate.js ***!
\******************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n\nvar resolvedPromise = Promise.resolve();\n/**\n * An alternative to setImmediate based on Promise.\n */\n\nfunction resolveImmediate(callback) {\n resolvedPromise.then(callback)[\"catch\"](throwNext);\n}\n\nfunction throwNext(error) {\n setTimeout(function () {\n throw error;\n }, 0);\n}\n\nmodule.exports = resolveImmediate;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/resolveImmediate.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/lib/util/stableCopy.js":
/*!************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/stableCopy.js ***!
\************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n// flowlint ambiguous-object-type:error\n\n/**\n * Creates a copy of the provided value, ensuring any nested objects have their\n * keys sorted such that equivalent values would have identical JSON.stringify\n * results.\n */\n\nfunction stableCopy(value) {\n if (!value || typeof value !== 'object') {\n return value;\n }\n\n if (Array.isArray(value)) {\n return value.map(stableCopy);\n }\n\n var keys = Object.keys(value).sort();\n var stable = {};\n\n for (var i = 0; i < keys.length; i++) {\n stable[keys[i]] = stableCopy(value[keys[i]]);\n }\n\n return stable;\n}\n\nmodule.exports = stableCopy;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/lib/util/stableCopy.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
/*!**********************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
\**********************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nmodule.exports = _arrayWithoutHoles;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js":
/*!*******************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js ***!
\*******************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!**************************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\**************************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/iterableToArray.js":
/*!********************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
\********************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/iterableToArray.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/nonIterableSpread.js":
/*!**********************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
\**********************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nmodule.exports = _nonIterableSpread;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/nonIterableSpread.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js":
/*!*****************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js ***!
\*****************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("var defineProperty = __webpack_require__(/*! ./defineProperty */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js\");\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nmodule.exports = _objectSpread;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread.js?");
/***/ }),
/***/ "../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js":
/*!**********************************************************************************************************************************!*\
!*** /Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
\**********************************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ \"../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\n\n//# sourceURL=webpack://%5Bname%5D//Users/thiagoleite/Projects/money-plan/node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js?");
/***/ }),
/***/ "../../node_modules/webpack/buildin/global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack://%5Bname%5D/(webpack)/buildin/global.js?");
/***/ }),
/***/ 0:
/*!**********************!*\
!*** dll ReactStuff ***!
\**********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
eval("module.exports = __webpack_require__;\n\n//# sourceURL=webpack://%5Bname%5D/dll_ReactStuff?");
/***/ })
/******/ }); | 424.30297 | 65,303 | 0.664907 |
d7854b41212d81952b36b0d41d5379d1f38fb056 | 3,089 | js | JavaScript | XilinxProcessorIPLib/drivers/hdcp22_tx/doc/html/api/navtreeindex1.js | ghsecuritylab/embeddedsw | dab8779662c6b7517e9cd849e954255fbe4ca479 | [
"BSD-3-Clause"
] | 1 | 2021-10-30T00:13:33.000Z | 2021-10-30T00:13:33.000Z | XilinxProcessorIPLib/drivers/hdcp22_tx/doc/html/api/navtreeindex1.js | ghsecuritylab/embeddedsw | dab8779662c6b7517e9cd849e954255fbe4ca479 | [
"BSD-3-Clause"
] | null | null | null | XilinxProcessorIPLib/drivers/hdcp22_tx/doc/html/api/navtreeindex1.js | ghsecuritylab/embeddedsw | dab8779662c6b7517e9cd849e954255fbe4ca479 | [
"BSD-3-Clause"
] | 2 | 2020-03-06T23:32:36.000Z | 2021-09-09T11:55:44.000Z | var NAVTREEINDEX1 =
{
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a04238f72e4a4ae5a1af686cce54e9db6":[2,1,14,4],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a0eaa3b010a13e54eb65f526a6ce60b0f":[2,1,14,17],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a13530496f22fa1301dfc05f0d348b949":[2,1,14,12],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a211af440e7ef599ab1362ea2a64376e2":[2,1,14,8],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a25ead48ddce6917cf9d29b2abb0b2514":[2,1,14,19],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a3cafb12b97088bfa8a2281dd09042cfd":[2,1,14,11],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a3d7dde2978cfcaeb5fac653e453d75d1":[2,1,14,15],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a47ecc409986b4fc8c8beee6a0498b433":[2,1,14,1],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a56119cdd943b881de22fd7acf862d54d":[2,1,14,18],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a5cdece6cab85c4956609852dd75d4e77":[2,1,14,9],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a6b2c9be3d2e8ec5dfcba4333857adf77":[2,1,14,2],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a9376f54c21f23056af1ddbfab9f9ee3b":[2,1,14,16],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160a9d95ca5590f58d8fd9ef2180e0d803b5":[2,1,14,13],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160aaad3a5320e8b14c5bce9872e23884298":[2,1,14,6],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160aafd55f00541b3ecad10f1174c56c4742":[2,1,14,14],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160abf122a89c328c5cf664056909e56a7ff":[2,1,14,5],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160ac6422914add07468f1e465e452a3e864":[2,1,14,0],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160ae273506357348a50245cb88726da4989":[2,1,14,7],
"group__hdcp22__tx__v2__3.html#ggaa2502c6b2fee9e6f6975cb2fe94cd160ae3314c2e4a89043a2e5d5bfc88f203ad":[2,1,14,3],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705a3ca134d5931bb48f22931ce2f5644974":[2,3,93,0],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705a545f87ce9add7ac71a7b85e88a49c1cc":[2,3,93,2],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705a55afcf3c9bd2c8ab1067503b1f9f6026":[2,3,93,4],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705aa1997f408741f9800df1fcc40a24a6aa":[2,3,93,1],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705addb16fc9814f7f760cc98361dc679f2c":[2,3,93,3],
"group__hdcp22__tx__v2__3.html#ggabbcf899ef69ec85acb4b052f7e843705af3d3e6ccb59272f1cb00ed6d498e60e9":[2,3,93,5],
"index.html":[],
"pages.html":[],
"xhdcp22__tx_8c.html":[2,0],
"xhdcp22__tx_8h.html":[2,1],
"xhdcp22__tx__crypt_8c.html":[2,2],
"xhdcp22__tx__i_8h.html":[2,3],
"xhdcp22__tx__sinit_8c.html":[2,4],
"xhdcp22__tx__test_8c.html":[2,5]
};
| 83.486486 | 113 | 0.87763 |
d787366f62fc2ee37e77325b27d51265f3df7371 | 1,652 | js | JavaScript | routes/niveis.js | JonKoala/sapo-api | 2034efe7037ab7d92923829e53d7a7f3632a1fb1 | [
"MIT"
] | null | null | null | routes/niveis.js | JonKoala/sapo-api | 2034efe7037ab7d92923829e53d7a7f3632a1fb1 | [
"MIT"
] | 1 | 2021-08-04T03:33:17.000Z | 2021-08-04T03:33:17.000Z | routes/niveis.js | JonKoala/sapo-api | 2034efe7037ab7d92923829e53d7a7f3632a1fb1 | [
"MIT"
] | null | null | null | var model = require('../models')
var express = require('express')
var router = express.Router();
router.get('/', (req, res) => {
model.nivel.findAll()
.then(niveis => {
res.send(niveis);
}).catch(err => {
res.send(err);
});
});
router.get('/:id', (req, res) => {
let id = req.params.id;
model.nivel
.findOne({
where: { id }
}).then(nivel => {
res.send(nivel);
}).catch(err => {
res.send(err);
});
});
router.get('/tipo/:id', (req, res) => {
let id = req.params.id;
model.nivel.findAll({where: {tipo_id: id}})
.then(niveis => {
res.send(niveis);
}).catch(err => {
res.send(err);
});
});
router.get('/:id/full', (req, res) => {
let id = req.params.id;
model.nivel
.findOne({
where: { id },
include: [{model: model.tipo}, {model: model.subnivel, as: 'subniveis'}]
}).then(nivel => {
res.send(nivel);
}).catch(err => {
res.send(err);
});
});
router.post('/', (req, res) => {
let newNivel = req.body;
model.nivel.create(newNivel)
.then(nivel => {
res.send(nivel);
}).catch(err => {
res.send(err);
});
});
router.put('/', (req, res) => {
let nivel = req.body;
model.nivel.update(nivel, {where: {id: nivel.id}})
.then(() => {
res.send(nivel);
}).catch(err => {
res.send(err);
});
});
router.delete('/', (req, res) => {
let nivel = req.body;
model.nivel.destroy({where: {id: nivel.id}})
.then(() => {
res.send({deleted: true});
}).catch(err => {
res.send({deleted: false, error: err});
});
});
module.exports = router;
| 17.763441 | 78 | 0.503027 |
d7888dbe281091668b1efa4585254f0b4f08254f | 375 | js | JavaScript | examples/preprocessing/tabularPreprocessing.babel.js | red-gold/causality | 76fda55a6aec61c9d05c1d2c90845f724ebb4421 | [
"MIT"
] | null | null | null | examples/preprocessing/tabularPreprocessing.babel.js | red-gold/causality | 76fda55a6aec61c9d05c1d2c90845f724ebb4421 | [
"MIT"
] | 1 | 2020-07-17T00:51:42.000Z | 2020-07-17T00:51:42.000Z | examples/preprocessing/tabularPreprocessing.babel.js | red-gold/causality | 76fda55a6aec61c9d05c1d2c90845f724ebb4421 | [
"MIT"
] | null | null | null | import { tabularPreprocessing } from 'causal-net.preprocessing';
import { termLogger } from 'causal-net.log';
(()=>{
termLogger.log(tabularPreprocessing.oneHotEncode('cat0', [ 'cat0', 'cat1' ] ));
termLogger.log(tabularPreprocessing.oneHotEncode('cat1', [ 'cat0', 'cat1' ] ));
termLogger.log(tabularPreprocessing.oneHotEncode('cat2', [ 'cat0', 'cat1' ] ));
})();
| 46.875 | 83 | 0.68 |
d7892e91f138c5b5bc4e0e5c65f86620d750c26b | 3,076 | js | JavaScript | src/app.js | jgpws/jgdgallerymaker | 9eb16d4177613a94f52140e887735d806adfd347 | [
"MIT"
] | null | null | null | src/app.js | jgpws/jgdgallerymaker | 9eb16d4177613a94f52140e887735d806adfd347 | [
"MIT"
] | null | null | null | src/app.js | jgpws/jgdgallerymaker | 9eb16d4177613a94f52140e887735d806adfd347 | [
"MIT"
] | null | null | null | /* jgdGalleryMaker JavaScript file */
//import '../style.css';
import '/src/sass/style.scss';
import logo from '../images/jgm-logo-large.png';
import defaultGalImg from '../images/default-image.png';
import * as globals from './js/global-vars.js';
import { init, resetFields, count } from './js/main.js';
import { instrPanel, slideInLeft, showInstructions } from './js/interface.js';
globals.instructionsBtn.addEventListener('click', showInstructions);
import { getImgURL, getAltText } from './js/get-values.js';
import { createImgArray, addImgTile, replaceEmptyImgs } from './js/create-images.js';
addImgTile();
globals.imgBtn.addEventListener('click', addImgTile);
globals.imgBtn.addEventListener('click', resetFields);
import * as edit from './js/edit-images.js';
globals.editSelect.addEventListener('change', edit.editImgTile);
globals.nextBtn.addEventListener('click', edit.selectNext);
globals.prevBtn.addEventListener('click', edit.selectPrev);
globals.moveRightBtn.addEventListener('click', edit.moveImgRight);
globals.moveLeftBtn.addEventListener('click', edit.moveImgLeft);
globals.delBtn.addEventListener('click', edit.deleteImg);
globals.removeBtn.addEventListener('click', edit.removeGallery);
import { selectGalPadding, selectImgSize, selectGridGaps, selectGalLayout } from './js/image-options.js';
globals.galPadSelect.addEventListener('change', selectGalPadding);
globals.imgSizeSelect.addEventListener('change', selectImgSize);
globals.gridGapsSelect.addEventListener('change', selectGridGaps);
globals.galLayoutSelect.addEventListener('change', selectGalLayout);
import { storageAvailable, addToLocalStorage } from './js/local-storage.js';
import { img240CSS, img320CSS, img560CSS, img640CSS, vertCol240CSS, vertCol320CSS, vertCol560CSS, vertCol640CSS } from './js/image-css-text.js';
import { displayHTML, displayCSS, highlightHTMLFunc, highlightCSSFunc } from './js/display-html-css.js';
globals.imgBtn.addEventListener('click', displayHTML);
globals.moveRightBtn.addEventListener('click', displayHTML);
globals.moveLeftBtn.addEventListener('click', displayHTML);
globals.delBtn.addEventListener('click', displayHTML);
globals.galPadSelect.addEventListener('change', displayHTML);
globals.imgSizeSelect.addEventListener('change', displayHTML);
globals.gridGapsSelect.addEventListener('change', displayHTML);
globals.galLayoutSelect.addEventListener('change', displayHTML);
globals.imgSizeSelect.addEventListener('change', displayCSS);
globals.galLayoutSelect.addEventListener('change', displayCSS);
globals.selectHTMLBtn.addEventListener('click', highlightHTMLFunc);
globals.selectCSSBtn.addEventListener('click', highlightCSSFunc);
globals.cbCloseBtn.addEventListener('click', function() {
globals.cookieBanner.classList.add("hide");
localStorage.setItem('cookieSeen', 'shown');
});
/* Page load event listeners */
window.addEventListener('load', function() {
globals.imgError.innerText = '';
globals.altError.innerText = '';
displayHTML();
displayCSS();
replaceEmptyImgs();
});
window.addEventListener('DOMContentLoaded', init);
| 45.910448 | 144 | 0.788036 |
d78c58c6c80e3f620d42b9b7f6ffb39f02485c12 | 841 | js | JavaScript | src/p5Blenders/P5SoftLightBlender.js | weizhou/p5-image | 8c15b34f7624ec35737821f8c612e064491a452e | [
"MIT"
] | 1 | 2022-01-07T01:42:43.000Z | 2022-01-07T01:42:43.000Z | src/p5Blenders/P5SoftLightBlender.js | weizhou/p5-image | 8c15b34f7624ec35737821f8c612e064491a452e | [
"MIT"
] | null | null | null | src/p5Blenders/P5SoftLightBlender.js | weizhou/p5-image | 8c15b34f7624ec35737821f8c612e064491a452e | [
"MIT"
] | null | null | null | import { P5Blender } from "./P5Blender";
export class P5SoftLightBlender extends P5Blender{
constructor(){
super();
this.fragmentShader = `
#ifdef GL_ES
precision mediump float;
#endif
varying vec2 vTexCoord;
uniform sampler2D textureID1;
uniform sampler2D textureID2;
void main()
{
vec4 base = texture2D(textureID1, vTexCoord);
vec4 overlay = texture2D(textureID2, vTexCoord);
float alphaDivisor = base.a + step(base.a, 0.0); // Protect against a divide-by-zero blacking out things in the output
gl_FragColor = base * (overlay.a * (base / alphaDivisor) + (2.0 * overlay * (1.0 - (base / alphaDivisor)))) + overlay * (1.0 - base.a) + base * (1.0 - overlay.a);
}
`;
}
} | 31.148148 | 173 | 0.571938 |
d78c77f2a30841c246e54b5a380b6f0745511042 | 46 | js | JavaScript | test/fixtures/combine/collective/override_named.js | zrlps/rollup-plugin-resolve | e07df3b728d4746e80316d85ca8e20f065fe5ba2 | [
"MIT"
] | null | null | null | test/fixtures/combine/collective/override_named.js | zrlps/rollup-plugin-resolve | e07df3b728d4746e80316d85ca8e20f065fe5ba2 | [
"MIT"
] | null | null | null | test/fixtures/combine/collective/override_named.js | zrlps/rollup-plugin-resolve | e07df3b728d4746e80316d85ca8e20f065fe5ba2 | [
"MIT"
] | null | null | null | export { answer } from "./lib_override_named"; | 46 | 46 | 0.73913 |
d78fb6d2371dbe111dd19f9c9c7a720447f661ef | 5,702 | js | JavaScript | controllers/Candidate.js | kenzdozz/politico | ab9ba1e110f6b8ed3910fa52b58a943e31da6145 | [
"MIT"
] | null | null | null | controllers/Candidate.js | kenzdozz/politico | ab9ba1e110f6b8ed3910fa52b58a943e31da6145 | [
"MIT"
] | 2 | 2019-01-30T14:18:59.000Z | 2019-01-30T21:22:11.000Z | controllers/Candidate.js | kenzdozz/politico | ab9ba1e110f6b8ed3910fa52b58a943e31da6145 | [
"MIT"
] | null | null | null | /* eslint-disable no-throw-literal */
import Response from '../helpers/Response';
import codes from '../helpers/statusCode';
import Office from '../database/models/Office';
import Party from '../database/models/Party';
import Candidate from '../database/models/Candidate';
import User from '../database/models/User';
const CandidateController = {
expressInterest: async (req, res) => {
const officeId = parseInt(req.params.office, 10);
const partyId = parseInt(req.body.party, 10);
const { mandate } = req.body;
try {
if (!await Party.exists(partyId || 0)) {
return Response.send(res, codes.badRequest, {
error: 'Party does not exist.',
});
}
if (!await Office.exists(officeId || 0)) {
return Response.send(res, codes.badRequest, {
error: 'Office does not exist.',
});
}
if (await Candidate.where([
['candidate', '=', req.user.id], ['office', '=', officeId],
]).exists()) {
return Response.send(res, codes.badRequest, {
error: 'You have already expressed interest for this office.',
});
}
const candidate = await Candidate.create({
candidate: req.user.id,
office: officeId,
party: partyId,
mandate,
});
return Response.send(res, codes.created, {
data: candidate,
});
} catch (error) { return Response.handleError(res, error); }
},
approveCandidate: async (req, res) => {
const userId = parseInt(req.params.user, 10);
const officeId = parseInt(req.body.office, 10);
const partyId = parseInt(req.body.party, 10);
try {
if (!await User.exists(userId || 0)) {
return Response.send(res, codes.badRequest, {
error: 'User does not exist.',
});
}
if (!await Office.exists(officeId || 0)) {
return Response.send(res, codes.badRequest, {
error: 'Office does not exist.',
});
}
const isParty = partyId && await Party.exists(partyId);
let candidate = await Candidate.where([
['candidate', '=', userId],
['office', '=', officeId],
]).first();
if (candidate) {
candidate = await Candidate.update(candidate.id, { approved: true });
} else if (isParty) {
candidate = await Candidate.create({
candidate: userId,
office: officeId,
party: partyId,
mandate: req.body.mandate,
approved: true,
});
} else {
return Response.send(res, codes.badRequest, {
error: partyId ? 'Party does not exist.' : 'Party required.',
});
}
return Response.send(res, codes.created, {
data: candidate,
});
} catch (error) { return Response.handleError(res, error); }
},
getCandidates: async (req, res) => {
const all = req.url.indexOf('all') !== -1 ? '' : 'WHERE candidates.approved = true';
try {
const candidates = await Candidate.raw({
text: `SELECT candidates.*, users.firstname, users.lastname, users.passporturl, offices.name as officename, parties.logourl, parties.name as partyname, parties.acronym, (SELECT COUNT(votes.id) FROM votes WHERE votes.candidate = candidates.id) as votescount FROM candidates LEFT JOIN users ON candidates.candidate = users.id LEFT JOIN offices ON offices.id = candidates.office LEFT JOIN parties ON parties.id = candidates.party ${all} ORDER BY officename`,
}).get();
return Response.send(res, codes.success, {
data: candidates,
});
} catch (error) { return Response.handleError(res, error); }
},
getCandidate: async (req, res) => {
try {
const candidateId = parseInt(req.params.candidate, 10);
const candidates = Number.isNaN(candidateId) ? null : await Candidate.raw({
text: 'SELECT candidates.*, users.firstname, users.lastname, users.passporturl, offices.name as officename, parties.logourl, parties.name as partyname, parties.acronym, (SELECT COUNT(votes.id) FROM votes WHERE votes.candidate = candidates.id) as votescount FROM candidates LEFT JOIN users ON candidates.candidate = users.id LEFT JOIN offices ON offices.id = candidates.office LEFT JOIN parties ON parties.id = candidates.party WHERE candidates.id = $1',
values: [candidateId],
}).first();
if (!candidates) {
return Response.send(res, codes.notFound, {
error: 'Candidate not found.',
});
}
return Response.send(res, codes.success, {
data: candidates,
});
} catch (error) { return Response.handleError(res, error); }
},
getOfficeCandidates: async (req, res) => {
try {
const officeId = parseInt(req.params.office, 10);
const candidates = Number.isNaN(officeId) ? null : await Candidate.raw({
text: 'SELECT candidates.*, users.firstname, users.lastname, users.passporturl, offices.name as officename, parties.logourl, parties.name as partyname, parties.acronym, (SELECT COUNT(votes.id) FROM votes WHERE votes.candidate = candidates.id) as votescount FROM candidates LEFT JOIN users ON candidates.candidate = users.id LEFT JOIN offices ON offices.id = candidates.office LEFT JOIN parties ON parties.id = candidates.party WHERE offices.id = $1 AND candidates.approved = true',
values: [officeId],
}).get();
if (!candidates) {
return Response.send(res, codes.notFound, {
error: 'Office not found.',
});
}
return Response.send(res, codes.success, {
data: candidates,
});
} catch (error) { return Response.handleError(res, error); }
},
};
export default CandidateController;
| 40.439716 | 489 | 0.62785 |
d790e9c75fcc05cf8535def31937687b48fd7823 | 2,029 | js | JavaScript | src/serveur/routes/plant.js | stormsa/Express-server | 8689d467df8bb16589acd623f211d0f50c6fdfc6 | [
"MIT"
] | null | null | null | src/serveur/routes/plant.js | stormsa/Express-server | 8689d467df8bb16589acd623f211d0f50c6fdfc6 | [
"MIT"
] | null | null | null | src/serveur/routes/plant.js | stormsa/Express-server | 8689d467df8bb16589acd623f211d0f50c6fdfc6 | [
"MIT"
] | null | null | null | var router = require('express').Router();
var bodyParser = require('body-parser');
var Plant = require('../models/plant');
// creation des parsers pour lire les réponses url
var jsonParser = bodyParser.json()
// create application/x-www-form-urlencoded parser
var urlencodedParser = bodyParser.urlencoded({ extended: false })
router.use(jsonParser)
router.get('/all', function(req, res){
console.log("Renvoi la liste des plantes")
Plant.find({}, function(err, plants){
if(err){
response = {
message: err,
plants: null
}
}
res.respond(plants, 200)
});
});
router.get('/', function(req, res){
var plantId = req.param('plant_id');
console.log("Le nom de ma plante est"+plantId)
Plant.findById(plantId, function(err, plant) {
if (err) {
response = {
message: err,
plant: null
}
res.respond(response, 500)
}
// show the one user
res.respond(plant, 200)
});
});
router.post('/', function(req, res){
console.log("Post plant");
var newPlant = new Plant({
nom: req.body.name,
lastArrosage: new Date(req.body.lastArrosage),
instructions : req.body.instructions,
description: req.body.description
})
console.log("Insertion plante"+newPlant.nom);
newPlant.save(function(err) {
var message
if (err) {
response = {
message: err,
plant: null
}
res.respond(response, 500)
}
else{
response = {
message: "Votre plante a bien été sauvegardée",
plant: newPlant
}
res.respond(response, 200)
}
});
});
router.put('/arrose', urlencodedParser, function(req, res){
if (!req.body) return res.sendStatus(400)
var plantId = req.body.plant_id;
Plant.findById(plantId, function(err, plant) {
if (err) {
response = {
message: err,
plant: null
}
res.respond(response, 500)
}
var currentDate = new Date();
plant.lastArrosage = currentDate
response = {
message: "Votre plante a bien été arrosée",
plant: plant
}
// show the one user
res.respond(plant, 200)
});
});
module.exports = router; | 22.544444 | 65 | 0.653524 |
d79126e043949596a433495b2941b50e6c661668 | 1,755 | js | JavaScript | frontend/cypress/integration/editor/register.spec.js | ikylios/Amandus | ac55ccc549351f2e2c76477a73770c34a29b343b | [
"MIT"
] | 2 | 2020-09-11T07:22:47.000Z | 2020-11-08T22:31:31.000Z | frontend/cypress/integration/editor/register.spec.js | ikylios/Amandus | ac55ccc549351f2e2c76477a73770c34a29b343b | [
"MIT"
] | 147 | 2020-09-07T10:21:28.000Z | 2020-11-24T06:57:34.000Z | frontend/cypress/integration/editor/register.spec.js | ikylios/Amandus | ac55ccc549351f2e2c76477a73770c34a29b343b | [
"MIT"
] | 6 | 2021-09-17T13:20:26.000Z | 2021-09-22T17:34:07.000Z | import { v4 as uuid } from 'uuid'
describe('When visiting the register page, as a user', () => {
beforeEach(() => {
cy.visit(Cypress.env('HOST') + '/register')
})
it('I see an error message when I try to register with only username', () => {
cy.get('#username').type('testuser')
cy.get('form button').click()
cy.get('#email-helper-text').should('have.css', 'color', 'rgb(176, 0, 32)')
cy.get('#password-helper-text').should('have.css', 'color', 'rgb(176, 0, 32)')
})
it('I see an error message when I try to register without password', () => {
cy.get('#username').type('testuser')
cy.get('#email').type('testuser@test.com')
cy.get('form button').click()
cy.get('#password-helper-text').should('have.css', 'color', 'rgb(176, 0, 32)')
})
it('I see an error message when I try to register without confirming password', () => {
cy.get('#username').type('testuser')
cy.get('#email').type('testuser@test.com')
cy.get('#password').type('testUserPass!111')
cy.get('form button').click()
cy.get('#confirmPassword-helper-text').should('have.css', 'color', 'rgb(176, 0, 32)')
})
it('I can register to the app with valid information', () => {
const randomStr = uuid()
const username = randomStr.substr(0, 5)
const email = `${username}@test.com`
cy.get('#username').type(username)
cy.get('#email').type(email)
cy.get('#password').type('testUserPass!111')
cy.get('#confirmPassword').type('testUserPass!111')
cy.get('form button').click()
cy.contains(`Hello, ${username}`)
cy.contains(`Logout`)
})
})
| 37.340426 | 93 | 0.564672 |
d792902b72708e2a1c41145150c5bc06f4368985 | 19,307 | js | JavaScript | js/test/daterange/testdatefmtrange_hu_HU.js | iLib-js/iLib | bb1d3e6ad55c8fa3e0f614e014f3b3bebe9e4be3 | [
"Apache-2.0"
] | 40 | 2015-11-17T08:09:23.000Z | 2022-03-31T06:39:51.000Z | js/test/daterange/testdatefmtrange_hu_HU.js | iLib-js/iLib | bb1d3e6ad55c8fa3e0f614e014f3b3bebe9e4be3 | [
"Apache-2.0"
] | 109 | 2017-03-16T06:29:47.000Z | 2022-03-21T02:16:53.000Z | js/test/daterange/testdatefmtrange_hu_HU.js | iLib-js/iLib | bb1d3e6ad55c8fa3e0f614e014f3b3bebe9e4be3 | [
"Apache-2.0"
] | 5 | 2017-05-01T14:42:28.000Z | 2020-11-02T10:18:25.000Z | /*
* testdatefmtrange_hu_HU.js - test the date range formatter object in Hungarian/Hungary
*
* Copyright © 2012-2017, JEDLSoft
*
* 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.
*/
if (typeof(GregorianDate) === "undefined") {
var GregorianDate = require("../../lib/GregorianDate.js");
}
if (typeof(DateRngFmt) === "undefined") {
var DateRngFmt = require("../../lib/DateRngFmt.js");
}
if (typeof(ilib) === "undefined") {
var ilib = require("../../lib/ilib.js");
}
module.exports.testdatefmtrange_hu_HU = {
setUp: function(callback) {
ilib.clearCache();
callback();
},
testDateRngFmtHURangeinDayShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 12. 31. 13:45 – 14:30");
test.done();
},
testDateRngFmtHURangeinDayMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. dec. 31. 13:45 – 14:30");
test.done();
},
testDateRngFmtHURangeinDayLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 31. 13:45 – 14:30");
test.done();
},
testDateRngFmtHURangeinDayFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 31. 13:45 – 14:30");
test.done();
},
testDateRngFmtHURangeNextDayShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 30,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 12. 30. 13:45 – 2011. 12. 31. 14:30");
test.done();
},
testDateRngFmtHURangeNextDayMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 30,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. dec. 30. 13:45 – 2011. dec. 31. 14:30");
test.done();
},
testDateRngFmtHURangeNextDayLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 30,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 30. 13:45 – 2011. december 31. 14:30");
test.done();
},
testDateRngFmtHURangeNextDayFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 30,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 30. 13:45 – 2011. december 31. 14:30");
test.done();
},
testDateRngFmtHURangeMultiDayShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 12. 20. – 31");
test.done();
},
testDateRngFmtHURangeMultiDayMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. dec. 20. – 31");
test.done();
},
testDateRngFmtHURangeMultiDayLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 20. – 31");
test.done();
},
testDateRngFmtHURangeMultiDayFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 12,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. december 20. – 31");
test.done();
},
testDateRngFmtHURangeNextMonthShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 11. 20. – 2011. 12. 31.");
test.done();
},
testDateRngFmtHURangeNextMonthMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. nov. 20. – 2011. dec. 31.");
test.done();
},
testDateRngFmtHURangeNextMonthLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október 20. – december 31.");
test.done();
},
testDateRngFmtHURangeNextMonthFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2011,
month: 12,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október 20. – december 31.");
test.done();
},
testDateRngFmtHURangeNextYearShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2012,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 11. 20. – 2012. 01. 31.");
test.done();
},
testDateRngFmtHURangeNextYearMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2012,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. nov. 20. – 2012. jan. 31.");
test.done();
},
testDateRngFmtHURangeNextYearLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2012,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október 20. – 2012. január 31.");
test.done();
},
testDateRngFmtHURangeNextYearFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2012,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október 20. – 2012. január 31.");
test.done();
},
testDateRngFmtHURangeMultiYearShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "short"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2014,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. 11 – 2014. 01");
test.done();
},
testDateRngFmtHURangeMultiYearMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "medium"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2014,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. nov. – 2014. jan.");
test.done();
},
testDateRngFmtHURangeMultiYearLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "long"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2014,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október – 2014. január");
test.done();
},
testDateRngFmtHURangeMultiYearFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 10,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2014,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011. október – 2014. január");
test.done();
},
testDateRngFmtHUManyYearsFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "hu-HU", length: "full"});
test.ok(fmt !== null);
var start = new GregorianDate({
year: 2011,
month: 11,
day: 20,
hour: 13,
minute: 45,
second: 0,
millisecond: 0
});
var end = new GregorianDate({
year: 2064,
month: 1,
day: 31,
hour: 14,
minute: 30,
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), "2011 – 2064");
test.done();
}
};
| 27.860029 | 98 | 0.446781 |
d792bf7caa9f189bf4ddb98e95f7ec0de03c108c | 968 | js | JavaScript | cli/lib/simplification/types/symmetric-matrix.js | kreativwebdesign/lode | 93b0c8b1cdd27d1fa5a336166d954e6bbeb9d0f5 | [
"MIT"
] | 8 | 2021-07-07T13:35:19.000Z | 2022-03-04T01:08:16.000Z | cli/lib/simplification/types/symmetric-matrix.js | kreativwebdesign/lode | 93b0c8b1cdd27d1fa5a336166d954e6bbeb9d0f5 | [
"MIT"
] | 21 | 2021-03-28T09:50:30.000Z | 2021-05-24T14:46:29.000Z | cli/lib/simplification/types/symmetric-matrix.js | kreativwebdesign/lode | 93b0c8b1cdd27d1fa5a336166d954e6bbeb9d0f5 | [
"MIT"
] | 2 | 2021-12-23T08:00:38.000Z | 2022-03-04T01:08:20.000Z | /**
* symmetric 4x4 matrix
*/
export default class SymmetricMatrix {
constructor() {
this.data = new Array(10);
for (let i = 0; i < 10; i++) {
this.data[i] = 0;
}
}
static makePlane(a, b, c, d) {
const m = new SymmetricMatrix();
m.data[0] = a * a;
m.data[1] = a * b;
m.data[2] = a * c;
m.data[3] = a * d;
m.data[4] = b * b;
m.data[5] = b * c;
m.data[6] = b * d;
m.data[7] = c * c;
m.data[8] = c * d;
m.data[9] = d * d;
return m;
}
static add(a, b) {
const m = new SymmetricMatrix();
for (let i = 0; i < 10; i++) {
m.data[i] = a.data[i] + b.data[i];
}
return m;
}
det(m11, m12, m13, m21, m22, m23, m31, m32, m33) {
const m = this.data;
return (
m[m11] * m[m22] * m[m33] +
m[m13] * m[m21] * m[m32] +
m[m12] * m[m23] * m[m31] -
m[m13] * m[m22] * m[m31] -
m[m11] * m[m23] * m[m32] -
m[m12] * m[m21] * m[m33]
);
}
}
| 20.595745 | 52 | 0.440083 |
d79470e3f1bdbbfdf67b3850d9b9a5226764f813 | 3,387 | js | JavaScript | components/product/video1.js | GabotThomas/API-React-Shopify | 916f0e78213af7f43d0aeea47c932529ff0eade9 | [
"MIT"
] | null | null | null | components/product/video1.js | GabotThomas/API-React-Shopify | 916f0e78213af7f43d0aeea47c932529ff0eade9 | [
"MIT"
] | null | null | null | components/product/video1.js | GabotThomas/API-React-Shopify | 916f0e78213af7f43d0aeea47c932529ff0eade9 | [
"MIT"
] | null | null | null | import React, { useState, useEffect, useCallback } from 'react';
import {Stack,Heading,Layout, Card, Thumbnail, Button,Caption,DropZone,VideoThumbnail} from '@shopify/polaris';
import * as firebase from "../../server/firebase";
function VideoUpload(props){
const [url, setUrl] = useState("");
const [title, setTitle] = useState("Ce produit contient déja une vidéo");
useEffect(() => {
firebase.DataUrl(props.collection)
.then(list => {
if (list.exists) {
if(list.data().urlvideo){
setUrl(list.data().urlvideo);
}
else{
setUrl("");
}
} else {
setUrl("");
}
})
.catch(() => setTitle("error"));
}, [title,props.collection, setUrl]);
const Del = ()=>{
firebase.DeleteVideo("Video/"+props.id+".mp4")
.then(function(){
firebase.PushUrl(props.collection,"")
setUrl("")
setTitle("Vidéo Supprimé")
})
}
const change = useCallback(()=>{
setTitle("Vidéo Ajouté")
})
if(url){
return (
<>
<Stack>
<Stack.Item fill wrap={false} alignment="center">
<Heading>{title}</Heading>
</Stack.Item>
<Stack.Item>
<Button external={true} url={url} plain>Voir la vidéo</Button>
</Stack.Item>
<Stack.Item>
<Button plain destructive onClick={Del}>Supprimer</Button>
</Stack.Item>
</Stack>
<DropZoneExample disabled={true} id={props.id} collection={props.collection} title={setTitle}/>
</>
)
}
else{
return <DropZoneExample disabled={false} id={props.id} collection={props.collection} title={()=>change()}/>
}
}
export default VideoUpload;
function DropZoneExample(props) {
const [file, setFile] = useState();
const send =()=>{
firebase.SendVideo(file,"Video/"+props.id+".mp4")
.then(function(snapshot) {
const get = firebase.GetUrl("Video/"+props.id+".mp4")
.then(function(downloadURL) {
firebase.PushUrl(props.collection,downloadURL)
props.title()
});
});
}
const handleDropZoneDrop = useCallback(
(_dropFiles, acceptedFiles, _rejectedFiles) =>
setFile((file) => acceptedFiles[0]),
[],
);
const validVideoTypes = ['video/mp4'];
const fileUpload = !file && <DropZone.FileUpload />;
const uploadedFile = file && (
<Stack>
<Thumbnail
size="small"
alt={file.name}
source={
validVideoTypes.indexOf(file.type) > 0
? window.URL.createObjectURL(file)
: (
console.log('Ajouté')
)
}
/>
<div>
{file.name} <Caption>{file.size} bytes</Caption>
</div>
</Stack>
);
return (
<>
<DropZone disabled={props.disabled} allowMultiple={false} onDrop={handleDropZoneDrop}>
{uploadedFile}
{fileUpload}
</DropZone>
<Button onClick={send}>Envoyer</Button>
</>
);
} | 27.314516 | 114 | 0.499557 |
d79480e086b8d7687cde40770c12b3f88a057938 | 392 | js | JavaScript | src/methods/call.js | regs37/Trait.js | f18da97c6319c1af4e5d60e295ad9a47ce2d8d65 | [
"MIT"
] | null | null | null | src/methods/call.js | regs37/Trait.js | f18da97c6319c1af4e5d60e295ad9a47ce2d8d65 | [
"MIT"
] | 67 | 2020-09-16T15:20:26.000Z | 2022-03-23T07:09:49.000Z | src/methods/call.js | regs37/Trait.js | f18da97c6319c1af4e5d60e295ad9a47ce2d8d65 | [
"MIT"
] | 1 | 2020-09-16T15:01:25.000Z | 2020-09-16T15:01:25.000Z | /**
* Call a method from a trait using the method name
* @param {string} methodName
*/
module.exports = function call(methodName) {
let METHOD = null;
this.$traits.forEach((trait) => {
if (trait[methodName]) {
METHOD = trait[methodName];
}
});
if (!METHOD) {
throw new Error(`${methodName} does not exist on ${this.name}`);
}
return METHOD.apply(this);
};
| 19.6 | 68 | 0.617347 |
d794918e5a17a7046888a0ab9d0c43f751bfab0d | 1,705 | js | JavaScript | src/index.js | N0TARGET/human-readable-number | 7bcf6cd3c25bf34051c66391c6c4f98b5c044686 | [
"MIT"
] | null | null | null | src/index.js | N0TARGET/human-readable-number | 7bcf6cd3c25bf34051c66391c6c4f98b5c044686 | [
"MIT"
] | null | null | null | src/index.js | N0TARGET/human-readable-number | 7bcf6cd3c25bf34051c66391c6c4f98b5c044686 | [
"MIT"
] | null | null | null | const first = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
const second = ['', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];
const third = ['', 'ten', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];
const fourth = ['', 'one hundred', 'two hundred', 'three hundred', 'four hundred', 'five hundred', 'six hundred', 'seven hundred', 'eight hundred', 'nine hundred'];
module.exports = function toReadable(number) {
if (number < 10) return first[number];
if (number === 10) return third[1];
if (number > 10 && number < 20) {
return second[String(number).charAt(1)];
} else if (number > 19 && number < 100) {
let db = third[String(number).charAt(0)];
if (String(number).charAt(1) !== '0') db = db + ' ' + first[String(number).charAt(1)]
return db;
} else if (number === 100) {
return fourth[1];
} else {
let firstValue = Number(String(number).charAt(0));
let secondValue = Number(String(number).charAt(1));
let thirdValue = Number(String(number).charAt(2));
let db = fourth[firstValue];
if (secondValue > 0) {
if (secondValue === 1 && thirdValue === 0) {
return db + ' ten';
} else if (secondValue === 1) {
db = db + ' ' + second[thirdValue]
} else {
db = db + ' ' + third[secondValue];
if (thirdValue > 0) db = db + ' ' + first[thirdValue];
}
} else {
if (thirdValue > 0) db = db + ' ' + first[thirdValue];
}
return db;
}
};
| 43.717949 | 164 | 0.526686 |
d795a2078c186f3c84031c9c70382a629acfaac8 | 672 | js | JavaScript | test/apiTest.js | ratracegrad/fcc-timestamp-microservice | 2add8451df16a4a15d8fcaa29a48edfe8d33cacf | [
"MIT"
] | null | null | null | test/apiTest.js | ratracegrad/fcc-timestamp-microservice | 2add8451df16a4a15d8fcaa29a48edfe8d33cacf | [
"MIT"
] | null | null | null | test/apiTest.js | ratracegrad/fcc-timestamp-microservice | 2add8451df16a4a15d8fcaa29a48edfe8d33cacf | [
"MIT"
] | null | null | null | /**
* Created by jbland on 4/10/16.
*/
//var should = require('chai').should();
var expect = require('expect');
var request = require('supertest');
var api = request('http://localhost:3000');
describe('API Testing', function() {
it('provides formatted date', function(done) {
api.get('/December%2015,%202015').end(function(err, res) {
expect(res).to.exist;
expect(res.status).to.equal(200);
done();
});
});
it ('provides null if no date provided', function(done) {
api.get('/').end(function(err, res) {
expect(res.status).to.equal(400);
done();
});
});
}); | 24 | 66 | 0.546131 |
d79695f7f9b5110fdc8bf8df88e13c5f7655f98a | 1,718 | js | JavaScript | src/util/bridge.js | jessylinlin/orange-music | 80874a664982ee70fe238d7bfc5dce1addd3cee0 | [
"MIT"
] | null | null | null | src/util/bridge.js | jessylinlin/orange-music | 80874a664982ee70fe238d7bfc5dce1addd3cee0 | [
"MIT"
] | null | null | null | src/util/bridge.js | jessylinlin/orange-music | 80874a664982ee70fe238d7bfc5dce1addd3cee0 | [
"MIT"
] | null | null | null | //判断机型
let u = navigator.userAgent;
function setupWebViewJavascriptBridge (callback) {
//var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
//判断ios 还是Android
if (/(iPhone|iPad|iPod|iOS)/i.test(u)) {
if (window.WebViewJavascriptBridge) {
return callback(window.WebViewJavascriptBridge)
}
if (window.WVJBCallbacks) {
return window.WVJBCallbacks.push(callback)
}
window.WVJBCallbacks = [callback]
let WVJBIframe = document.createElement('iframe')
WVJBIframe.style.display = 'none'
WVJBIframe.src = 'https://__bridge_loaded__'
document.documentElement.appendChild(WVJBIframe)
setTimeout(() => {
document.documentElement.removeChild(WVJBIframe)
}, 0)
}
}
//安卓注册事件监听
function connectWebViewJavascriptBridge (callback) {
if (window.WebViewJavascriptBridge) {
callback(WebViewJavascriptBridge)
} else {
document.addEventListener(
'WebViewJavascriptBridgeReady',
function () {
callback(WebViewJavascriptBridge)
},
false
);
}
}
connectWebViewJavascriptBridge(function (bridge) {
//初始化
if (!/(iPhone|iPad|iPod|iOS)/i.test(u)) {
console.log("初始化")
bridge.init(function (message, responseCallback) {
//var data = {'Javascript Responds': 'Wee!'};
responseCallback(data);
});
}
});
export default {
callHandler (name, data, callback) {
setupWebViewJavascriptBridge(function (bridge) {
bridge.callHandler(name, data, callback)
})
},
registerhandler (name, callback) {
setupWebViewJavascriptBridge(function (bridge) {
bridge.registerHandler(name, function (data, responseCallback) {
callback(data, responseCallback)
})
})
}
} | 26.430769 | 70 | 0.668219 |
d796c83ee988ee171b3e235b94ee0f257e98e121 | 263 | js | JavaScript | src/core/mutators/push.js | satyam10zs/dop | d56f71caf80f9e507b80088832e6fed098d07b43 | [
"MIT"
] | 1 | 2018-12-20T00:39:10.000Z | 2018-12-20T00:39:10.000Z | src/core/mutators/push.js | DaneTheory/dop-lite | 5cdc38a898c891f039dd14bcf2af6432acc9c867 | [
"MIT"
] | 1 | 2022-03-25T19:21:19.000Z | 2022-03-25T19:21:19.000Z | src/core/mutators/push.js | DaneTheory/dop-lite | 5cdc38a898c891f039dd14bcf2af6432acc9c867 | [
"MIT"
] | null | null | null | // https://jsperf.com/push-against-splice OR https://jsperf.com/push-vs-splice
dop.core.push = function(array, items) {
if (items.length === 0) return array.length
items.unshift(array.length, 0)
dop.core.splice(array, items)
return array.length
}
| 32.875 | 78 | 0.695817 |
d7973a942c5e09ae0f8905fe934cb9159b3b2c4e | 1,742 | js | JavaScript | app/components/stations/StationValuesView.js | sheldhur/Vector | f8426426b618694219969db5fde1021a02c94830 | [
"MIT"
] | 2 | 2018-02-03T16:30:49.000Z | 2018-02-07T18:31:31.000Z | app/components/stations/StationValuesView.js | sheldhur/Vector | f8426426b618694219969db5fde1021a02c94830 | [
"MIT"
] | null | null | null | app/components/stations/StationValuesView.js | sheldhur/Vector | f8426426b618694219969db5fde1021a02c94830 | [
"MIT"
] | null | null | null | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Row } from 'antd';
import StationValueActions from './StationValueActions';
import StationValuesChart from './StationValuesChart';
import StationValuesGrid from './StationValuesGrid';
import * as stationActions from '../../actions/station';
import * as uiActions from '../../actions/ui';
class StationValuesView extends Component {
componentWillMount = () => {
this.getStationViewValues(this.props);
};
componentWillReceiveProps = (nextProps) => {
if (nextProps.match.params.id !== this.props.match.params.id) {
this.getStationViewValues(nextProps);
}
};
getStationViewValues = (props) => {
const stationId = parseInt(props.match.params.id);
this.props.uiActions.setGridLastOpenItem(stationId);
this.props.stationActions.getStationViewValues({ stationId });
};
render = () => {
const stationId = this.props.match.params.id;
return (
<div className={`stations-view theme-${this.props.theme}`}>
<Row style={{ height: '175px' }}>
<StationValuesChart />
</Row>
<Row>
<StationValueActions stationId={stationId} />
</Row>
<Row>
<StationValuesGrid stationId={stationId} />
</Row>
</div>
);
};
}
function mapStateToProps(state) {
return {
theme: state.main.settings.appTheme,
};
}
function mapDispatchToProps(dispatch) {
return {
uiActions: bindActionCreators(uiActions, dispatch),
stationActions: bindActionCreators(stationActions, dispatch),
};
}
export default connect(mapStateToProps, mapDispatchToProps)(StationValuesView);
| 27.21875 | 79 | 0.673364 |
d79839dca1aff610682b9dda2c1e3548cbe9b51b | 2,913 | js | JavaScript | lib/misc/appPackager.js | Shailesh351/Rocket.Chat.Apps-cli | a6d0b86144e2f510410e48b0aa757c0b206c155a | [
"MIT"
] | null | null | null | lib/misc/appPackager.js | Shailesh351/Rocket.Chat.Apps-cli | a6d0b86144e2f510410e48b0aa757c0b206c155a | [
"MIT"
] | 3 | 2020-12-15T16:27:38.000Z | 2021-06-15T13:17:43.000Z | lib/misc/appPackager.js | WideChat/Rocket.Chat.Apps-cli | e7c5e1ddb39f7498ac915740f1d5db125440a966 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppPackager = void 0;
const fs = require("fs-extra");
const glob = require("glob");
const path = require("path");
const Yazl = require("yazl");
/* import packageInfo = require('../package.json'); */
const packageInfo = {
version: '1.7.0',
name: '@rocket.chat/apps-cli',
};
class AppPackager {
constructor(command, fd) {
this.command = command;
this.fd = fd;
}
async zipItUp() {
let matches;
try {
matches = await this.asyncGlob();
}
catch (e) {
this.command.warn(`Failed to retrieve the list of files for the App ${this.fd.info.name}.`);
throw e;
}
// Ensure we have some files to package up before we do the packaging
if (matches.length === 0) {
throw new Error('No files to package were found');
}
const zipName = path.join('dist', `${this.fd.info.nameSlug}_${this.fd.info.version}.zip`);
const zip = new Yazl.ZipFile();
zip.addBuffer(Buffer.from(JSON.stringify(AppPackager.PackagerInfo)), '.packagedby', { compress: true });
for (const realPath of matches) {
const zipPath = path.relative(this.fd.folder, realPath);
const fileStat = await fs.stat(realPath);
const options = {
compress: true,
mtime: fileStat.mtime,
mode: fileStat.mode,
};
zip.addFile(realPath, zipPath, options);
}
zip.end();
await this.asyncWriteZip(zip, zipName);
return zipName;
}
// tslint:disable-next-line:promise-function-async
asyncGlob() {
return new Promise((resolve, reject) => {
glob(this.fd.toZip, AppPackager.GlobOptions, (err, matches) => {
if (err) {
reject(err);
return;
}
resolve(matches);
});
});
}
// tslint:disable-next-line:promise-function-async
asyncWriteZip(zip, zipName) {
return new Promise((resolve) => {
fs.mkdirpSync(this.fd.mergeWithFolder('dist'));
const realPath = this.fd.mergeWithFolder(zipName);
zip.outputStream.pipe(fs.createWriteStream(realPath)).on('close', resolve);
});
}
}
exports.AppPackager = AppPackager;
AppPackager.GlobOptions = {
dot: false,
silent: true,
ignore: [
'**/README.md',
'**/tslint.json',
'**/package-lock.json',
'**/tsconfig.json',
'**/*.js',
'**/*.js.map',
'**/*.d.ts',
'**/*.spec.ts',
'**/*.test.ts',
'**/dist/**',
'**/.*',
],
};
AppPackager.PackagerInfo = {
tool: packageInfo.name,
version: packageInfo.version,
};
//# sourceMappingURL=appPackager.js.map | 32.010989 | 112 | 0.54171 |
d7983f2599fa95c8cd8acd01004f75a30ce76397 | 1,300 | js | JavaScript | src/plugins/create-color-scss.js | master-style/variants | 2d14fb327a5e2790f5a9df45df34a939b08bddf9 | [
"MIT"
] | null | null | null | src/plugins/create-color-scss.js | master-style/variants | 2d14fb327a5e2790f5a9df45df34a939b08bddf9 | [
"MIT"
] | null | null | null | src/plugins/create-color-scss.js | master-style/variants | 2d14fb327a5e2790f5a9df45df34a939b08bddf9 | [
"MIT"
] | null | null | null | const path = require('path');
const webpack = require("webpack");
const colors = require('../colors');
const { RawSource } = require("webpack-sources");
const generateLevelColors = require('../utils/generate-level-colors');
module.exports = class CreateColorScssPlugin {
apply(compiler) {
compiler.hooks.thisCompilation.tap(CreateColorScssPlugin.name, compilation => {
compilation.hooks.processAssets.tap(
{
name: CreateColorScssPlugin.name,
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,
},
async () => {
let data = '';
for (const colorName in colors) {
const levelColors = generateLevelColors(colors[colorName]);
for (const level in levelColors) {
let name = colorName;
if (level !== '') {
name += '-' + level;
}
data += '$' + name + ': #' + levelColors[level] + ';';
}
}
compilation.emitAsset('color.scss', new RawSource(data));
});
});
}
}
| 38.235294 | 87 | 0.467692 |
d79a16d954b2d2bd086622219de3fb7b605fde4a | 1,275 | js | JavaScript | src/components/header.js | AlgyTaylor/wedding-2022 | cbe3a6494dae20371e54c21f4cdb446eaffb4ef0 | [
"RSA-MD"
] | null | null | null | src/components/header.js | AlgyTaylor/wedding-2022 | cbe3a6494dae20371e54c21f4cdb446eaffb4ef0 | [
"RSA-MD"
] | null | null | null | src/components/header.js | AlgyTaylor/wedding-2022 | cbe3a6494dae20371e54c21f4cdb446eaffb4ef0 | [
"RSA-MD"
] | null | null | null | import * as React from "react"
import PropTypes from "prop-types"
import { Link } from "gatsby"
import styled from "styled-components"
import { Jumbotron, Container } from "react-bootstrap"
import { StaticImage } from "gatsby-plugin-image"
const WeddingWrapper = styled.div`
position: relative;
`;
const HeaderText = styled.h1`
position: absolute;
top: calc(50% - 3rem);
left: 3rem;
color: white;
text-shadow: -1px 1px 0 #000,
1px 1px 0 #000,
1px -1px 0 #000,
-1px -1px 0 #000;
`;
const HeaderDescription = styled.p`
position: absolute;
top: calc(50%);
left: 3rem;
color: white;
text-shadow: -1px 1px 0 #000,
1px 1px 0 #000,
1px -1px 0 #000,
-1px -1px 0 #000;
`;
const Header = ({ siteTitle, siteDescription }) => (
<WeddingWrapper>
<StaticImage
src="../images/flower.jpg"
quality={95}
formats={["AUTO", "WEBP", "AVIF"]}
alt="Rose on paper"
style={{ marginBottom: `1.45rem` }}
/>
<HeaderText>{siteTitle}</HeaderText>
<HeaderDescription>{siteDescription}</HeaderDescription>
</WeddingWrapper>
)
Header.propTypes = {
siteTitle: PropTypes.string,
siteDescription: PropTypes.string,
}
Header.defaultProps = {
siteTitle: ``,
siteDescription: '',
}
export default Header
| 21.982759 | 60 | 0.653333 |
d79aaedd7dc25e56b961826190b91923a5eeb582 | 398 | js | JavaScript | Project.js | trinaChaudhuri/task-creation | 275f302c42b6540e8d2d125a529502cc49160b21 | [
"MIT"
] | null | null | null | Project.js | trinaChaudhuri/task-creation | 275f302c42b6540e8d2d125a529502cc49160b21 | [
"MIT"
] | null | null | null | Project.js | trinaChaudhuri/task-creation | 275f302c42b6540e8d2d125a529502cc49160b21 | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const ProjectSchema = new mongoose.Schema({
project: {
type: String,
default: ''
},
startDate: {
type: Date,
default: new Date()
},
endDate: {
type: Date,
default: new Date()
},
taskName: {
type: String,
default: ''
}
});
module.exports = mongoose.model('Projects', ProjectSchema); | 18.090909 | 59 | 0.550251 |
d79ba28d1f045d4090038f6e0f345819e30c6c16 | 7,180 | js | JavaScript | lib/risky.js | friedger/hub | 6683ac36e19921c9055ee5719b4970162c061977 | [
"Apache-2.0"
] | null | null | null | lib/risky.js | friedger/hub | 6683ac36e19921c9055ee5719b4970162c061977 | [
"Apache-2.0"
] | null | null | null | lib/risky.js | friedger/hub | 6683ac36e19921c9055ee5719b4970162c061977 | [
"Apache-2.0"
] | null | null | null | 'use strict';
var redis = require('redis'),
mongoose = require('mongoose'),
TaskLog = mongoose.model('TaskLog'),
uuid = require('node-uuid'),
moment = require('moment');
module.exports = function() {
var receiver, emitter, prefix;
var readyCount = 0;
var myId;
var startup;
var self;
var master = false;
var cluster = {};
var heartbeatInterval;
var taskHandler = {};
var tasks = {};
var evaluateMaster = function() {
var iAmMaster = true;
for(var prop in cluster) {
if(cluster[prop].started < startup) {
iAmMaster = false;
}
}
console.log("was master: "+ master+", now master: "+iAmMaster);
master = iAmMaster;
}
var taskDone = function(id, type, started, executor, err, result, cb) {
var ended = moment().valueOf();
var elapsed = ended - started;
var logentry = new TaskLog();
logentry._id = id;
logentry.task_type = type;
logentry.started_at = moment(started);
logentry.ended_at = ended;
logentry.requested_by = myId;
logentry.executed_by = executor;
if(err) {
logentry.result = 1;
logentry.msg = JSON.stringify(err);
} else {
logentry.result = 0;
}
logentry.save();
if(tasks[id])
delete tasks[id];
cb(err, result, elapsed);
}
var responder;
var ready = function() {
readyCount++;
if(readyCount == 2) {
startup = moment().valueOf();
console.log("Risky is up. I'm "+ myId);
self.on('group:hello', function(data) {
if(data.sender != myId && data.type == "hi") {
if(responder) {
console.log("Cancel masterResponder")
clearTimeout(responder);
responder = null;
}
console.log(data.sender + " just said hi. Replying.");
cluster[data.sender] = {
started: data.started,
nextHeartbeat: moment().valueOf()+10000
};
evaluateMaster();
self.emit('group:hello', {
sender: myId,
type: 'hi_reply',
started: startup
});
} else if(data.sender != myId && data.type == "hi_reply") {
if(responder) {
console.log("Cancel masterResponder")
clearTimeout(responder);
responder = null;
}
cluster[data.sender] = {
started: data.started,
nextHeartbeat: moment().valueOf()+10000
};
evaluateMaster();
}
});
self.on('group:heartbeat', function(data) {
if(data.sender != myId && cluster[data.sender]) {
cluster[data.sender].nextHeartbeat = data.nextHeartbeat;
if(cluster[data.sender].timeout) {
clearTimeout(cluster[data.sender].timeout);
cluster[data.sender].timeout = null;
}
var next = (data.nextHeartbeat - moment().valueOf())+2000;
cluster[data.sender].timeout = setTimeout(function() {
console.log(data.sender+" has gone down...");
delete cluster[data.sender];
evaluateMaster();
}, next);
}
});
self.on('group:taskrequest', function(data) {
if(!master) {
if(taskHandler[data.type]) {
// Offer to execute task
console.log("Offering to execute task with type: "+ data.type);
self.emit('group:taskoffer', {
sender: myId,
type: data.type,
id: data.taskId
});
} else {
console.log("Don't know how to execute task");
}
} else {
console.log("I'm the master, not doing any tasks");
}
});
self.on('group:taskoffer', function(data) {
// First one to send an offer wins
if(tasks[data.id] && tasks[data.id].state == "open") {
tasks[data.id].state = "executing"
tasks[data.id].executor = data.sender;
tasks[data.id].acceptCallback(null, data.id, data.type, moment());
self.emit('group:taskstart', {
sender: myId,
type: data.type,
recipient: data.sender,
params: tasks[data.id].params,
id: data.id
})
}
});
self.on('group:taskstart', function(data) {
if(data.recipient == myId) {
console.log("Executing task... type: "+ data.type + ", id: "+ data.id);
taskHandler[data.type](data.id, data.params, function(err, result) {
self.emit('group:taskdone', {
sender: myId,
type: data.type,
recipient: data.sender,
err: err,
result: result,
id: data.id
});
});
}
});
self.on('group:taskdone', function(data) {
if(tasks[data.id] && tasks[data.id].executor == data.sender) {
// Task got executed
taskDone(data.id, data.type, tasks[data.id].started, tasks[data.id].executor, data.err, data.result, tasks[data.id].cb);
}
});
self.emit('group:hello', {
sender: myId,
type: 'hi',
started: startup
});
responder = setTimeout(function() {
evaluateMaster();
}, 4000);
var hb = function() {
var next = moment().valueOf()+5000;
self.emit('group:heartbeat', {
sender: myId,
nextHeartbeat: next
});
};
heartbeatInterval = setInterval(hb, 5000);
hb();
}
};
self = {
connect: function(options) {
options = options || {};
var port = options && options.port || 6379; // 6379 is Redis' default
var host = options && options.host || '127.0.0.1';
var auth = options && options.auth;
myId = options && options.id;
emitter = redis.createClient(port, host);
receiver = redis.createClient(port, host);
emitter.on('ready', ready);
receiver.on('ready', ready);
if (auth) {
emitter.auth(auth);
receiver.auth(auth);
}
receiver.setMaxListeners(0);
prefix = options.scope ? options.scope + ':' : '';
},
getRedisClient: function() {
return emitter;
},
getCluster: function() {
return cluster;
},
setTaskHandler: function(taskType, handler) {
taskHandler[taskType] = handler;
},
sendTask: function(taskType, params, acceptCallback, cb, force) {
cb = cb || function() {};
acceptCallback = acceptCallback || function() {};
params = params || {};
force = force != undefined ? force : false;
var id = uuid.v4();
if((master || force) && Object.keys(cluster).length > 0) {
console.log("Sending out task "+ taskType + " with id "+ id);
tasks[id] = {
type: taskType,
started: moment().valueOf(),
state: "open",
params: params,
acceptCallback: acceptCallback,
cb: cb
};
self.emit('group:taskrequest', {
type: taskType,
from: myId,
taskId: id
});
} else if(Object.keys(cluster).length == 0 && taskHandler[taskType]) {
console.log("Doing task myself...");
acceptCallback(null, id, taskType, moment());
var started = moment().valueOf();
taskHandler[taskType](id, params, function(err, result) {
taskDone(id, taskType, started, myId, err, result, cb);
});
} else {
console.log("Not doing it...");
acceptCallback("Not doing it");
}
},
on: function(channel, handler, cb) {
var callback = cb || function () {};
receiver.on('pmessage', function (pattern, _channel, message) {
if (prefix + channel === pattern) {
handler(JSON.parse(message));
}
});
receiver.psubscribe(prefix + channel, callback);
},
emit: function(channel, message) {
emitter.publish(prefix + channel, JSON.stringify(message));
}
};
return self;
}();
| 25.192982 | 125 | 0.599164 |
d79c0936c4db29e67774eef376455c5e3c197ac8 | 6,179 | js | JavaScript | static/js/project/projectsprite.js | sksdutra/microstudio | f89fe5fa942771d97fac05037c0f7aae09a2766c | [
"MIT"
] | null | null | null | static/js/project/projectsprite.js | sksdutra/microstudio | f89fe5fa942771d97fac05037c0f7aae09a2766c | [
"MIT"
] | null | null | null | static/js/project/projectsprite.js | sksdutra/microstudio | f89fe5fa942771d97fac05037c0f7aae09a2766c | [
"MIT"
] | null | null | null | var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
this.ProjectSprite = (function(superClass) {
extend(ProjectSprite, superClass);
function ProjectSprite(project, name, width, height, properties, size1) {
var s;
this.project = project;
this.size = size1 != null ? size1 : 0;
this.updateThumbnail = bind(this.updateThumbnail, this);
this.properties = properties;
if ((width != null) && (height != null)) {
ProjectSprite.__super__.constructor.call(this, width, height, properties);
this.file = name;
this.url = this.project.getFullURL() + "sprites/" + this.file;
} else {
this.file = name;
this.url = this.project.getFullURL() + "sprites/" + this.file;
ProjectSprite.__super__.constructor.call(this, this.url, void 0, properties);
}
this.name = this.file.split(".")[0];
this.ext = this.file.split(".")[1];
this.filename = this.file;
this.file = "sprites/" + this.file;
s = this.name.split("-");
this.shortname = s[s.length - 1];
this.path_prefix = s.length > 1 ? s.splice(0, s.length - 1).join("-") + "-" : "";
this.images = [];
this.load_listeners = [];
}
ProjectSprite.prototype.addLoadListener = function(listener) {
if (this.ready) {
return listener();
} else {
return this.load_listeners.push(listener);
}
};
ProjectSprite.prototype.addImage = function(img, size) {
if (size == null) {
throw "Size must be defined";
}
return this.images.push({
image: img,
size: size
});
};
ProjectSprite.prototype.updated = function(url) {
var i, j, len, ref;
if (url == null) {
url = this.project.getFullURL() + this.file + ("?v=" + (Date.now()));
}
ref = this.images;
for (j = 0, len = ref.length; j < len; j++) {
i = ref[j];
i.image.src = url;
}
if (this.updateThumbnail != null) {
this.updateThumbnail();
}
};
ProjectSprite.prototype.reload = function(callback) {
var img, url;
url = this.project.getFullURL() + this.file + ("?v=" + (Date.now()));
img = new Image;
img.crossOrigin = "Anonymous";
img.src = url;
return img.onload = (function(_this) {
return function() {
_this.load(img, _this.properties);
_this.updated(url);
if (callback != null) {
return callback();
}
};
})(this);
};
ProjectSprite.prototype.loaded = function() {
var j, k, l, len, len1, m, ref, ref1;
ref = this.project.map_list;
for (j = 0, len = ref.length; j < len; j++) {
m = ref[j];
m.update();
m.updateCanvases();
}
ref1 = this.load_listeners;
for (k = 0, len1 = ref1.length; k < len1; k++) {
l = ref1[k];
l();
}
this.project.notifyListeners(this);
};
ProjectSprite.prototype.rename = function(name) {
var s;
this.project.changeSpriteName(this.name, name);
delete this.project.sprite_table[this.name];
this.name = name;
this.project.sprite_table[this.name] = this;
this.filename = this.name + "." + this.ext;
this.file = "sprites/" + this.filename;
this.url = this.project.getFullURL() + this.file;
s = this.name.split("-");
this.shortname = s[s.length - 1];
return this.path_prefix = s.length > 1 ? s.splice(0, s.length - 1).join("-") + "-" : "";
};
ProjectSprite.prototype.updateThumbnail = function() {
var canvas, context, frame, h, j, len, r, ref, results, w;
if (!this.thumbnails) {
return;
}
ref = this.thumbnails;
results = [];
for (j = 0, len = ref.length; j < len; j++) {
canvas = ref[j];
context = canvas.getContext("2d");
context.clearRect(0, 0, canvas.width, canvas.height);
frame = this.frames[0].getCanvas();
r = Math.min(64 / frame.width, 64 / frame.height);
context.imageSmoothingEnabled = false;
w = r * frame.width;
h = r * frame.height;
results.push(context.drawImage(frame, 32 - w / 2, 32 - h / 2, w, h));
}
return results;
};
ProjectSprite.prototype.getThumbnailElement = function() {
var canvas, mouseover, update;
canvas = document.createElement("canvas");
canvas.width = 64;
canvas.height = 64;
if (this.thumbnails == null) {
this.thumbnails = [];
this.addLoadListener((function(_this) {
return function() {
return _this.updateThumbnail();
};
})(this));
}
this.thumbnails.push(canvas);
mouseover = false;
update = (function(_this) {
return function() {
var context, dt, frame, h, r, t, w;
if (mouseover && _this.frames.length > 1) {
requestAnimationFrame(function() {
return update();
});
}
dt = 1000 / _this.fps;
t = Date.now();
frame = mouseover ? Math.floor(t / dt) % _this.frames.length : 0;
context = canvas.getContext("2d");
context.imageSmoothingEnabled = false;
context.clearRect(0, 0, 64, 64);
frame = _this.frames[frame].getCanvas();
r = Math.min(64 / frame.width, 64 / frame.height);
w = r * frame.width;
h = r * frame.height;
return context.drawImage(frame, 32 - w / 2, 32 - h / 2, w, h);
};
})(this);
canvas.addEventListener("mouseenter", (function(_this) {
return function() {
mouseover = true;
return update();
};
})(this));
canvas.addEventListener("mouseout", (function(_this) {
return function() {
return mouseover = false;
};
})(this));
canvas.updateSprite = update;
if (this.ready) {
update();
}
return canvas;
};
ProjectSprite.prototype.canBeRenamed = function() {
return this.name !== "icon";
};
return ProjectSprite;
})(Sprite);
| 31.52551 | 285 | 0.580676 |
d79dba65bff5c4be7522716b001b028b0231640a | 55 | js | JavaScript | localTestServerApi/common/models/labels.js | demonicinn/wildduck-vue-mail | 6db59922d596d73430f7f9d7d8ba782ed19c7cd7 | [
"MIT"
] | null | null | null | localTestServerApi/common/models/labels.js | demonicinn/wildduck-vue-mail | 6db59922d596d73430f7f9d7d8ba782ed19c7cd7 | [
"MIT"
] | null | null | null | localTestServerApi/common/models/labels.js | demonicinn/wildduck-vue-mail | 6db59922d596d73430f7f9d7d8ba782ed19c7cd7 | [
"MIT"
] | null | null | null | 'use strict';
module.exports = function(Labels) {
};
| 9.166667 | 35 | 0.654545 |
d79ecf7822561b1c6868d6240f8e71eec5d19e70 | 403 | js | JavaScript | src/util/memoize.js | MiniGod/npm-fetch-changelog | 86a521c3794db76a25afb6768f31269782a87233 | [
"MIT"
] | 2 | 2020-08-05T12:14:24.000Z | 2021-07-19T14:58:19.000Z | src/util/memoize.js | MiniGod/npm-fetch-changelog | 86a521c3794db76a25afb6768f31269782a87233 | [
"MIT"
] | 3 | 2021-07-16T17:23:59.000Z | 2022-01-22T04:43:35.000Z | src/util/memoize.js | MiniGod/npm-fetch-changelog | 86a521c3794db76a25afb6768f31269782a87233 | [
"MIT"
] | 2 | 2021-07-16T16:56:18.000Z | 2021-12-16T12:55:30.000Z | /**
* @flow
* @prettier
*/
export default function memoize<F: (...args: any[]) => any>(
fn: F,
resolver?: (...args: any[]) => any = (first) => String(first)
): F {
const cache = new Map()
return ((...args: any[]): any => {
const key = resolver(...args)
if (cache.has(key)) return cache.get(key)
const result = fn(...args)
cache.set(key, result)
return result
}: any)
}
| 21.210526 | 63 | 0.545906 |
d79efd9cba4ad547e900ee98a62364243ac6a3cd | 1,458 | js | JavaScript | public/js/navws.min.js | nicdutil/cinc | e6f6571973c997fd80a31d1b0d054a0dd8abf577 | [
"MIT"
] | null | null | null | public/js/navws.min.js | nicdutil/cinc | e6f6571973c997fd80a31d1b0d054a0dd8abf577 | [
"MIT"
] | null | null | null | public/js/navws.min.js | nicdutil/cinc | e6f6571973c997fd80a31d1b0d054a0dd8abf577 | [
"MIT"
] | null | null | null | /*! Copyright 2014 CINC (www.infocinc.com)
//
// 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.
*/
;var navMiniMode=false;function sizeIcons(format){var imgs=$("#social-icons img");var tkn;var modifier;if(format==="mini"){tkn=".";modifier="mini"}else{tkn="mini";modifier=""}$.each(imgs,function(k,v){src=$("#"+v.id).attr("src").split(tkn);src=src[0]+modifier+".png";$("#"+v.id).attr("src",src)})}function navBarResizeHandler(direction){var src;var fixedFlag="fixed"===$("#fixed-bar").css("position");if(!fixedFlag){return}if(direction==="down"){$("#fixed-bar").addClass("navbar-mini");navMiniMode=true}else{$("#fixed-bar").removeClass("navbar-mini");navMiniMode=false}}+function initNavWaypoints(){$("#services-banner").waypoint(navBarResizeHandler,{offset:"50%"});$("#services-banner").waypoint(function(direction){if(direction==="down"){$("#fixed-icons").children().removeClass("invisible")}else{$("#fixed-icons").children().addClass("invisible")}})}(); | 97.2 | 856 | 0.718107 |
d79fd154563f931f558f20462b2a7edd94d01022 | 3,544 | js | JavaScript | test/test.js | lilliputten/bem-create-here | 5e111c9b9238cd1278f5292004ad6fad6520ccbe | [
"MIT"
] | null | null | null | test/test.js | lilliputten/bem-create-here | 5e111c9b9238cd1278f5292004ad6fad6520ccbe | [
"MIT"
] | null | null | null | test/test.js | lilliputten/bem-create-here | 5e111c9b9238cd1278f5292004ad6fad6520ccbe | [
"MIT"
] | null | null | null | /* eslint-env es6, node, mocha */
/* --eslint-disable no-console, no-debugger */
'use strict';
const path = require('path');
const fs = require('fs');
const rimraf = require('rimraf');
// const mkdirp = require('mkdirp');
// const naming = require('@bem/naming');
// const EOL = require('os').EOL;
// const stream = require('stream');
const assert = require('assert');
// Testing class
const CreateHere = require('..');
// Environment paths
const runDir = __dirname;
const initialCwd = process.cwd();
// Modifier's prefix, delim
const modPrefix = '_';
const modDelim = '_';
// Entities...
const levelName = 'test';
const blockName = 'tmpBlock';
const elemName = 'tmpElem';
const modName = 'tmpMod';
// Entity paths...
const levelPath = runDir; // path.join(runDir, levelName);
const blockPath = path.join(levelPath, blockName);
const blockModPath = path.join(blockPath, modPrefix + modName);
const elemPath = path.join(blockPath, elemName);
const elemModPath = path.join(elemPath, modPrefix + modName);
// Reusable CreateHere instance variable
let createHere;
describe('bem-create-here', () => {
/*{{{*/describe('should parse entities', () => {
/*{{{*/describe('level', () => {
beforeEach(() => {
createHere = new CreateHere({ cwdPath: levelPath });
});
it('createHere should contain `level` prioperty', () => {
assert.equal(createHere.level, levelName);
});
});/*}}}*/
/*{{{*/describe('block', () => {
beforeEach(() => {
createHere = new CreateHere({ cwdPath: blockPath });
});
it('createHere should contain `block` prioperty', () => {
assert.equal(createHere.block, blockName);
});
});/*}}}*/
/*{{{*/describe('elem', () => {
beforeEach(() => {
createHere = new CreateHere({ cwdPath: elemPath });
});
it('createHere should contain `elem` prioperty', () => {
assert.equal(createHere.elem, elemName);
});
});/*}}}*/
/*{{{*/describe('block modifier', () => {
beforeEach(() => {
createHere = new CreateHere({ cwdPath: blockModPath });
});
it('createHere should contain `mod` prioperty', () => {
assert.equal(createHere.mod, modName);
});
});/*}}}*/
/*{{{*/describe('elem modifier', () => {
beforeEach(() => {
createHere = new CreateHere({ cwdPath: elemModPath });
});
it('createHere should contain `mod` prioperty', () => {
assert.equal(createHere.mod, modName);
});
});/*}}}*/
});/*}}}*/
/*{{{*/describe('call bem-tools-create', () => {
describe('should create block', () => {
beforeEach(() => {
process.argv.push('-f', '-m', modName, '-T', 'css');
createHere = new CreateHere({ /* DEBUG: true, */ cwdPath: blockPath });
});
afterEach(() => {
rimraf.sync(blockPath);
process.chdir(initialCwd);
});
it('folder must be created', (done) => {
createHere.runBemTools();
// Using timeout for ensure `bem create` command done.
// TODO: Is it safe method?
setTimeout(() => {
// Expecting css mod file
const modFileName = blockName + modDelim + modName + '.css';
const modFilePath = path.join(blockModPath, modFileName);
if (fs.existsSync(modFilePath)) {
done();
}
else {
throw new Error(`Expected mod file (${modFilePath}) was not created`);
}
}, 1000);
});
});
});/*}}}*/
});
| 28.580645 | 82 | 0.558409 |
d7a128326e9351cbc23f84a3605fe94ac41c175f | 1,117 | js | JavaScript | packages/util-server/lib/saveBase64.js | takuto-y/the | b4116241727634fff60b9e93519d12f64d62c80d | [
"MIT"
] | 8 | 2019-03-17T12:52:00.000Z | 2022-01-14T17:29:44.000Z | packages/util-server/lib/saveBase64.js | takuto-y/the | b4116241727634fff60b9e93519d12f64d62c80d | [
"MIT"
] | 46 | 2019-05-15T08:51:35.000Z | 2022-03-08T22:40:28.000Z | packages/util-server/lib/saveBase64.js | takuto-y/the | b4116241727634fff60b9e93519d12f64d62c80d | [
"MIT"
] | 4 | 2019-05-20T09:00:31.000Z | 2021-01-18T05:42:57.000Z | 'use strict'
const fs = require('fs')
const mkdirp = require('mkdirp')
const path = require('path')
const util = require('util')
const isBase64 = require('./isBase64')
const writeFileAsync = util.promisify(fs.writeFile)
const TYPE_EXTRACT_PATTERN = /^data:.*\/([\w+]+);base64,([\s\S]+)/
const Extensions = {
'svg+xml': 'svg',
jpeg: 'jpg',
quicktime: 'mov',
}
/**
* Save base64 string into file
* @function saveBase64
* @param {string} dirname - Directory name
* @param {string} basename - Basename of saving file
* @param {string} data
* @returns {Promise}
*/
async function saveBase64(dirname, basename, data) {
if (!isBase64(data)) {
throw new Error('[saveBase64] data must be base64')
}
await mkdirp(dirname)
const matched = data.match(TYPE_EXTRACT_PATTERN)
if (!matched) {
return null
}
const [, type, payload] = matched
const filename = path.join(
dirname,
[basename, Extensions[type] || type].join('.'),
)
await mkdirp(path.dirname(filename))
await writeFileAsync(filename, payload, 'base64')
return {
filename,
}
}
module.exports = saveBase64
| 21.901961 | 66 | 0.665175 |
d7a1c96a79a0267a30497b6f60dfd19dace09ca6 | 2,758 | js | JavaScript | spec/app/feature/edit_receptor_url_spec.js | pivotal-cf-experimental/xray | 83f174aabb405a2cc54e7720080bf9207ba19ba3 | [
"BSD-3-Clause"
] | 20 | 2015-04-27T06:12:13.000Z | 2021-08-19T08:30:59.000Z | spec/app/feature/edit_receptor_url_spec.js | pivotal-cf-experimental/xray | 83f174aabb405a2cc54e7720080bf9207ba19ba3 | [
"BSD-3-Clause"
] | 7 | 2015-04-27T15:31:43.000Z | 2015-11-19T21:04:56.000Z | spec/app/feature/edit_receptor_url_spec.js | pivotal-cf-experimental/xray | 83f174aabb405a2cc54e7720080bf9207ba19ba3 | [
"BSD-3-Clause"
] | 7 | 2015-04-30T17:25:38.000Z | 2015-11-19T21:01:06.000Z | require('../spec_helper');
describe('features.edit_receptor_url', function() {
var Application, cells, desiredLrps, actualLrps;
beforeEach(function() {
Application = require('../../../app/components/application');
var props = {config: {receptorUrl: 'http://user:password@example.com', colors: ['#fff', '#000']}};
cells = [];
desiredLrps = [];
actualLrps = [];
var ReceptorApi = require('../../../app/api/receptor_api');
var CellsApi = require('../../../app/api/cells_api');
spyOn(CellsApi, 'fetch').and.callThrough();
var receptorPromise = new Deferred();
spyOn(ReceptorApi, 'fetch').and.returnValue(receptorPromise);
React.render(<Application {...props}/>, root);
receptorPromise.resolve({actualLrps, cells, desiredLrps});
});
afterEach(function() {
if ($('.modal-dialog button.close').length) {
$('.modal-dialog button.close').simulate('click');
}
React.unmountComponentAtNode(root);
});
describe('opening the modal', function() {
beforeEach(function() {
$('.main-header button').click();
});
it('displays a modal', function() {
expect('.modal-dialog').toBeVisible();
});
it('pre-fills the form fields', function() {
expect('.modal-dialog input[name="user"]').toHaveValue('user');
expect('.modal-dialog input[name="password"]').toHaveValue('password');
expect('.modal-dialog input[name="receptor_url"]').toHaveValue('http://example.com/');
});
describe('editing the url', function() {
var submitSpy;
beforeEach(function() {
$('.modal-dialog input[name="user"]').val('Bob').simulate('change');
submitSpy = jasmine.createSpy('submit').and.callFake(e => e.preventDefault());
$('.modal-dialog :submit').closest('form').on('submit', submitSpy).trigger('submit');
});
it('updates the receptor url', function() {
expect(submitSpy).toHaveBeenCalled();
expect($(submitSpy.calls.mostRecent().object).serializeArray()).toEqual([
{name: 'user', value: 'Bob'},
{name: 'password', value: 'password'},
{name: 'receptor_url', value: 'http://example.com/'}
]);
});
});
describe('closing the modal with the "x"', function() {
beforeEach(function() {
$('.modal-dialog button.close').simulate('click');
});
it('closes the modal', function() {
expect('.modal-dialog').not.toExist();
});
});
describe('cancelling the modal', function() {
beforeEach(function() {
$('.modal-footer button:contains("Close")').simulate('click');
});
it('closes the modal', function() {
expect('.modal-dialog').not.toExist();
});
});
});
});
| 33.634146 | 102 | 0.594634 |
d7a42844f85c8204f2d03fdcbd8b3e4129cb9d3b | 1,177 | js | JavaScript | app/app-services/roomdata.service.js | shaibot18/ConnectedITSpace | 7b6f5614493cda5cabbb1b2398bbaea8191d32c8 | [
"MIT"
] | null | null | null | app/app-services/roomdata.service.js | shaibot18/ConnectedITSpace | 7b6f5614493cda5cabbb1b2398bbaea8191d32c8 | [
"MIT"
] | null | null | null | app/app-services/roomdata.service.js | shaibot18/ConnectedITSpace | 7b6f5614493cda5cabbb1b2398bbaea8191d32c8 | [
"MIT"
] | null | null | null | angular
.module('app')
.factory('RoomDataService', Service);
function Service($http, $q) {
const RoomDataService = {};
RoomDataService.GetAll = GetAll;
RoomDataService.GetByTimeRange = GetByTimeRange;
RoomDataService.UpdateAllNum = UpdateAllNum;
RoomDataService.AdjustTimeZone = AdjustTimeZone;
RoomDataService.RemoveDuplicates = RemoveDuplicates;
return RoomDataService;
function RemoveDuplicates() {
return $http.get('/api/roomdata/remove').then(handleSuccess, handleError);
}
function AdjustTimeZone() {
return $http.get('/api/roomdata/adjust').then(handleSuccess, handleError);
}
function UpdateAllNum(RoomId) {
return $http.get(`/api/roomdata/allnum/${RoomId}`).then(handleSuccess, handleError);
}
function GetAll() {
return $http.get('/api/roomdata').then(handleSuccess, handleError);
}
function GetByTimeRange(_RoomId, start, end = Date.now()) {
return $http.get(`/api/roomdata/${_RoomId}?startTime=${start}&endTime=${end}`, { timeout: 3000 }).then(handleSuccess, handleError);
}
function handleSuccess(res) {
return res.data;
}
function handleError(res) {
return $q.reject(res.data);
}
}
| 28.707317 | 135 | 0.713679 |
d7a57da6d6bb0cafe033cafa55df17ce5338b9f6 | 1,450 | js | JavaScript | src/utils/custom-life-cycle.js | lnden/data-visualization | 014e93428ccb7464e8ed9eab148328c83d852720 | [
"MIT"
] | null | null | null | src/utils/custom-life-cycle.js | lnden/data-visualization | 014e93428ccb7464e8ed9eab148328c83d852720 | [
"MIT"
] | null | null | null | src/utils/custom-life-cycle.js | lnden/data-visualization | 014e93428ccb7464e8ed9eab148328c83d852720 | [
"MIT"
] | null | null | null | import Vue from 'vue';
// 通知所有组件页面状态发生了变化
const notifyVisibilityChange = (lifeCycleName, vm) => {
// 生命周期函数会存在$options中,通过$options[lifeCycleName]获取生命周期
const lifeCycles = vm.$options[lifeCycleName];
// 因为使用了created的合并策略,所以是一个数组
if (lifeCycles && lifeCycles.length) {
// 遍历 lifeCycleName对应的生命周期函数列表,依次执行
lifeCycles.forEach((lifeCycle) => {
lifeCycle.call(vm);
});
}
// 遍历所有的子组件,然后依次递归执行
if (vm.$children && vm.$children.length) {
vm.$children.forEach((child) => {
notifyVisibilityChange(lifeCycleName, child);
});
}
};
/**
* 添加生命周期钩子函数
* @param {*} rootVm vue 根实例,在页面显示隐藏时候,通过root向下通知
*/
export function init() {
const { optionMergeStrategies } = Vue.config;
/**
定义了两个生命周期函数 pageVisible, pageHidden
为什么要赋值为 optionMergeStrategies.created呢
这个相当于指定 pageVisible, pageHidden 的合并策略与 created的相同(其他生命周期函数都一样)
*/
optionMergeStrategies.pageVisible = optionMergeStrategies.beforeCreate;
optionMergeStrategies.pageHidden = optionMergeStrategies.created;
}
export function bind(rootVm) {
window.addEventListener('visibilitychange', () => {
// 判断调用哪个生命周期函数
let lifeCycleName;
if (document.visibilityState === 'hidden') {
lifeCycleName = 'pageHidden';
} else if (document.visibilityState === 'visible') {
lifeCycleName = 'pageVisible';
}
if (lifeCycleName) {
// 通过所有组件生命周期发生变化了
notifyVisibilityChange(lifeCycleName, rootVm);
}
});
}
| 26.363636 | 73 | 0.693103 |
d7a5d72ca82f56b4f3574e1ecb3ba86f336d88ab | 265 | js | JavaScript | node_modules/pl-table/packages/plx-table-grid/index.js | zFavorite23/ces | dbcf3023e8d138842c378d515278a90f5c27004d | [
"MIT"
] | null | null | null | node_modules/pl-table/packages/plx-table-grid/index.js | zFavorite23/ces | dbcf3023e8d138842c378d515278a90f5c27004d | [
"MIT"
] | 19 | 2020-09-07T20:15:23.000Z | 2022-03-02T06:44:54.000Z | packages/plx-table-grid/index.js | zzqowen/element-ui | 24c55162eeef0b7af6b8e69c11138d2ac7f2b0c5 | [
"MIT"
] | null | null | null | import Vue from 'vue'
import 'xe-utils';
import plxyGrid from 'plxy-grid'
Vue.use(plxyGrid)
import PlxTableGrid from './src/plx-table-grid';
PlxTableGrid.install = function(Vue) {
Vue.component(PlxTableGrid.name, PlxTableGrid);
};
export default PlxTableGrid;
| 24.090909 | 51 | 0.758491 |
d7a6208d8bcac60f16f560e629eaa66c2d61e10b | 154 | js | JavaScript | node_modules/@saeris/vue-spinners/example/src/components/index.js | HilmiZul/binaroom.github.io | 9ca649dfc5d5c42c2c0b31c905200c0fca20947d | [
"MIT"
] | null | null | null | node_modules/@saeris/vue-spinners/example/src/components/index.js | HilmiZul/binaroom.github.io | 9ca649dfc5d5c42c2c0b31c905200c0fca20947d | [
"MIT"
] | 20 | 2021-08-01T12:57:53.000Z | 2022-03-01T15:28:44.000Z | node_modules/@saeris/vue-spinners/example/src/components/index.js | HilmiZul/binaroom.github.io | 9ca649dfc5d5c42c2c0b31c905200c0fca20947d | [
"MIT"
] | 1 | 2021-08-01T07:06:38.000Z | 2021-08-01T07:06:38.000Z | export { Code } from './code'
export { ColorPicker } from './colorPicker'
export { Layout } from './layout'
export { LoaderItem } from './loaderItem'
| 30.8 | 44 | 0.662338 |
d7a63b0a9f0c57c48c809e3cb3d543ff8f22c74a | 170 | js | JavaScript | src/constants/login.js | tuanquanghpvn/react-todo | df27374d9d7cc8ef73a775550259925b609528a9 | [
"MIT"
] | null | null | null | src/constants/login.js | tuanquanghpvn/react-todo | df27374d9d7cc8ef73a775550259925b609528a9 | [
"MIT"
] | null | null | null | src/constants/login.js | tuanquanghpvn/react-todo | df27374d9d7cc8ef73a775550259925b609528a9 | [
"MIT"
] | null | null | null | /* eslint-disable import/prefer-default-export */
export const LOGIN = 'LOGIN';
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
export const LOGIN_ERROR = 'LOGIN_ERROR';
| 24.285714 | 49 | 0.758824 |
d7a69439cbd99b0412e8b7b2a6027db3417a9fc0 | 290 | js | JavaScript | src/config/index.js | fossabot/thyn | ebb8b40f9cf9c85445927bf9bac38f0bd131b913 | [
"MIT"
] | null | null | null | src/config/index.js | fossabot/thyn | ebb8b40f9cf9c85445927bf9bac38f0bd131b913 | [
"MIT"
] | null | null | null | src/config/index.js | fossabot/thyn | ebb8b40f9cf9c85445927bf9bac38f0bd131b913 | [
"MIT"
] | null | null | null | import dotenv from 'dotenv';
const env = dotenv.config().parsed;
const config = {
env: env.NODE_ENV,
features: {
mongo: {
connectionString: env.MONGO_CONNECTION_STRING,
},
express: {
port: env.PORT,
prefix: '/api',
},
},
};
export default config;
| 15.263158 | 52 | 0.6 |
d7a6e7bc24a195cf79278288d110aee5491a4a60 | 177 | js | JavaScript | src/crons/crons/test_cron.js | wouterversyck/whos-home | 2896fe56bd1c62f93319df6ed839a6b3a68a8aab | [
"Unlicense"
] | null | null | null | src/crons/crons/test_cron.js | wouterversyck/whos-home | 2896fe56bd1c62f93319df6ed839a6b3a68a8aab | [
"Unlicense"
] | null | null | null | src/crons/crons/test_cron.js | wouterversyck/whos-home | 2896fe56bd1c62f93319df6ed839a6b3a68a8aab | [
"Unlicense"
] | null | null | null | import { CronJob } from 'cron';
const job = new CronJob('*/2 * * * * *', function() {
const d = new Date();
console.log('At twooo seconds:', d);
});
module.exports = job;
| 19.666667 | 53 | 0.576271 |
d7a7edfa9581bc0a2c1adde4d3790aba59bdd6a4 | 10,606 | js | JavaScript | gui/app/scripts/controllers/image.controller.js | mythwm/yardstick | ea13581f450c9c44f6f73d383e6a192697a95cc1 | [
"Apache-2.0"
] | 28 | 2017-02-07T07:46:42.000Z | 2021-06-30T08:11:06.000Z | gui/app/scripts/controllers/image.controller.js | mythwm/yardstick | ea13581f450c9c44f6f73d383e6a192697a95cc1 | [
"Apache-2.0"
] | 6 | 2018-01-18T08:00:54.000Z | 2019-04-11T04:51:41.000Z | gui/app/scripts/controllers/image.controller.js | mythwm/yardstick | ea13581f450c9c44f6f73d383e6a192697a95cc1 | [
"Apache-2.0"
] | 46 | 2016-12-13T10:05:47.000Z | 2021-02-18T07:33:06.000Z | 'use strict';
angular.module('yardStickGui2App')
.controller('ImageController', ['$scope', '$state', '$stateParams', 'mainFactory', 'Upload', 'toaster', '$location', '$interval', 'ngDialog',
function($scope, $state, $stateParams, mainFactory, Upload, toaster, $location, $interval, ngDialog) {
init();
function init() {
$scope.showloading = false;
$scope.ifshowStatus = 0;
$scope.yardstickImage = [
{
'name': 'yardstick-image',
'description': '',
'size': 'N/A',
'status': 'N/A',
'time': 'N/A'
},
{
'name': 'Ubuntu-16.04',
'description': '',
'size': 'N/A',
'status': 'N/A',
'time': 'N/A'
},
{
'name': 'cirros-0.3.5',
'description': '',
'size': 'N/A',
'status': 'N/A',
'time': 'N/A'
}
];
$scope.customImage = [];
$scope.uuid = $stateParams.uuid;
$scope.showloading = false;
$scope.url = null;
$scope.environmentInfo = null;
getYardstickImageList();
getCustomImageList(function(image, image_id){});
}
function getYardstickImageList(){
mainFactory.ImageList().get({}).$promise.then(function(response){
if(response.status == 1){
angular.forEach($scope.yardstickImage, function(ele, index){
if(typeof(response.result.images[ele.name]) != 'undefined'){
$scope.yardstickImage[index] = response.result.images[ele.name];
}
});
}else{
mainFactory.errorHandler1(response);
}
}, function(response){
mainFactory.errorHandler2(response);
});
}
function getCustomImageList(func){
mainFactory.ItemDetail().get({
'envId': $stateParams.uuid
}).$promise.then(function(response) {
if(response.status == 1){
$scope.environmentInfo = response.result.environment;
$scope.customImage = [];
angular.forEach(response.result.environment.image_id, function(ele){
mainFactory.getImage().get({'imageId': ele}).$promise.then(function(responseData){
if(responseData.status == 1){
$scope.customImage.push(responseData.result.image);
func(responseData.result.image, ele);
}else{
mainFactory.errorHandler1(responseData);
}
}, function(errorData){
mainFactory.errorHandler2(errorData);
});
});
}else{
mainFactory.errorHandler1(response);
}
}, function(response){
mainFactory.errorHandler2(response);
});
}
$scope.loadYardstickImage = function(image_name){
var updateImageTask = $interval(updateYardstickImage, 10000);
function updateYardstickImage(){
mainFactory.ImageList().get({}).$promise.then(function(responseData){
if(responseData.status == 1){
if(typeof(responseData.result.images[image_name]) != 'undefined' && responseData.result.images[image_name].status == 'ACTIVE'){
angular.forEach($scope.yardstickImage, function(ele, index){
if(ele.name == image_name){
$scope.yardstickImage[index] = responseData.result.images[ele.name];
}
});
$interval.cancel(updateImageTask);
}
}else{
mainFactory.errorHandler1(responseData);
}
},function(errorData){
mainFactory.errorHandler2(errorData);
});
}
mainFactory.uploadImage().post({'action': 'load_image', 'args': {'name': image_name}}).$promise.then(function(response){
},function(response){
mainFactory.errorHandler2(response);
});
}
$scope.deleteYardstickImage = function(image_name){
var updateImageTask = $interval(updateYardstickImage, 10000);
function updateYardstickImage(){
mainFactory.ImageList().get({}).$promise.then(function(response){
if(response.status == 1){
if(typeof(response.result.images[image_name]) == 'undefined'){
angular.forEach($scope.yardstickImage, function(ele, index){
if(ele.name == image_name){
$scope.yardstickImage[index].size = 'N/A';
$scope.yardstickImage[index].status = 'N/A';
$scope.yardstickImage[index].time = 'N/A';
}
});
$interval.cancel(updateImageTask);
}
}else{
mainFactory.errorHandler1(response);
}
},function(response){
mainFactory.errorHandler2(response);
});
}
mainFactory.uploadImage().post({'action': 'delete_image', 'args': {'name': image_name}}).$promise.then(function(response){
},function(response){
mainFactory.errorHandler2(response);
});
}
$scope.uploadCustomImageByUrl = function(url){
mainFactory.uploadImageByUrl().post({
'action': 'upload_image_by_url',
'args': {
'environment_id': $stateParams.uuid,
'url': url
}
}).$promise.then(function(response){
if(response.status == 1){
var updateImageTask = $interval(getCustomImageList, 30000, 10, true, function(image, image_id){
if(image_id == response.result.uuid && image.status == 'ACTIVE'){
$interval.cancel(updateImageTask);
}
});
ngDialog.close();
}else{
mainFactory.errorHandler1(response);
}
}, function(response){
mainFactory.errorHandler2(response);
});
}
$scope.uploadCustomImage = function($file, $invalidFiles) {
$scope.showloading = true;
$scope.displayImageFile = $file;
Upload.upload({
url: Base_URL + '/api/v2/yardstick/images',
data: { file: $file, 'environment_id': $scope.uuid, 'action': 'upload_image' }
}).then(function(response) {
$scope.showloading = false;
if (response.data.status == 1) {
toaster.pop({
type: 'success',
title: 'upload success',
body: 'you can go next step',
timeout: 3000
});
var updateImageTask = $interval(getCustomImageList, 10000, 10, true, function(image, image_id){
if(image_id == response.data.result.uuid && image.status == 'ACTIVE'){
$interval.cancel(updateImageTask);
}
});
}else{
mainFactory.errorHandler1(response);
}
}, function(response) {
$scope.uploadfile = null;
mainFactory.errorHandler2(response);
})
}
$scope.deleteCustomImage = function(image_id){
mainFactory.deleteImage().delete({'imageId': image_id}).$promise.then(function(response){
if(response.status == 1){
$interval(getCustomImageList, 10000, 5, true, function(image, image_id){
});
}else{
mainFactory.errorHandler2(response);
}
}, function(response){
mainFactory.errorHandler2(response);
});
}
$scope.openImageDialog = function(){
$scope.url = null;
ngDialog.open({
preCloseCallback: function(value) {
},
template: 'views/modal/imageDialog.html',
scope: $scope,
className: 'ngdialog-theme-default',
width: 950,
showClose: true,
closeByDocument: false
})
}
$scope.goBack = function goBack() {
$state.go('app.projectList');
}
$scope.goNext = function goNext() {
$scope.path = $location.path();
$scope.uuid = $scope.path.split('/').pop();
$state.go('app.podUpload', { uuid: $scope.uuid });
}
}
]);
| 42.766129 | 155 | 0.414388 |
d7a87eda42f7cb33ffe808e05e3e6c0df00cfd7e | 1,131 | js | JavaScript | renderFullPage.js | vasilena14/studyroad | 11af0ea071a387a582fe5223e4b7cd4616168f79 | [
"MIT"
] | null | null | null | renderFullPage.js | vasilena14/studyroad | 11af0ea071a387a582fe5223e4b7cd4616168f79 | [
"MIT"
] | null | null | null | renderFullPage.js | vasilena14/studyroad | 11af0ea071a387a582fe5223e4b7cd4616168f79 | [
"MIT"
] | null | null | null | export default ({ html, css }) => {
return `<!DOCTYPE html>
<html lang="bg">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>StudyRoad</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet">
<style>
a{
text-decoration: none;
color: #002940
}
</style>
</head>
<body style="margin:0; background-color:#f2f2f2; min-height: 100vh; display: flex; flex-direction: column;">
<div id="root" >${html}</div>
<style id="jss-server-side">${css}</style>
<script type="text/javascript" src="/dist/bundle.js"></script>
<div style="color: #3f5d71; font-family: 'Montserrat'; font-size: 12px; text-align: center; width: 100%; margin-top: auto; padding-bottom: 5px;">Copyright © <script>document.write(new Date().getFullYear())</script> Vassilena Vassileva</div>
</body>
</html>`;
};
| 45.24 | 252 | 0.59328 |
d7a97f6b27da644ceb5ff29cda6c123de6ca0baa | 293 | js | JavaScript | packages/ondrej-sika.cz/pages/landing/index.js | Patrikk7/www | b9fb706949cf0cab85fd683e8c98dbab2ac6c36e | [
"MIT"
] | 2 | 2019-08-19T14:58:30.000Z | 2020-04-04T19:32:04.000Z | packages/ondrej-sika.cz/pages/landing/index.js | Patrikk7/www | b9fb706949cf0cab85fd683e8c98dbab2ac6c36e | [
"MIT"
] | 9 | 2019-08-10T10:50:29.000Z | 2020-04-05T18:05:08.000Z | packages/ondrej-sika.cz/pages/landing/index.js | Patrikk7/www | b9fb706949cf0cab85fd683e8c98dbab2ac6c36e | [
"MIT"
] | 7 | 2020-09-15T13:45:27.000Z | 2021-08-03T19:27:24.000Z | import React from "react";
import Article from "@app/ondrejsika-theme/layouts/Article";
export default function Page() {
return (
<Article
hideFooter={true}
title="Landing Pages"
hideNewsletter={true}
markdown={`
- [Startups](/landing/startups)
`}
/>
);
}
| 18.3125 | 60 | 0.638225 |
d7aa032ae0241870388403fc8fd889976355ad72 | 752 | js | JavaScript | src/store/userStore.js | cgibsonmm/daily | 8d1062a83b261bb44bc9363328475a9c07df96ef | [
"MIT"
] | null | null | null | src/store/userStore.js | cgibsonmm/daily | 8d1062a83b261bb44bc9363328475a9c07df96ef | [
"MIT"
] | null | null | null | src/store/userStore.js | cgibsonmm/daily | 8d1062a83b261bb44bc9363328475a9c07df96ef | [
"MIT"
] | null | null | null | import { writable } from "svelte/store";
import { verify } from "../services/auth";
let user = null;
if (typeof window !== "undefined") {
user = localStorage.getItem("current_user");
}
export const userStore = () => {
const { subscribe, set } = writable(JSON.parse(user));
const setCurrentUser = async (form) => {
let userData = await verify();
console.log(userData);
await localStorage.setItem("current_user", JSON.stringify(userData));
set(userData);
};
const logoutUser = async () => {
await localStorage.removeItem("current_user");
await localStorage.removeItem("auth_token");
set(null);
};
return {
subscribe,
setCurrentUser,
logoutUser,
};
};
export const currentUser = userStore();
| 22.117647 | 73 | 0.655585 |
d7ab3696d11ba5cf211ef9ee40b8d8d81cee8547 | 1,107 | js | JavaScript | plugins/hackweb.js | oneechan123/cumatest | 4e1dbb4f3981319c889469d08bfd8a8a8c6e9f15 | [
"MIT"
] | null | null | null | plugins/hackweb.js | oneechan123/cumatest | 4e1dbb4f3981319c889469d08bfd8a8a8c6e9f15 | [
"MIT"
] | null | null | null | plugins/hackweb.js | oneechan123/cumatest | 4e1dbb4f3981319c889469d08bfd8a8a8c6e9f15 | [
"MIT"
] | null | null | null | let fetch = require('node-fetch')
let handler = async(m, { conn, text, usedPrefix, command }) => {
let [text1, text2, text3, text4] = text.split `|`
if (!text1) return conn.reply(m.chat, 'Silahkan masukan judul', m)
if (!text2) return conn.reply(m.chat, 'Silahkan masukan deskripsi', m)
if (!text3) return conn.reply(m.chat, 'Silahkan masukan watermark', m)
if (!text4) return conn.reply(m.chat, 'Silahkan masukan url', m)
let link = `${text4}`
conn.sendMessage(m.chat, {
text: link,
canonicalUrl: `${text3}`,
matchedText: link,
title: `${text1}`,
description: `${text2}`,
jpegThumbnail: await (await fetch(await conn.getProfilePicture(m.sender))).buffer()
}, 'extendedTextMessage', { detectLinks: false })
conn.reply(m.chat, `Tuh Mhankk`, m)
}
handler.help = ['hackweb <judul|desk|wm|url>']
handler.tags = ['tools']
handler.command = /^(hackweb)$/i
handler.owner = false
handler.mods = false
handler.premium = false
handler.group = false
handler.private = false
handler.register = true
handler.admin = false
handler.botAdmin = false
handler.fail = null
module.exports = handler | 29.918919 | 84 | 0.693767 |
d7ab4e629aec57462e96c86ac8b11a82121d5fc7 | 11,765 | js | JavaScript | js/supersized.shutter.min.js | gmpaier/entertainment-galaxy | 074fee965480482df10d08c0c86ccff91e0ca809 | [
"Unlicense"
] | 1 | 2021-03-01T23:14:43.000Z | 2021-03-01T23:14:43.000Z | js/supersized.shutter.min.js | gmpaier/project_1 | 074fee965480482df10d08c0c86ccff91e0ca809 | [
"Unlicense"
] | 8 | 2021-02-27T18:16:44.000Z | 2021-03-08T22:51:15.000Z | js/supersized.shutter.min.js | gmpaier/entertainment-galaxy | 074fee965480482df10d08c0c86ccff91e0ca809 | [
"Unlicense"
] | 1 | 2021-03-02T00:22:40.000Z | 2021-03-02T00:22:40.000Z | (function (a) {
theme = {
_init: function () {
if (api.options.slide_links) {
a(vars.slide_list).css("margin-left", -a(vars.slide_list).width() / 2);
}
if (api.options.autoplay) {
if (api.options.progress_bar) {
theme.progressBar();
}
} else {
if (a(vars.play_button).attr("src")) {
a(vars.play_button).attr("src", vars.image_path + "play.png");
}
if (api.options.progress_bar) {
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0);
}
}
a(vars.thumb_tray).animate({ bottom: -a(vars.thumb_tray).height() }, 0);
a(vars.tray_button).toggle(
function () {
a(vars.thumb_tray)
.stop()
.animate({ bottom: 0, avoidTransforms: true }, 300);
if (a(vars.tray_arrow).attr("src")) {
a(vars.tray_arrow).attr(
"src",
vars.image_path + "button-tray-down.png"
);
}
return false;
},
function () {
a(vars.thumb_tray)
.stop()
.animate(
{ bottom: -a(vars.thumb_tray).height(), avoidTransforms: true },
300
);
if (a(vars.tray_arrow).attr("src")) {
a(vars.tray_arrow).attr(
"src",
vars.image_path + "button-tray-up.png"
);
}
return false;
}
);
a(vars.thumb_list).width(
a("> li", vars.thumb_list).length *
a("> li", vars.thumb_list).outerWidth(true)
);
if (a(vars.slide_total).length) {
a(vars.slide_total).html(api.options.slides.length);
}
if (api.options.thumb_links) {
if (a(vars.thumb_list).width() <= a(vars.thumb_tray).width()) {
a(vars.thumb_back + "," + vars.thumb_forward).fadeOut(0);
}
vars.thumb_interval =
Math.floor(
a(vars.thumb_tray).width() /
a("> li", vars.thumb_list).outerWidth(true)
) * a("> li", vars.thumb_list).outerWidth(true);
vars.thumb_page = 0;
a(vars.thumb_forward).click(function () {
if (
vars.thumb_page - vars.thumb_interval <=
-a(vars.thumb_list).width()
) {
vars.thumb_page = 0;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
} else {
vars.thumb_page = vars.thumb_page - vars.thumb_interval;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
}
});
a(vars.thumb_back).click(function () {
if (vars.thumb_page + vars.thumb_interval > 0) {
vars.thumb_page =
Math.floor(a(vars.thumb_list).width() / vars.thumb_interval) *
-vars.thumb_interval;
if (a(vars.thumb_list).width() <= -vars.thumb_page) {
vars.thumb_page = vars.thumb_page + vars.thumb_interval;
}
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
} else {
vars.thumb_page = vars.thumb_page + vars.thumb_interval;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
}
});
}
a(vars.next_slide).click(function () {
api.nextSlide();
});
a(vars.prev_slide).click(function () {
api.prevSlide();
});
if (jQuery.support.opacity) {
a(vars.prev_slide + "," + vars.next_slide)
.mouseover(function () {
a(this).stop().animate({ opacity: 1 }, 100);
})
.mouseout(function () {
a(this).stop().animate({ opacity: 0.6 }, 100);
});
}
if (api.options.thumbnail_navigation) {
a(vars.next_thumb).click(function () {
api.nextSlide();
});
a(vars.prev_thumb).click(function () {
api.prevSlide();
});
}
a(vars.play_button).click(function () {
api.playToggle();
});
if (api.options.mouse_scrub) {
a(vars.thumb_tray).mousemove(function (f) {
var c = a(vars.thumb_tray).width(),
g = a(vars.thumb_list).width();
if (g > c) {
var b = 1,
d = f.pageX - b;
if (d > 10 || d < -10) {
b = f.pageX;
newX = (c - g) * (f.pageX / c);
d = parseInt(
Math.abs(parseInt(a(vars.thumb_list).css("left")) - newX)
).toFixed(0);
a(vars.thumb_list)
.stop()
.animate(
{ left: newX },
{ duration: d * 3, easing: "easeOutExpo" }
);
}
}
});
}
a(window).resize(function () {
if (api.options.progress_bar && !vars.in_animation) {
if (vars.slideshow_interval) {
clearInterval(vars.slideshow_interval);
}
if (api.options.slides.length - 1 > 0) {
clearInterval(vars.slideshow_interval);
}
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0);
if (!vars.progressDelay && api.options.slideshow) {
vars.progressDelay = setTimeout(function () {
if (!vars.is_paused) {
theme.progressBar();
vars.slideshow_interval = setInterval(
api.nextSlide,
api.options.slide_interval
);
}
vars.progressDelay = false;
}, 1000);
}
}
if (api.options.thumb_links && vars.thumb_tray.length) {
vars.thumb_page = 0;
vars.thumb_interval =
Math.floor(
a(vars.thumb_tray).width() /
a("> li", vars.thumb_list).outerWidth(true)
) * a("> li", vars.thumb_list).outerWidth(true);
if (a(vars.thumb_list).width() > a(vars.thumb_tray).width()) {
a(vars.thumb_back + "," + vars.thumb_forward).fadeIn("fast");
a(vars.thumb_list).stop().animate({ left: 0 }, 200);
} else {
a(vars.thumb_back + "," + vars.thumb_forward).fadeOut("fast");
}
}
});
},
goTo: function (b) {
if (api.options.progress_bar && !vars.is_paused) {
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0);
theme.progressBar();
}
},
playToggle: function (b) {
if (b == "play") {
if (a(vars.play_button).attr("src")) {
a(vars.play_button).attr("src", vars.image_path + "pause.png");
}
if (api.options.progress_bar && !vars.is_paused) {
theme.progressBar();
}
} else {
if (b == "pause") {
if (a(vars.play_button).attr("src")) {
a(vars.play_button).attr("src", vars.image_path + "play.png");
}
if (api.options.progress_bar && vars.is_paused) {
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0);
}
}
}
},
beforeAnimation: function (b) {
if (api.options.progress_bar && !vars.is_paused) {
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0);
}
if (a(vars.slide_caption).length) {
api.getField("title")
? a(vars.slide_caption).html(api.getField("title"))
: a(vars.slide_caption).html("");
}
if (vars.slide_current.length) {
a(vars.slide_current).html(vars.current_slide + 1);
}
if (api.options.thumb_links) {
a(".current-thumb").removeClass("current-thumb");
a("li", vars.thumb_list)
.eq(vars.current_slide)
.addClass("current-thumb");
if (a(vars.thumb_list).width() > a(vars.thumb_tray).width()) {
if (b == "next") {
if (vars.current_slide == 0) {
vars.thumb_page = 0;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
} else {
if (
a(".current-thumb").offset().left -
a(vars.thumb_tray).offset().left >=
vars.thumb_interval
) {
vars.thumb_page = vars.thumb_page - vars.thumb_interval;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
}
}
} else {
if (b == "prev") {
if (vars.current_slide == api.options.slides.length - 1) {
vars.thumb_page =
Math.floor(a(vars.thumb_list).width() / vars.thumb_interval) *
-vars.thumb_interval;
if (a(vars.thumb_list).width() <= -vars.thumb_page) {
vars.thumb_page = vars.thumb_page + vars.thumb_interval;
}
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
} else {
if (
a(".current-thumb").offset().left -
a(vars.thumb_tray).offset().left <
0
) {
if (vars.thumb_page + vars.thumb_interval > 0) {
return false;
}
vars.thumb_page = vars.thumb_page + vars.thumb_interval;
a(vars.thumb_list)
.stop()
.animate(
{ left: vars.thumb_page },
{ duration: 500, easing: "easeOutExpo" }
);
}
}
}
}
}
}
},
afterAnimation: function () {
if (api.options.progress_bar && !vars.is_paused) {
theme.progressBar();
}
},
progressBar: function () {
a(vars.progress_bar)
.stop()
.animate({ left: -a(window).width() }, 0)
.animate({ left: 0 }, api.options.slide_interval);
},
};
a.supersized.themeVars = {
progress_delay: false,
thumb_page: false,
thumb_interval: false,
image_path: "img/",
play_button: "#pauseplay",
next_slide: "#nextslide",
prev_slide: "#prevslide",
next_thumb: "#nextthumb",
prev_thumb: "#prevthumb",
slide_caption: "#slidecaption",
slide_current: ".slidenumber",
slide_total: ".totalslides",
slide_list: "#slide-list",
thumb_tray: "#thumb-tray",
thumb_list: "#thumb-list",
thumb_forward: "#thumb-forward",
thumb_back: "#thumb-back",
tray_arrow: "#tray-arrow",
tray_button: "#tray-button",
progress_bar: "#progress-bar",
};
a.supersized.themeOptions = { progress_bar: 1, mouse_scrub: 0 };
})(jQuery);
| 33.518519 | 80 | 0.465533 |
d7ac481c1c226ad6e354164f1e431bc35189e493 | 736 | js | JavaScript | src/store/index.js | eledobleefe/vue-meteo-practice | 9c036047911a1893a88bee692879c7d41e6d9e3d | [
"MIT"
] | 1 | 2021-01-13T15:45:42.000Z | 2021-01-13T15:45:42.000Z | src/store/index.js | eledobleefe/vue-meteo-practice | 9c036047911a1893a88bee692879c7d41e6d9e3d | [
"MIT"
] | 1 | 2021-01-14T07:23:34.000Z | 2021-01-14T07:23:34.000Z | src/store/index.js | eledobleefe/vue-meteo-practice | 9c036047911a1893a88bee692879c7d41e6d9e3d | [
"MIT"
] | 1 | 2021-01-13T15:45:46.000Z | 2021-01-13T15:45:46.000Z | import Vue from 'vue'
import Vuex from 'vuex'
import api from '../api/index'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
prov: {
codProvincia: '',
seleccionada: false,
},
listaProv: []
},
mutations: {
selectProv(state, codProvincia) {
state.prov.codProvincia = codProvincia,
state.prov.seleccionada = true
},
listarProv(state, listaProv) {
state.listaProv = listaProv.provincias
}
},
actions: {
selectProv({ commit }, codProvincia) {
commit('selectProv',codProvincia )
},
listarProv({ commit }) {
api.getListProvincias()
.then(response => {
commit('listarProv', response.data)
})
}
},
modules: {
}
})
| 19.368421 | 45 | 0.589674 |
d7ad68e146c30dfe119f294d0303863d1ad27cbf | 8,321 | js | JavaScript | assets/js/code-editor.js | Rmanaf/wp-code-injection | 4ddd2756a5d02cd020891e019f27c71aa9d21570 | [
"MIT"
] | null | null | null | assets/js/code-editor.js | Rmanaf/wp-code-injection | 4ddd2756a5d02cd020891e019f27c71aa9d21570 | [
"MIT"
] | null | null | null | assets/js/code-editor.js | Rmanaf/wp-code-injection | 4ddd2756a5d02cd020891e019f27c71aa9d21570 | [
"MIT"
] | null | null | null | /**
* Licensed under MIT (https://github.com/Rmanaf/wp-code-injection/blob/master/LICENSE)
* Copyright (c) 2018 Rmanaf <me@rmanaf.com>
*/
; (($) => {
"user strict"
// init i18n methods
if (typeof wp !== "undefined" && typeof wp.i18n !== "undefined") {
var { __, _x, _n, sprintf } = wp.i18n;
} else {
function __(text, ctx) {
var dic = _ci.i18n[ctx] || {
"texts": [],
"translates": []
};
var index = dic["texts"].indexOf(text);
if(index<0){
return text;
}
return dic["translates"][index];
}
}
var parent, textarea, toolbar, fullscreen, code,
languages = [
"html",
"css",
"javascript",
"xml",
"json",
"php"
], langsList;
function updatePostTitle() {
var $title = $("#title");
var $wrap = $("#titlewrap");
if ($title.val().length == 0) {
$wrap.addClass('busy');
$.get(_ci.ajax_url, {
"action": "code_generate_title",
"_wpnonce": _ci.ajax_nonce
}, function (result) {
$wrap.removeClass('busy');
if (result.success) {
$title.val(result.data);
}
}).fail(function () {
$wrap.removeClass('busy');
});
}
}
$(document).ready(() => {
$('.quicktags-toolbar').hide();
$('.wp-editor-area').hide();
$('#wp-content-editor-tools').hide();
$('#wp-content-wrap').hide();
updatePostTitle();
$('#post-status-info').remove();
// create new elements
parent = $('#postdivrich');
textarea = $('.wp-editor-area');
langsList = $("<ul>").addClass("ci-languages");
languages.forEach(l => {
var item = $("<li>")
.addClass("ci-lang-select")
.attr("data-language", l)
.text(l)
.click(function (e) {
$(".ci-lang-select.active").removeClass("active");
var lang = $(e.target).attr("data-language");
var model = window.ci.editor.getModel();
monaco.editor.setModelLanguage(model, lang);
$(e.target).addClass("active");
});
if (l == "html") {
item.addClass("active");
}
langsList.append(item);
});
toolbar = $('<div>')
.addClass('quicktags-toolbar dcp-ci-toolbar')
.appendTo(parent);
toolbar.append(langsList);
container = $('<div>')
.addClass('dcp-ci-editor')
.appendTo(parent);
fullscreen = $('<div>')
.addClass('full-screen ed_button qt-dfw')
.appendTo(toolbar)
.click((e) => {
e.preventDefault();
parent.toggleClass('fullscreen');
window.ci.editor.layout();
});
// store initial value
code = textarea.text();
require(['vs/editor/editor.main'], () => {
// create editor
window.ci.editor = monaco.editor.create(container[0], {
value: textarea.text(),
theme: 'vs-dark',
language: 'html'
});
// update code
window.ci.editor.getModel().onDidChangeContent((event) => {
textarea.text(window.ci.editor.getModel().getValue());
});
window.ci.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S, () => {
if (textarea.text() === code) {
return;
}
$('#publish').trigger('click');
});
window.ci.editor.addCommand(monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KEY_F, () => {
window.ci.editor.getAction('editor.action.formatDocument').run();
});
});
$("[data-checkbox-activator]").each(function (index, element) {
var _this = $(this);
function toggleTargets(obj, reverse = false) {
if (reverse) {
var hidetargets = obj.attr("data-hide-targets") || "";
hidetargets.split(',').forEach(function (e, i) {
var elem = $(`#${e}`);
if (obj[0].checked) {
elem.hide();
} else {
elem.show();
}
});
return;
}
var showtargets = obj.attr("data-show-targets") || "";
showtargets.split(',').forEach(function (e, i) {
var elem = $(`#${e}`);
if (obj[0].checked) {
elem.show();
} else {
elem.hide();
}
});
}
toggleTargets(_this);
toggleTargets(_this, true);
_this.on("click", function (event) {
var obj = $(event.target);
toggleTargets(obj);
toggleTargets(obj, true);
});
});
$("#fileInputDelegate").on("click", function (e) {
e.preventDefault();
$('#fileInput').trigger("click");
});
$("#title").addClass("disabled-input");
$copybtn = $('<a href="javascript:void(0)" class="copy-btn">' +
__("Copy", "code-injection") +
'<span class="dashicons dashicons-external"></span></a>')
.on('click', function () {
window.ci.ctc($("#title")[0] , true);
});
if(window._ci.is_rtl == "true"){
$copybtn.css({
left: "0",
right: "unset"
});
}
$("#titlewrap").append($copybtn);
$('#fileInput').on("change", function (e) {
var input = $(this)[0];
var fileTypes = ['txt', 'css', 'html', 'htm', 'php', 'temp', 'js', 'svg']; //acceptable file types
var file = input.files[0];
var filesize = file.size;
var extension = file.name.split('.').pop().toLowerCase();
var isSuccess = fileTypes.indexOf(extension) > -1;
if (filesize > 300000) {
var sizeConfirm = confirm(__("The File is too large. Do you want to proceed?", "code-injection"));
if (!sizeConfirm) {
return;
}
}
if (!isSuccess) {
alert(__("The selected file type is not supported.", "code-injection") + " [ *." + fileTypes.join(", *.") + " ]");
return;
}
var reader = new FileReader();
reader.onload = function (e) {
var textarea = $('.wp-editor-area');
var value = e.target.result;
var editorModel = window.ci.editor.getModel();
if (textarea.text() != "") {
var overrideConfirm = confirm(__("Are you sure? You are about to replace the current code with the selected file content.", "code-injection"));
if (overrideConfirm) {
//textarea.text(e.target.result);
editorModel.setValue(value);
}
} else {
editorModel.setValue(value);
}
};
reader.readAsText(file);
});
$(window).on('resize', function () {
if (window.ci.editor) {
window.ci.editor.layout();
}
});
});
})(jQuery); | 28.016835 | 164 | 0.411008 |
d7aeb091fc56a8f758cb1fa8b52bb950bdd6a9e7 | 1,433 | js | JavaScript | client/src/components/ProfileList/index.js | Williamskj/Project-3 | 6878b92b8019c1ba0e9038c4e1849e5668c95d74 | [
"MIT"
] | 1 | 2022-03-11T18:41:14.000Z | 2022-03-11T18:41:14.000Z | client/src/components/ProfileList/index.js | Williamskj/Project-3 | 6878b92b8019c1ba0e9038c4e1849e5668c95d74 | [
"MIT"
] | 2 | 2022-02-26T18:26:42.000Z | 2022-02-26T19:23:42.000Z | client/src/components/ProfileList/index.js | Williamskj/Project-3 | 6878b92b8019c1ba0e9038c4e1849e5668c95d74 | [
"MIT"
] | null | null | null | import React from 'react';
import { Link } from 'react-router-dom';
const userList = ({ users, title, posts }) => {
if (!posts.length) {
return <h3>No users Yet</h3>;
}
return (
<div>
<h3 className="text-primary">{title}</h3>
<div className="flex-row justify-space-between my-4">
{posts &&
posts.map((post) => (
<div key={post._id} className="col-12 col-xl-6">
<div className="card mb-3">
<div className="card-header bg-dark text-light p-2 m-0">
<h4>{post.title}</h4>
<br />
<body className="card-text card-body">{post.description}</body>
{/* By {post.user} */}
{/* <span className="text-white" style={{ fontSize: '1rem' }}>
currently selling {user.savedPosts ? user.savedPosts.length : 0}{' '}
beverage
{user.savedPosts && user.savedPosts.length === 1 ? '' : 's'}
</span> */}
</div>
{/* <Link
className="btn btn-block btn-squared btn-light text-dark"
to={`/users/${user._id}`}
>
View all the beverages that this seller has to offer.
</Link> */}
</div>
</div>
))}
</div>
</div>
);
};
export default userList;
| 32.568182 | 89 | 0.457781 |
d72fc05963ecc239f3c72803444b452b960ca01e | 231 | js | JavaScript | src/style/utils.js | prinsapps/cognitomo | 1556382ae90801f83237f3ef9d9f8f022b405af8 | [
"MIT"
] | 11 | 2019-05-03T05:20:06.000Z | 2022-02-09T18:48:57.000Z | src/style/utils.js | prinsapps/cognitomo | 1556382ae90801f83237f3ef9d9f8f022b405af8 | [
"MIT"
] | 4 | 2020-09-04T20:40:03.000Z | 2021-05-08T17:21:52.000Z | src/style/utils.js | prinsapps/cognitomo | 1556382ae90801f83237f3ef9d9f8f022b405af8 | [
"MIT"
] | 5 | 2019-11-20T20:09:09.000Z | 2020-10-22T20:12:55.000Z | import { keyframes } from 'styled-components'
export const jiggle = keyframes`
0% {
transform: scale(1);
}
50% {
transform: scale(1.1) translate(30px, 20px) rotate(10deg);
}
100% {
transform: scale(1);
}
`
| 16.5 | 62 | 0.61039 |