diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 2c63c085..00000000 --- a/.babelrc +++ /dev/null @@ -1,2 +0,0 @@ -{ -} diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c2d1c203..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,93 +0,0 @@ -version: 2 - -aliases: - # build and deploy for all tags AND commits in master - - &staging_filter - filters: - tags: - only: /.*/ - branches: - only: master - -jobs: - - build_and_push_staging_image: - working_directory: ~/build - docker: - - image: docker:17.05.0-ce-git - steps: - - checkout - - setup_remote_docker - - run: - name: Build docker image - command: | - docker build -t build/chaingear -f ./Dockerfile ./ - docker login -u $DOCKER_USER -p $DOCKER_PASS - - deploy: - name: Uploading images to DockerHub - command: | - echo Uploading :latest image - docker tag build/chaingear cybernode/chaingear:latest - docker push cybernode/chaingear:latest - if [[ "$CIRCLE_TAG" != "" ]]; then - # $CIRCLE_TAG is only set when building tags - echo Uploading :$CIRCLE_TAG image - docker tag build/chaingear cybernode/chaingear:$CIRCLE_TAG - docker push cybernode/chaingear:$CIRCLE_TAG - fi - - update_docs: - working_directory: ~/build - docker: - - image: docker:17.05.0-ce-git - steps: - - checkout - - run: - name: Clone congress repo - working_directory: ~/workdir - command: | - git clone -q --depth 1 https://${DOCS_GITHUB_TOKEN}@github.com/cybercongress/congress.git - - deploy: - name: Update docs from chaingear repo - working_directory: ~/workdir/congress - command: | - # We need to remove current files in folder to avoid duplicating renamed files - rm -rf ./wiki/docs/chaingear/* - cp -r ~/build/docs/. ./wiki/docs/chaingear/ - git add -N wiki/docs/chaingear - diff=$(git diff wiki/docs/chaingear/) - if [[ -n "$diff" ]]; then - git config user.email "cybercongress42@gmail.com" - git config user.name "Cyber Admin" - git add wiki/docs/chaingear/ - git commit -m "Circle CI: Update Docs" - # Push quietly to prevent showing the token in log - git push -q https://${DOCS_GITHUB_TOKEN}@github.com/cybercongress/congress.git master - fi - - deploy_stagin_image: - working_directory: ~/build - docker: - - image: docker:17.05.0-ce-git - steps: - - run: - name: Run new version of chaingear on staging - command: >- - ssh mars@staging.cyber.fund -p 33322 -o "StrictHostKeyChecking no" - 'cd /cyberdata/cybernode && git pull && sh /cyberdata/cybernode/up.chaingear.sh' - - -workflows: - version: 2 - staging_cd: - jobs: - - build_and_push_staging_image: - <<: *staging_filter - - deploy_stagin_image: - <<: *staging_filter - requires: - - build_and_push_staging_image - - update_docs: - <<: *staging_filter - requires: - - build_and_push_staging_image diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 5345e9e5..00000000 --- a/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -[*] -charset=utf-8 -end_of_line=lf -insert_final_newline=true -indent_style=space -indent_size=4 diff --git a/.gitignore b/.gitignore index 815d534f..b065e936 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ /node_modules/ +/client/node_modules/ contracts/.placeholder test/.placeholder build +distribution # IntelliJ @@ -17,7 +19,12 @@ yarn.lock yarn-error.log package-lock.json -dist -/contracts0 +infura_deploy_kovan.json +infura_deploy_rinkeby.json +infura_deploy_mainnet.json -/build +docs/graphs/*.sol +docs/graphs/*.dot + +docs/remix/*.sol +docs/verification/*.sol diff --git a/.soliumignore b/.soliumignore index b512c09d..15c47afc 100644 --- a/.soliumignore +++ b/.soliumignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +contracts/Migrations.sol diff --git a/.soliumrc.json b/.soliumrc.json index e60fa39d..2b9b0f6a 100644 --- a/.soliumrc.json +++ b/.soliumrc.json @@ -1,15 +1,17 @@ { - "extends": "solium:all", - "plugins": ["security"], - "rules": { - "imports-on-top": 0, - "variable-declarations": "error", - "arg-overflow": ["warning", 5], - "indentation": ["error", 4], - "quotes": ["error", "double"], - "security/no-inline-assembly": 0, - "security/no-call-value": 0, - "security/no-block-members": 0, - "no-experimental": 0 - } + "extends": "solium:all", + "plugins": ["security"], + "rules": { + "mixedcase": ["error"], + "blank-lines": ["error"], + "quotes": ["error", "double"], + "no-empty-blocks": "error", + "indentation": ["error", 4], + "max-len": ["warning", 120], + "no-constant": ["error"], + "whitespace": ["error"], + "security/enforce-explicit-visibility": ["error"], + "security/no-block-members": ["warning"], + "security/no-inline-assembly": ["warning"] + } } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e69de29b..6b741ea9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -0,0 +1,4 @@ +### Contributing list + +1. @litvintech - contracts developer/maintainer +2. @pechalka - web3 app developer/maintainer diff --git a/Chaingear class diagramm b/Chaingear class diagramm deleted file mode 100644 index 391a149b..00000000 Binary files a/Chaingear class diagramm and /dev/null differ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 5d6b43ec..00000000 --- a/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM node:9.4.0 as webpack -WORKDIR /src -COPY . /src -RUN npm install -RUN npm run build - - -FROM nginx -RUN mkdir /dist -COPY --from=webpack /src/dist /dist - -RUN rm /etc/nginx/conf.d/* -COPY nginx.conf /etc/nginx/conf.d/ -COPY run_nginx.sh run_nginx.sh -CMD /run_nginx.sh diff --git a/LICENSE b/LICENSE index aaa36384..460a3835 100644 --- a/LICENSE +++ b/LICENSE @@ -1,10 +1,3 @@ -WTFPL +Cyber License -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. - -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - -0. You just DO WHAT THE FUCK YOU WANT TO. +Don’t believe, don’t fear, don’t ask. diff --git a/README.md b/README.md index b0655025..76124d2a 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@

- chaingear + chaingear

-

The most expensive Registry

+

The consensus computer driven database framework

- Chaingear is an Ethereum ERC721-based registries framework. + Current state: 0.1 Euler Chaingear's release for EVM with paper.

@@ -13,13 +13,9 @@
Ethereum Token ERC721 - Contributions Welcome
- MIT License - CircleCI + Contributions Welcome Join Us On Telegram Suprecharged By ZenHub
@@ -32,46 +28,82 @@ -# Overview +### Try EVM's Chaingear rigth now! +- [Mainnet](https://etherscan.io/address/0x02e0c94355562693B3608077732d7437bd7a78ca) +- [Kovan](https://kovan.etherscan.io/address/0x02e0c94355562693B3608077732d7437bd7a78ca) +- [Rinkeby](https://rinkeby.etherscan.io/address/0x02e0c94355562693B3608077732d7437bd7a78ca) + +Chaingear Dapp (Mainnet, Kovan, Rinkeby) accessible **directly from IPFS**: +[QmQmQKkPFqLS4iNiicvAqx6aJtRpYookK8iEZjojcfEqib](https://cloudflare-ipfs.com/ipfs/QmQmQKkPFqLS4iNiicvAqx6aJtRpYookK8iEZjojcfEqib/#/) + -This project allows you to create your own Registry of general purpose entries on Ethereum blockchain. -Entry type is defined during creation, so you can put into entry any custom logic you want (validation, entry-level permission control). Entries are tokenized as NFT. +Note: Best option to use **[CYB web3 browser](https://github.com/cybercongress/cyb/releases)** with **.chaingear** dapp, all contracts code **verified** with Etherscan. -Your creating your registry in Chaingear - metaregistry, which are one point of access to all registries. Registries on chaingear level are tokenized as NFT. Chaingear is most expensive registry, so you should pay for your registry creation. +### Whitepaper +[Chaingear - The consensus computer driven database framework](./whitepaper.md) -## Features +### Principles of Chaingear -#### Chaingear +Chaingear is a set of smart contracts which operating in consensus computer with following principles: -1. Metaregistry with Registries entries, where each entry are ERC721 token -2. Fee-based Registry creation -3. Creating Registries with different functionality -4. Token-based ownership/administration for Registry -5. Funding in ETH for Registries +0. Databases creates by user createDatabase call for Chaingear witch mints database-linked NFT token for user and deploys database with support of CRUD+TF operations. Token controls adminship of database. +1. Admin initializes database with given table/tables data schema. +2. Database admin may set user permissions for entry creation and fee for adding. +3. Each entry in database linked to NFT token (primary key) which grants a set of rights for token-entry operation as UPDATE/DELETE and TRANSFER/FUND. +4. Chaingear for given platform acts as Consensus Computer Driven Database as a Service +5. Application specific business logic should be available to operate on top of database/databases. -#### Custom registry +### Chaingear on EVM, 0.1 Euler PoC -1. Custom data structure for Registry (EntryCore) -2. Each Entry is ERC721 token -3. Fee-based Entry creation -4. Token-based ownership Entry management -5. Entry creation policies (Administrator, Whitelist, AllUsers) +### Chaingear +- Chaingear is database of database which allow deploy new databases from there and creates an associated token for adminship. +- Chaingear allow deploys different types of databases with defined functionality with connects with databases builders. +- Database Builder is a fabric of databases of given type. +- Databases may have their unique code base as an extension to the basic database. +- Database-token may be transferred, sold/traded alongside with their right adminship. +- Chaingear have fees for database creation. +- Chaingear have benefitiaries which may claim collected fees proportional to their shares. -#### Chaingear UI (browser/stand-alone web3 DApp) +### Database +- A database is a smart contract which defines NFT tokens linked to entries. User creates database with given name and token symbol for entries. +- After deploy database admin initializes database with data schema table/tables and this allows them or/and other users to create a systematic collection of data, where rights to operations with entry defined by entry-token ownership. +- Entries data lives in Schema contract. +- Each entry may be publicly funded, an entry-token owner may claim collected funds. +- Database admin may set policy for entry creation: {OnlyAdmin, Whitelist, AllUsers} and fee for the entry-token creation and next claim fees. +- Also admin may set multiple database's beneficiaries which may claim collected fees proportional to their shares. + +#### Chaingear UI (web3 DApp for EVM's Chaingear) 1. Web3/Metamask/Truffle/IPFS based 2. Full Chaingear control interface -3. Full custom Registry control interface -4. Simple smart-contract EntryCore code generation in client -5. Registries ABI and metainformation savings in IPFS +3. Full custom Database control interface +4. Schema smart-contract code generation on client +5. Database ABI saves in IPFS ## [Contracts Overview](https://cybersearch.io/Chaingear/contracts/) ## [Configuring and deploying](https://cybersearch.io/Chaingear/development/) -## General Chaingear/Registry pipeline +## General Chaingear/Database pipeline ![general_pipeline](docs/mermaid/pipelines-general_pipeline.svg) +### web3 Application +#### General +| | | +|-|-| +|![chaingear-general](./docs/app/chaingear.png)|![database-token](./docs/app/database-token.png)| + +#### Database +| | | +|-|-| +|![database-admin](./docs/app/database-admin.png)|![entry-token](./docs/app/entry-token.png)| + +#### Database Deploy and Schema designer +| | | +|-|-| +|![database](./docs/app/database-deploy.png)| +![schema-gen](./docs/app/schema-gen.png)| + ## Join Us On Telegram If you're interested in using or developing Chaingear, come [join us on Telegram](https://t.me/fuckgoogle) @@ -100,4 +132,4 @@ Originally created by [cyber•Congress](https://twitter.com/cyber_devs) ## License -[MIT](https://opensource.org/licenses/MIT) +[Cyber License](./LICENCE) diff --git a/app/src/EntryInterface.sol b/app/src/EntryInterface.sol deleted file mode 100644 index fc9458d7..00000000 --- a/app/src/EntryInterface.sol +++ /dev/null @@ -1,71 +0,0 @@ -pragma solidity 0.4.24; - -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - - event OwnershipRenounced(address indexed previousOwner); - event OwnershipTransferred( - address indexed previousOwner, - address indexed newOwner - ); - - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - constructor() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - /** - * @dev Allows the current owner to relinquish control of the contract. - */ - function renounceOwnership() public onlyOwner { - emit OwnershipRenounced(owner); - owner = address(0); - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param _newOwner The address to transfer ownership to. - */ - function transferOwnership(address _newOwner) public onlyOwner { - _transferOwnership(_newOwner); - } - - /** - * @dev Transfers control of the contract to a newOwner. - * @param _newOwner The address to transfer ownership to. - */ - function _transferOwnership(address _newOwner) internal { - require(_newOwner != address(0)); - emit OwnershipTransferred(owner, _newOwner); - owner = _newOwner; - } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() public view returns (uint256); - function createEntry() public returns (uint256); - function deleteEntry(uint256) public; -} diff --git a/app/src/components/CallToAction/CallToAction.less b/app/src/components/CallToAction/CallToAction.less deleted file mode 100644 index af85bcaf..00000000 --- a/app/src/components/CallToAction/CallToAction.less +++ /dev/null @@ -1,51 +0,0 @@ - -.container { - padding: 50px 80px; - position: relative; -} - -.container::after { - content: ''; - display: block; - clear: both; -} - -.container::before { - content: ''; - display: block; - background: url(../CallToAction/il-comp.svg); - width: 260px; - height: 200px; - position: absolute; - left: 30px; -} - -.innerContainer { - width: 70%; - min-height: 200px; - float: right; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.text { - color: #438cef; - font-size: 24px; - font-weight: bold; - margin-bottom: 20px; -} - -.link { - background: #438cef; - color: #fff; - padding: 7px 18px; - border-radius: 2px; - text-transform: uppercase; - text-decoration: none; -} - -.link:hover { - color: #fff; -} diff --git a/app/src/components/CallToAction/il-comp.svg b/app/src/components/CallToAction/il-comp.svg deleted file mode 100644 index 67eafd16..00000000 --- a/app/src/components/CallToAction/il-comp.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/components/CallToAction/index.jsx b/app/src/components/CallToAction/index.jsx deleted file mode 100644 index 115d02c3..00000000 --- a/app/src/components/CallToAction/index.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import * as React from 'react'; - -import { Link as RouterLink } from 'react-router'; - -const styles = require("./CallToAction.less"); - -export const Container = ({ children }) => ( -
-
- {children} -
-
-); - -export const Text = ({ children }) => ( - - {children} - -); - -export const Link = ({ children, ...props }) => ( - - {children} - -); diff --git a/app/src/components/FormField/FormField.less b/app/src/components/FormField/FormField.less deleted file mode 100644 index 8e758c5c..00000000 --- a/app/src/components/FormField/FormField.less +++ /dev/null @@ -1,38 +0,0 @@ - - -.formField { - border-bottom: 1px solid #dedede; - padding-left: 50px; - padding-right: 20px; - display: flex; - height: 50px; - align-items: center; -} - - -.foramLable { - width: 230px; - font-size: 14px; - color: #2e3842; - text-transform: uppercase; -} - - -.foramValue { - width: 300px; - font-size: 14px; - color: #7c7c7c; -} - -.foramValue input { - border: 1px solid #438cef; - padding: 6px 14px; - box-sizing: border-box; - font-size: 14px; - width: 143px; - width: 300px; -} - -.buttonContainer { - margin-left: auto; -} diff --git a/app/src/components/FormField/index.jsx b/app/src/components/FormField/index.jsx deleted file mode 100644 index 26cb5536..00000000 --- a/app/src/components/FormField/index.jsx +++ /dev/null @@ -1,24 +0,0 @@ -import * as React from 'react'; - -const styles = require("./FormField.less"); - - -export const FormFieldContainer = ({ children }) => ( -
- {children} -
-); - -export const ForamLable = (props) => ( - -); - - -export const ForamValue = (props) => ( - -); - -export const ButtonContainer = (props) => ( -
-) - diff --git a/app/src/components/LinkHash/LinkHash.less b/app/src/components/LinkHash/LinkHash.less deleted file mode 100644 index 9577cfa6..00000000 --- a/app/src/components/LinkHash/LinkHash.less +++ /dev/null @@ -1,66 +0,0 @@ - - - -.hash { - // margin-right: 10px; -} - -.linHash { - color: #438cef; - font-size: 18px; - line-height: 21px; - display: inline-flex; - width: 150px; - // justify-content: space-between; - align-items: center; -} - -.linHash.hashText, -.linHash.hashText:hover { - color: #7c7c7c; -} - -.linHash.linHashMarginLeft { - margin-left: 30px; -} - -.copyButton { - text-indent: -9999px; - width: 12px; - height: 14px; - border: none; - background: url('../LinkHash/baseline-file-copy-24-px.svg') no-repeat; - margin-left: 10px; - cursor: pointer; -} - -.linHash.noCopy { - width: 130px; - - .copyButton { - display: none; - } -} - - -// .copyButton { -// display: none; -// } - -// .linHash:hover .copyButton { -// display: block; -// } - -.linHash:hover { - color: #438cef; -} - -.hashPart { - letter-spacing: -6px; - display: inline-block; - width: 8px; - height: 14px; - overflow: hidden; - padding: 0; - line-height: 1; -} diff --git a/app/src/components/LinkHash/baseline-file-copy-24-px.svg b/app/src/components/LinkHash/baseline-file-copy-24-px.svg deleted file mode 100644 index b045d563..00000000 --- a/app/src/components/LinkHash/baseline-file-copy-24-px.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/app/src/components/LinkHash/index.jsx b/app/src/components/LinkHash/index.jsx deleted file mode 100644 index 5d07f9a9..00000000 --- a/app/src/components/LinkHash/index.jsx +++ /dev/null @@ -1,105 +0,0 @@ - -import * as React from "react"; -import { Link } from 'react-router'; - -const styles = require("./LinkHash.less"); - -import cx from 'classnames'; - -export const Hash = ({ value }) => { - //TODO: fix when change backend - const _value = value.substr(2, value.length ); - - let inx = 2; - const items = []; - while(inx <= _value.length - 4) { - items.push(_value.substr(inx, 6)); - inx += 6; - } - - return ( - - {_value.substr(0, 2)} - {items.map((code, i) => ( - {code}) - )} - {_value.substr(_value.length - 2)} - - ); -} - -//https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript -function fallbackCopyTextToClipboard(text) { - var textArea = document.createElement("textarea"); - textArea.value = text; - document.body.appendChild(textArea); - textArea.focus(); - textArea.select(); - - try { - var successful = document.execCommand('copy'); - var msg = successful ? 'successful' : 'unsuccessful'; - console.log('Fallback: Copying text command was ' + msg); - } catch (err) { - console.error('Fallback: Oops, unable to copy', err); - } - - document.body.removeChild(textArea); -} -function copyTextToClipboard(text) { - if (!navigator.clipboard) { - fallbackCopyTextToClipboard(text); - return; - } - navigator.clipboard.writeText(text).then(function() { - console.log('Async: Copying to clipboard was successful!'); - }, function(err) { - console.error('Async: Could not copy text: ', err); - }); -} - -export const LinkHash = ({ value, to, marginLeft, noCopy }) => { - const copyFunc = (e) => { - copyTextToClipboard(value); - e.preventDefault(); - e.target.blur(); - } - if (to) { - return ( - - - - - ); - } else { - return ( - - - - - ); - - } - -} diff --git a/app/src/components/QRCode/QRCode.less b/app/src/components/QRCode/QRCode.less deleted file mode 100644 index e0c8fdfb..00000000 --- a/app/src/components/QRCode/QRCode.less +++ /dev/null @@ -1,4 +0,0 @@ - -.container { - margin-bottom: 20px; -} diff --git a/app/src/components/QRCode/index.jsx b/app/src/components/QRCode/index.jsx deleted file mode 100644 index 2de69783..00000000 --- a/app/src/components/QRCode/index.jsx +++ /dev/null @@ -1,11 +0,0 @@ -import * as React from "react"; - -var QRCode = require('qrcode.react'); - -const styles = require("./QRCode.less"); - -const QRCodeWrapper = ({ hash, size = 140 }) => ( - -); - -export default QRCodeWrapper; diff --git a/app/src/components/RegistryItem/RegistryItem.less b/app/src/components/RegistryItem/RegistryItem.less deleted file mode 100644 index fe422bc0..00000000 --- a/app/src/components/RegistryItem/RegistryItem.less +++ /dev/null @@ -1,87 +0,0 @@ - - -.label { - margin-top: 10px; - text-transform: uppercase; - font-size: 14px; - color: #2e3842; -} - - -.amount { - font-size: 24px; - color: #7c7c7c; -} - -.buttonContainer { - margin-left: 15px; - margin-bottom: 10px; -} - - -.fieldLabel { - width: 200px; - display: inline-block; - margin-left: 40px; - margin-top: 20px; - font-size: 14px; - color: #7c7c7c; - line-height: 31px; -} - -.fieldValue { - font-size: 14px; -} - -.fieldInput { - border: 1px solid #438cef; - padding: 6px 14px; - box-sizing: border-box; - font-size: 14px; - width: 143px; -} - - -.editButton { - text-indent: -99999px; - width: 16px; - height: 16px; - border: none; - background: none; - background: url(../RegistryItem/edit.svg) no-repeat center center; -} - -.deleteButton { - text-indent: -99999px; - margin-left: 15px; - width: 16px; - height: 16px; - border: none; - background: none; - cursor: pointer; - background: url(../RegistryItem/delete.svg) no-repeat center center; -} - -.deleteButton[disabled] { - opacity: 0.7; - cursor: default; -} - -.updateButton { - text-indent: -99999px; - width: 16px; - height: 16px; - border: none; - background: none; - background: url(../RegistryItem/save.svg) no-repeat center center; -} - -.cancelButton { - text-indent: -99999px; - margin-left: 15px; - width: 16px; - height: 16px; - border: none; - background: none; - background: url(../RegistryItem/cancel.svg) no-repeat center center; -} diff --git a/app/src/components/RegistryItem/cancel.svg b/app/src/components/RegistryItem/cancel.svg deleted file mode 100644 index 3e18a3b5..00000000 --- a/app/src/components/RegistryItem/cancel.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - 82AC7A01-4ED7-44CB-9CB1-9ACF36CDB18F - Created with sketchtool. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/components/RegistryItem/delete.svg b/app/src/components/RegistryItem/delete.svg deleted file mode 100644 index efb510fe..00000000 --- a/app/src/components/RegistryItem/delete.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - 8AC0E067-24B5-4942-A08D-3F9801CE9727 - Created with sketchtool. - - - - - - - - - - \ No newline at end of file diff --git a/app/src/components/RegistryItem/edit.svg b/app/src/components/RegistryItem/edit.svg deleted file mode 100644 index 1ab4b434..00000000 --- a/app/src/components/RegistryItem/edit.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - 6650FD4A-ED93-4F4E-8D1D-EAAE8F5EABA8 - Created with sketchtool. - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/components/RegistryItem/index.jsx b/app/src/components/RegistryItem/index.jsx deleted file mode 100644 index ee056bc1..00000000 --- a/app/src/components/RegistryItem/index.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import * as React from 'react'; - -const styles = require("./RegistryItem.less"); - -export const Label = (props) => ( -
-); - -export const Amount = (props) => ( -
-); - -export const ButtonContainer = (props) => ( -
-); - - -export const FieldLabel = (props) => ( - -); - -export const FieldValue = (props) => ( - -); - - -export const FieldInput = ({ inputRef, ...props }) => ( - -); - - -export const EditButton = (props) => ( - } - {type === 'success' && } -
-); - -export default StatusBar; diff --git a/app/src/components/Table/Table.less b/app/src/components/Table/Table.less deleted file mode 100644 index 74828159..00000000 --- a/app/src/components/Table/Table.less +++ /dev/null @@ -1,37 +0,0 @@ - -.table { - width: 100%; - border-collapse: collapse; -} - -.table thead { - border-bottom: 1px solid #dedede; -} - -.table td, -.table th { - padding-top: 20px; - padding-bottom: 20px; - text-align: center; - font-size: 14px; -} - -.table th { - color: #7c7c7c; - font-weight: bold; - border-bottom: 1px solid #dedede; -} - -.table td:first-child, -.table th:first-child { - padding-left: 30px; - text-align: left; -} - -.table td:last-child, -.table th:last-child { - padding-right: 30px; -} - - - diff --git a/app/src/components/Table/index.jsx b/app/src/components/Table/index.jsx deleted file mode 100644 index 763dafd3..00000000 --- a/app/src/components/Table/index.jsx +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from 'react'; - -const styles = require("./Table.less"); - - -export const Table = ({ children }) => ( - - {children} -
-); diff --git a/app/src/components/ValueInput/arrow.svg b/app/src/components/ValueInput/arrow.svg deleted file mode 100644 index 962d0dfa..00000000 --- a/app/src/components/ValueInput/arrow.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - 4C7CD178-E296-4BC0-9368-BF704B3B2954 - Created with sketchtool. - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/components/ValueInput/index.jsx b/app/src/components/ValueInput/index.jsx deleted file mode 100644 index 8ae3fb03..00000000 --- a/app/src/components/ValueInput/index.jsx +++ /dev/null @@ -1,78 +0,0 @@ -import React, { Component } from 'react'; - -import ClickOutside from 'react-click-outside'; -const styles = require("./valueInput.less"); - - -import { - Button -} from '../chaingear/' - -class ValueInput extends Component { - state = { - open: false, - } - fundEntryClick = () => { - this.setState({ - open: true - }) - } - - handleClickOutside = () => { - if (this.state.open) { - this.cancel() - } - } - - ok = () => { - const value = this.refs.value.value; - this.props.onInter(value); - this.setState({ - open: false - }) - - } - - componentDidUpdate = (prevProps, prevState, snapshot) => { - if (prevState.open === false && this.refs.value) { - this.refs.value.focus(); - } - } - - cancel = () => { - this.setState({ - open: false - }) - - } - render() { - const { width, color } = this.props; - - let buttonLable = this.props.buttonLable || 'fundEntry'; - - const { open } = this.state; - let content = ( -
- -
- ); - - if (open) { - content = ( -
- - -
- ) - } - - return ( - - {content} - - ); - } -} - - -export default ValueInput; diff --git a/app/src/components/ValueInput/valueInput.less b/app/src/components/ValueInput/valueInput.less deleted file mode 100644 index 3bdcf877..00000000 --- a/app/src/components/ValueInput/valueInput.less +++ /dev/null @@ -1,36 +0,0 @@ - -.input { - font-size: 14px; - padding: 10px; - border: 1px solid #979797; - border-right: none; - width: 100%; - box-sizing: border-box; - margin-right: 45px; -} - - -.container { - display: inline-block; - width: 119px; - position: relative; -} - - -.nextBtn { - font-size: 14px; - padding: 10px; - text-indent: -99999px; - width: 37px; - box-sizing: border-box; - background: url(../ValueInput/arrow.svg) no-repeat center center #438cef; - border: 1px solid #438cef; - position: absolute; - right: 0; - top: 0; -} - -.nextBtn.second { - background-color: #03cba0; - border: 1px solid #03cba0; -} diff --git a/app/src/components/chaingear/Chaingear.less b/app/src/components/chaingear/Chaingear.less deleted file mode 100644 index 56866b0a..00000000 --- a/app/src/components/chaingear/Chaingear.less +++ /dev/null @@ -1,201 +0,0 @@ -@import url('https://fonts.googleapis.com/css?family=Play'); - -body, html { - font-family: 'Play', sans-serif; - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - margin: 0; -} - -.container { - background: #eff3f6; - min-height: 100vh; -} - -.containerInner { - width: 1090px; - margin: 0 auto; - padding-top: 65px; - padding-bottom: 65px; -} - -.paper { - height: 100%; - background: #fff; - border-radius: 4px; - box-sizing: border-box; - box-shadow: 1px 5px 4px 0 rgba(0, 0, 0, 0.14); - flex-grow: 1; -} - - -.titile { - font-size: 24px; - line-height: 24px; - color: #7c7c7c; - position: relative; - padding-left: 20px; - margin-bottom: 10px; - margin-top: 0; - -webkit-font-smoothing: antialiased; - font-weight: normal; - text-transform: uppercase; - // padding-bottom: 10px; - // padding-left: 40px; - // color: #7c7c7c; - // font-size: 24px; - // line-height: 24p;x - font-weight: bold; -} - -.badge { - background: #438cef; - color: #fff; - margin-left: 5px; - margin-right: 5px; - padding-left: 5px; - padding-right: 5px; - border-radius: 8px; - vertical-align: middle; - font-size: 20px; -} - - -.footerButton { - display: block; - border: 1px dashed #cbcbcb; - background: #eff3f6; - color: #000; - text-decoration: none; - text-transform: uppercase; - text-align: center; - padding: 15px; - cursor: pointer; -} - - - -.totalCost { - display: flex; - justify-content: space-between; - font-size: 14px; - margin-top: 30px; - margin-bottom: 30px; -} - - - - -.addItemButton { - display: block; - width: 100%; - background: #438cef; - padding: 25px; - font-size: 16px; -} - -.addItemButtonText { - color: #fff; - display: inline-block; - margin-right: 20px; - text-transform: uppercase; -} - - - - - -.section { - margin-bottom: 50px; - display: flex; - flex-wrap: wrap; - box-sizing: border-box; - margin-left: -15px; - margin-right: -15px; -} - -.sectionContent { - flex-grow: 1; - padding-left: 15px; - padding-right: 15px; - box-sizing: border-box; - display: flex; - flex-direction: column; -} - -.sectionTitle { - box-sizing: border-box; - text-transform: uppercase; - font-size: 20px; - padding-left: 30px; - color: #7c7c7c; - line-height: 23px; - margin-top: 40px; - margin-bottom: 15px; - text-transform: uppercase; - -webkit-font-smoothing: antialiased; - font-weight: normal; -} - - -.sectionTabContainer { - width: 100%; - padding-left: 15px; - padding-right: 15px; -} - -.centred { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - // height: calc(100% - 40px); - height: 100%; - padding-top: 20px; - padding-bottom: 20px; - box-sizing: border-box; -} - -.button { - padding: 10px; - font-size: 14px; - text-transform: uppercase; - border-radius: 2px; - border: none; - color: #fff; - background: #438cef; - border: 1px solid #438cef; - box-shadow: 1px 5px 4px rgba(0, 0, 0, 0.14); - display: inline-block; -} - - -.button.second { - background-color: #03cba0; - border: 1px solid #03cba0; -} - -.fundContainer { - width: 100%; - display: flex; - flex-direction: column; - justify-content: space-around; - box-sizing: border-box; - padding-right: 30px; - padding-left: 30px; - align-items: center; - - // margin-bottom: 10px; -} - -.boxTitle { - margin-top: 50px; - margin-bottom: 30px; - text-transform: uppercase; - color: #2e3842; - font-size: 14px; -} diff --git a/app/src/components/chaingear/index.jsx b/app/src/components/chaingear/index.jsx deleted file mode 100644 index 0ac2cce5..00000000 --- a/app/src/components/chaingear/index.jsx +++ /dev/null @@ -1,120 +0,0 @@ -import * as React from 'react'; - -const styles = require("./Chaingear.less"); - -import { Link } from 'react-router'; - -export const Container = ({ children }) => ( -
-
- {children} -
-
-); - - -export const Paper = ({ children }) => ( -
- {children} -
-); - - - -export const Title = ({ children }) => ( -

- {children} -

-); - - -export const Badge = ({ children }) => ( - - {children} - -); - -export const FooterButton = (props) => ( - -); - - - - - - - - -export const TotalCost = ({ value }) => ( -
- Total cost: - {value} gwei -
-); - - - - - -export const AddItemButton = (props) => ( - -); - - -export const SideBar = ({ children }) => ( -
- {children} -
-); - -export const Content = ({ children }) => ( -
- {children} -
-); - -export const ContainerRegister = ({ children }) => ( -
- {children} -
-); - - -export const Control = ({ children, title }) => ( -
- -
{children}
-
-); - - -export const PageTitle = ({ children, inline }) => ( -

- {children} -

-); - - -export const RemoveButton = (props) => ( - } - - - - - - - -
- - -
- {/**/} - -
- -
-
- - - - - - - - - -
- - - - {rows} - - - - - Add Record - Fee: {entryCreationFee} ETH - -
- ); - } -} - - - -export default Register; diff --git a/app/src/main.jsx b/app/src/main.jsx deleted file mode 100644 index 081163f6..00000000 --- a/app/src/main.jsx +++ /dev/null @@ -1,11 +0,0 @@ -import * as React from "react"; -import * as ReactDOM from "react-dom"; -import {Root} from "./root"; - - -ReactDOM.render( - - , document.getElementById("root") -); - - diff --git a/app/src/root.js b/app/src/root.js deleted file mode 100644 index 71542f1a..00000000 --- a/app/src/root.js +++ /dev/null @@ -1,23 +0,0 @@ -import * as React from "react"; -import {Router, Route } from "react-router"; - -import { createHashHistory } from 'history'; //use hash becouse ipfs use path /ipfs/hash/{app} - -import HomePage from './containers/home/'; -import NewRegister from './containers/new'; -import RegisterPage from './containers/register/'; - -export const history = createHashHistory({ }); -import { Container } from './components/chaingear/' - -export function Root() { - return ( - - - - - - - - ); -} diff --git a/app/src/utils/cyber.js b/app/src/utils/cyber.js deleted file mode 100644 index 31dc988c..00000000 --- a/app/src/utils/cyber.js +++ /dev/null @@ -1,626 +0,0 @@ -import ChaingearBuild from '../../../build/contracts/Chaingear.json' -// './Chaingear.json' -//'../../../smart-contracts/build/contracts/Chaingear.json' - -// './Chaingear.json' - -//TODO: move in npm package - -import generateContractCode from './generateContractCode'; - -import Web3 from 'web3' - -export const loadCompiler = (cb) => { - setTimeout(() => { - window.BrowserSolc.loadVersion("soljson-v0.4.24+commit.e67f0147.js", cb); - }, 30); -} - - -const EntryInterface = require('../EntryInterface.sol'); - - - -export const compileRegistry = (code, contractName, compiler) => { - return new Promise((resolve, reject) => { - const input = { - // 'Chaingeareable.sol': ChaingeareableSource, - 'EntryInterface.sol': EntryInterface, - [contractName]: 'pragma solidity 0.4.24; ' + code, - }; - - setTimeout(() => { - var compiledContract = compiler.compile({sources : input }, 1); - if (compiledContract.errors && compiledContract.errors.length > 0) { - reject(compiledContract.errors[0]); - return; - } - - try { - var abi = compiledContract.contracts[contractName +":"+ contractName ].interface; - var bytecode = '0x'+compiledContract.contracts[contractName +":"+ contractName ].bytecode; - - resolve({ - abi, - bytecode - }); - } catch(e) { - reject(e); - } - - }, 20); - }) -} - - -let getWeb3 = new Promise(function(resolve, reject) { - // Wait for loading completion to avoid race conditions with web3 injection timing. - window.addEventListener('load', function() { - var results; - var web3 = window.web3; - // Checking if Web3 has been injected by the browser (Mist/MetaMask) - - - if (typeof web3 !== 'undefined') { - // Use Mist/MetaMask's provider. - - if (web3.currentProvider) { - web3 = new Web3(web3.currentProvider); - } else { - var provider = new Web3.providers.HttpProvider(); - web3 = new Web3(provider); - } - - results = { - web3: web3 - } - - console.log('Injected web3 detected.', web3); - - resolve(results) - } else { - // Fallback to localhost if no web3 injection. We've configured this to - // use the development console's port by default. - var provider = new Web3.providers.HttpProvider('https://kovan.infura.io/eKZdJzgmRo31DJI94iSO') - - web3 = new Web3(provider) - - results = { - web3: web3 - } - - console.log('No web3 instance injected, using Local web3.'); - - resolve(results) - } - }) -}) - -export const estimateNewRegistryGas = (bytecode) => { - return new Promise((resolve, reject) => { - getWeb3.then(({ web3 }) => { - web3.eth.estimateGas({data: bytecode }, (e, gasEstimate) => { - if (e) { - reject(e); - } else { - resolve({ web3, gasEstimate }) - } - }) - }) - }) -} - - - - -export const deployRegistry = (bytecode, abi, web3, opt) => { - const { - gasEstimate, - contractName, - permissionType, - entryCreationFee, - description, - tags - } = opt; - - return new Promise((resolve, reject) => { - - let Contract = web3.eth.contract(JSON.parse(abi)); - const currentAccount = web3.eth.accounts[0]; - var _benefitiaries = [currentAccount]; // ??? - var _shares = [100];// ??? - var _entryCreationFee = web3.toWei(entryCreationFee, 'ether');// ??? - - Contract.new( - _benefitiaries, - _shares, - [{ a: '0xa3564D084fabf13e69eca6F2949D3328BF6468Ef', count: 5 }], - permissionType, - _entryCreationFee, - contractName, - description, - tags, - { - from: currentAccount, - data:bytecode, - gas: gasEstimate - }, (err, myContract) => { - // console.log(' >> ', err, myContract); - if (err) { - reject(err); - } else { - if (myContract.address) { - resolve(myContract.address) - // this.setState({ status: 'save abi in ipfs...'}) - // const buffer = Buffer.from(JSON.stringify(abi)); - // cyber.ipfs.add(buffer, (err, ipfsHash) => { - // const hash = ipfsHash[0].path; - // this.setState({ status: 'register contract...'}) - // cyber.register(contractName, myContract.address, hash).then(() => { - // this.setState({ status: '', inProgress: false }) - // browserHistory.push(`/`); - // }); - // }) - } - } - }); - - - }) -} - - -const getItems = (contract, count, array, mapFn) => { - return new Promise(resolve => { - contract[count]().then(lengthData => { - const length = lengthData.toNumber(); - let promises = []; - for(let i =0; i < length; i++) { - promises.push(contract[array](i)); - } - - Promise.all(promises).then(data => { - const results = data.map(mapFn); - resolve(results); - }) - }) - }) -} - -export const getContract = () => { - return getWeb3 - .then(results => { - // const contract = require('truffle-contract'); - // const registryContract = contract(ChaingearBuild); - const web3 = results.web3; - const contract = web3.eth.contract(ChaingearBuild.abi).at(ChaingearBuild.networks['42'].address); - // registryContract.setProvider(results.web3.currentProvider); - // results.web3.eth.defaultAccount = results.web3.eth.accounts[0]; - - return new Promise(resolve => { - results.web3.eth.getAccounts((e, accounts)=> { - results.web3.eth.defaultAccount = accounts[0]; - - // debugger - // registryContract.deployed().then(contract => { - resolve({ - contract, - web3: results.web3, - accounts - }) - // }); - }) - }) - - // .then(accounts => { - // return registryContract.deployed().then(contract => ({ - // contract, - // web3: results.web3, - // accounts - // })); - // }) - - }) -} - -export const register = (name, adress, hash) => { - return new Promise(resolve => { - getContract().then(( { contract, web3 }) => { - contract.register(name, adress, hash, { from: web3.eth.accounts[0] }).then(x => { - resolve(); - }) - }) - }) -} - -export const getRegistry = () => { - let accounts = null; - return getContract().then(( { contract, web3, accounts }) => { - _accounts = accounts; - return getItems2(contract, 'registriesAmount', 'registryInfo', (items) => { - return ({ - name: items[0], - symbol: items[1], - address: items[2], - creator: items[3], - contractVersion: items[4], - registrationTimestamp: items[5], - ipfsHash: "", - // symbol: 'R1??', //TODO: add symbol to registryInfo method - admin: items[6] - }) - - }).then(items => { - return { - accounts: _accounts, - items: items - } - }) - }) -} - - -export const removeRegistry = (address, cb) => { - return getContract().then(( { contract, web3 }) => { - return contract.deleteRegistry(address, { from: web3.eth.accounts[0] }); - }) -} - - -export const getFieldByHash = (ipfsHash) => { - return new Promise(resolve => { - ipfs.get(ipfsHash, (err, files) => { - const buf = files[0].content; - var abi = JSON.parse(JSON.parse(buf.toString())); - var fields = abi.filter(x => x.name === 'entries')[0].outputs; - fields = fields.filter(x => x.name !== 'metainformation' && x.name !== 'owner' && x.name !== 'lastUpdateTime'); - resolve({ - abi, - fields - }) - }); - }) -} - - -export const getContractByAbi = (address, abi) => { - return new Promise(resolve => { - getWeb3.then(({ web3 }) => { - web3.eth.defaultAccount = web3.eth.accounts[0]; - const CoursetroContract = web3.eth.contract(abi); - const contract = CoursetroContract.at(address); - resolve({ web3, contract }) - }) - }) -} - - - -export const getItems2 = (contract, count, array, mapFn) => { - return new Promise(resolve => { - contract[count]((e, lengthData) => { - const length = lengthData.toNumber(); - let promises = []; - for(let i =0; i < length; i++) { - promises.push(new Promise((itemResolve, itemReject) => { - contract[array](i, (e, r) => { - if (e) itemReject(e) - else itemResolve(r, i); - }) - })); - } - - Promise.all(promises).then(data => { - // .filter(arr => arr[0] !== '') - const results = data.map(mapFn); - resolve(results); - }) - }) - }) -} - -export const addRegistryItem = (contract, data) => { - return new Promise((resolve, reject) => { - const args = [...data]; - contract.entryCreationFee.call((e, data) => { - args.push({ - value: data - }) - - args.push(function(e, r){ - if (e) { - reject(e) - } else { - resolve(r); - } - }); - contract.createEntry.apply(contract, args); - }); - }) -} - -export { getWeb3, generateContractCode }; - -const IPFS = require('ipfs-api'); - -//require('ipfs-api/dist/index.min.js') -//require('ipfs-api'); - -export const ipfs = new IPFS({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }); - - -export const saveInIPFS = (jsonStr) => { - return new Promise((resolve, reject) => { - const buffer = Buffer.from(JSON.stringify(jsonStr)); - ipfs.add(buffer, (err, ipfsHash) => { - if (err) { - reject(err); - } else { - const hash = ipfsHash[0].path; - resolve(hash) - } - }) - }) -} - -// Public API - - - -let _bytecode; -let _ipfsHash; -export const createRegistry = (name, symbol, fields) => { - const code = generateContractCode(name, fields); - return new Promise((resolve, reject) => { - loadCompiler((compiler) => { - compileRegistry(code, name, compiler) - .then(({ abi, bytecode }) => { - _bytecode = bytecode - return saveInIPFS(abi) - }) - .then(ipfsHash => { - _ipfsHash = ipfsHash; - return getContract() - - }) - .then(({ contract, web3, accounts }) => { - contract.getRegistrationFee(function(e, data) { - - var buildingFee = data.toNumber(); - // console.log(' buildingFee ', buildingFee); - - - // _ipfsHash, - // _bytecode, - - contract.registerRegistry.sendTransaction( - "V1", - [accounts[0]], [100], name, symbol, - { - value: buildingFee, - //_web3.toWei(0.001, 'ether'), - // gas: 10000000, - // gasPrice: 15 - // from: _accounts[0], - // Function: function(e, data) { - // debugger - // } - }, - function(e, data, a, b){ - // debugger - if (e) { - reject(e) - } else { - // console.log(data) - // const registry = web3.eth.contract(Registry.abi).at(data); - - // registry.initializeRegistry(_ipfsHash, _bytecode, function(e, data) { - // debugger - // }) - var event = contract.RegistryRegistered(); - - event.watch((ee, results) => { - event.stopWatching(); - // debugger - if (ee) { - reject(ee) - } else { - console.log('>> ', results.args) - const registry = web3.eth.contract(Registry.abi).at(results.args.registryAddress); - registry.initializeRegistry(_ipfsHash, _bytecode, function(e, data) { - resolve(results.args) - }) - } - }) - } - } - ) - }) - }).catch(reject) - }) - }) -} - -let _contract; -let _web3; -let _accounts; - -import Registry from '../../../build/contracts/Registry.json'; - - -export const init = () => { - return new Promise(resolve => { - if (_web3) { - resolve({ - contract: _contract, - web3: _web3, - accounts: _accounts - }) - } else { - getContract() - .then(({ contract, web3, accounts }) => { - // debugger - _contract = contract; - _web3 = web3; - _accounts = accounts; - resolve({ - contract, - web3, - accounts - }) - }) - } - }) -} - -export const getRegistryByAddress = (address) => { - return _web3.eth.contract(Registry.abi).at(address); -} - -export const getRegistryData = (address, fields, abi) => { - return new Promise(resolve => { - const registry = _web3.eth.contract(Registry.abi).at(address); - - registry.getEntriesStorage((e, entryAddress) => { - - - const entryCore = _web3.eth.contract(abi).at(entryAddress); - - const mapFn = (item, index2) => { - const aItem = Array.isArray(item) ? item : [item]; - return fields.reduce((o, field, index) => { - o[field.name] = aItem[index]; - return o; - },{ __index: index2 }) - } - - getItems2(entryCore, 'entriesAmount', 'entryInfo', mapFn) - .then(items => { - registry.getEntryCreationFee((e, data) => { - var fee = data.toNumber(); - - // //return owner for each item by index - // const pp = items.map((d, index) => new Promise((resolve) => - // registry.getEntryMeta(index, (e, metaData) => - // resolve({ ...d, owner: metaData[0]}) - // ) - // ) - // ) - - // Promise.all(pp).then(newItems => { - // resolve({ - // fee, - // items: newItems, - // fields - // }) - // }) - - resolve({ - fee, - items: items, - fields - }) - }) - }); - }) - }) -} - -export const getEntryMeta = () => { - -} - - - -export const removeItem = (address, id) => { - return new Promise(resolve => { - const registryContract = _web3.eth.contract(Registry.abi).at(address); - - var event = registryContract.EntryDeleted(); - event.watch((e, results) => { - event.stopWatching(); - resolve(results.args); - }) - registryContract.deleteEntry(id, (e, d) => { - debugger - }); - }) -} - -export const fundEntry = (address, id, value) => { - return new Promise(resolve => { - const registryContract = _web3.eth.contract(Registry.abi).at(address); - - var event = registryContract.EntryFunded(); - event.watch((e, results) => { - event.stopWatching(); - resolve(results.args); - }) - registryContract.fundEntry(id, { value: _web3.toWei(value, 'ether') }, (e, d) => { - - }); - - }); -} - -export const addItem = (address) => { - return new Promise(resolve => { - const registryContract = _web3.eth.contract(Registry.abi).at(address); - - var event = registryContract.EntryCreated(); - - event.watch((e, results) => { - event.stopWatching(); - // debugger - resolve(results.args.entryID.toNumber()); - }) - - registryContract.getEntryCreationFee((e, data) => { - var fee = data.toNumber(); - - registryContract.createEntry({ value: fee }, (e, d) => { - // resolve(d); - }) - }) - }); - -} - -export const getSafeBalance = (address) => { - return new Promise(resolve => { - const registryContract = _web3.eth.contract(Registry.abi).at(address); - registryContract.safeBalance((e, data) => { - resolve(data); - }) - }) -} - -export const updateEntryCreationFee = (address, newfee) => { - return new Promise((resolve, reject) => { - const registry = _web3.eth.contract(Registry.abi).at(address); - registry.updateEntryCreationFee(_web3.toWei(newfee, 'ether'), function(e, data){ - if (e) reject(e) - else resolve(data); - }) - }) -} - -export const updateItem = (address, ipfsHash, newEntryId, values) => { - return new Promise(resolve => { - const registryContract = _web3.eth.contract(Registry.abi).at(address); - - getFieldByHash(ipfsHash) - .then(({ abi }) => { - - registryContract.getEntriesStorage((e, entryAddress) => { - const entryCore = _web3.eth.contract(abi).at(entryAddress); - - var args = [newEntryId, ...values, function(e, dat) { - resolve(dat); - }] - - entryCore.updateEntry.apply(entryCore, args) - }) - }) - }); -} diff --git a/app/src/utils/generateContractCode.js b/app/src/utils/generateContractCode.js deleted file mode 100644 index 04d0b945..00000000 --- a/app/src/utils/generateContractCode.js +++ /dev/null @@ -1,199 +0,0 @@ - -const generateContractCode = (name, fields) => { - - const structBodyStr = fields.map(f => `${f.type} ${f.name};`).join('\n'); - - const createArgsStr = fields.map(f => `${f.type} _${f.name}`).join(', '); - // const createItemStr = fields.map(f => `${f.name}: _${f.name}`).join(',\n'); - - const generateGetor = (name, type) => { - return ` - - function ${name}Of(uint256 _entryId) - public - view - returns (${type}) - { - return entries[_entryId].${name}; - } - - `; - } - - const empty = (type) => { - if (type === 'address') return 'address(0)'; - if (type === 'uint256') return 'uint256(0)'; - if (type === 'int256') return 'int256(0)'; - if (type === 'bool') return 'true'; - - if (type === 'uint') return 'uint(0)'; - if (type === 'int') return 'int(0)'; - if (type === 'string') return '""'; - - - - return '""'; - } - -// is EntryInterface, Ownable - - return ` - -import 'EntryInterface.sol'; - -contract ${name} is EntryInterface, Ownable { - - - struct ${name}Entry { - ${structBodyStr} - - } - - ${name}Entry[] public entries; - - - function createEntry() - public - onlyOwner - returns ( - uint256 - ) - { - ${name}Entry memory entry = (${name}Entry( - { - - ${fields.map(({ name, type }) => `${name}: ${empty(type)} `).join(',')} - })); - - uint256 newEntryID = entries.push(entry) - 1; - - return newEntryID; - } - - - function updateEntry( - uint256 _entryID, - ${createArgsStr} - ) - public - { - bool status = owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender); - require(status == true); - - ${fields.map(f => `entries[_entryID].${f.name}= _${f.name};`).join('\n')} - - require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID)); - } - - - function deleteEntry( - uint256 _entryIndex - ) - public - onlyOwner - { - uint256 lastEntryIndex = entries.length - 1; - ${name}Entry storage lastEntry = entries[lastEntryIndex]; - - entries[_entryIndex] = lastEntry; - delete entries[lastEntryIndex]; - entries.length--; - } - - - function entriesAmount() - public - view - returns ( - uint256 entryID - ) - { - return entries.length; - } - - ${fields.map(({ name, type }) => generateGetor(name, type)).join(' \n ')} - - - function entryInfo(uint256 _entryId) - public - view - returns (${fields.map(({ name, type }) => type).join(', ')}) - { - return ( - ${fields.map(({ name, type }) => `${name}Of(_entryId)`).join(',\n')} - ); - } - -} - -`; - -// return ` - -// import 'Chaingeareable.sol'; - -// contract ${name} is Chaingeareable { -// struct ${name}Item { -// ${structBodyStr} - -// address owner; -// uint lastUpdateTime; -// } - -// ${name}Item[] public entries; -// event EntryCreated(address owner, uint entryId); -// event EntryDeleted(uint entryId); - -// struct Tokens { -// address a; -// uint count; -// } - - -// function ${name}( -// address[] _benefitiaries, -// uint256[] _shares, -// Tokens[] tokens, -// PermissionType _permissionType, -// uint _entryCreationFee, -// string _name, -// string _description, -// string _tags -// ) Chaingeareable(_benefitiaries, _shares, _permissionType, _entryCreationFee, _name, _description, _tags) public { - -// } - -// function createEntry(${createArgsStr}) external payable { -// require(msg.sender == owner || msg.value == entryCreationFee); -// require(msg.sender == owner || permissionType == PermissionType.AllUsers); - -// entries.push(${name}Item( -// { -// owner: msg.sender, -// lastUpdateTime: now ${fields.length > 0 ? ',' : ''} -// ${createItemStr} -// })); - -// EntryCreated(msg.sender, entries.length - 1); -// } - -// function deleteEntry(uint index) external { -// for (uint i = index; i - cyber.search - Search inside block chains + chaingear -
diff --git a/client/app/src/containers/App/App.css b/client/app/src/containers/App/App.css new file mode 100644 index 00000000..3467f538 --- /dev/null +++ b/client/app/src/containers/App/App.css @@ -0,0 +1,26 @@ +.incorrectNetwork { + width: 700px; + margin: 0 auto; + padding-top: 100px; + color: #7c7c7c; +} + +.incorrectNetwork h2 { + font-size: 34px; + margin-bottom: 40px; +} + +.incorrectNetwork p { + font-size: 20px; + padding-bottom: 10px; +} + +.incorrectNetwork p span { + display: inline-block; + padding-left: 20px; +} + +.incorrectNetwork img { + padding-top: 40px; + float: right; +} diff --git a/client/app/src/containers/App/App.jsx b/client/app/src/containers/App/App.jsx new file mode 100644 index 00000000..ded0c6b3 --- /dev/null +++ b/client/app/src/containers/App/App.jsx @@ -0,0 +1,55 @@ +import React, {Component} from 'react'; + +import {checkNetwork, getNetworkStr} from '../../utils/cyber'; + +import './App.css'; + +class App extends Component { + constructor(props) { + super(props); + + this.state = { + isCorrectNetwork: false, + networkId: null, + contractNetworks: [], + }; + } + + componentDidMount() { + checkNetwork().then(({isCorrectNetwork, networkId, contractNetworks}) => { + this.setState({ + isCorrectNetwork, + networkId, + contractNetworks, + }); + }); + } + + render() { + const {isCorrectNetwork, networkId, contractNetworks} = this.state; + + if (!isCorrectNetwork) { + return ( +
+ +

Please change network.

+

Current networkId: {getNetworkStr(networkId)}

+

Contract networks: + + {contractNetworks.map(netId => getNetworkStr(netId)).join(', ')} + +

+
+ ); + } + + return ( +
+ {this.props.children} +
+ ); + } +} + + +export default App; diff --git a/client/app/src/containers/App/error.svg b/client/app/src/containers/App/error.svg new file mode 100644 index 00000000..13fb4117 --- /dev/null +++ b/client/app/src/containers/App/error.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/client/app/src/containers/database/Beneficiaries.jsx b/client/app/src/containers/database/Beneficiaries.jsx new file mode 100644 index 00000000..d7501343 --- /dev/null +++ b/client/app/src/containers/database/Beneficiaries.jsx @@ -0,0 +1,33 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + Centred, SectionContent, BenContainer, BenPieChart, +} from '@cybercongress/ui'; +import { calculateBensShares } from '../../utils/utils'; + +import page from './page'; + +const Beneficiaries = () => ( + + {(dbPage) => { + const { + beneficiaries, + } = dbPage.state; + + return ( + + + + + + + + ); + }} + +); + +export default Beneficiaries; diff --git a/client/app/src/containers/database/DatabasePopups.jsx b/client/app/src/containers/database/DatabasePopups.jsx new file mode 100644 index 00000000..3b71e143 --- /dev/null +++ b/client/app/src/containers/database/DatabasePopups.jsx @@ -0,0 +1,161 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + LinkHash, Popup, PopupContent, PopupFooter, PopupTitle, + LineTitle, LineControl, WideInput, Button, ContentLineFund, + Text, ContentLine, ContentLineTextInput, +} from '@cybercongress/ui'; +import page from './page'; + +const DatabasePopups = () => ( + + {(dbPage) => { + const { + userAccount, admin, funded, claimFundOpen, claimFeeOpen, + transferOwnershipOpen, fundDatabaseOpen, pauseDatabaseOpen, + resumeDatabaseOpen, deleteDatabaseOpen, + } = dbPage.state; + + return ( + + + Claim database funds + + + Available to claim: + + {funded} + + + + Claim amount: + + { dbPage.claimDbInput = node; } } + placeholder='0.00 ETH' + /> + + + + + + + + + + + Transfer database ownership + + + Current owner: + + + + + + New owner: + + { + dbPage.newDbOwnerInput = node; + } } + /> + + + + + + + + + + + Fund database + + + Amount: + + { + dbPage.fundDbInput = node; + } } + /> + + + + + + + + + + + Delete database + + + + Your database will be unlinked from Chaingear, + but you still will be able to operate with it + + + + + + + + + + + Pause database + + + + When database is on pause there will be no ability + to operate with records + + + + + + + + + + + Resume database + + + + Resume database to operate with records + + + + + + + + + + ); + }} + +); + +export default DatabasePopups; diff --git a/client/app/src/containers/database/FormField.jsx b/client/app/src/containers/database/FormField.jsx new file mode 100644 index 00000000..5c0b7f66 --- /dev/null +++ b/client/app/src/containers/database/FormField.jsx @@ -0,0 +1,90 @@ +import React, { Component } from 'react'; + +import { + FormFieldContainer, + FormLabel, + FormValue, + ButtonContainer, +} from '../../components/FormField'; + + +import { + EditButton, + UpdateButton, + CancelButton, +} from '../../components/DatabaseItem'; + +class FormField extends Component { + state = { + edit: false, + } + + startEdit = () => { + this.setState({ edit: true }); + } + + save = () => { + const { onUpdate, children } = this.props; + + this.setState({ edit: false }); + + if (children) { + onUpdate(); + } else { + onUpdate(this.refs.input.value); + } + } + + cancel = () => { + this.setState({ edit: false }); + } + + render() { + const { + label, value, valueType, onUpdate, children, + } = this.props; + const { edit } = this.state; + + return ( + + + {`${label}:`} + + + {!edit ? ( + + {value} + {valueType} + + ) : ( + + {children ? ( + + {children} + + ) : ( + + )} + + )} + + {onUpdate && ( + + {!edit ? ( +
+ Update +
+ ) : ( +
+ save + cancel +
+ )} +
+ )} +
+ ); + } +} + +export default FormField; diff --git a/client/app/src/containers/database/General.jsx b/client/app/src/containers/database/General.jsx new file mode 100644 index 00000000..acbd7734 --- /dev/null +++ b/client/app/src/containers/database/General.jsx @@ -0,0 +1,63 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + LinkHash, Section, SectionContent, + Text, CentredPanel, +} from '@cybercongress/ui'; +import page from './page'; +import { formatDate } from '../../utils/utils'; + +const General = () => ( + + {(dbPage) => { + const { + createdTimestamp, + admin, + totalFee, + funded, + } = dbPage.state; + + return ( +
+ + + Created: + + {createdTimestamp ? formatDate(createdTimestamp.toNumber()) : ''} + + + + + + + Admin: +
+ +
+
+
+ + + + FUNDED: + + {`${funded} ETH`} + + + + + + + FEES: + + {`${totalFee} ETH`} + + + +
+ ); + }} +
+); + +export default General; diff --git a/client/app/src/containers/database/Header.jsx b/client/app/src/containers/database/Header.jsx new file mode 100644 index 00000000..b4916a51 --- /dev/null +++ b/client/app/src/containers/database/Header.jsx @@ -0,0 +1,141 @@ +import React from 'react'; +import { hashHistory } from 'react-router'; +import { Subscribe } from 'unstated'; +import { + DbMenu, MenuPopup, MenuPopupItem, MenuSeparator, + MenuPopupDeleteIcon, MenuPopupAccountIcon, MenuPopupTransferIcon, + MenuPopupResumeIcon, MenuPopupPauseIcon, + PageTitle, ProgressBar, CircleLable, Section, + PopupBar, Text, PopupBarFooter, Button, + FlexContainer, FlexContainerLeft, FlexContainerRight, +} from '@cybercongress/ui'; + +import page from './page'; + +const Header = () => ( + + {(dbPage) => { + const { + isOwner, isSchemaExist, databaseSymbol, isDbPaused, name, totalFee, + } = dbPage.state; + + const onDefineSchemaClick = () => { + hashHistory.push(`/schema/${databaseSymbol}`); + }; + + const transferOwnershipDisabled = totalFee === 0; + + return ( +
+
+
+ +
+
+ + {name} + + {!isSchemaExist && isOwner + && ( + + + + + + To operate with records, please, define schema + + + + + + + + ) + } + + {`symbol: ${databaseSymbol}`} + + + { `status: ${isDbPaused ? 'paused' : 'operational'}` } + {(!isDbPaused || isOwner) && ( + + + {isOwner && isDbPaused && [ + } + onClick={ dbPage.onTransferOwnership } + > + Transfer ownership + , + , + ]} + {!isDbPaused && ( + } + onClick={ dbPage.onFundDb } + > + Fund database + + )} + {isOwner && !isDbPaused && [ + } + onClick={ dbPage.onClaimFunds } + > + Claim Funds + , + , + } + onClick={ dbPage.onPauseDb } + > + Pause database + , + ]} + {isDbPaused && isOwner && ( + } + onClick={ dbPage.onResumeDb } + > + Resume database + + )} + {isDbPaused && isOwner && [ + , + } + onClick={ dbPage.onDeleteDb } + > + Delete database + , + ]} + + + )} + + +
+ ); + }} +
+); + +export default Header; diff --git a/client/app/src/containers/database/ItemEditPopup.jsx b/client/app/src/containers/database/ItemEditPopup.jsx new file mode 100644 index 00000000..bc89c077 --- /dev/null +++ b/client/app/src/containers/database/ItemEditPopup.jsx @@ -0,0 +1,189 @@ +import * as React from 'react'; +import { + ContentLineTextInput, LineControl, LineTitle, WideInput, + Popup, PopupTitle, PopupContent, PopupFooter, Button, +} from '@cybercongress/ui'; +import { Subscribe } from 'unstated'; +import { debounce } from '../../utils/utils'; +import page from './page'; + +const web3Utils = require('web3-utils'); + +export default class ItemEditPopup extends React.Component { + constructor(props) { + super(props); + + this.inputRefs = {}; + + this.state = { + item: page.state.recordForAction, + errors: {}, + }; + + this.updateField = debounce(this.updateField, 1000); + } + + isValidValue = (value, type) => { + switch (type) { + case 'int256': + return /^[-+]?\d+$/.test(value); + case 'uint256': + return /^\d+$/.test(value); + case 'address': + return web3Utils.isAddress(value); + case 'string': + return value.length <= 30; + default: + return true; + } + }; + + isUniqueFiled = (field, value, records) => { + const { + item, + } = this.state; + + let duplicateFound = false; + + for (let index = 0; index < records.length; index += 1) { + if (records[index].id !== item.id && records[index][field.name] === value) { + duplicateFound = true; + break; + } + } + + return !duplicateFound; + }; + + updateField = (event, field, fieldIndex, dbPage) => { + const { item, errors } = this.state; + const { items: records, fields } = dbPage.state; + let { value } = event.target; + let errorMessage = null; + + if (field.type === 'bool') { + value = event.target.checked; + } + + if (!this.isValidValue(value, field.type)) { + errorMessage = `Check the type, ${field.type} was expected`; + } + + if (field.unique && !errorMessage && !this.isUniqueFiled(field, value, records)) { + errorMessage = 'This field must be unique'; + } + + const filteredErrors = fields + .map(fieldM => fieldM.name) + .reduce((obj, key) => { + if (errors[key] && key !== field.name) { + obj[key] = errors[key]; + } + + if (key === field.name && errorMessage) { + obj[key] = errorMessage; + } + + return obj; + }, {}); + + this.setState({ + item: { + ...item, + [field.name]: value, + }, + errors: filteredErrors, + }); + }; + + onValueChange = (event, field, fieldIndex, dbPage) => { + event.persist(); + + this.updateField(event, field, fieldIndex, dbPage); + }; + + onCancelClick = () => { + const { item, onCancelClick } = this.props; + + this.setState({ + item, + }); + + onCancelClick(); + }; + + onConfirmClick = (dbPage) => { + const { item } = this.state; + const { fields } = dbPage.state; + const values = fields.map(field => item[field.name]); + + dbPage.closePopups(); + dbPage.updateRecord(values, item.id); + }; + + render() { + return ( + + {(dbPage) => { + const { errors } = this.state; + const { recordForAction, fields } = dbPage.state; + const { open } = this.props; + + const rows = fields.map((field, index) => ( + + + {field.name} + + + {field.type === 'bool' + ? ( + { this.inputRefs[field.name] = node; } } + onChange={ event => this.onValueChange( + event, field, index, dbPage, + ) } + checked={ recordForAction[field.name] } + /> + ) : ( + { + this.inputRefs[field.name] = node; + } } + onChange={ event => this.onValueChange( + event, field, index, dbPage, + ) } + defaultValue={ recordForAction[field.name].toString() } + placeholder={ `${field.type}${field.unique ? ' (unique)' : ''}` } + errorMessage={ errors[field.name] } + maxLength={ 42 } + /> + ) + } + + + )); + + return ( + + Edit record + + {rows} + + + + + + + ); + }} + + ); + } +} diff --git a/client/app/src/containers/database/Overview.jsx b/client/app/src/containers/database/Overview.jsx new file mode 100644 index 00000000..19357c1f --- /dev/null +++ b/client/app/src/containers/database/Overview.jsx @@ -0,0 +1,111 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + SectionContent, InfoButton, + FormField, WideSelect, +} from '@cybercongress/ui'; +import page from './page'; + +const Permission = { + OnlyAdmin: 0, + Whitelist: 1, + AllUsers: 2, +}; + +const CreateEntryPermissionGroup = { + [Permission.OnlyAdmin]: { + key: 'OnlyAdmin', + label: 'ONLY OWNER', + }, + // 1: { + // key: 'Whitelist', + // label: 'Whitelist', + // }, + [Permission.AllUsers]: { + key: 'AllUsers', + label: 'All Users', + }, +}; + + +const Overview = () => ( + + {(dbPage) => { + const { + items, isOwner, isSchemaExist, isDbPaused, ipfsGateway, + permissionGroup, description, entryCreationFee, tag, + contractVersion, databaseAddress, entryCoreAddress, abiIpfsHash, + } = dbPage.state; + + const permissionGroupStr = CreateEntryPermissionGroup[permissionGroup].label; + + return ( + + + + + + { + dbPage.permissionGroup = node; + } } + defaultValue={ permissionGroup } + > + {Object.keys(CreateEntryPermissionGroup).map((n) => { + const { label } = CreateEntryPermissionGroup[n]; + + return ( + + ); + })} + + + + + + + + {abiIpfsHash} + + ) } + /> + + ); + }} + +); + +export default Overview; diff --git a/client/app/src/containers/database/PageLoading.jsx b/client/app/src/containers/database/PageLoading.jsx new file mode 100644 index 00000000..697cb848 --- /dev/null +++ b/client/app/src/containers/database/PageLoading.jsx @@ -0,0 +1,23 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { StatusBar } from '@cybercongress/ui'; +import page from './page'; + +const PageLoading = () => ( + + {(dbPage) => { + const { + loading, + } = dbPage.state; + + return ( + + ); + }} + +); + +export default PageLoading; diff --git a/client/app/src/containers/database/RecordPopups.jsx b/client/app/src/containers/database/RecordPopups.jsx new file mode 100644 index 00000000..a7a69260 --- /dev/null +++ b/client/app/src/containers/database/RecordPopups.jsx @@ -0,0 +1,158 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + LinkHash, Popup, PopupContent, PopupFooter, PopupTitle, + LineTitle, LineControl, WideInput, Button, ContentLineFund, + Text, ContentLineTextInput, ContentLine, +} from '@cybercongress/ui'; +import ItemEditPopup from './ItemEditPopup'; +import page from './page'; + +const DatabasePopups = () => ( + + {(dbPage) => { + const { + userAccount, isSchemaExist, + recordForAction, + claimRecordFundOpen, + transferRecordOwnershipOpen, + fundRecordOpen, + deleteRecordOpen, + editRecordOpen, + } = dbPage.state; + + if (!(isSchemaExist && recordForAction)) { + return ( +
+ ); + } + + return ( + + + Claim record funds + + + Available to claim: + + {recordForAction.currentEntryBalanceETH} + + + + Claim amount: + + { dbPage.claimRecordInput = node; } } + placeholder='0.00 ETH' + /> + + + + + + + + + + + Transfer record ownership + + + Current owner: + + + + + + New owner: + + { + dbPage.newRecordOwnerInput = node; + } } + /> + + + + + + + + + + + Fund record + + + Amount: + + { + dbPage.fundRecordInput = node; + } } + /> + + + + + + + + + + + Delete record + + + + Delete record # + {recordForAction.id} + + + + + + + + + {editRecordOpen && ( + + )} + + ); + }} + +); + +export default DatabasePopups; diff --git a/client/app/src/containers/database/Records.jsx b/client/app/src/containers/database/Records.jsx new file mode 100644 index 00000000..530e6147 --- /dev/null +++ b/client/app/src/containers/database/Records.jsx @@ -0,0 +1,174 @@ +import React from 'react'; +import { Subscribe } from 'unstated'; +import { + FlexContainer, FlexContainerLeft, FlexContainerRight, AddNewRecordButton, + DatabaseItemsContainer, TableRecords, DbMenuPoints, MenuPopup, + MenuPopupItem, MenuPopupTransferIcon, MenuPopupEditIcon, MenuPopupDeleteIcon, + MenuSeparator, MenuPopupAccountIcon, LinkHash, +} from '@cybercongress/ui'; +import page from './page'; + +const Permission = { + OnlyAdmin: 0, + Whitelist: 1, + AllUsers: 2, +}; + +const Records = () => ( + + {(dbPage) => { + const { + fields, items, isOwner, isSchemaExist, + isDbPaused, permissionGroup, userAccount, + } = dbPage.state; + + const actionsThs = items.map(item => ( + + + + { userAccount === item.owner && [ + } + onClick={ () => dbPage.onRecordTransferOwnership(item) } + > + Transfer Ownership + , + , + ]} + } + onClick={ () => dbPage.onFundRecord(item) } + > + Fund + + { userAccount === item.owner && [ + } + onClick={ () => dbPage.onClaimRecordFunds(item) } + > + Claim Funds + , + , + } + onClick={ () => dbPage.onRecordEdit(item) } + > + Edit + , + } + onClick={ () => dbPage.onDeleteRecord(item) } + > + Delete + , + ]} + + + + )); + + const idsThs = items.map(item => ( + + {item.id} + + )); + + const fundedThs = items.map(item => ( + + {item.currentEntryBalanceETH} + + )); + + const ownersThs = items.map(item => ( + + + + )); + + const itemsTrs = fields.map((field) => { + const itemsFields = items.map(item => ( + + {item[field.name].toString()} + + )); + + return ( + + {field.name} + {itemsFields} + + ); + }); + + const showAddButton = (isOwner || permissionGroup === Permission.AllUsers) + && !isDbPaused && isSchemaExist; + + return ( +
+ {isSchemaExist + && ( +
+ + + + RECORDS + + + + {showAddButton + && ( + + Add new record + + ) + } + + + + + + + + + Action + {actionsThs} + + + Id + {idsThs} + + + Funded + {fundedThs} + + + Owner + {ownersThs} + + + + {itemsTrs} + + + +
+ ) + } +
+ ); + }} +
+); + +export default Records; diff --git a/client/app/src/containers/database/index.jsx b/client/app/src/containers/database/index.jsx new file mode 100644 index 00000000..9482ecaf --- /dev/null +++ b/client/app/src/containers/database/index.jsx @@ -0,0 +1,48 @@ +import React, { Component } from 'react'; +import { Provider } from 'unstated'; +import { MainContainer, Section } from '@cybercongress/ui'; +import Records from './Records'; +import DatabasePopups from './DatabasePopups'; +import RecordPopups from './RecordPopups'; +import Header from './Header'; +import General from './General'; +import Overview from './Overview'; +import Beneficiaries from './Beneficiaries'; +import PageLoading from './PageLoading'; +import page from './page'; + +class Database extends Component { + componentDidMount() { + const { dbsymbol } = this.props.params; + + page.init(dbsymbol); + } + + render() { + return ( + + + + + + + + +
+ + + +
+ + + +
+ + + + + ); + } +} + +export default Database; diff --git a/client/app/src/containers/database/page.jsx b/client/app/src/containers/database/page.jsx new file mode 100644 index 00000000..bf59df0e --- /dev/null +++ b/client/app/src/containers/database/page.jsx @@ -0,0 +1,669 @@ +import { Container } from 'unstated'; +import { hashHistory } from 'react-router'; +import * as cyber from '../../utils/cyber'; +import DatabaseV1 from '../../../../../build/contracts/DatabaseV1.json'; + +let _databaseContract = null; +const initialState = { + items: [], + fields: [], + loading: true, + isOwner: false, + totalFee: 0, + funded: '', + + beneficiaries: [], + databaseContract: null, + web3: null, + ipfsGateway: null, + + name: '', + description: '', + tag: '', + createdTimestamp: null, + entryCreationFee: 0, + admin: '', + userAccount: null, + abi: [], + isDbPaused: null, + + contractVersion: null, + databaseAddress: null, + databaseSymbol: null, + databaseId: null, + entryCoreAddress: null, + entryCoreContract: null, + abiIpfsHash: null, + isSchemaExist: false, + + claimFundOpen: false, + claimFeeOpen: false, + transferOwnershipOpen: false, + fundDatabaseOpen: false, + pauseDatabaseOpen: false, + resumeDatabaseOpen: false, + deleteDatabaseOpen: false, + + claimRecordFundOpen: false, + transferRecordOwnershipOpen: false, + fundRecordOpen: false, + deleteRecordOpen: false, + editRecordOpen: false, + + permissionGroup: 0, + recordForAction: null, +}; + +class ViewRegistry extends Container { + state = initialState; + + + init = (databaseSymbol) => { + this.setState(initialState); + + let _databaseAddress = null; + let _databases = null; + let _userAccount = null; + let _web3 = null; + let _database = null; + let _databaseId = null; + let _chaingearContract = null; + let _abi = null; + let _fields = null; + let _entryCoreAddress = null; + let _entryCoreContract = null; + let _isDbPaused = null; + let _ipfsGateway = null; + let _beneficiaries = null; + let _permissionGroup = 0; + let _abiIpfsHash = null; + + let _newState = {}; + + cyber.init() + .then(({ contract, web3 }) => { + _web3 = web3; + _chaingearContract = contract; + }) + .then(() => cyber.getIpfsGateway()) + .then((ipfsGateway) => { + _ipfsGateway = ipfsGateway; + }) + .then(() => cyber.getDefaultAccount()) + .then((defaultAccount) => { + _userAccount = defaultAccount; + }) + .then(() => cyber.callContractMethod(_chaingearContract, 'getDatabaseIDBySymbol', databaseSymbol)) + .then((databaseId) => { + _databaseId = databaseId; + }) + .then(() => cyber.callContractMethod(_chaingearContract, 'getDatabase', _databaseId)) + .then((database) => { + _database = cyber.mapDatabase(database); + _databaseAddress = _database.address; + _databaseContract = _web3.eth.contract(DatabaseV1.abi).at(_databaseAddress); + }) + .then(() => cyber.getBeneficiaries(_databaseContract)) + .then((beneficiaries) => { + _beneficiaries = beneficiaries; + }) + .then(() => cyber.callContractMethod(_databaseContract, 'getPaused')) + .then((isDbPaused) => { + _isDbPaused = isDbPaused; + }) + .then(() => cyber.callContractMethod(_databaseContract, 'getDatabasePermissions')) + .then((permissionGroup) => { + _permissionGroup = permissionGroup.toNumber(); + }) + .then(() => { + const fundedPromise = cyber.callContractMethod(_chaingearContract, 'getDatabaseBalance', _databaseId); + const totalFeePromise = cyber.callWeb3EthMethod(_web3, 'getBalance', _databaseAddress); + const ownerPromise = cyber.callContractMethod(_databaseContract, 'getAdmin'); + const descriptionPromise = cyber.callContractMethod(_databaseContract, 'getDatabaseDescription'); + const entryCreationFeePromise = cyber.callContractMethod(_databaseContract, 'getEntryCreationFee'); + + return Promise + .all([fundedPromise, totalFeePromise, + ownerPromise, descriptionPromise, entryCreationFeePromise]); + }) + .then(([funded, totalFee, owner, description, entryCreationFee]) => { + + const _funded = _web3.fromWei(_web3.toDecimal(funded[0].toNumber())); + const _entryCreationFee = _web3.fromWei(entryCreationFee, 'ether').toNumber(); + const _totalFee = _web3.fromWei(_web3.toDecimal(totalFee), 'ether'); + + _newState = { + ..._newState, + ...{ + name: _database.name, + createdTimestamp: _database.createdTimestamp, + admin: _database.admin, + contractVersion: _database.contractVersion, + tag: '', + web3: _web3, + databases: _databases, + databaseAddress: _databaseAddress, + databaseContract: _databaseContract, + funded: _funded, + totalFee: _totalFee, + userAccount: _userAccount, + isOwner: _userAccount === owner, + owner, + description, + databaseSymbol, + entryCreationFee: _entryCreationFee, + isDbPaused: _isDbPaused, + ipfsGateway: _ipfsGateway, + beneficiaries: _beneficiaries, + permissionGroup: _permissionGroup, + }, + }; + }) + .then(() => cyber.callContractMethod(_databaseContract, 'getDatabaseInitStatus')) + .then((isSchemaExist) => { + if (!isSchemaExist) { + this.setState({ + ..._newState, + isSchemaExist, + databaseId: _databaseId, + loading: false, + }); + throw new Error('Schema is not exist'); + } else { + _newState = { + ..._newState, + isSchemaExist, + databaseId: _databaseId, + }; + } + }) + // + // + // with schema + // + // + .then(() => cyber.callContractMethod(_databaseContract, 'getEntriesStorage')) + .then((entryAddress) => { + _entryCoreAddress = entryAddress; + }) + .then(() => cyber.callContractMethod(_databaseContract, 'getSchemaDefinition')) + .then((schemaDefinitionJson) => { + const schemaDefinition = JSON.parse(schemaDefinitionJson); + + _fields = schemaDefinition.fields.map(field => ({ + ...field, + unique: field.unique === 1, + })); + + _abiIpfsHash = schemaDefinition.build.ABI; + + return schemaDefinition.build; + }) + .then(buildOpts => cyber.getAbiByFields(_newState.name, _fields, buildOpts)) + .then((abi) => { + _abi = abi; + _entryCoreContract = _web3.eth.contract(_abi).at(_entryCoreAddress); + }) + .then(() => this.setState({ + databaseContract: _databaseContract, + entryCoreAddress: _entryCoreAddress, + entryCoreContract: _entryCoreContract, + fields: _fields, + abi: _abi, + web3: _web3, + abiIpfsHash: _abiIpfsHash, + })) + .then(() => this.getDatabaseItems()) + .then((items) => { + _newState = { + ..._newState, + ...{ + items, + entriesAmount: items.length, + loading: false, + }, + }; + }) + .then(() => { + this.setState(_newState); + }) + .catch((error) => { + console.log(`Cannot load database data. Error: ${error}`); + }); + }; + + getDatabaseItems = () => { + const { + databaseContract: contract, fields, abi, web3, + } = this.state; + + return new Promise((topResolve, reject) => { + + cyber.getDatabaseData(contract, fields, abi) + .then(({ items, fields, entryAddress }) => { + return Promise.all([ + entryAddress, + items, + ...items.map(item => new Promise((resolve) => { + cyber.callContractMethod(contract, 'readEntryMeta', item.__index) + .then(data => resolve(data)); + })), + ]); + }) + .then(([entryAddress, items, ...data]) => { + const _items = items.map((item, index) => { + const currentEntryBalanceETH = web3.fromWei(data[index][4]).toNumber(); + const owner = data[index][0]; + + return { + ...item, + currentEntryBalanceETH, + owner, + id: item.__index, + }; + }); + + topResolve(_items); + }); + }); + }; + + /* + * Database Actions + */ + + claimDbFee = () => { + // not implemented + }; + + onUpdatePermissionGroup = () => { + const newPermissionGroup = this.permissionGroup.value; + + this.setLoading(true); + + cyber.sendTransactionMethod( + _databaseContract.updateCreateEntryPermissionGroup, newPermissionGroup, + ) + .then(hash => cyber.eventPromise(_databaseContract.PermissionGroupChanged())) + .then(() => { + this.setState({ + permissionGroup: +newPermissionGroup, + loading: false, + }); + }); + }; + + changeDescription = (description) => { + const { databaseContract, databaseSymbol } = this.state; + + this.setLoading(true); + + cyber.callContractMethod(databaseContract, 'updateDatabaseDescription', description) + .then(data => console.log(`Description change. Tx:${data}`)) + .then(() => cyber.eventPromise(databaseContract.DescriptionUpdated())) + .then(results => console.log(`Description changed. Results: ${results}`)) + .then(() => this.init(databaseSymbol)) + .catch(() => this.setLoading(false)); + }; + + changeDbTag = (tag) => { + // not implemented + }; + + changeEntryCreationFee = (newFee) => { + const { databaseContract, web3 } = this.state; + const fee = web3.toWei(newFee, 'ether'); + + this.setLoading(true); + cyber.callContractMethod(databaseContract, 'updateEntryCreationFee', fee) + .then(data => console.log(`Update entry creation fee. Data: ${data}`)) + .then(() => cyber.eventPromise(databaseContract.EntryCreationFeeUpdated())) + .then(results => console.log(`Update entry creation fee. Results: ${results}`)) + .then(() => this.setState({ + entryCreationFee: newFee, + loading: false, + })) + .catch(() => this.setLoading(false)); + }; + + fundDatabase = (amount) => { + const { databaseId, web3, databaseSymbol } = this.state; + let chaingerContract; + + this.closePopups(); + + this.setLoading(true); + cyber.getChaingearContract() + .then((contract) => { + chaingerContract = contract; + }) + .then(() => cyber.callContractMethod(chaingerContract, 'fundDatabase', databaseId, { + value: web3.toWei(amount, 'ether'), + })) + .then(() => cyber.eventPromise(chaingerContract.DatabaseFunded())) + .then(() => { + this.init(databaseSymbol); + }); + }; + + claimDatabaseFunds = (amount) => { + const { databaseId, web3, databaseSymbol } = this.state; + let chaingerContract; + + this.closePopups(); + + this.setLoading(true); + cyber.getChaingearContract() + .then((contract) => { + chaingerContract = contract; + }) + .then(() => cyber.callContractMethod( + chaingerContract, 'claimDatabaseFunds', databaseId, web3.toWei(amount, 'ether'), + )) + .then(data => console.log(`Claim database funds. Data: ${data}`)) + .then(() => cyber.eventPromise(chaingerContract.DatabaseFundsClaimed())) + .then(() => this.init(databaseSymbol)) + .catch((error) => { + console.log(`Cant claim database funds. Details: ${error}`); + this.setLoading(false); + }); + }; + + transferDatabaseOwnership = (currentOwner, newOwner) => { + const { databaseId, databaseSymbol } = this.state; + let chaingerContract; + + this.closePopups(); + + this.setLoading(true); + cyber.getChaingearContract() + .then((contract) => { + chaingerContract = contract; + }) + .then(() => cyber.callContractMethod( + chaingerContract, 'transferFrom', currentOwner, newOwner, databaseId, + )) + .then(data => console.log(`Transfer db ownership. Data: ${data}`)) + .then(() => cyber.eventPromise( + chaingerContract.Transfer(), + )) + .then(() => this.init(databaseSymbol)) + .catch((error) => { + console.log(`Cant transfer db ownership. Error: ${error}`); + this.setLoading(false); + }); + }; + + pauseDb = () => { + const { databaseContract, databaseSymbol } = this.state; + + this.closePopups(); + + this.setLoading(true); + cyber.callContractMethod(databaseContract, 'pause') + .then(data => console.log(`Pause DB. Data: ${data}`)) + .then(() => cyber.eventPromise(databaseContract.Pause())) + .then(results => console.log(`Db paused. Results: ${results}`)) + .then(() => this.init(databaseSymbol)) + .catch((error) => { + console.log(`Cant pause db. Error: ${error}`); + this.setLoading(false); + }); + }; + + unpauseDb = () => { + const { databaseContract, databaseSymbol } = this.state; + + this.closePopups(); + + this.setLoading(true); + cyber.callContractMethod(databaseContract, 'unpause') + .then(data => console.log(`Unpause DB. Data: ${data}`)) + .then(() => cyber.eventPromise(databaseContract.Unpause())) + .then(results => console.log(`Db unpaused. Results: ${results}`)) + .then(() => this.init(databaseSymbol)) + .catch((error) => { + console.log(`Cant unpause db. Error: ${error}`); + this.setLoading(false); + }); + }; + + deleteDb = () => { + const { databaseId } = this.state; + let chaingerContract; + + this.closePopups(); + + this.setLoading(true); + cyber.getChaingearContract() + .then((contract) => { + chaingerContract = contract; + }) + .then(() => cyber.callContractMethod(chaingerContract, 'deleteDatabase', databaseId)) + .then(data => console.log(`DeleteDB: ${databaseId}. Tx: ${data}`)) + .then(() => cyber.eventPromise(chaingerContract.DatabaseDeleted())) + .then(() => hashHistory.push('/')) + .catch((error) => { + console.log(`Cant delete database. Details: ${error}`); + this.closePopups(); + }); + }; + + onTransferOwnership = () => { + this.setState({ + transferOwnershipOpen: true, + }); + }; + + onFundDb = () => { + this.setState({ + fundDatabaseOpen: true, + }); + }; + + onClaimFunds = () => { + this.setState({ + claimFundOpen: true, + }); + }; + + onClaimFee = () => { + this.setState({ + claimFeeOpen: true, + }); + }; + + onDeleteDb = () => { + this.setState({ + deleteDatabaseOpen: true, + }); + }; + + onPauseDb = () => { + this.setState({ + pauseDatabaseOpen: true, + }); + }; + + onResumeDb = () => { + this.setState({ + resumeDatabaseOpen: true, + }); + }; + + /* + * Record Actions + */ + + addRecord = () => { + const { databaseContract, name, databaseSymbol } = this.state; + + if (!databaseContract) { + return; + } + + cyber.callContractMethod(databaseContract, 'getEntryCreationFee') + .then(fee => fee.toNumber()) + .then(fee => cyber.callContractMethod(databaseContract, 'createEntry', { value: fee })) + .then((entryId) => { + console.log(`New Entry created: ${entryId}`); + this.setState({ + loading: true, + }); + return cyber.eventPromise(databaseContract.EntryCreated()); + }) + .then(() => this.init(databaseSymbol)) + .catch(() => { + console.log(`Cannot add entry to ${name}`); + }); + }; + + transferRecordOwnership = (currentOwner, newOwner, entryID) => { + const { databaseSymbol, databaseContract } = this.state; + + this.closePopups(); + + this.setLoading(true); + cyber.callContractMethod( + databaseContract, 'transferFrom', currentOwner, newOwner, entryID, + ) + .then(data => console.log(`Transfer entry #${entryID} ownership. Tx: ${data}`)) + .then(() => cyber.eventPromise(databaseContract.Transfer())) + .then(() => this.init(databaseSymbol)); + }; + + claimRecord = (entryID, amount) => { + const { databaseSymbol, databaseContract, web3 } = this.state; + + this.closePopups(); + + this.setLoading(true); + cyber.callContractMethod( + databaseContract, 'claimEntryFunds', entryID, web3.toWei(amount, 'ether'), + ) + .then(data => console.log(`Claim entry #${entryID} funds(${amount} ETH). Tx: ${data}`)) + .then(() => cyber.eventPromise(databaseContract.EntryFundsClaimed())) + .then(() => this.init(databaseSymbol)); + }; + + fundRecord = (id, value) => { + this.setState({ loading: true }); + + this.closePopups(); + const { databaseContract, web3 } = this.state; + + cyber.callContractMethod(databaseContract, 'fundEntry', id, { + value: web3.toWei(value, 'ether'), + }) + .then((data) => { + console.log(`Entry ${id} funded. ETH: ${value}. Data: ${data}`); + }) + .then(() => cyber.eventPromise(databaseContract.EntryFunded())) + .then(results => console.log(`Entry ${id} funded. Results: ${results}`)) + .then(() => this.getDatabaseItems()) + .then((items) => { + this.setState({ + items, + loading: false, + }); + }) + .catch(() => this.setLoading(false)); + }; + + updateRecord = (values, entryId) => { + const { entryCoreContract } = this.state; + + this.setLoading(true); + + cyber.callContractMethod(entryCoreContract, 'updateEntry', entryId, ...values) + .then(data => console.log(`Update record. Data: ${data}`)) + .then(() => cyber.eventPromise(entryCoreContract.EntryUpdated())) + .then(() => this.getDatabaseItems()) + .then(items => this.setState({ + items, + loading: false, + })) + .catch(() => this.setLoading(false)); + }; + + deleteRecord = (id) => { + const { databaseContract } = this.state; + + this.closePopups(); + this.setLoading(true); + + cyber.callContractMethod(databaseContract, 'deleteEntry', id) + .then(() => cyber.eventPromise(databaseContract.EntryDeleted())) + .then(() => this.getDatabaseItems()) + .then(items => this.setState({ + items, + loading: false, + })) + .catch(() => this.setLoading(false)); + }; + + onRecordTransferOwnership = (record) => { + this.setState({ + transferRecordOwnershipOpen: true, + recordForAction: record, + }); + }; + + onFundRecord = (record) => { + this.setState({ + fundRecordOpen: true, + recordForAction: record, + }); + }; + + onClaimRecordFunds = (record) => { + this.setState({ + claimRecordFundOpen: true, + recordForAction: record, + }); + }; + + onDeleteRecord = (record) => { + this.setState({ + deleteRecordOpen: true, + recordForAction: record, + }); + }; + + onRecordEdit = (record) => { + this.setState({ + editRecordOpen: true, + recordForAction: record, + }); + }; + + /* + * Page Actions + */ + + setLoading = (value) => { + this.setState({ + loading: value, + }); + }; + + closePopups = () => { + this.setState({ + claimFundOpen: false, + claimFeeOpen: false, + transferOwnershipOpen: false, + fundDatabaseOpen: false, + pauseDatabaseOpen: false, + resumeDatabaseOpen: false, + deleteDatabaseOpen: false, + + claimRecordFundOpen: false, + transferRecordOwnershipOpen: false, + fundRecordOpen: false, + deleteRecordOpen: false, + editRecordOpen: false, + }); + }; +} + +export default new ViewRegistry(); diff --git a/client/app/src/containers/home/index.jsx b/client/app/src/containers/home/index.jsx new file mode 100644 index 00000000..5a9320cd --- /dev/null +++ b/client/app/src/containers/home/index.jsx @@ -0,0 +1,186 @@ +import React, { Component } from 'react'; + +import { Link } from 'react-router'; + +import { + Section, SectionContent, Badge, + FooterButton, Container, Text, + HomeTable, LinkHash, Button, +} from '@cybercongress/ui'; +import { + getDatabases, getDefaultAccount, init, +} from '../../utils/cyber'; +import { formatDate } from '../../utils/utils'; + +class Home extends Component { + constructor(props) { + super(props); + + this.state = { + databases: [], + account: null, + }; + } + + componentDidMount() { + init() + .then(() => getDefaultAccount()) + .then(account => this.setState({ + account: account.toLowerCase(), + })) + .then(() => getDatabases()) + .then(databases => this.setState({ + databases, + })); + } + + render() { + const { databases, account } = this.state; + + const rows = databases.map(database => ( + + + + {database.name} + + + + {database.symbol} + + + {database.supply.toNumber()} + + + {database.contractVersion} + + + + + + {formatDate(database.createdTimestamp)} + + + )); + + const myRows = databases.filter(x => x.admin === account).map(database => ( + + + + {database.name} + + + + {database.symbol} + + + {database.supply.toNumber()} + + + {database.contractVersion} + + + + + + {formatDate(database.createdTimestamp)} + + + )); + + let content = ( +
+
+ My databases + {myRows.length} + + ) } + > + + + + You haven't created databases yet! + + + + +
+
+ ); + + if (myRows.length > 0) { + content = ( +
+
+My databases + {myRows.length} + + ) } + > + + + + + NAME + SYMBOL + ENTRIES + VERSION + ADMIN + CREATED + + + + {myRows} + + + create new database + +
+
+ ); + } + + return ( +
+
+ {content} +
+ +
+ chaingear databases + {rows.length} + + ) } + > + + + + + NAME + SYMBOL + ENTRIES + VERSION + ADMIN + CREATED + + + + {rows} + + + +
+
+ ); + } +} + + +export default Home; diff --git a/client/app/src/containers/new/DatabaseInitialization.jsx b/client/app/src/containers/new/DatabaseInitialization.jsx new file mode 100644 index 00000000..847a0423 --- /dev/null +++ b/client/app/src/containers/new/DatabaseInitialization.jsx @@ -0,0 +1,433 @@ +import React, { Component } from 'react'; + +import { + Content, ContainerRegister, SideBar, + Panel, PageTitle, RemoveButton, + Message, StatusBar, LinkHash, + ParamRow, WideInput, WideSelect, + AddButton, Code, ProgressBar, + CircleLable, TableItemBen, TableRegistry, + FlexContainer, FlexContainerLeft, FlexContainerRight, + Button, Text, +} from '@cybercongress/ui'; + +import { + getDefaultAccount, + deployDatabase, + getChaingearContract, + eventPromise, callContractMethod, init, +} from '../../utils/cyber'; + +import DatabaseSource from '../../resources/DatabaseV1.sol'; +import { calculateBensShares, debounce } from '../../utils/utils'; + +const DB_NAME_REGEXP = /\b[a-z0-9][a-z0-9-]*$/; +const DB_SYMBOL_REGEXP = /\b[A-Z0-9][A-Z0-9-]*$/; + +class NewDatabase extends Component { + constructor(props) { + super(props); + + this.state = { + dbBuilders: [], + dbDescription: '', + + beneficiaries: [], + databaseId: null, + + dbName: '', + dbSymbol: '', + dbVersion: '', + + nameErrorMessage: null, + symbolErrorMessage: null, + + inProgress: false, + message: '', + type: 'processing', + }; + + this.checkDbName = debounce(this.checkDbName, 1000); + this.checkDbSymbol = debounce(this.checkDbSymbol, 1000); + } + + componentWillMount() { + init() + .then(() => getDefaultAccount()) + .then(defaultAccount => this.setState({ + beneficiaries: [{ + address: defaultAccount, + stake: 1, + share: 100, + }], + })) + .then(() => this.getDatabaseVersions()); + } + + createDatabase = () => { + const { beneficiaries, dbName, dbSymbol, dbVersion } = this.state; + const bens = beneficiaries.map(ben => ben.address); + const stakes = beneficiaries.map(ben => ben.stake); + + this.setState({ message: 'processing...', inProgress: true, type: 'processing' }); + deployDatabase(dbName, dbSymbol, dbVersion, bens, stakes) + .then(({ txHash }) => getChaingearContract()) + .then(contract => eventPromise(contract.DatabaseCreated())) + .then((results) => { + this.setState({ + inProgress: false, + databaseId: results.args.databaseChaingearID.toNumber(), + }); + }) + .catch((error) => { + console.log(`Cannot create database ${dbName}. Error: ${error}`); + this.setState({ + inProgress: false, + }); + }); + }; + + getDatabaseVersions = () => { + let chaingerContract; + + return getChaingearContract() + .then((contract) => { + chaingerContract = contract; + return callContractMethod(contract, 'getAmountOfBuilders'); + }) + .then((buildersCount) => { + const buildersCountNumber = buildersCount.toNumber(); + const buildersPromises = []; + + for (let index = 0; index < buildersCountNumber; index += 1) { + const builderPromise = callContractMethod(chaingerContract, 'getBuilderByID', index) + .then(builderVersion => Promise.all([ + callContractMethod(chaingerContract, 'getDatabaseBuilder', builderVersion), + builderVersion, + ])) + .then(([builderMeta, builderVersion]) => ( + { + version: builderVersion, + description: builderMeta[2], + } + )); + + buildersPromises.push(builderPromise); + } + + return Promise.all(buildersPromises); + }) + .then(dbBuilders => this.setState({ dbBuilders })); + }; + + checkDbName = (dbName) => { + if (!dbName) { + this.setState({ + dbName, + }); + + return; + } + + let errorMessage = null; + + this.checkRegexp(DB_NAME_REGEXP, dbName) + .then((isValid) => { + if (!isValid) { + errorMessage = 'Lowercase letters, digits and dash only'; + + throw new Error('invalid string'); + } + }) + .then(() => getChaingearContract()) + .then(contract => callContractMethod(contract, 'getNameExist', dbName)) + .then((isNameExist) => { + if (isNameExist) { + errorMessage = 'Database name already exist'; + } + }) + .then(() => { + this.setState({ + dbName, + nameErrorMessage: errorMessage, + }); + }) + .catch(() => { + this.setState({ + dbName, + nameErrorMessage: errorMessage, + }); + }); + }; + + checkDbSymbol = (dbSymbol) => { + if (!dbSymbol) { + this.setState({ + dbSymbol, + }); + + return; + } + + let errorMessage = ''; + + this.checkRegexp(DB_SYMBOL_REGEXP, dbSymbol) + .then((isValid) => { + if (!isValid) { + errorMessage = 'Uppercase letters, digits and dash only'; + + throw new Error('invalid string'); + } + }) + .then(() => getChaingearContract()) + .then(contract => callContractMethod(contract, 'getSymbolExist', dbSymbol)) + .then((isSymbolExist) => { + if (isSymbolExist) { + errorMessage = 'Symbol already exist'; + } + }) + .then(() => { + this.setState({ + dbSymbol, + symbolErrorMessage: errorMessage, + }); + }) + .catch(() => { + this.setState({ + dbSymbol, + symbolErrorMessage: errorMessage, + }); + }); + }; + + checkRegexp = (regexp, value) => new Promise(resolve => resolve(regexp.test(value))); + + onDbNameChange = (event) => { + event.persist(); + + const { value } = event.target; + + this.dbSymbol.value = value.toUpperCase(); + this.checkDbName(value); + this.checkDbSymbol(this.dbSymbol.value); + }; + + onDbSymbolChange = (event) => { + event.persist(); + + this.checkDbSymbol(event.target.value); + }; + + onDbVersionChange = (event) => { + const { dbBuilders } = this.state; + const builderVersion = event.target.value; + const dbBuilder = dbBuilders.find(builder => builder.version === builderVersion); + const description = dbBuilder ? dbBuilder.description : null; + + this.setState({ + dbVersion: event.target.value, + dbDescription: description, + }); + }; + + onStakeChange = (e) => { + const { value } = e.target; + + if (isNaN(value)) { + e.target.value = ''; + } + }; + + addBeneficiary = () => { + const address = this.benAddress.value; + const stake = this.benStake.value; + const { beneficiaries } = this.state; + + if (!address || !stake) { + return; + } + + this.benAddress.value = ''; + this.benStake.value = ''; + + this.setState({ + beneficiaries: beneficiaries.concat([{ + address, + stake, + share: 0, + }]), + }); + }; + + removeBeneficiary = (address) => { + const { beneficiaries } = this.state; + + this.setState({ + beneficiaries: beneficiaries.filter(ben => ben.address !== address), + }); + }; + + render() { + const { + dbName, dbSymbol, dbVersion, dbBuilders, dbDescription, + databaseId, beneficiaries, + message, inProgress, type, + nameErrorMessage, symbolErrorMessage, + } = this.state; + + const bens = calculateBensShares(beneficiaries); + const benCount = beneficiaries.length; + const canCreate = dbName.length > 0 && dbSymbol.length > 0 && dbVersion.length > 0 + && benCount > 0; + + return ( +
+ + + New database creation + + + + + + + + + + + + + + { this.dbSymbol = node; } } + errorMessage={ symbolErrorMessage } + disabled={ !!databaseId } + /> + + + + + { + dbBuilders.map(builder => ( + + )) + } + + + + {dbDescription + && ( + + + Description: + {dbDescription} + + + ) + } + + + + + + {bens.map(ben => ( + + + + + {ben.stake} + {`${ben.share} %`} + {!databaseId && ( + + this.removeBeneficiary(ben.address) + } + /> + + )} + + ))} + + + {!databaseId && ( + + + + + { this.benAddress = node; } } + placeholder='Address' + /> + + + { this.benStake = node; } } + onChange={ this.onStakeChange } + placeholder='Stake' + /> + + + 0 + % + + + + + + + + )} + + + + + + + {DatabaseSource} + + + + + + {(type === 'error' && message) && {message}} + + + {databaseId ? ( + + + + + ) : ( + + )} + + +
+ ); + } +} + + +export default NewDatabase; diff --git a/client/app/src/containers/new/SchemaDefinition.jsx b/client/app/src/containers/new/SchemaDefinition.jsx new file mode 100644 index 00000000..47186845 --- /dev/null +++ b/client/app/src/containers/new/SchemaDefinition.jsx @@ -0,0 +1,276 @@ +import React, { Component } from 'react'; + +import { + Content, ContainerRegister, SideBar, + FieldsTable, PageTitle, RemoveButton, + Message, StatusBar, WideSelect, + Code, CircleLable, ProgressBar, + Checkbox, TableRegistry, WideInput, + AddButton, Panel, FlexContainer, + FlexContainerLeft, FlexContainerRight, + Button, +} from '@cybercongress/ui'; + +import { + generateContractCode, + deploySchema, + getDatabaseContract, + getChaingearContract, + callContractMethod, + mapDatabase, + eventPromise, +} from '../../utils/cyber'; + +const MAX_FIELD_COUNT = 10; + +class SchemaDefinition extends Component { + constructor(props) { + super(props); + + this.state = { + fields: [], + databaseName: '', + databaseAddress: null, + databaseSymbol: null, + + inProgress: false, + message: '', + type: 'processing', + + isSchemaCreated: false, + + disableUniqueCheckbox: false, + }; + } + + componentDidMount() { + const { dbsymbol } = this.props.params; + let chaingearContract; + let databaseId; + + getChaingearContract() + .then((contract) => { + chaingearContract = contract; + + return callContractMethod(contract, 'getDatabaseIDBySymbol', dbsymbol); + }) + .then((dbId) => { + databaseId = dbId; + + return callContractMethod(chaingearContract, 'getDatabase', databaseId); + }) + .then(database => mapDatabase(database, databaseId)) + .then(database => this.setState({ + databaseAddress: database.address, + databaseName: database.name, + databaseSymbol: dbsymbol, + })); + } + + add = () => { + const { fields } = this.state; + const name = this.fieldName.value; + const type = this.fieldType.value; + const unique = type === 'bool' ? false : this.fieldUnique.checked; + + const newItem = { + name, + type, + unique, + }; + + this.fieldName.value = ''; + this.fieldUnique.checked = false; + + this.setState({ + fields: fields.concat(newItem), + }); + }; + + remove = (name) => { + const { fields } = this.state; + + this.setState({ + fields: fields.filter(x => x.name !== name), + }); + }; + + createSchema = () => { + const { databaseName, fields, databaseAddress } = this.state; + + this.setState({ message: 'processing...', inProgress: true, type: 'processing' }); + + let databaseContract; + + getDatabaseContract(databaseAddress) + .then((dbContract) => { + databaseContract = dbContract; + return deploySchema(databaseName, fields, databaseContract); + }) + .then(() => eventPromise(databaseContract.DatabaseInitialized())) + .then(() => { + this.setState({ + inProgress: false, + isSchemaCreated: true, + }); + }) + .catch(() => this.setState({ + inProgress: false, + })); + }; + + onFieldTypeChange = (event) => { + if (event.target.value === 'bool') { + this.setState({ + disableUniqueCheckbox: true, + }); + } else { + this.setState({ + disableUniqueCheckbox: false, + }); + } + }; + + render() { + const { + databaseName, fields, message, inProgress, type, + isSchemaCreated, databaseSymbol, disableUniqueCheckbox, + } = this.state; + const code = generateContractCode(databaseName, fields); + const fieldsCount = fields.length; + const canCreateSchema = fieldsCount > 0 + && fieldsCount <= MAX_FIELD_COUNT && !isSchemaCreated; + + return ( +
+ + + Database schema definition + + + + + + + + + + + + + {fields.map(field => ( + + {field.name} + {field.type} + + + unique + + + {!isSchemaCreated && ( + + this.remove(field.name) + } + /> + + )} + + ))} + + + + {!isSchemaCreated + && ( + + + + + { + this.fieldName = node; + } } + placeholder='Name' + /> + + + { + this.fieldType = node; + } } + onChange={ this.onFieldTypeChange } + > + + + + + + + + + { + this.fieldUnique = node; + } } + > + unique + + + + + + + + + ) + } + + + + + + + {code} + + + + + + + {(type === 'error' && message) && {message}} + + + {isSchemaCreated ? ( + + ) : ( + + )} + + +
+ ); + } +} + +export default SchemaDefinition; diff --git a/client/app/src/main.jsx b/client/app/src/main.jsx new file mode 100644 index 00000000..3cf08944 --- /dev/null +++ b/client/app/src/main.jsx @@ -0,0 +1,9 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; +import { Root } from './root'; +import '@cybercongress/ui/lib/styles.css'; + +ReactDOM.render( + , + document.getElementById('root'), +); diff --git a/client/app/src/resources/DatabaseV1.sol b/client/app/src/resources/DatabaseV1.sol new file mode 120000 index 00000000..6b2b015e --- /dev/null +++ b/client/app/src/resources/DatabaseV1.sol @@ -0,0 +1 @@ +../../../../contracts/databases/DatabaseV1.sol \ No newline at end of file diff --git a/client/app/src/resources/Dependencies.sol b/client/app/src/resources/Dependencies.sol new file mode 100644 index 00000000..82edbf59 --- /dev/null +++ b/client/app/src/resources/Dependencies.sol @@ -0,0 +1,188 @@ +pragma solidity 0.4.25; + +// File: contracts/common/ISchema.sol + +interface ISchema { + + function createEntry() external; + function deleteEntry(uint256) external; +} + +// File: contracts/common/IDatabase.sol + +interface IDatabase { + + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns ( + address, + address, + uint256, + uint256, + uint256, + uint256 + ); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function pause() external; + function unpause() external; + function transferAdminRights(address) external; + function getAdmin() external view returns (address); + function getPaused() external view returns (bool); + function transferOwnership(address) external; + function deletePayees() external; +} + +// File: openzeppelin-solidity/contracts/ownership/Ownable.sol + +/** + * @title Ownable + * @dev The Ownable contract has an owner address, and provides basic authorization control + * functions, this simplifies the implementation of "user permissions". + */ +contract Ownable { + address public owner; + + + event OwnershipRenounced(address indexed previousOwner); + event OwnershipTransferred( + address indexed previousOwner, + address indexed newOwner + ); + + + /** + * @dev The Ownable constructor sets the original `owner` of the contract to the sender + * account. + */ + constructor() public { + owner = msg.sender; + } + + /** + * @dev Throws if called by any account other than the owner. + */ + modifier onlyOwner() { + require(msg.sender == owner); + _; + } + + /** + * @dev Allows the current owner to relinquish control of the contract. + * @notice Renouncing to ownership will leave the contract without an owner. + * It will not be possible to call the functions with the `onlyOwner` + * modifier anymore. + */ + function renounceOwnership() public onlyOwner { + emit OwnershipRenounced(owner); + owner = address(0); + } + + /** + * @dev Allows the current owner to transfer control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function transferOwnership(address _newOwner) public onlyOwner { + _transferOwnership(_newOwner); + } + + /** + * @dev Transfers control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function _transferOwnership(address _newOwner) internal { + require(_newOwner != address(0)); + emit OwnershipTransferred(owner, _newOwner); + owner = _newOwner; + } +} + +// File: openzeppelin-solidity/contracts/introspection/ERC165.sol + +/** + * @title ERC165 + * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md + */ +interface ERC165 { + + /** + * @notice Query if a contract implements an interface + * @param _interfaceId The interface identifier, as specified in ERC-165 + * @dev Interface identification is specified in ERC-165. This function + * uses less than 30,000 gas. + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool); +} + +// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol + +/** + * @title SupportsInterfaceWithLookup + * @author Matt Condon (@shrugs) + * @dev Implements ERC165 using a lookup table. + */ +contract SupportsInterfaceWithLookup is ERC165 { + + bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; + /** + * 0x01ffc9a7 === + * bytes4(keccak256('supportsInterface(bytes4)')) + */ + + /** + * @dev a mapping of interface id to whether or not it's supported + */ + mapping(bytes4 => bool) internal supportedInterfaces; + + /** + * @dev A contract implementing SupportsInterfaceWithLookup + * implement ERC165 itself + */ + constructor() + public + { + _registerInterface(InterfaceId_ERC165); + } + + /** + * @dev implement supportsInterface(bytes4) using a lookup table + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool) + { + return supportedInterfaces[_interfaceId]; + } + + /** + * @dev private method for registering an interface + */ + function _registerInterface(bytes4 _interfaceId) + internal + { + require(_interfaceId != 0xffffffff); + supportedInterfaces[_interfaceId] = true; + } +} \ No newline at end of file diff --git a/client/app/src/root.jsx b/client/app/src/root.jsx new file mode 100644 index 00000000..3f6648f8 --- /dev/null +++ b/client/app/src/root.jsx @@ -0,0 +1,26 @@ +import * as React from 'react'; +import { Router, Route } from 'react-router'; +import { createHashHistory } from 'history'; // use hash becouse ipfs use path /ipfs/hash/{app} +import { MainContainer } from '@cybercongress/ui'; +import HomePage from './containers/home'; +import NewDatabase from './containers/new/DatabaseInitialization'; +import DatabasePage from './containers/database'; +import App from './containers/App/App'; +import SchemaDefinition from './containers/new/SchemaDefinition'; + +export const history = createHashHistory({ }); + +export function Root() { + return ( + + + + + + + + + + + ); +} diff --git a/client/app/src/utils/cyber.js b/client/app/src/utils/cyber.js new file mode 100644 index 00000000..e822da90 --- /dev/null +++ b/client/app/src/utils/cyber.js @@ -0,0 +1,623 @@ +import Web3 from 'web3'; +import ChaingearBuild from '../../../../build/contracts/Chaingear.json'; +import generateContractCode from './generateContractCode'; +import DatabaseV1 from '../../../../build/contracts/DatabaseV1.json'; + +/* +* WEB3 +*/ + +let currentWeb3; + +const loadWeb3 = new Promise(((resolve, reject) => { + // Wait for loading completion to avoid race conditions with web3 injection timing. + window.addEventListener('load', () => { + let results; + let { web3 } = window; + + // Checking if Web3 has been injected by the browser (Mist/MetaMask) + if (typeof web3 !== 'undefined') { + // Use Mist/MetaMask's provider. + + if (web3.currentProvider) { + web3 = new Web3(web3.currentProvider); + } else { + const provider = new Web3.providers.HttpProvider(); + + web3 = new Web3(provider); + } + + results = { + web3, + }; + + console.log('Injected web3 detected.'); + + resolve(results); + } else { + // Fallback to localhost if no web3 injection. We've configured this to + // use the development console's port by default. + web3 = new Web3(new Web3.providers.HttpProvider()); + + results = { + web3, + }; + + console.log('No web3 instance injected, using Local web3.'); + + resolve(results); + } + }); +})); + +export const getWeb3 = new Promise((resolve) => { + if (currentWeb3) { + resolve({ web3: currentWeb3 }); + } else { + loadWeb3.then(({ web3 }) => { + currentWeb3 = web3; + resolve({ web3 }); + }); + } +}); + +export const getDefaultAccount = () => new Promise(resolve => getWeb3 + .then(({ web3 }) => { + const { defaultAccount } = web3.eth; + + if (defaultAccount) { + resolve(defaultAccount); + } else { + console.log('ETH default account is null'); + resolve(null); + } + })); + +export const setDefaultAccount = address => new Promise(resolve => getWeb3 + .then(() => { currentWeb3.eth.defaultAccount = address; }) + .then(() => resolve())); + +/* +* IPFS +*/ + +const IPFS = require('ipfs-api'); + +const getIpfsConfig = () => { + if (window.getIpfsConfig) { + return window.getIpfsConfig(); + } + + return Promise.resolve({ + host: 'localhost', + port: 5001, + protocol: 'http', + }); +}; + +export const getIpfsGateway = () => { + if (window.getIpfsGateway) { + return window.getIpfsGateway(); + } + + return Promise.resolve('http://localhost:8080'); +}; + +/* +* Networks +*/ + +let currentNetworkId; + +const networksIds = { + 42: 'Kovan', + 1: 'Main', + 5777: 'TestNet', + 4: 'Rinkeby', +}; + +export const checkNetwork = () => new Promise((resolve) => { + const networks = Object.keys(ChaingearBuild.networks); + + getWeb3.then(({ web3 }) => { + web3.version.getNetwork((err, netId) => { + currentNetworkId = netId; + + resolve({ + isCorrectNetwork: networks.indexOf(netId) !== -1, + networkId: netId, + contractNetworks: networks, + }); + }); + }); +}); + +export const getNetworkStr = (networkId) => { + if (networksIds[networkId]) { + return networksIds[networkId]; + } + + return 'Unknown network'; +}; + +/* +* Wrappers +*/ + +export const callContractMethod = (contract, method, ...args) => new Promise((resolve, reject) => { + contract[method].apply(contract, [...args, (e, data) => { + if (e) { + console.log('Rejected contract call. Method: ', method, ' args: ', args); + reject(e); + } else { + resolve(data); + } + }]); +}); + +export const sendTransactionMethod = (contractMethod, ...args) => new Promise((resolve, reject) => { + contractMethod.sendTransaction.apply(contractMethod, [...args, (e, data) => { + if (e) { + console.log('Rejected send transaction method. Args: ', args); + reject(e); + } else { + resolve(data); + } + }]); +}); + +export const callWeb3EthMethod = (web3, method, ...args) => new Promise((resolve, reject) => { + web3.eth[method].apply(web3, [...args, (e, data) => { + if (e) { + console.log('Rejected web3.eth call. Method: ', method, ' args: ', args); + reject(e); + } else { + resolve(data); + } + }]); +}); + +export const eventPromise = event => new Promise((resolve, reject) => { + event.watch((error, results) => { + event.stopWatching(() => {}); + if (error) { + reject(error); + } else { + resolve(results); + } + }); +}); + +let chaingearContract; + +export const getChaingearContract = () => new Promise((resolve) => { + getWeb3 + .then(({ web3 }) => { + if (!chaingearContract) { + chaingearContract = web3.eth + .contract(ChaingearBuild.abi) + .at(ChaingearBuild.networks[currentNetworkId].address); + } + + resolve(chaingearContract); + }); +}); + + +let ethAccounts; + +export const getEthAccounts = () => new Promise((resolve) => { + if (ethAccounts) { + resolve(ethAccounts); + } else { + getWeb3 + .then(({ web3 }) => callWeb3EthMethod(web3, 'getAccounts')) + .then((accounts) => { + ethAccounts = accounts; + resolve(accounts); + }); + } +}); + + +let abis = {}; + +export const init = () => new Promise((resolve) => { + const abisCache = localStorage.getItem('abis') || '{}'; + + abis = JSON.parse(abisCache); + + if (chaingearContract && currentWeb3 && ethAccounts) { + resolve({ + contract: chaingearContract, + web3: currentWeb3, + accounts: ethAccounts, + }); + } else { + getWeb3 + .then(() => getEthAccounts()) + .then(() => getChaingearContract()) + .then(() => setDefaultAccount(ethAccounts[0])) // todo: set correct account + .then(() => resolve({ + contract: chaingearContract, + web3: currentWeb3, + accounts: ethAccounts, + })); + } +}); + +// TODO: move in npm package +export const loadCompiler = (cb) => { + setTimeout(() => { + window.BrowserSolc.loadVersion('soljson-v0.4.25+commit.59dbf8f1.js', cb); + }, 30); +}; + +export const mapDatabase = (rawDatabase, id) => ({ + id, + name: rawDatabase[0], + symbol: rawDatabase[1], + address: rawDatabase[2], + contractVersion: rawDatabase[3], + createdTimestamp: rawDatabase[4], + ipfsHash: '', + admin: rawDatabase[5], + supply: rawDatabase[6], +}); + +export const getItems = (contract, getIdsMethod, + getEntryByIdMethod, mapFn) => new Promise((topResolve) => { + + contract[getIdsMethod]((e, ids) => { + const idsArray = ids.map(id => id.toNumber()); + + const promises = idsArray.map(id => new Promise((itemResolve, itemReject) => { + contract[getEntryByIdMethod](id, (error, data) => { + if (error) { + itemReject(error); + } else { + itemResolve({ + data, + id, + }); + } + }); + })); + + Promise.all(promises).then((items) => { + const results = items.map(item => mapFn(item.data, item.id)); + + topResolve(results); + }); + }); +}); + +export const getItemsByIds = (contract, idsArray, + getEntryByIdMethod, mapFn) => new Promise((topResolve) => { + + const promises = idsArray.map(id => new Promise((itemResolve, itemReject) => { + contract[getEntryByIdMethod](id, (error, data) => { + if (error) { + itemReject(error); + } else { + itemResolve({ + data, + id, + }); + } + }); + })); + + Promise.all(promises).then((items) => { + const results = items.map(item => mapFn(item.data, item.id)); + + topResolve(results); + }); +}); + + +const Dependencies = require('../resources/Dependencies.sol'); + +export const compileDatabase = (code, contractName, compiler, compilerOpts = { + isOptimizerEnabled: true, + runs: 200, +}) => new Promise((resolve, reject) => { + + const sources = { + 'Dependencies.sol': Dependencies, + [contractName]: `pragma solidity 0.4.25; ${code}`, + }; + + const settings = { + optimizer: { + enabled: compilerOpts.isOptimizerEnabled, + }, + runs: compilerOpts.runs, + }; + + setTimeout(() => { + const compiledContract = compiler.compile({ + sources, settings, + }, 1); + + console.log(compiledContract); + if (compiledContract.errors && compiledContract.errors.length > 0) { + reject(compiledContract.errors[0]); + return; + } + + try { + const abi = compiledContract.contracts[`${contractName}:Schema`].interface; + const bytecode = `0x${compiledContract.contracts[`${contractName}:Schema`].bytecode}`; + + resolve({ + abi, + bytecode, + }); + } catch (e) { + reject(e); + } + }, 20); +}); + +export const getDatabases = () => { + const mapFunc = (item, id) => ({ + name: item[0], + symbol: item[1], + address: item[2], + contractVersion: item[3], + createdTimestamp: item[4], + ipfsHash: '', + admin: item[5], + supply: item[6], + id, + }); + + return getChaingearContract() + .then(contract => getItems(contract, 'getDatabasesIDs', 'getDatabase', mapFunc)); +}; + +export const removeDatabase = (address, cb) => getChaingearContract() + .then(contract => contract.deleteDatabase(address)); + +export const getDatabaseFieldsByHash = ipfsHash => new Promise((resolve) => { + getIpfsConfig().then((config) => { + const ipfs = new IPFS(config); + + ipfs.get(ipfsHash, (err, files) => { + const buf = files[0].content; + const abi = JSON.parse(buf.toString()); + // TODO move extraction from entries to other ABIs object, + // entries should be internal, now public for supporting frontend + let fields = abi.filter(x => x.name === 'entries')[0].outputs; + + fields = fields.filter(x => x.name !== 'metainformation' && x.name !== 'owner' && x.name !== 'lastUpdateTime'); + resolve({ + ipfsHash, + abi, + fields, + }); + }); + }); +}); + +export const saveInIPFS = jsonStr => new Promise((resolve, reject) => { + getIpfsConfig().then((config) => { + const ipfs = new IPFS(config); + const buffer = Buffer.from(jsonStr); + + ipfs.add(buffer, (err, ipfsHash) => { + if (err) { + reject(err); + } else { + const hash = ipfsHash[0].path; + + resolve(hash); + } + }); + }); +}); + +export const deploySchema = (name, fields, databaseContract) => { + const code = generateContractCode(name, fields); + + let tempByteCode; + + //todo: fix default account + let account; + + return new Promise((resolve, reject) => { + loadCompiler((compiler) => { + getDefaultAccount() + .then((defaultAccount) => { + account = defaultAccount; + }) + .then(() => compileDatabase(code, name, compiler)) + .then(({ abi, bytecode }) => { + tempByteCode = bytecode; + return saveInIPFS(abi); + }) + .then(ipfsHash => JSON.stringify({ + build: { + compiler: '0.4.25+commit.59dbf8f1.Emscripten.clang', + optimizer: true, + runs: 200, + ABI: ipfsHash, + }, + fields: fields.map(field => ({ + ...field, + unique: field.unique ? 1 : 0, + })), + })) + .then(schemaDefinition => callContractMethod(databaseContract, 'initializeDatabase', schemaDefinition, tempByteCode, {from: account})) + .then((data) => { + console.log(`Schema created for ${name}. Data: ${data}`); + resolve(data); + }) + .catch((error) => { + console.log(`Cannot create shema for ${name}. Error: ${error}`); + reject(error); + }); + }); + }); +}; + +export const deployDatabase = (name, symbol, version, beneficiaries, stakes) => { + let tChaingearContract; + let tdefaultAccount; + + return new Promise((resolve, reject) => { + getDefaultAccount() + .then((defaultAccount) => { + tdefaultAccount = defaultAccount; + return getChaingearContract(); + }) + .then((contract) => { + tChaingearContract = contract; + return callContractMethod(contract, 'getCreationFeeWei'); + }) + .then((fee) => { + const creationFee = fee.toNumber(); + + return sendTransactionMethod(tChaingearContract.createDatabase, + version, beneficiaries, stakes, name, symbol, { + from: tdefaultAccount, + value: creationFee, + }); + }) + .then((txHash) => { + console.log(`Database creation ${name} tx: ${txHash}`); + resolve(txHash); + }) + .catch((error) => { + console.log(`Cannot create database ${name}. Error: ${error}`); + reject(error); + }); + }); +}; + +export const getDatabaseContract = address => getWeb3 + .then(({ web3 }) => web3.eth.contract(DatabaseV1.abi).at(address)); + +export const getDatabaseData = (databaseContract, fields, abi) => new Promise((resolve) => { + let tEntryCoreAddress; + let tEntryCore; + + const mapFn = (item, id) => { + const aItem = Array.isArray(item) ? item : [item]; + + return fields.reduce((o, field, index) => ({ + ...o, [field.name]: aItem[index], + }), { + __index: id, + }); + }; + + callContractMethod(databaseContract, 'getEntriesStorage') + .then((entryAddress) => { + tEntryCoreAddress = entryAddress; + tEntryCore = currentWeb3.eth.contract(abi).at(entryAddress); + }) + .then(() => callContractMethod(databaseContract, 'getEntriesIDs')) + .then((entriesIDs) => { + const idsArray = entriesIDs.map(id => id.toNumber()); + + getItemsByIds(tEntryCore, idsArray, 'readEntry', mapFn) + .then((items) => { + resolve({ + items, + fields, + entryAddress: tEntryCoreAddress, + }); + }); + }); +}); + +export const fundEntry = (address, id, value) => new Promise((resolve) => { + const databaseContract = currentWeb3.eth.contract(DatabaseV1.abi).at(address); + + const event = databaseContract.EntryFunded(); + + event.watch((e, results) => { + event.stopWatching(() => {}); + resolve(results.args); + }); + databaseContract.fundEntry(id, { + value: currentWeb3.toWei(value, 'ether'), + }, (e, d) => { + + }); +}); + +export const getSafeBalance = address => new Promise((resolve) => { + const databaseContract = currentWeb3.eth.contract(DatabaseV1.abi).at(address); + + databaseContract.safeBalance((e, data) => { + resolve(data); + }); +}); + +export const updateEntryCreationFee = (address, newfee) => new Promise((resolve, reject) => { + const database = currentWeb3.eth.contract(DatabaseV1.abi).at(address); + + database.updateEntryCreationFee(currentWeb3.toWei(newfee, 'ether'), (e, data) => { + if (e) { reject(e); } else { resolve(data); } + }); +}); + +export const getBeneficiaries = dbContract => callContractMethod(dbContract, 'getPayeesCount') + .then(bensCount => [...Array(bensCount.toNumber()).keys()]) + .then(benIndexArray => benIndexArray.map((benIndex) => { + const ben = {}; + + return callContractMethod(dbContract, 'getPayee', benIndex) + .then((benAddress) => { + ben.address = benAddress; + }) + .then(() => callContractMethod(dbContract, 'getShares', ben.address)) + .then((benStake) => { + ben.stake = benStake.toNumber(); + }) + .then(() => callContractMethod(dbContract, 'getReleased', ben.address)) + .then((benReleased) => { + ben.released = benReleased.toNumber(); + }) + .then(() => ben) + .catch((error) => { + console.log(`Cannot get beneficiary for DB. Error: ${error}`); + }); + })) + .then(benPromisses => Promise.all(benPromisses)); + +export const getAbiByFields = (contractName, fields, buildOpts) => new Promise((resolve, reject) => { + + if (abis[contractName]) { + resolve(abis[contractName]); + return; + } + + const code = generateContractCode(contractName, fields); + const compilerOpts = { + isOptimizerEnabled: buildOpts.optimizer, + runs: buildOpts.runs, + }; + + loadCompiler((compiler) => { + compileDatabase(code, contractName, compiler, compilerOpts) + .then(({ abi }) => { + const abiObj = JSON.parse(abi); + + abis[contractName] = abiObj; + localStorage.setItem('abis', JSON.stringify(abis)); + resolve(abiObj); + }) + .catch((error) => { + console.log(`Cannot get abi for contract ${contractName}`); + reject(error); + }); + }); +}); + +export { + generateContractCode, +}; diff --git a/client/app/src/utils/generateContractCode.js b/client/app/src/utils/generateContractCode.js new file mode 100644 index 00000000..87d23e82 --- /dev/null +++ b/client/app/src/utils/generateContractCode.js @@ -0,0 +1,151 @@ +const generateContractCode = (name, fields) => { + + const structBodyStr = fields.map(f => `${f.type} ${f.name};`).join('\n'); + + const createArgsStr = fields.map(f => `${f.type} _${f.name}`).join(', '); + // const createItemStr = fields.map(f => `${f.name}: _${f.name}`).join(',\n'); + + const empty = (type) => { + if (type === 'string') return '""'; + if (type === 'address') return 'address(0)'; + if (type === 'bool') return 'false'; + if (type === 'uint256') return 'uint256(0)'; + if (type === 'int256') return 'int256(0)'; + + return '""'; + }; + + const uniqueFields = fields.filter(field => field.unique); + + const mappings = uniqueFields.map(filed => `mapping(${filed.type} => bool) private ${filed.name}UniqIndex;`); + + const onUpdate = uniqueFields.map(field => { + let ifStatement; + + if (field.type === 'string') { + ifStatement = `if (bytes(_${field.name}).length > 0) `; + } else { + ifStatement = `if (_${field.name} != ${empty(field.type)}) `; + } + + const ifBody = `{ + require(${field.name}UniqIndex[_${field.name}] == false); + ${field.name}UniqIndex[_${field.name}] = true; + ${field.name}UniqIndex[entries[entryIndex].${field.name}] = false; + }`; + + return ifStatement + ifBody; + }); + + const onDelete = uniqueFields.map(field => `${field.name}UniqIndex[entries[_entryIndex].${field.name}] = false;`); + +//TODO Entry[] public entries move to internal, change source in ABI for extracting fields; + + return ` + +import './Dependencies.sol'; + + +contract Schema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 constant internal INTERFACE_SCHEMA_ID = 0x153366ed; + bool[${fields.length}] private uniqValidationStatus = [${fields.map(field => field.unique)}]; + + struct Entry { + ${structBodyStr} + + } + + Entry[] public entries; + + ${mappings.join('\n')} + + IDatabase internal database; + + event EntryUpdated( + uint256 _entryID, + ${createArgsStr} + ); + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + ${fields.map(({name, type}) => `${name}: ${empty(type)}`).join(',\n')} + })); + entries.push(m); + } + + + function readEntry(uint256 _entryID) + external + view + returns (${fields.map(({name, type}) => type).join(', ')}) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + ${fields.map(({name, type}) => `entries[entryIndex].${name}`).join(',\n')} + ); + } + + + function updateEntry( + uint256 _entryID, + ${createArgsStr} + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + ${onUpdate.join('\n')} + + Entry memory m = (Entry( + { + ${fields.map(f => `${f.name}: _${f.name}`).join(',\n')} + })); + entries[entryIndex] = m; + + emit EntryUpdated(_entryID, ${fields.map(field => `_${field.name}`).join(', ')}); + } + + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + + ${onDelete.join('\n')} + + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + + function getUniqStatus(uint256 _id) + external + view + returns (bool) + { + return uniqValidationStatus[_id]; + } + +}`; +}; + +module.exports = generateContractCode; diff --git a/client/app/src/utils/utils.js b/client/app/src/utils/utils.js new file mode 100644 index 00000000..d092cf07 --- /dev/null +++ b/client/app/src/utils/utils.js @@ -0,0 +1,43 @@ +function debounce(func, wait, immediate) { + var timeout; + return function() { + var context = this, args = arguments; + var later = function() { + timeout = null; + if (!immediate) func.apply(context, args); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; +}; + +const calculateBensShares = (beneficiaries, fixed = 0) => { + let allStake = 0; + + beneficiaries.forEach((ben) => { + allStake += +ben.stake; + }); + + return beneficiaries.map(ben => ({ + ...ben, + share: (ben.stake / allStake * 100).toFixed(fixed), + })); +}; + +/* +* Date +*/ + +const moment = require('moment'); + +const dateFormat = 'DD/MM/YYYY H:mm'; + +const formatDate = (solidityDate) => { + const jsDate = new Date(solidityDate * 1000); + + return moment(jsDate).format(dateFormat); +}; + +export { debounce, calculateBensShares, formatDate }; diff --git a/client/package.json b/client/package.json new file mode 100644 index 00000000..5596cf40 --- /dev/null +++ b/client/package.json @@ -0,0 +1,74 @@ +{ + "name": "@cybercongress/chaingear", + "version": "0.3.1", + "main": "app/src/main.jsx", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/cybercongress/chaingear.git" + }, + "author": "", + "dependencies": { + "@cybercongress/ui": ">=0.0.16", + "axios": "0.16.2", + "classnames": "2.2.5", + "eslint": "5.8.0", + "eslint-config-airbnb": "17.1.0", + "eslint-config-standard-react": "7.0.2", + "eslint-plugin-import": "2.14.0", + "eslint-plugin-jsx-a11y": "6.1.2", + "eslint-plugin-react": "7.11.1", + "highlight.js": "9.12.0", + "history": "3.0.0", + "ipfs-api": "18.2.1", + "moment": "2.21.0", + "react": "16.6.3", + "react-click-outside": "github:tj/react-click-outside", + "react-dom": "16.6.3", + "react-router": "3.0.5", + "unstated": "2.1.1", + "web3": "0.20.3", + "web3-utils": "^1.0.0-beta.34" + }, + "devDependencies": { + "@babel/core": "7.2.2", + "@babel/plugin-proposal-class-properties": "7.3.0", + "@babel/preset-env": "7.3.1", + "@babel/preset-react": "7.0.0", + "babel-loader": "8.0.5", + "babel-eslint": "10.0.1", + "eslint-loader": "2.1.1", + "css-loader": "0.28.7", + "file-loader": "3.0.1", + "html-webpack-plugin": "3.2.0", + "raw-loader": "0.5.1", + "style-loader": "0.18.2", + "mini-css-extract-plugin": "0.5.0", + "copy-webpack-plugin": "4.6.0", + "webpack": "4.29.0", + "webpack-cli": "3.2.1", + "webpack-dev-server": "3.1.14" + }, + "scripts": { + "start": "webpack-dev-server --mode=development", + "build": "rimraf distribution && webpack --mode=production" + }, + "description": "New Frontier of chaingear, registries grow here!", + "bugs": { + "url": "https://github.com/cybercongress/chaingear/issues" + }, + "homepage": "https://github.com/cybercongress/chaingear", + "keywords": [ + "chaingear", + "web3", + "cyb", + "browser", + "ethereum", + "dapp", + "ERC721", + "registry" + ], + "license": "MIT", + "directories": { + "../test": "test" + } +} diff --git a/client/webpack.config.js b/client/webpack.config.js new file mode 100644 index 00000000..219ecf82 --- /dev/null +++ b/client/webpack.config.js @@ -0,0 +1,125 @@ +const path = require('path'); +const webpack = require('webpack'); +const MiniCssExtractPlugin = require('mini-css-extract-plugin'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const CopyWebpackPlugin = require('copy-webpack-plugin'); + +function getPlugins(isProduction) { + const plugins = [ + new MiniCssExtractPlugin(), + new HtmlWebpackPlugin({ + title: 'Chaingear', + template: path.resolve(__dirname, 'app', 'index.html'), + favicon: path.resolve(__dirname, 'app', 'favicon.ico'), + hash: true, + }), + new CopyWebpackPlugin([ + '../browser-solc.min.js', + ]), + new webpack.SourceMapDevToolPlugin({ + test: /\.(js|jsx|css)$/, + exclude: [/\.vendor$/], + }), + ]; + + if (!isProduction) { + plugins.push(new webpack.HotModuleReplacementPlugin()); + } + + return plugins; +} + +module.exports = (env = {}, argv = {}) => { + const isProduction = argv.mode === 'production'; + + return { + context: path.join(__dirname, 'app', 'src'), + entry: { + main: path.join(__dirname, 'app', 'src', 'main.jsx'), + }, + output: { + path: path.resolve(__dirname, 'distribution'), + filename: '[name].js?[hash]', + publicPath: '', + }, + module: { + rules: [ + { + test: /\.sol$/, + use: 'raw-loader', + }, + { + test: /\.(js|jsx)$/, + // exclude: /node_modules/, + include: /src/, + use: [ + { loader: 'babel-loader' }, +/* { + loader: 'eslint-loader', + options: { + emitWarning: true, + }, + },*/ + ], + }, + { + test: /\.less$/, + use: [ + { loader: 'style-loader' }, + { + loader: 'css-loader', + options: { + modules: true, + localIdentName: '[name]_[local]', + }, + }, + ], + }, + { + test: /\.css$/, + use: ['style-loader', 'css-loader'], + }, + { + test: /\.(png|jpg|svg|woff|woff2|ttf|eot|otf)(\?.*)?$/, + use: { + loader: 'file-loader', + options: { + name: '[name].[hash:10].[ext]', + outputPath: '', + publicPath: '', + useRelativePath: false, + }, + }, + }, + ], + }, + resolve: { + extensions: ['*', '.js', '.jsx'], + alias: {}, + }, + devtool: false, + plugins: getPlugins(isProduction), + optimization: { + runtimeChunk: 'single', + splitChunks: { + cacheGroups: { + commons: { + test: /[\\/]node_modules|react|react-dom|moment|lodash[\\/]/, + name: 'vendors', + chunks: 'all', + }, + }, + }, + }, + bail: false, + devServer: { + port: 5600, + hot: true, + before(app, server) { + app.head('/', (req, res) => { + res.json({ custom: 'response' }); + }); + }, + }, + }; +}; diff --git a/config.js b/config.js deleted file mode 100644 index 018bf09f..00000000 --- a/config.js +++ /dev/null @@ -1,7 +0,0 @@ -var env = { - "CYBER_CHAINGEAR_API": "http://93.125.26.210:32600", - "CYBER_SEARCH_API": "http://93.125.26.210:32901", - "CYBER_MARKETS_API": "http://93.125.26.210:32800", - // "CYBER_MARKETS_API": "https://min-api.cryptocompare.com/data", - "CYBER_MARKETS_STREAM_API": "ws://93.125.26.210:32801" -} diff --git a/contracts/Migrations.sol b/contracts/Migrations.sol index 2706d77e..ac0188ec 100644 --- a/contracts/Migrations.sol +++ b/contracts/Migrations.sol @@ -1,4 +1,4 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; contract Migrations { diff --git a/contracts/builders/DatabaseBuilderV1.sol b/contracts/builders/DatabaseBuilderV1.sol new file mode 100644 index 00000000..29dce878 --- /dev/null +++ b/contracts/builders/DatabaseBuilderV1.sol @@ -0,0 +1,108 @@ +pragma solidity 0.4.25; + +import "../databases/DatabaseV1.sol"; +import "../common/IDatabase.sol"; +import "../common/IDatabaseBuilder.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabaseBuilderV1 is IDatabaseBuilder, SupportsInterfaceWithLookup { + + /* + * Storage + */ + + address private chaingear; + address private owner; + + bytes4 private constant INTERFACE_CHAINGEAR_EULER_ID = 0xea1db66f; + bytes4 private constant INTERFACE_DATABASE_BUILDER_EULER_ID = 0xce8bbf93; + + /* + * Events + */ + + event DatabaseDeployed( + string name, + string symbol, + IDatabase database + ); + + /* + * Constructor + */ + + constructor() public { + chaingear = address(0); + owner = msg.sender; + _registerInterface(INTERFACE_DATABASE_BUILDER_EULER_ID); + } + + /* + * Fallback + */ + + function() external {} + + /* + * External Functions + */ + + function deployDatabase( + address[] _benefitiaries, + uint256[] _shares, + string _name, + string _symbol + ) + external + returns (IDatabase) + { + require(msg.sender == chaingear); + + IDatabase databaseContract = new DatabaseV1( + _benefitiaries, + _shares, + _name, + _symbol + ); + databaseContract.transferOwnership(chaingear); + emit DatabaseDeployed(_name, _symbol, databaseContract); + + return databaseContract; + } + + /* + * Views + */ + + function setChaingearAddress(address _chaingear) + external + { + require(msg.sender == owner); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_chaingear); + require(support.supportsInterface(INTERFACE_CHAINGEAR_EULER_ID)); + chaingear = _chaingear; + } + + function getChaingearAddress() + external + view + returns (address) + { + return chaingear; + } + + function getOwner() + external + view + returns (address) + { + return owner; + } +} diff --git a/contracts/chaingear/Chaingear.sol b/contracts/chaingear/Chaingear.sol index 9228ac3f..93c8eab1 100644 --- a/contracts/chaingear/Chaingear.sol +++ b/contracts/chaingear/Chaingear.sol @@ -1,261 +1,585 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; import "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; +import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; -import "../common/SplitPaymentChangeable.sol"; -import "../common/RegistryInterface.sol"; + + +import "../common/IDatabaseBuilder.sol"; +import "../common/IDatabase.sol"; import "../common/Safe.sol"; -import "./ChaingearCore.sol"; -import "./RegistryCreator.sol"; +import "../common/IChaingear.sol"; +import "./FeeSplitterChaingear.sol"; +import "../common/ERC721MetadataValidation.sol"; /** -* @title Chaingear - the most expensive database +* @title Chaingear - the novel Ethereum database framework * @author cyber•Congress, Valery litvin (@litvintech) -* @dev Main metaregistry contract -* @notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries -* @notice where each registry are ERC721. -* @notice not recommend to use before release! +* @notice not audited, not recommend to use in mainnet */ -contract Chaingear is SplitPaymentChangeable, ChaingearCore, ERC721Token { +contract Chaingear is IChaingear, Ownable, SupportsInterfaceWithLookup, Pausable, FeeSplitterChaingear, ERC721Token { using SafeMath for uint256; + using ERC721MetadataValidation for string; + + /* + * Storage + */ + + struct DatabaseMeta { + IDatabase databaseContract; + address creatorOfDatabase; + string versionOfDatabase; + string linkABI; + uint256 createdTimestamp; + uint256 currentWei; + uint256 accumulatedWei; + } + + struct DatabaseBuilder { + IDatabaseBuilder builderAddress; + string linkToABI; + string description; + bool operational; + } + + DatabaseMeta[] private databases; + mapping(string => bool) private databasesNamesIndex; + mapping(string => bool) private databasesSymbolsIndex; + + uint256 private headTokenID = 0; + mapping(address => uint256) private databasesIDsByAddressesIndex; + mapping(string => address) private databasesAddressesByNameIndex; + mapping(uint256 => string) private databasesSymbolsByIDIndex; + mapping(string => uint256) private databasesIDsBySymbolIndex; + + uint256 private amountOfBuilders = 0; + mapping(uint256 => string) private buildersVersionIndex; + mapping(string => DatabaseBuilder) private buildersVersion; + + Safe private chaingearSafe; + uint256 private databaseCreationFeeWei = 1 ether; + + string private constant CHAINGEAR_DESCRIPTION = "The novel Ethereum database framework"; + bytes4 private constant INTERFACE_CHAINGEAR_EULER_ID = 0xea1db66f; + bytes4 private constant INTERFACE_DATABASE_V1_EULER_ID = 0xf2c320c4; + bytes4 private constant INTERFACE_DATABASE_BUILDER_EULER_ID = 0xce8bbf93; + + /* + * Events + */ + event DatabaseBuilderAdded( + string version, + IDatabaseBuilder builderAddress, + string linkToABI, + string description + ); + event DatabaseDescriptionUpdated(string version, string description); + event DatabaseBuilderDepricated(string version); + event DatabaseCreated( + string name, + address databaseAddress, + address creatorAddress, + uint256 databaseChaingearID + ); + event DatabaseDeleted( + string name, + address databaseAddress, + address creatorAddress, + uint256 databaseChaingearID + ); + event DatabaseFunded( + uint256 databaseID, + address sender, + uint256 amount + ); + event DatabaseFundsClaimed( + uint256 databaseID, + address claimer, + uint256 amount + ); + event CreationFeeUpdated(uint256 newFee); /* * Constructor */ - /** - * @dev Chaingear constructor - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _description string description of Chaingear - * @param _registrationFee uint Fee for registry creation, wei - * @param _chaingearName string Chaingear's name, use for chaingear's ERC721 - * @param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721 - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _description, - uint _registrationFee, - string _chaingearName, - string _chaingearSymbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_chaingearName, _chaingearSymbol) + constructor(address[] _beneficiaries, uint256[] _shares) public + ERC721Token ("CHAINGEAR", "CHG") + FeeSplitterChaingear (_beneficiaries, _shares) { - registryRegistrationFee = _registrationFee; - chaingearDescription = _description; - // Only chaingear as owner can transfer either to and out from Safe chaingearSafe = new Safe(); + _registerInterface(INTERFACE_CHAINGEAR_EULER_ID); } - - function() public payable {} - + /* - * External functions + * Modifiers */ - /** - * @dev Add and tokenize registry with specified parameters. - * @dev Registration fee is required to send with tx. - * @dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry - * @param _version version of registry from which Registry will be boostrapped - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID + modifier onlyOwnerOf(uint256 _databaseID){ + require(ownerOf(_databaseID) == msg.sender); + _; + } + + /* + * External functions */ - function registerRegistry( + + function addDatabaseBuilderVersion( string _version, - address[] _benefitiaries, + IDatabaseBuilder _builderAddress, + string _linkToABI, + string _description + ) + external + onlyOwner + whenNotPaused + { + require(buildersVersion[_version].builderAddress == address(0)); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_builderAddress); + require(support.supportsInterface(INTERFACE_DATABASE_BUILDER_EULER_ID)); + + buildersVersion[_version] = (DatabaseBuilder( + { + builderAddress: _builderAddress, + linkToABI: _linkToABI, + description: _description, + operational: true + })); + buildersVersionIndex[amountOfBuilders] = _version; + amountOfBuilders = amountOfBuilders.add(1); + + emit DatabaseBuilderAdded( + _version, + _builderAddress, + _linkToABI, + _description + ); + } + + function updateDatabaseBuilderDescription(string _version, string _description) + external + onlyOwner + whenNotPaused + { + require(buildersVersion[_version].builderAddress != address(0)); + buildersVersion[_version].description = _description; + emit DatabaseDescriptionUpdated(_version, _description); + } + + function depricateDatabaseBuilder(string _version) + external + onlyOwner + whenPaused + { + require(buildersVersion[_version].builderAddress != address(0)); + require(buildersVersion[_version].operational == true); + buildersVersion[_version].operational = false; + emit DatabaseBuilderDepricated(_version); + } + + function createDatabase( + string _version, + address[] _beneficiaries, uint256[] _shares, - string _name, - string _symbol + string _name, + string _symbol ) external payable whenNotPaused - returns ( - address, - uint256 - ) + returns (address, uint256) { - require(registryAddresses[_version] != 0x0); - require(registryRegistrationFee == msg.value); - - //checking uniqueness of name AND symbol of NFT in metaregistry - require(registryNamesIndex[_name] == false); - require(registrySymbolsIndex[_symbol] == false); + _name.validateName(); + _symbol.validateSymbol(); + require(buildersVersion[_version].builderAddress != address(0)); + require(buildersVersion[_version].operational == true); + require(databaseCreationFeeWei == msg.value); + require(databasesNamesIndex[_name] == false); + require(databasesSymbolsIndex[_symbol] == false); - return createRegistry( + return _deployDatabase( _version, - _benefitiaries, + _beneficiaries, _shares, _name, _symbol ); } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) + + function deleteDatabase(uint256 _databaseID) + external + onlyOwnerOf(_databaseID) + whenNotPaused { - require(_from != address(0)); - require(_to != address(0)); + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase database = databases[databaseIndex].databaseContract; + require(database.getSafeBalance() == uint256(0)); + require(database.getPaused() == true); + + string memory databaseName = ERC721(database).name(); + string memory databaseSymbol = ERC721(database).symbol(); + + delete databasesNamesIndex[databaseName]; + delete databasesSymbolsIndex[databaseSymbol]; + delete databasesIDsByAddressesIndex[database]; + delete databasesIDsBySymbolIndex[databaseSymbol]; + delete databasesSymbolsByIDIndex[_databaseID]; + + uint256 lastDatabaseIndex = databases.length.sub(1); + DatabaseMeta memory lastDatabase = databases[lastDatabaseIndex]; + databases[databaseIndex] = lastDatabase; + delete databases[lastDatabaseIndex]; + databases.length--; - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); + super._burn(msg.sender, _databaseID); + database.transferOwnership(msg.sender); - address registryAddress = registries[_tokenId].contractAddress; - RegistryInterface(registryAddress).transferAdminRights(_to); + emit DatabaseDeleted( + databaseName, + database, + msg.sender, + _databaseID + ); + } - emit Transfer(_from, _to, _tokenId); - } + function fundDatabase(uint256 _databaseID) + external + whenNotPaused + payable + { + require(exists(_databaseID) == true); + uint256 databaseIndex = allTokensIndex[_databaseID]; - /** - * @dev Allows to unregister Registry from Chaingear - * @dev Only possible when safe of Registry is empty - * @dev Burns associated registry token and transfer Registry adminship to current token owner - * @param _registryID uint256 Registry-token ID - */ - function unregisterRegistry( - uint256 _registryID - ) + uint256 currentWei = databases[databaseIndex].currentWei.add(msg.value); + databases[databaseIndex].currentWei = currentWei; + + uint256 accumulatedWei = databases[databaseIndex].accumulatedWei.add(msg.value); + databases[databaseIndex].accumulatedWei = accumulatedWei; + + emit DatabaseFunded(_databaseID, msg.sender, msg.value); + address(chaingearSafe).transfer(msg.value); + } + + function claimDatabaseFunds(uint256 _databaseID, uint256 _amount) external - onlyOwnerOf(_registryID) + onlyOwnerOf(_databaseID) whenNotPaused - { - address registryAddress = registries[_registryID].contractAddress; - require(RegistryInterface(registryAddress).getSafeBalance() == 0); + { + uint256 databaseIndex = allTokensIndex[_databaseID]; - uint256 registryIndex = allTokensIndex[_registryID]; - uint256 lastRegistryIndex = registries.length.sub(1); - RegistryMeta storage lastRegistry = registries[lastRegistryIndex]; + uint256 currentWei = databases[databaseIndex].currentWei; + require(_amount <= currentWei); - registries[registryIndex] = lastRegistry; - delete registries[lastRegistryIndex]; - registries.length--; + databases[databaseIndex].currentWei = currentWei.sub(_amount); - _burn(msg.sender, _registryID); + emit DatabaseFundsClaimed(_databaseID, msg.sender, _amount); + chaingearSafe.claim(msg.sender, _amount); + } - string memory registryName = RegistryInterface(registryAddress).name(); - emit RegistryUnregistered(msg.sender, registryName); - - //Sets current admin as owner of registry, transfers full control - RegistryInterface(registryAddress).transferOwnership(msg.sender); + function updateCreationFee(uint256 _newFee) + external + onlyOwner + whenPaused + { + databaseCreationFeeWei = _newFee; + emit CreationFeeUpdated(_newFee); + } + + /* + * Views + */ + + function getAmountOfBuilders() + external + view + returns(uint256) + { + return amountOfBuilders; + } + + function getBuilderByID(uint256 _id) + external + view + returns(string) + { + return buildersVersionIndex[_id]; + } + + function getDatabaseBuilder(string _version) + external + view + returns ( + address, + string, + string, + bool + ) + { + return( + buildersVersion[_version].builderAddress, + buildersVersion[_version].linkToABI, + buildersVersion[_version].description, + buildersVersion[_version].operational + ); + } + + function getDatabasesIDs() + external + view + returns(uint256[]) + { + return allTokens; + } + + function getDatabaseIDByAddress(address _databaseAddress) + external + view + returns(uint256) + { + uint256 databaseID = databasesIDsByAddressesIndex[_databaseAddress]; + return databaseID; } - /** - * @dev Gets funding and allocate funds of Registry to Chaingear's Safe - * @param _registryID uint256 Registry-token ID + function getDatabaseAddressByName(string _name) + external + view + returns(address) + { + return databasesAddressesByNameIndex[_name]; + } + + function getDatabaseSymbolByID(uint256 _databaseID) + external + view + returns(string) + { + return databasesSymbolsByIDIndex[_databaseID]; + } + + function getDatabaseIDBySymbol(string _symbol) + external + view + returns(uint256) + { + return databasesIDsBySymbolIndex[_symbol]; + } + + function getDatabase(uint256 _databaseID) + external + view + returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ) + { + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase databaseAddress = databases[databaseIndex].databaseContract; + + return ( + ERC721(databaseAddress).name(), + ERC721(databaseAddress).symbol(), + databaseAddress, + databases[databaseIndex].versionOfDatabase, + databases[databaseIndex].createdTimestamp, + databaseAddress.getAdmin(), + ERC721(databaseAddress).totalSupply() + ); + } + + function getDatabaseBalance(uint256 _databaseID) + external + view + returns (uint256, uint256) + { + uint256 databaseIndex = allTokensIndex[_databaseID]; + + return ( + databases[databaseIndex].currentWei, + databases[databaseIndex].accumulatedWei + ); + } + + function getChaingearDescription() + external + pure + returns (string) + { + return CHAINGEAR_DESCRIPTION; + } + + function getCreationFeeWei() + external + view + returns (uint256) + { + return databaseCreationFeeWei; + } + + function getSafeBalance() + external + view + returns (uint256) + { + return address(chaingearSafe).balance; + } + + function getSafeAddress() + external + view + returns (address) + { + return chaingearSafe; + } + + function getNameExist(string _name) + external + view + returns (bool) + { + return databasesNamesIndex[_name]; + } + + function getSymbolExist(string _symbol) + external + view + returns (bool) + { + return databasesSymbolsIndex[_symbol]; + } + + /* + * Public functions */ - function fundRegistry( - uint256 _registryID + + function transferFrom( + address _from, + address _to, + uint256 _tokenId ) - external + public whenNotPaused - payable { - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.add(msg.value); - registries[_registryID].accumulatedRegistryETH = registries[_registryID].accumulatedRegistryETH.add(msg.value); - - emit RegistryFunded(_registryID, msg.sender, msg.value); + uint256 databaseIndex = allTokensIndex[_tokenId]; + IDatabase database = databases[databaseIndex].databaseContract; + require(address(database).balance == 0); + require(database.getPaused() == true); + super.transferFrom(_from, _to, _tokenId); - chaingearSafe.transfer(msg.value); + IDatabase databaseAddress = databases[databaseIndex].databaseContract; + databaseAddress.deletePayees(); + databaseAddress.transferAdminRights(_to); } - /** - * @dev Gets funding and allocate funds of Registry to Safe - * @param _registryID uint256 Registry-token ID - * @param _amount uint256 Amount which admin of registry claims - */ - function claimEntryFunds( - uint256 _registryID, - uint256 _amount + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId ) - external - onlyOwnerOf(_registryID) + public whenNotPaused { - require(_amount <= registries[_registryID].currentRegistryBalanceETH); - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.sub(_amount); + safeTransferFrom( + _from, + _to, + _tokenId, + "" + ); + } - emit RegistryFundsClaimed(_registryID, msg.sender, _amount); - - Safe(chaingearSafe).claim(msg.sender, _amount); + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + public + whenNotPaused + { + transferFrom(_from, _to, _tokenId); + + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); } /* * Private functions */ - /** - * @dev Private function for registry creation - * @dev Pass Registry params and bytecode to RegistryCreator to current builder - * @param _version version of registry code which added to chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares to benefitiaries - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function createRegistry( - string _version, - address[] _benefitiaries, + function _deployDatabase( + string _version, + address[] _beneficiaries, uint256[] _shares, - string _name, - string _symbol + string _name, + string _symbol ) private - returns ( - address, - uint256 - ) + returns (address, uint256) { - address registryContract = RegistryCreator(registryAddresses[_version]).create( - _benefitiaries, + IDatabaseBuilder builder = buildersVersion[_version].builderAddress; + IDatabase databaseContract = builder.deployDatabase( + _beneficiaries, _shares, _name, _symbol ); - - RegistryMeta memory registry = (RegistryMeta( + + address databaseAddress = address(databaseContract); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(databaseAddress); + require(support.supportsInterface(INTERFACE_DATABASE_V1_EULER_ID)); + require(support.supportsInterface(InterfaceId_ERC721)); + require(support.supportsInterface(InterfaceId_ERC721Metadata)); + require(support.supportsInterface(InterfaceId_ERC721Enumerable)); + + DatabaseMeta memory database = (DatabaseMeta( { - contractAddress: registryContract, - creator: msg.sender, - version: _version, - linkABI: registryABIsLinks[_version], - registrationTimestamp: block.timestamp, - currentRegistryBalanceETH: 0, - accumulatedRegistryETH: 0 + databaseContract: databaseContract, + creatorOfDatabase: msg.sender, + versionOfDatabase: _version, + linkABI: buildersVersion[_version].linkToABI, + createdTimestamp: block.timestamp, + currentWei: 0, + accumulatedWei: 0 })); - uint256 registryID = registries.push(registry) - 1; - _mint(msg.sender, registryID); - - registryNamesIndex[_name] = true; - registrySymbolsIndex[_symbol] = true; - - emit RegistryRegistered(_name, registryContract, msg.sender, registryID); - - //Metaregistry as owner sets creator as admin of Registry - RegistryInterface(registryContract).transferAdminRights(msg.sender); + databases.push(database); - return ( - registryContract, - registryID + databasesNamesIndex[_name] = true; + databasesSymbolsIndex[_symbol] = true; + + uint256 newTokenID = headTokenID; + databasesIDsByAddressesIndex[databaseAddress] = newTokenID; + super._mint(msg.sender, newTokenID); + databasesSymbolsByIDIndex[newTokenID] = _symbol; + databasesIDsBySymbolIndex[_symbol] = newTokenID; + databasesAddressesByNameIndex[_name] = databaseAddress; + headTokenID = headTokenID.add(1); + + emit DatabaseCreated( + _name, + databaseAddress, + msg.sender, + newTokenID ); + + databaseContract.transferAdminRights(msg.sender); + return (databaseAddress, newTokenID); } - + } diff --git a/contracts/chaingear/ChaingearCore.sol b/contracts/chaingear/ChaingearCore.sol deleted file mode 100644 index 2649ad38..00000000 --- a/contracts/chaingear/ChaingearCore.sol +++ /dev/null @@ -1,202 +0,0 @@ -pragma solidity 0.4.24; - -import "openzeppelin-solidity/contracts/lifecycle/Destructible.sol"; -import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; -import "./RegistryBase.sol"; - - -/** -* @title Chaingear core contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ - -contract ChaingearCore is RegistryBase, Destructible, Pausable { - - /* - * Storage - */ - - // @dev Mapping which allow control of name uniqueness in metaregistry - mapping(string => bool) internal registryNamesIndex; - - // @dev Mapping which allow control of symbol uniqueness in metaregistry - mapping(string => bool) internal registrySymbolsIndex; - - // @dev Short Chaingear's description, less than 128 symbols - string internal chaingearDescription; - - // @dev Amount that registrys creator should pay for registry creation/registring - uint internal registryRegistrationFee; - - // @dev Address of contract where their funds allocates - address internal chaingearSafe; - - // @dev mapping with address of registry creators with different code base of registries - mapping (string => address) internal registryAddresses; - - // @dev mapping with ipfs links to json with ABI of different registries - mapping (string => string) internal registryABIsLinks; - - // @dev mapping description of different registries types/versions - mapping (string => string) internal registryDescriptions; - - /* - * Events - */ - - // @dev Signals that given Registry funded - event RegistryFunded( - uint registryID, - address sender, - uint amount - ); - - // @dev Signals that given Registry funds claimed by their admin - event RegistryFundsClaimed( - uint registryID, - address claimer, - uint amout - ); - - /* - * External Functions - */ - - /** - * @dev Provides funcitonality for adding fabrics of different kind of registries - * @param _nameOfVersion string which represents name of registry type/version - * @param _addressRegistryCreator address of registry creator/fabric - * @param _link string which represents IPFS hash to JSON with ABI of registry - * @param _description string which resprent info about registry fabric type - * @notice Only owner of metaregistry/chaingear allowed to add fabrics - */ - function addRegistryCreatorVersion( - string _nameOfVersion, - address _addressRegistryCreator, - string _link, - string _description - ) - external - onlyOwner - { - require(registryAddresses[_nameOfVersion] == 0x0); - registryAddresses[_nameOfVersion] = _addressRegistryCreator; - registryABIsLinks[_nameOfVersion] = _link; - registryDescriptions[_nameOfVersion] = _description; - } - - /* - * External Functions - */ - - /** - * @dev Chaingear' registry creation/registration fee setter - * @param _newFee uint new fee amount - * @notice Only owner of metaregistry/chaingear allowed to set fee - */ - function updateRegistrationFee( - uint _newFee - ) - external - onlyOwner - { - registryRegistrationFee = _newFee; - } - - /** - * @dev Chaingear' description setter - * @param _description string with new description - * @notice description should be less than 128 symbols - * @notice Only owner of metaregistry/chaingear allowed to change description - */ - function updateDescription( - string _description - ) - external - onlyOwner - { - uint len = bytes(_description).length; - require(len <= 256); - - chaingearDescription = _description; - } - - /* - * View Functions - */ - - /** - * @dev Allows get information about given version of registry fabric - * @param _nameOfVersion address which represents name of registry type - * @return _addressRegistryCreator address of registry fabric for this version - * @return _link string which represents IPFS hash to JSON with ABI of registry - * @return _description string which resprent info about this registry - */ - function getRegistryCreatorInfo( - string _nameOfVersion - ) - external - view - returns ( - address _addressRegistryCreator, - string _link, - string _description - ) - { - return( - registryAddresses[_nameOfVersion], - registryABIsLinks[_nameOfVersion], - registryDescriptions[_nameOfVersion] - ); - } - - /** - * @dev Chaingear description getter - * @return string description of Chaingear - */ - function getDescription() - external - view - returns (string) - { - return chaingearDescription; - } - - /** - * @dev Chaingear registration fee getter - * @return uint amount of fee in wei - */ - function getRegistrationFee() - external - view - returns (uint) - { - return registryRegistrationFee; - } - - /** - * @dev Safe balence getter - * @return uint amount of fee in wei - */ - function getSafeBalance() - external - view - returns (uint) - { - return address(chaingearSafe).balance; - } - - /** - * @dev Safe contract address getter - * @return uint amount of fee in wei - */ - function getSafe() - external - view - returns (address) - { - return chaingearSafe; - } -} diff --git a/contracts/common/SplitPaymentChangeable.sol b/contracts/chaingear/FeeSplitterChaingear.sol similarity index 58% rename from contracts/common/SplitPaymentChangeable.sol rename to contracts/chaingear/FeeSplitterChaingear.sol index dbf9080c..6a9668e9 100644 --- a/contracts/common/SplitPaymentChangeable.sol +++ b/contracts/chaingear/FeeSplitterChaingear.sol @@ -1,35 +1,31 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; -import "openzeppelin-solidity/contracts/payment/SplitPayment.sol"; +import "../common/PaymentSplitter.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; -contract SplitPaymentChangeable is SplitPayment, Ownable { - +contract FeeSplitterChaingear is PaymentSplitter, Ownable { + event PayeeAddressChanged( - uint payeeIndex, + uint8 payeeIndex, address oldAddress, address newAddress ); - constructor( - address[] _payees, - uint256[] _shares - ) + constructor(address[] _payees, uint256[] _shares) public payable - SplitPayment(_payees, _shares) + PaymentSplitter(_payees, _shares) { } - - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) + + function changePayeeAddress(uint8 _payeeIndex, address _newAddress) external onlyOwner { + require(_payeeIndex < 12); + require(payees[_payeeIndex] != _newAddress); + address oldAddress = payees[_payeeIndex]; - shares[_newAddress] = shares[oldAddress]; released[_newAddress] = released[oldAddress]; payees[_payeeIndex] = _newAddress; @@ -39,4 +35,5 @@ contract SplitPaymentChangeable is SplitPayment, Ownable { emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); } -} + +} \ No newline at end of file diff --git a/contracts/chaingear/RegistryBase.sol b/contracts/chaingear/RegistryBase.sol deleted file mode 100644 index 7fc4b8da..00000000 --- a/contracts/chaingear/RegistryBase.sol +++ /dev/null @@ -1,138 +0,0 @@ -pragma solidity 0.4.24; -import "../common/RegistryInterface.sol"; - - -/** -* @title RegistryBase contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Contracts which holds logic and struct of data witch describes registry metainformation which -* associated with token, provides views function for registry metainformation. -* @notice not recommend to use before release! -*/ - -//todo rename: we have RegistryBase and RegistryInterface -contract RegistryBase { - - /* - * Storage - */ - - // @dev Sctruct which describes registry metainformation with balance state and status - struct RegistryMeta { - address contractAddress; - address creator; - string version; - string linkABI; - uint registrationTimestamp; - uint256 currentRegistryBalanceETH; - uint256 accumulatedRegistryETH; - } - - - // @dev Array of registries data - RegistryMeta[] internal registries; - - /* - * Events - */ - - // @dev Events witch signals that new Registry registered - event RegistryRegistered( - string name, - address registryAddress, - address creator, - uint registryID - ); - - // @dev Events witch signals that Registry adminship transferred - // @notice that also means associated token transferred too - event RegistryChangedOwner( - address caller, - uint256 registyID, - address newOwner - ); - - // @dev Events witch signals that Registry unregistered from Chaingear - // @notice adminship of Registry transfers from Chaingear to Admin - event RegistryUnregistered( - address admin, - string name - ); - - /* - * External Functions - */ - - /** - * @dev Registy metainfo getter - * @param _registryID uint256 Registry ID, associated ERC721 token ID - * @return string Registy name - * @return string Registy symbol - * @return address Registy address - * @return address Registy creator address - * @return string Registy version - * @return uint Registy creation timestamp - * @return address Registy admin address - */ - function registryInfo( - uint256 _registryID - ) - external - view - returns ( - string, - string, - address, - address, - string, - uint, - address - ) - { - address contractAddress = registries[_registryID].contractAddress; - - return ( - RegistryInterface(contractAddress).name(), - RegistryInterface(contractAddress).symbol(), - contractAddress, - registries[_registryID].creator, - registries[_registryID].version, - registries[_registryID].registrationTimestamp, - RegistryInterface(contractAddress).getAdmin() - ); - } - - /** - * @dev Registy funding stats getter - * @param _registryID uint256 Registry ID - * @return uint Registy current balance in wei, which stored in Safe - * @return uint Registy total accumulated balance in wei - */ - function registryBalanceInfo( - uint256 _registryID - ) - external - view - returns ( - uint256, - uint256 - ) - { - return ( - registries[_registryID].currentRegistryBalanceETH, - registries[_registryID].accumulatedRegistryETH - ); - } - - /** - * @dev Registies amount getter - * @return uint256 amounts of Registries - */ - function registriesAmount() - external - view - returns (uint256) - { - return registries.length; - } -} diff --git a/contracts/chaingear/RegistryCreator.sol b/contracts/chaingear/RegistryCreator.sol deleted file mode 100644 index e123007d..00000000 --- a/contracts/chaingear/RegistryCreator.sol +++ /dev/null @@ -1,107 +0,0 @@ -pragma solidity 0.4.24; - -import "../registry/Registry.sol"; -import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; - - -/** -* @title Registry Creator engine/fabric -* @author cyber•Congress -* @dev Allows to Chaingear contract as builder create new Registries -* @dev with codebase which imported and deployed with this fabric -* @notice not recommend to use before release! -*/ -contract RegistryCreator is Ownable { - - /* - * @dev Storage - */ - - // @dev Holds address of contract which can call creation, means Chaingear - address internal builder; - - /* - * @dev Constructor - */ - - /** - * @dev Contructor of RegistryCreators - * @notice setting 0x0, then allows to owner to set builder/Chaingear - * @notice after deploying needs to set up builder/Chaingear address - */ - constructor() - public - { - builder = 0x0; - } - - /** - * @dev Disallows direct send by settings a default function without the `payable` flag. - */ - function() external {} - - /* - * @dev External Functions - */ - - /** - * @dev Allows chaingear (builder) create new registry - * @param _benefitiaries address[] array of beneficiaries addresses - * @param _shares uint256[] array of shares amont ot each beneficiary - * @param _name string name of Registry and token - * @param _symbol string symbol of Registry and token - * @return address Address of new initialized Registry - */ - function create( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - external - returns (address) - { - require(msg.sender == builder); - - address registryContract = new Registry( - _benefitiaries, - _shares, - _name, - _symbol - ); - //Fabric as owner transfers ownership to Chaingear contract after creation - Registry(registryContract).transferOwnership(builder); - - return registryContract; - } - - /** - * @dev Registry builder setter, owners sets Chaingear address - * @param _builder address - */ - function setBuilder( - address _builder - ) - external - onlyOwner - { - require(_builder != 0x0); - builder = _builder; - } - - /* - * View Functions - */ - - /** - * @dev RegistryCreator's builder getter - * @return address of setted Registry builder (Chaingear contract) - */ - function getRegistryBuilder() - external - view - returns (address) - { - return builder; - } -} diff --git a/contracts/common/ERC721MetadataValidation.sol b/contracts/common/ERC721MetadataValidation.sol new file mode 100644 index 00000000..4bdd42a6 --- /dev/null +++ b/contracts/common/ERC721MetadataValidation.sol @@ -0,0 +1,25 @@ +pragma solidity 0.4.25; + + +library ERC721MetadataValidation { + + function validateName(string _base) + internal + pure + { + bytes memory _baseBytes = bytes(_base); + for (uint i = 0; i < _baseBytes.length; i++) { + require(_baseBytes[i] >= 0x61 && _baseBytes[i] <= 0x7A || _baseBytes[i] >= 0x30 && _baseBytes[i] <= 0x39 || _baseBytes[i] == 0x2D); + } + } + + function validateSymbol(string _base) + internal + pure + { + bytes memory _baseBytes = bytes(_base); + for (uint i = 0; i < _baseBytes.length; i++) { + require(_baseBytes[i] >= 0x41 && _baseBytes[i] <= 0x5A || _baseBytes[i] >= 0x30 && _baseBytes[i] <= 0x39); + } + } +} \ No newline at end of file diff --git a/contracts/common/EntryInterface.sol b/contracts/common/EntryInterface.sol deleted file mode 100644 index 49d5edcd..00000000 --- a/contracts/common/EntryInterface.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity 0.4.24; - - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} diff --git a/contracts/common/IChaingear.sol b/contracts/common/IChaingear.sol new file mode 100644 index 00000000..83e25e8c --- /dev/null +++ b/contracts/common/IChaingear.sol @@ -0,0 +1,51 @@ +pragma solidity 0.4.25; + +import "../common/IDatabaseBuilder.sol"; + + +interface IChaingear { + + function addDatabaseBuilderVersion( + string, + IDatabaseBuilder, + string, + string + ) external; + function updateDatabaseBuilderDescription(string, string) external; + function depricateDatabaseBuilder(string) external; + function createDatabase( + string, + address[], + uint256[], + string, + string + ) external payable returns (address, uint256); + function deleteDatabase(uint256) external; + function fundDatabase(uint256) external payable; + function claimDatabaseFunds(uint256, uint256) external; + function updateCreationFee(uint256) external; + function getAmountOfBuilders() external view returns (uint256); + function getBuilderByID(uint256) external view returns(string); + function getDatabaseBuilder(string) external view returns(address, string, string, bool); + function getDatabasesIDs() external view returns (uint256[]); + function getDatabaseIDByAddress(address) external view returns (uint256); + function getDatabaseAddressByName(string) external view returns (address); + function getDatabaseSymbolByID(uint256) external view returns (string); + function getDatabaseIDBySymbol(string) external view returns (uint256); + function getDatabase(uint256) external view returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ); + function getDatabaseBalance(uint256) external view returns (uint256, uint256); + function getChaingearDescription() external pure returns (string); + function getCreationFeeWei() external view returns (uint256); + function getSafeBalance() external view returns (uint256); + function getSafeAddress() external view returns (address); + function getNameExist(string) external view returns (bool); + function getSymbolExist(string) external view returns (bool); +} diff --git a/contracts/common/IDatabase.sol b/contracts/common/IDatabase.sol new file mode 100644 index 00000000..e1a583f3 --- /dev/null +++ b/contracts/common/IDatabase.sol @@ -0,0 +1,42 @@ +pragma solidity 0.4.25; + +interface IDatabase { + + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns ( + address, + address, + uint256, + uint256, + uint256, + uint256 + ); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function pause() external; + function unpause() external; + function transferAdminRights(address) external; + function getAdmin() external view returns (address); + function getPaused() external view returns (bool); + function transferOwnership(address) external; + function deletePayees() external; +} diff --git a/contracts/common/IDatabaseBuilder.sol b/contracts/common/IDatabaseBuilder.sol new file mode 100644 index 00000000..e1ab8fd1 --- /dev/null +++ b/contracts/common/IDatabaseBuilder.sol @@ -0,0 +1,17 @@ +pragma solidity 0.4.25; + +import "../common/IDatabase.sol"; + + +interface IDatabaseBuilder { + + function deployDatabase( + address[], + uint256[], + string, + string + ) external returns (IDatabase); + function setChaingearAddress(address) external; + function getChaingearAddress() external view returns (address); + function getOwner() external view returns (address); +} diff --git a/contracts/common/ISchema.sol b/contracts/common/ISchema.sol new file mode 100644 index 00000000..a6b5b0e2 --- /dev/null +++ b/contracts/common/ISchema.sol @@ -0,0 +1,8 @@ +pragma solidity 0.4.25; + + +interface ISchema { + + function createEntry() external; + function deleteEntry(uint256) external; +} diff --git a/contracts/common/PaymentSplitter.sol b/contracts/common/PaymentSplitter.sol new file mode 100644 index 00000000..5a9a396b --- /dev/null +++ b/contracts/common/PaymentSplitter.sol @@ -0,0 +1,134 @@ +pragma solidity 0.4.25; + +import "openzeppelin-solidity/contracts/math/SafeMath.sol"; + + +/** + * @title PaymentSplitter + * @dev This contract can be used when payments need to be received by a group + * of people and split proportionately to some number of shares they own. + */ +contract PaymentSplitter { + + using SafeMath for uint256; + + uint256 internal totalShares; + uint256 internal totalReleased; + + mapping(address => uint256) internal shares; + mapping(address => uint256) internal released; + address[] internal payees; + + event PayeeAdded(address account, uint256 shares); + event PaymentReleased(address to, uint256 amount); + event PaymentReceived(address from, uint256 amount); + + constructor (address[] _payees, uint256[] _shares) + public + payable + { + _initializePayess(_payees, _shares); + } + + function () + external + payable + { + emit PaymentReceived(msg.sender, msg.value); + } + + function getTotalShares() + external + view + returns (uint256) + { + return totalShares; + } + + function getTotalReleased() + external + view + returns (uint256) + { + return totalReleased; + } + + function getShares(address _account) + external + view + returns (uint256) + { + return shares[_account]; + } + + function getReleased(address _account) + external + view + returns (uint256) + { + return released[_account]; + } + + function getPayee(uint256 _index) + external + view + returns (address) + { + return payees[_index]; + } + + function getPayeesCount() + external + view + returns (uint256) + { + return payees.length; + } + + function release(address _account) + public + { + require(shares[_account] > 0); + + uint256 totalReceived = address(this).balance.add(totalReleased); + uint256 payment = totalReceived.mul(shares[_account]).div(totalShares).sub(released[_account]); + + require(payment != 0); + + released[_account] = released[_account].add(payment); + totalReleased = totalReleased.add(payment); + + _account.transfer(payment); + + emit PaymentReleased(_account, payment); + } + + function _initializePayess(address[] _payees, uint256[] _shares) + internal + { + require(payees.length == 0); + require(_payees.length == _shares.length); + require(_payees.length > 0 && _payees.length <= 8); + + for (uint256 i = 0; i < _payees.length; i++) { + _addPayee(_payees[i], _shares[i]); + } + } + + function _addPayee( + address _account, + uint256 _shares + ) + internal + { + require(_account != address(0)); + require(_shares > 0); + require(shares[_account] == 0); + + payees.push(_account); + shares[_account] = _shares; + totalShares = totalShares.add(_shares); + + emit PayeeAdded(_account, _shares); + } +} \ No newline at end of file diff --git a/contracts/common/RegistryInterface.sol b/contracts/common/RegistryInterface.sol deleted file mode 100644 index 0ba3d4e6..00000000 --- a/contracts/common/RegistryInterface.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity 0.4.24; - - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} diff --git a/contracts/common/Safe.sol b/contracts/common/Safe.sol index 7dda02e9..4ec73422 100644 --- a/contracts/common/Safe.sol +++ b/contracts/common/Safe.sol @@ -1,27 +1,20 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; /** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet */ contract Safe { - address public owner; + address private owner; - constructor() - public - payable + constructor() public { owner = msg.sender; } - /** - * @dev Allows direct send only by owner. - */ function() external payable @@ -29,21 +22,21 @@ contract Safe { require(msg.sender == owner); } - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) + function claim(address _entryOwner, uint256 _amount) external { require(msg.sender == owner); require(_amount <= address(this).balance); - require(_entryOwner != 0x0); + require(_entryOwner != address(0)); + _entryOwner.transfer(_amount); } + function getOwner() + external + view + returns(address) + { + return owner; + } } diff --git a/contracts/databases/DatabasePermissionControl.sol b/contracts/databases/DatabasePermissionControl.sol new file mode 100644 index 00000000..000113f9 --- /dev/null +++ b/contracts/databases/DatabasePermissionControl.sol @@ -0,0 +1,165 @@ +pragma solidity 0.4.25; + +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; + + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabasePermissionControl is Ownable { + + /* + * Storage + */ + + enum CreateEntryPermissionGroup {OnlyAdmin, Whitelist, AllUsers} + + address private admin; + bool private paused = true; + + mapping(address => bool) private whitelist; + + CreateEntryPermissionGroup private permissionGroup = CreateEntryPermissionGroup.OnlyAdmin; + + /* + * Events + */ + + event Pause(); + event Unpause(); + event PermissionGroupChanged(CreateEntryPermissionGroup); + event AddedToWhitelist(address); + event RemovedFromWhitelist(address); + event AdminshipTransferred(address, address); + + /* + * Constructor + */ + + constructor() + public + { } + + /* + * Modifiers + */ + + modifier whenNotPaused() { + require(!paused); + _; + } + + modifier whenPaused() { + require(paused); + _; + } + + modifier onlyAdmin() { + require(msg.sender == admin); + _; + } + + modifier onlyPermissionedToCreateEntries() { + if (permissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { + require(msg.sender == admin); + } else if (permissionGroup == CreateEntryPermissionGroup.Whitelist) { + require(whitelist[msg.sender] == true || msg.sender == admin); + } + _; + } + + /* + * External functions + */ + + function pause() + external + onlyAdmin + whenNotPaused + { + paused = true; + emit Pause(); + } + + function unpause() + external + onlyAdmin + whenPaused + { + paused = false; + emit Unpause(); + } + + function transferAdminRights(address _newAdmin) + external + onlyOwner + whenPaused + { + require(_newAdmin != address(0)); + emit AdminshipTransferred(admin, _newAdmin); + admin = _newAdmin; + } + + function updateCreateEntryPermissionGroup(CreateEntryPermissionGroup _newPermissionGroup) + external + onlyAdmin + whenPaused + { + require(CreateEntryPermissionGroup.AllUsers >= _newPermissionGroup); + + permissionGroup = _newPermissionGroup; + emit PermissionGroupChanged(_newPermissionGroup); + } + + function addToWhitelist(address _address) + external + onlyAdmin + whenPaused + { + whitelist[_address] = true; + emit AddedToWhitelist(_address); + } + + function removeFromWhitelist(address _address) + external + onlyAdmin + whenPaused + { + whitelist[_address] = false; + emit RemovedFromWhitelist(_address); + } + + function getAdmin() + external + view + returns (address) + { + return admin; + } + + function getDatabasePermissions() + external + view + returns (CreateEntryPermissionGroup) + { + return permissionGroup; + } + + function checkWhitelisting(address _address) + external + view + returns (bool) + { + return whitelist[_address]; + } + + function getPaused() + external + view + returns (bool) + { + return paused; + } +} diff --git a/contracts/databases/DatabaseV1.sol b/contracts/databases/DatabaseV1.sol new file mode 100644 index 00000000..cd193c1b --- /dev/null +++ b/contracts/databases/DatabaseV1.sol @@ -0,0 +1,469 @@ +pragma solidity 0.4.25; + +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; +import "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/math/SafeMath.sol"; + +import "../common/IChaingear.sol"; +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "../common/Safe.sol"; +import "./FeeSplitterDatabase.sol"; +import "./DatabasePermissionControl.sol"; + + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabaseV1 is IDatabase, Ownable, DatabasePermissionControl, SupportsInterfaceWithLookup, FeeSplitterDatabase, ERC721Token { + + using SafeMath for uint256; + + /* + * Storage + */ + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + bytes4 private constant INTERFACE_DATABASE_V1_EULER_ID = 0xf2c320c4; + + // @dev Metadata of entry, holds ownership data and funding info + struct EntryMeta { + address creator; + uint256 createdAt; + uint256 lastUpdateTime; + uint256 currentWei; + uint256 accumulatedWei; + } + + EntryMeta[] private entriesMeta; + Safe private databaseSafe; + + uint256 private headTokenID = 0; + uint256 private entryCreationFeeWei = 0; + + bytes32[] private databaseTags; + string private databaseDescription; + + string private schemaDefinition; + ISchema private entriesStorage; + bool private databaseInitStatus = false; + + /* + * Modifiers + */ + + modifier onlyOwnerOf(uint256 _entryID){ + require(ownerOf(_entryID) == msg.sender); + _; + } + + modifier databaseInitialized { + require(databaseInitStatus == true); + _; + } + + /** + * Events + */ + + event EntryCreated(uint256 entryID, address creator); + event EntryDeleted(uint256 entryID, address owner); + event EntryFunded( + uint256 entryID, + address funder, + uint256 amount + ); + event EntryFundsClaimed( + uint256 entryID, + address claimer, + uint256 amount + ); + event EntryCreationFeeUpdated(uint256 newFees); + event DescriptionUpdated(string newDescription); + event DatabaseInitialized(); + event TagAdded(bytes32 tag); + event TagUpdated(uint8 index, bytes32 tag); + event TagDeleted(uint8 index); + + /* + * Constructor + */ + + constructor( + address[] _beneficiaries, + uint256[] _shares, + string _name, + string _symbol + ) + ERC721Token (_name, _symbol) + FeeSplitterDatabase (_beneficiaries, _shares) + public + payable + { + _registerInterface(INTERFACE_DATABASE_V1_EULER_ID); + databaseSafe = new Safe(); + } + + /* + * External functions + */ + + function createEntry() + external + databaseInitialized + onlyPermissionedToCreateEntries + whenNotPaused + payable + returns (uint256) + { + require(msg.value == entryCreationFeeWei); + + EntryMeta memory meta = (EntryMeta( + { + lastUpdateTime: block.timestamp, + createdAt: block.timestamp, + creator: msg.sender, + currentWei: 0, + accumulatedWei: 0 + })); + entriesMeta.push(meta); + + uint256 newTokenID = headTokenID; + super._mint(msg.sender, newTokenID); + headTokenID = headTokenID.add(1); + + emit EntryCreated(newTokenID, msg.sender); + + entriesStorage.createEntry(); + + return newTokenID; + } + + function auth(uint256 _entryID, address _caller) + external + whenNotPaused + { + require(msg.sender == address(entriesStorage)); + require(ownerOf(_entryID) == _caller); + uint256 entryIndex = allTokensIndex[_entryID]; + entriesMeta[entryIndex].lastUpdateTime = block.timestamp; + } + + function deleteEntry(uint256 _entryID) + external + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused + { + uint256 entryIndex = allTokensIndex[_entryID]; + require(entriesMeta[entryIndex].currentWei == 0); + + uint256 lastEntryIndex = entriesMeta.length.sub(1); + EntryMeta memory lastEntry = entriesMeta[lastEntryIndex]; + + entriesMeta[entryIndex] = lastEntry; + delete entriesMeta[lastEntryIndex]; + entriesMeta.length--; + + super._burn(msg.sender, _entryID); + emit EntryDeleted(_entryID, msg.sender); + + entriesStorage.deleteEntry(entryIndex); + } + + function fundEntry(uint256 _entryID) + external + databaseInitialized + whenNotPaused + payable + { + require(exists(_entryID) == true); + + uint256 entryIndex = allTokensIndex[_entryID]; + uint256 currentWei = entriesMeta[entryIndex].currentWei.add(msg.value); + entriesMeta[entryIndex].currentWei = currentWei; + + uint256 accumulatedWei = entriesMeta[entryIndex].accumulatedWei.add(msg.value); + entriesMeta[entryIndex].accumulatedWei = accumulatedWei; + + emit EntryFunded(_entryID, msg.sender, msg.value); + address(databaseSafe).transfer(msg.value); + } + + function claimEntryFunds(uint256 _entryID, uint256 _amount) + external + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused + { + uint256 entryIndex = allTokensIndex[_entryID]; + + uint256 currentWei = entriesMeta[entryIndex].currentWei; + require(_amount <= currentWei); + entriesMeta[entryIndex].currentWei = currentWei.sub(_amount); + + emit EntryFundsClaimed(_entryID, msg.sender, _amount); + databaseSafe.claim(msg.sender, _amount); + } + + function updateEntryCreationFee(uint256 _newFee) + external + onlyAdmin + whenPaused + { + entryCreationFeeWei = _newFee; + emit EntryCreationFeeUpdated(_newFee); + } + + function updateDatabaseDescription(string _newDescription) + external + onlyAdmin + { + databaseDescription = _newDescription; + emit DescriptionUpdated(_newDescription); + } + + function addDatabaseTag(bytes32 _tag) + external + onlyAdmin + { + require(databaseTags.length < 16); + databaseTags.push(_tag); + emit TagAdded(_tag); + } + + function updateDatabaseTag(uint8 _index, bytes32 _tag) + external + onlyAdmin + { + require(_index < databaseTags.length); + databaseTags[_index] = _tag; + emit TagUpdated(_index, _tag); + } + + function removeDatabaseTag(uint8 _index) + external + onlyAdmin + { + require(databaseTags.length > 0); + require(_index < databaseTags.length); + + uint256 lastTagIndex = databaseTags.length.sub(1); + bytes32 lastTag = databaseTags[lastTagIndex]; + + databaseTags[_index] = lastTag; + databaseTags[lastTagIndex] = ""; + databaseTags.length--; + + emit TagDeleted(_index); + } + + /* + * View functions + */ + + function readEntryMeta(uint256 _entryID) + external + view + returns ( + address, + address, + uint256, + uint256, + uint256, + uint256 + ) + { + require(exists(_entryID) == true); + uint256 entryIndex = allTokensIndex[_entryID]; + + EntryMeta memory m = entriesMeta[entryIndex]; + return( + ownerOf(_entryID), + m.creator, + m.createdAt, + m.lastUpdateTime, + m.currentWei, + m.accumulatedWei + ); + } + + function getChaingearID() + external + view + returns(uint256) + { + return IChaingear(owner).getDatabaseIDByAddress(address(this)); + } + + function getEntriesIDs() + external + view + returns (uint256[]) + { + return allTokens; + } + + function getIndexByID(uint256 _entryID) + external + view + returns (uint256) + { + require(exists(_entryID) == true); + return allTokensIndex[_entryID]; + } + + function getEntryCreationFee() + external + view + returns (uint256) + { + return entryCreationFeeWei; + } + + function getEntriesStorage() + external + view + returns (address) + { + return address(entriesStorage); + } + + function getSchemaDefinition() + external + view + returns (string) + { + return schemaDefinition; + } + + function getDatabaseBalance() + external + view + returns (uint256) + { + return address(this).balance; + } + + function getDatabaseDescription() + external + view + returns (string) + { + return databaseDescription; + } + + function getDatabaseTags() + external + view + returns (bytes32[]) + { + return databaseTags; + } + + function getDatabaseSafe() + external + view + returns (address) + { + return databaseSafe; + } + + function getSafeBalance() + external + view + returns (uint256) + { + return address(databaseSafe).balance; + } + + function getDatabaseInitStatus() + external + view + returns (bool) + { + return databaseInitStatus; + } + + /** + * Public functions + */ + + function initializeDatabase(string _schemaDefinition, bytes _schemaBytecode) + public + onlyAdmin + whenPaused + returns (address) + { + require(databaseInitStatus == false); + address deployedAddress; + + assembly { + let s := mload(_schemaBytecode) + let p := add(_schemaBytecode, 0x20) + deployedAddress := create(0, p, s) + } + + require(deployedAddress != address(0)); + require(SupportsInterfaceWithLookup(deployedAddress).supportsInterface(INTERFACE_SCHEMA_EULER_ID)); + entriesStorage = ISchema(deployedAddress); + + schemaDefinition = _schemaDefinition; + databaseInitStatus = true; + + emit DatabaseInitialized(); + return deployedAddress; + } + + function transferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + databaseInitialized + whenNotPaused + { + super.transferFrom(_from, _to, _tokenId); + } + + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + databaseInitialized + whenNotPaused + { + safeTransferFrom( + _from, + _to, + _tokenId, + "" + ); + } + + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + public + databaseInitialized + whenNotPaused + { + transferFrom(_from, _to, _tokenId); + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); + } +} diff --git a/contracts/databases/FeeSplitterDatabase.sol b/contracts/databases/FeeSplitterDatabase.sol new file mode 100644 index 00000000..746c9364 --- /dev/null +++ b/contracts/databases/FeeSplitterDatabase.sol @@ -0,0 +1,75 @@ +pragma solidity 0.4.25; + +import "../common/PaymentSplitter.sol"; +import "./DatabasePermissionControl.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; + + +contract FeeSplitterDatabase is PaymentSplitter, DatabasePermissionControl { + + event PayeeAddressChanged( + uint8 payeeIndex, + address oldAddress, + address newAddress + ); + event PayeesDeleted(); + + constructor(address[] _payees, uint256[] _shares) + public + payable + PaymentSplitter(_payees, _shares) + { } + + function () + external + payable + whenNotPaused + { + emit PaymentReceived(msg.sender, msg.value); + } + + function changePayeeAddress(uint8 _payeeIndex, address _newAddress) + external + whenNotPaused + { + require(_payeeIndex < 8); + require(msg.sender == payees[_payeeIndex]); + require(payees[_payeeIndex] != _newAddress); + + address oldAddress = payees[_payeeIndex]; + + shares[_newAddress] = shares[oldAddress]; + released[_newAddress] = released[oldAddress]; + payees[_payeeIndex] = _newAddress; + + delete shares[oldAddress]; + delete released[oldAddress]; + + emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); + } + + function setPayess(address[] _payees, uint256[] _shares) + external + whenPaused + onlyAdmin + { + _initializePayess(_payees, _shares); + } + + function deletePayees() + external + whenPaused + onlyOwner + { + for (uint8 i = 0; i < payees.length; i++) { + address account = payees[i]; + delete shares[account]; + delete released[account]; + } + payees.length = 0; + totalShares = 0; + totalReleased = 0; + + emit PayeesDeleted(); + } +} \ No newline at end of file diff --git a/contracts/registry/Chaingeareable.sol b/contracts/registry/Chaingeareable.sol deleted file mode 100644 index 87316713..00000000 --- a/contracts/registry/Chaingeareable.sol +++ /dev/null @@ -1,281 +0,0 @@ -pragma solidity 0.4.24; - -import "./RegistryPermissionControl.sol"; - - -/** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ -contract Chaingeareable is RegistryPermissionControl { - - /* - * Storage - */ - - // @dev entry creation fee - uint internal entryCreationFee; - - // @dev registry description string - string internal registryDescription; - - // @dev registry tags - bytes32[] internal registryTags; - - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; - - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; - - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; - - /* - * Modifiers - */ - - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); - _; - } - - /** - * Events - */ - - // @dev Signals that new entry-token added to Registry - event EntryCreated( - uint entryID, - address creator - ); - - // @dev Signals that entry-token changed owner - event EntryChangedOwner( - uint entryID, - address newOwner - ); - - // @dev Signals that entry-token deleted - event EntryDeleted( - uint entryID, - address owner - ); - - // @dev Signals that entry-token funded with given amount - event EntryFunded( - uint entryID, - address funder, - uint amount - ); - - // @dev Signals that entry-token funds claimed by owner with given amount - event EntryFundsClaimed( - uint entryID, - address owner, - uint amount - ); - - /** - * External Functions - */ - - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee - ) - external - onlyAdmin - { - entryCreationFee = _fee; - } - - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription - ) - external - onlyAdmin - { - uint len = bytes(_registryDescription).length; - require(len <= 256); - - registryDescription = _registryDescription; - } - - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - registryTags.push(_tag); - } - - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); - - registryTags[_index] = _tag; - } - - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) - external - onlyAdmin - { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; - - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; - } - - /** - * View functions - */ - - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ - function getEntriesStorage() - external - view - returns (address) - { - return entriesStorage; - } - - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI - */ - function getInterfaceEntriesContract() - external - view - returns (string) - { - return linkToABIOfEntriesContract; - } - - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() - external - view - returns (uint) - { - return address(this).balance; - } - - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() - external - view - returns (uint) - { - return entryCreationFee; - } - - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() - external - view - returns (string) - { - return registryDescription; - } - - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() - external - view - returns (bytes32[]) - { - return registryTags; - } - - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() - external - view - returns (address) - { - return registrySafe; - } - - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ - function getSafeBalance() - external - view - returns (uint balance) - { - return address(registrySafe).balance; - } - - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() - external - view - returns (bool) - { - return registryInitStatus; - } -} diff --git a/contracts/registry/EntryCore.sol b/contracts/registry/EntryCore.sol deleted file mode 100644 index 9f8017c8..00000000 --- a/contracts/registry/EntryCore.sol +++ /dev/null @@ -1,113 +0,0 @@ -pragma solidity 0.4.24; - -import "../common/EntryInterface.sol"; -import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; - - -//This is Example of EntryCore -contract EntryCore is EntryInterface, Ownable { - - struct Entry { - address expensiveAddress; - uint256 expensiveUint; - int128 expensiveInt; - string expensiveString; - } - - mapping(string => bool) internal entryExpensiveStringIndex; - - Entry[] internal entries; - - function() external {} - - function createEntry() - external - onlyOwner - returns (uint256) - { - Entry memory m = (Entry( - { - expensiveAddress: address(0), - expensiveUint: uint256(0), - expensiveInt: int128(0), - expensiveString: "" - })); - - uint256 newEntryID = entries.push(m) - 1; - - return newEntryID; - } - - function updateEntry( - uint256 _entryID, - address _newAddress, - uint256 _newUint, - int128 _newInt, - string _newString - ) - external - { - require(owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender)); - - // for uniq check example - require(entryExpensiveStringIndex[_newString] == false); - // for uniq check example - entryExpensiveStringIndex[_newString] = true; - string storage lastIndexValue = entries[_entryID].expensiveString; - entryExpensiveStringIndex[lastIndexValue] = false; - - - Entry memory m = (Entry({ - expensiveAddress: _newAddress, - expensiveUint: _newUint, - expensiveInt: _newInt, - expensiveString: _newString - })); - entries[_entryID] = m; - - require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID)); - } - - function deleteEntry( - uint256 _entryIndex - ) - external - onlyOwner - { - uint256 lastEntryIndex = entries.length - 1; - Entry storage lastEntry = entries[lastEntryIndex]; - - entries[_entryIndex] = lastEntry; - delete entries[lastEntryIndex]; - entries.length--; - } - - function entriesAmount() - external - view - returns (uint256 entryID) - { - return entries.length; - } - - function entryInfo( - uint256 _entryID - ) - external - view - returns ( - address, - uint256, - int128, - string - ) - { - return ( - entries[_entryID].expensiveAddress, - entries[_entryID].expensiveUint, - entries[_entryID].expensiveInt, - entries[_entryID].expensiveString - ); - } - -} diff --git a/contracts/registry/Registry.sol b/contracts/registry/Registry.sol deleted file mode 100644 index a439aaae..00000000 --- a/contracts/registry/Registry.sol +++ /dev/null @@ -1,317 +0,0 @@ -pragma solidity 0.4.24; - -import "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; -import "openzeppelin-solidity/contracts/math/SafeMath.sol"; -import "../common/SplitPaymentChangeable.sol"; -import "./Chaingeareable.sol"; -import "../common/EntryInterface.sol"; -import "../common/RegistryInterface.sol"; -import "../common/Safe.sol"; - - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { - - using SafeMath for uint256; - - /* - * Storage - */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; - } - - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) - public - payable - { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() - external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) - { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); - - return newEntryID; - } - - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); - } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) - external - registryInitialized - whenNotPaused - payable - { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); - } - - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ - - function getEntryMeta( - uint256 _entryID - ) - external - view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) - { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH - ); - } - - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) - external - view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore - ) - public - onlyAdmin - returns (address) - { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; - } - -} diff --git a/contracts/registry/RegistryPermissionControl.sol b/contracts/registry/RegistryPermissionControl.sol deleted file mode 100644 index dcc360f1..00000000 --- a/contracts/registry/RegistryPermissionControl.sol +++ /dev/null @@ -1,110 +0,0 @@ -pragma solidity 0.4.24; - -import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; - - -/** -* @title RegistryPermissionControl contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! -*/ -contract RegistryPermissionControl is Pausable { - - /* - * Storage - */ - - // @dev - address internal admin; - - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} - - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; - - /* - * Modifiers - */ - - // @dev Controls access granted only to admin - modifier onlyAdmin() { - require(msg.sender == admin); - _; - } - - // @dev Controls access to entry creation granted by setted permission group - modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { - require(msg.sender == admin); - } - _; - } - - /* - * View functions - */ - - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() - external - view - returns (address) - { - return admin; - } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() - external - view - returns (uint8) - { - return uint8(createEntryPermissionGroup); - } - - /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) - */ - function transferAdminRights( - address _newAdmin - ) - public - onlyOwner - whenNotPaused - { - require(_newAdmin != 0x0); - admin = _newAdmin; - } - - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ - function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup - ) - public - onlyAdmin - whenNotPaused - { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); - } - -} diff --git a/contracts/schemas/AppsSchema.sol b/contracts/schemas/AppsSchema.sol new file mode 100644 index 00000000..7bead536 --- /dev/null +++ b/contracts/schemas/AppsSchema.sol @@ -0,0 +1,108 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract AppsSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string name; + string manifest; + string extension; + string content; + string logo; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + name: "", + manifest: "", + extension: "", + content: "", + logo: "" + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + string, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].manifest, + entries[entryIndex].extension, + entries[entryIndex].content, + entries[entryIndex].logo + ); + } + + function updateEntry( + uint256 _entryID, + string _name, + string _manifest, + string _extension, + string _content, + string _logo + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + name: _name, + manifest: _manifest, + extension: _extension, + content: _content, + logo: _logo + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/schemas/FeaturesSchema.sol b/contracts/schemas/FeaturesSchema.sol new file mode 100644 index 00000000..e76c6a30 --- /dev/null +++ b/contracts/schemas/FeaturesSchema.sol @@ -0,0 +1,102 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract FeaturesSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string name; + string description; + string github; + string maintainer; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + name: "", + description: "", + github: "", + maintainer: "" + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].description, + entries[entryIndex].github, + entries[entryIndex].maintainer + ); + } + + function updateEntry( + uint256 _entryID, + string _name, + string _description, + string _github, + string _maintainer + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + name: _name, + description: _description, + github: _github, + maintainer: _maintainer + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/schemas/NodesSchema.sol b/contracts/schemas/NodesSchema.sol new file mode 100644 index 00000000..1c32daf3 --- /dev/null +++ b/contracts/schemas/NodesSchema.sol @@ -0,0 +1,109 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract NodesSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string name; + string addressNode; + string services; + string description; + string operating; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + name: "", + addressNode: "", + services: "", + description: "", + operating: "" + + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + string, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].addressNode, + entries[entryIndex].services, + entries[entryIndex].description, + entries[entryIndex].operating + ); + } + + function updateEntry( + uint256 _entryID, + string _name, + string _addressNode, + string _services, + string _description, + string _operating + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + name: _name, + addressNode: _addressNode, + services: _services, + description: _description, + operating: _operating + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/schemas/PortsSchema.sol b/contracts/schemas/PortsSchema.sol new file mode 100644 index 00000000..a1c6f438 --- /dev/null +++ b/contracts/schemas/PortsSchema.sol @@ -0,0 +1,96 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract PortsSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string portName; + uint16 portNumber; + string service; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + portName: "", + portNumber: uint16(0), + service: "" + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + uint16, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].portName, + entries[entryIndex].portNumber, + entries[entryIndex].service + ); + } + + function updateEntry( + uint256 _entryID, + string _portName, + uint16 _portNumber, + string _service + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + portName: _portName, + portNumber: _portNumber, + service: _service + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/schemas/TeamSchema.sol b/contracts/schemas/TeamSchema.sol new file mode 100644 index 00000000..debbc908 --- /dev/null +++ b/contracts/schemas/TeamSchema.sol @@ -0,0 +1,114 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract TeamSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string name; + address gitcoin; + address payouts; + string github; + string telegram; + string keybase; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + name: "", + gitcoin: address(0), + payouts: address(0), + github: "", + telegram: "", + keybase: "" + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + address, + address, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].gitcoin, + entries[entryIndex].payouts, + entries[entryIndex].github, + entries[entryIndex].telegram, + entries[entryIndex].keybase + ); + } + + function updateEntry( + uint256 _entryID, + string _name, + address _gitcoin, + address _payouts, + string _github, + string _telegram, + string _keybase + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + name: _name, + gitcoin: _gitcoin, + payouts: _payouts, + github: _github, + telegram: _telegram, + keybase: _keybase + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/schemas/TestSchema.sol b/contracts/schemas/TestSchema.sol new file mode 100644 index 00000000..8db5cff6 --- /dev/null +++ b/contracts/schemas/TestSchema.sol @@ -0,0 +1,136 @@ +pragma solidity 0.4.25; + +import "../common/ISchema.sol"; +import "../common/IDatabase.sol"; +import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; +import "openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol"; + + +contract TestSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 private constant INTERFACE_SCHEMA_EULER_ID = 0x153366ed; + + struct Entry { + string stringField; + address addressField; + uint256 uint256Field; + int256 int256Field; + } + + Entry[] public entries; + + mapping(string => bool) private stringFieldUniqIndex; + mapping(address => bool) private addressFieldUniqIndex; + mapping(uint256 => bool) private uint256FieldUniqIndex; + mapping(int256 => bool) private int256FieldUniqIndex; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_EULER_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + stringField: "", + addressField: address(0), + uint256Field: uint256(0), + int256Field: int256(0) + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + address, + uint256, + int256 + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].stringField, + entries[entryIndex].addressField, + entries[entryIndex].uint256Field, + entries[entryIndex].int256Field + ); + } + + function updateEntry( + uint256 _entryID, + string _stringField, + address _addressField, + uint256 _uint256Field, + int256 _int256Field + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + if (bytes(_stringField).length > 0) { + require(stringFieldUniqIndex[_stringField] == false); + stringFieldUniqIndex[_stringField] = true; + stringFieldUniqIndex[entries[entryIndex].stringField] = false; + } + + if (_addressField != address(0)) { + require(addressFieldUniqIndex[_addressField] == false); + addressFieldUniqIndex[_addressField] = true; + addressFieldUniqIndex[entries[entryIndex].addressField] = false; + } + + if (_uint256Field != uint256(0)) { + require(uint256FieldUniqIndex[_uint256Field] == false); + uint256FieldUniqIndex[_uint256Field] = true; + uint256FieldUniqIndex[entries[entryIndex].uint256Field] = false; + } + + if (_int256Field != int256(0)) { + require(int256FieldUniqIndex[_int256Field] == false); + int256FieldUniqIndex[_int256Field] = true; + int256FieldUniqIndex[entries[entryIndex].int256Field] = false; + } + + Entry memory m = (Entry( + { + stringField: _stringField, + addressField: _addressField, + uint256Field: _uint256Field, + int256Field: _int256Field + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + stringFieldUniqIndex[entries[_entryIndex].stringField] = false; + addressFieldUniqIndex[entries[_entryIndex].addressField] = false; + uint256FieldUniqIndex[entries[_entryIndex].uint256Field] = false; + int256FieldUniqIndex[entries[_entryIndex].int256Field] = false; + + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/contracts/tests/registry/RegistryPermissionControlTestContract.sol b/contracts/tests/registry/RegistryPermissionControlTestContract.sol deleted file mode 100644 index 6e4a3dc8..00000000 --- a/contracts/tests/registry/RegistryPermissionControlTestContract.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity 0.4.24; - -import "../../registry/RegistryPermissionControl.sol"; - - -contract RegistryPermissionControlTestContract is RegistryPermissionControl { - - uint public uintValue_; - - function testOnlyPermissionedToCreateEntries(uint _newUintValue) - external - onlyPermissionedToCreateEntries - { - uintValue_ = _newUintValue; - } -} diff --git a/distribution/app.js b/distribution/app.js deleted file mode 100644 index c1f11b91..00000000 --- a/distribution/app.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],[,function(e,t,n){(function(e){var t;t=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function f(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},V={};function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=G(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,i=e.match(Y);for(t=0,n=i.length;t=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var q=/\d/,W=/\d\d/,K=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,X=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=A(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return u(le,e)?le[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function me(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n68?1900:2e3)};var we,xe=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(ke(this,e,n),i.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ve(e,t,n){var r=7+t-n;return-((7+ze(e,0,r).getUTCDay()-t)%7)+r-1}function He(e,t,n,r,i){var a,f,s=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i);return s<=0?f=De(a=e-1)+s:s>De(e)?(a=e+1,f=s-De(e)):(a=e,f=s),{year:a,dayOfYear:f}}function $e(e,t,n){var r,i,a=Ve(e.year(),t,n),f=Math.floor((e.dayOfYear()-a-1)/7)+1;return f<1?r=f+Ge(i=e.year()-1,t,n):f>Ge(e.year(),t,n)?(r=f-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=f),{week:r,year:i}}function Ge(e,t,n){var r=Ve(e,t,n),i=Ve(e+1,t,n);return(De(e)-r+i)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),j("week",5),j("isoWeek",5),ce("w",J),ce("ww",J,W),ce("W",J),ce("WW",J,W),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=S(e)});H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=S(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Qe=oe;var Ze=oe;var Je=oe;function Xe(){function e(e,t){return t.length-e.length}var t,n,r,i,a,f=[],s=[],o=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),f.push(r),s.push(i),o.push(a),l.push(r),l.push(i),l.push(a);for(f.sort(e),s.sort(e),o.sort(e),l.sort(e),t=0;t<7;t++)s[t]=de(s[t]),o[t]=de(o[t]),l[t]=de(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,et),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+et.apply(this)+U(this.minutes(),2)}),H("hmmss",0,0,function(){return""+et.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),tt("a",!0),tt("A",!1),R("hour","h"),j("hour",13),ce("a",nt),ce("A",nt),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,W),ce("hh",J,W),ce("kk",J,W),ce("hmm",X),ce("hmmss",ee),ce("Hmm",X),ce("Hmmss",ee),me(["H","HH"],ve),me(["k","kk"],function(e,t,n){var r=S(e);t[ve]=24===r?0:r}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[ve]=S(e),m(n).bigHour=!0}),me("hmm",function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[Te]=S(e.substr(r)),m(n).bigHour=!0}),me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[Te]=S(e.substr(r,2)),t[Ie]=S(e.substr(i)),m(n).bigHour=!0}),me("Hmm",function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[Te]=S(e.substr(r))}),me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[Te]=S(e.substr(r,2)),t[Ie]=S(e.substr(i))});var rt,it=Ae("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:Pe,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ke,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},ft={},st={};function ot(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var r=null;if(!ft[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr;n(1324)("./"+t),ct(r)}catch(e){}return ft[t]}function ct(e,t){var n;return e&&((n=s(t)?dt(e):ut(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ut(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=ft[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ft[e]._config;else if(null!=t.parentLocale)if(null!=ft[t.parentLocale])r=ft[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ft[e]=new k(L(r,t)),st[e]&&st[e].forEach(function(e){ut(e.name,e.config)}),ct(e),ft[e]}return delete ft[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!a(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a0;){if(r=lt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&M(i,n,!0)>=t-1)break;t--}a++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[be]<1||n[be]>Ne(n[he],n[_e])?be:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[Te]||0!==n[Ie]||0!==n[Se])?ve:n[Te]<0||n[Te]>59?Te:n[Ie]<0||n[Ie]>59?Ie:n[Se]<0||n[Se]>999?Se:-1,m(e)._overflowDayOfYear&&(tbe)&&(t=be),m(e)._overflowWeeks&&-1===t&&(t=Me),m(e)._overflowWeekday&&-1===t&&(t=Ee),m(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function yt(e){var t,n,r,a,f,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[_e]&&function(e){var t,n,r,i,a,f,s,o;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,f=4,n=mt(t.GG,e._a[he],$e(At(),1,4).year),r=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(o=!0);else{a=e._locale._week.dow,f=e._locale._week.doy;var l=$e(At(),a,f);n=mt(t.gg,e._a[he],l.year),r=mt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(o=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(o=!0)):i=a}r<1||r>Ge(n,a,f)?m(e)._overflowWeeks=!0:null!=o?m(e)._overflowWeekday=!0:(s=He(n,r,i,a,f),e._a[he]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(f=mt(e._a[he],r[he]),(e._dayOfYear>De(f)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=ze(f,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[Te]&&0===e._a[Ie]&&0===e._a[Se]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?ze:function(e,t,n,r,i,a,f){var s=new Date(e,t,n,r,i,a,f);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tt=/^\/?Date\((\-?\d+)/i;function It(e){var t,n,r,i,a,f,s=e._i,o=gt.exec(s)||ht.exec(s);if(o){for(m(e).iso=!0,t=0,n=bt.length;t0&&m(e).unusedInput.push(f),s=s.slice(s.indexOf(n)+n.length),l+=n.length),V[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=o-l,s.length>0&&m(e).unusedInput.push(s),e._a[ve]<=12&&!0===m(e).bigHour&&e._a[ve]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[ve],e._meridiem),yt(e),pt(e)}else Dt(e);else It(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new v(pt(t)):(l(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()});function Nt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r(a=Ge(e,r,i))&&(t=a),function(e,t,n,r,i){var a=He(e,t,n,r,i),f=ze(a.year,0,a.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}.call(this,e,t,n,r,i))}H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",J,W),ce("gg",J,W),ce("GGGG",ne,Q),ce("gggg",ne,Q),ce("GGGGG",re,Z),ce("ggggg",re,Z),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=S(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),R("quarter","Q"),j("quarter",7),ce("Q",q),me("Q",function(e,t){t[_e]=3*(S(e)-1)}),H("D",["DD",2],"Do","date"),R("date","D"),j("date",9),ce("D",J),ce("DD",J,W),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],be),me("Do",function(e,t){t[be]=S(e.match(J)[0])});var fn=Ae("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),j("dayOfYear",4),ce("DDD",te),ce("DDDD",K),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),H("m",["mm",2],0,"minute"),R("minute","m"),j("minute",14),ce("m",J),ce("mm",J,W),me(["m","mm"],Te);var sn=Ae("Minutes",!1);H("s",["ss",2],0,"second"),R("second","s"),j("second",15),ce("s",J),ce("ss",J,W),me(["s","ss"],Ie);var on,ln=Ae("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),j("millisecond",16),ce("S",te,q),ce("SS",te,W),ce("SSS",te,K),on="SSSS";on.length<=9;on+="S")ce(on,ie);function cn(e,t){t[Se]=S(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")me(on,cn);var un=Ae("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var dn=v.prototype;function pn(e){return e}dn.add=Zt,dn.calendar=function(e,t){var n=e||At(),r=Ft(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",f=t&&(A(t[a])?t[a].call(this,n):t[a]);return this.format(f||this.localeData().calendar(a,this,At(n)))},dn.clone=function(){return new v(this)},dn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=O(t)){case"year":a=Xt(this,r)/12;break;case"month":a=Xt(this,r);break;case"quarter":a=Xt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:I(a)},dn.endOf=function(e){return void 0===(e=O(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||At(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(At(),e)},dn.to=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||At(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(At(),e)},dn.get=function(e){return A(this[e=O(e)])?this[e]():this},dn.invalidAt=function(){return m(this).overflow},dn.isAfter=function(e,t){var n=T(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=xe,dn.isLeapYear=function(){return Ce(this.year())},dn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=je,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},dn.date=fn,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=it,dn.minute=dn.minutes=sn,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=un,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Yt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Qt(this,Gt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:zt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Yt(fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Vt,dn.isUTC=Vt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=D("dates accessor is deprecated. Use date instead.",fn),dn.months=D("months accessor is deprecated. Use month instead",je),dn.years=D("years accessor is deprecated. Use year instead",xe),dn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=wt(e))._a){var t=e._isUTC?p(e._a):At(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var mn=k.prototype;function yn(e,t,n,r){var i=dt(),a=p().set(r,t);return i[n](a,e)}function gn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return yn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=yn(e,r,n,"month");return i}function hn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i,a=dt(),f=e?a._week.dow:0;if(null!=n)return yn(t,(n+f)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=yn(t,(i+f)%7,r,"day");return s}mn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn.invalidDate=function(){return this._invalidDate},mn.ordinal=function(e){return this._ordinal.replace("%d",e)},mn.preparse=pn,mn.postformat=pn,mn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},mn.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},mn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return function(e,t,n){var r,i,a,f=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,f))?i:null:-1!==(i=we.call(this._longMonthsParse,f))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,f))?i:-1!==(i=we.call(this._longMonthsParse,f))?i:null:-1!==(i=we.call(this._longMonthsParse,f))?i:-1!==(i=we.call(this._shortMonthsParse,f))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},mn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},mn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},mn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},mn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},mn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},mn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return function(e,t,n){var r,i,a,f=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,f))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,f))?i:null:-1!==(i=we.call(this._minWeekdaysParse,f))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,f))?i:-1!==(i=we.call(this._shortWeekdaysParse,f))?i:-1!==(i=we.call(this._minWeekdaysParse,f))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,f))?i:-1!==(i=we.call(this._weekdaysParse,f))?i:-1!==(i=we.call(this._minWeekdaysParse,f))?i:null:-1!==(i=we.call(this._minWeekdaysParse,f))?i:-1!==(i=we.call(this._weekdaysParse,f))?i:-1!==(i=we.call(this._shortWeekdaysParse,f))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},mn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",ct),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",dt);var _n=Math.abs;function bn(e,t,n,r){var i=Gt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function In(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var Mn=Sn("ms"),En=Sn("s"),Dn=Sn("m"),Cn=Sn("h"),wn=Sn("d"),xn=Sn("w"),An=Sn("M"),Ln=Sn("y");function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=kn("milliseconds"),Rn=kn("seconds"),On=kn("minutes"),Pn=kn("hours"),Bn=kn("days"),jn=kn("months"),Un=kn("years");var Yn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};var zn=Math.abs;function Vn(e){return(e>0)-(e<0)||+e}function Hn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);t=I((e=I(n/60))/60),n%=60,e%=60;var a=I(i/12),f=i%=12,s=r,o=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var d=u<0?"-":"",p=Vn(this._months)!==Vn(u)?"-":"",m=Vn(this._days)!==Vn(u)?"-":"",y=Vn(this._milliseconds)!==Vn(u)?"-":"";return d+"P"+(a?p+a+"Y":"")+(f?p+f+"M":"")+(s?m+s+"D":"")+(o||l||c?"T":"")+(o?y+o+"H":"")+(l?y+l+"M":"")+(c?y+c+"S":"")}var $n=Ot.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},$n.add=function(e,t){return bn(this,e,t,1)},$n.subtract=function(e,t){return bn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=O(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Tn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(In(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=Mn,$n.asSeconds=En,$n.asMinutes=Dn,$n.asHours=Cn,$n.asDays=wn,$n.asWeeks=xn,$n.asMonths=An,$n.asYears=Ln,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,i,a=this._milliseconds,f=this._days,s=this._months,o=this._data;return a>=0&&f>=0&&s>=0||a<=0&&f<=0&&s<=0||(a+=864e5*vn(In(s)+f),f=0,s=0),o.milliseconds=a%1e3,e=I(a/1e3),o.seconds=e%60,t=I(e/60),o.minutes=t%60,n=I(t/60),o.hours=n%24,s+=i=I(Tn(f+=I(n/24))),f-=vn(In(i)),r=I(s/12),s%=12,o.days=f,o.months=s,o.years=r,this},$n.clone=function(){return Gt(this)},$n.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=Nn,$n.seconds=Rn,$n.minutes=On,$n.hours=Pn,$n.days=Bn,$n.weeks=function(){return I(this.days()/7)},$n.months=jn,$n.years=Un,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),i=Yn(r.as("s")),a=Yn(r.as("m")),f=Yn(r.as("h")),s=Yn(r.as("d")),o=Yn(r.as("M")),l=Yn(r.as("y")),c=i<=Fn.ss&&["s",i]||i0,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Hn,$n.toString=Hn,$n.toJSON=Hn,$n.locale=en,$n.localeData=nn,$n.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),$n.lang=tn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ce("x",ae),ce("X",/[+-]?\d+(\.\d{1,3})?/),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),me("x",function(e,t,n){n._d=new Date(S(e))}),i.version="2.21.0",t=At,i.fn=dn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return At(1e3*e)},i.months=function(e,t){return gn(e,t,"months")},i.isDate=l,i.locale=ct,i.invalid=g,i.duration=Gt,i.isMoment=T,i.weekdays=function(e,t,n){return hn(e,t,n,"weekdays")},i.parseZone=function(){return At.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=Pt,i.monthsShort=function(e,t){return gn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return hn(e,t,n,"weekdaysMin")},i.defineLocale=ut,i.updateLocale=function(e,t){if(null!=t){var n,r,i=at;null!=(r=lt(e))&&(i=r._config),(n=new k(t=L(i,t))).parentLocale=ft[e],ft[e]=n,ct(e)}else null!=ft[e]&&(null!=ft[e].parentLocale?ft[e]=ft[e].parentLocale:null!=ft[e]&&delete ft[e]);return ft[e]},i.locales=function(){return C(ft)},i.weekdaysShort=function(e,t,n){return hn(e,t,n,"weekdaysShort")},i.normalizeUnits=O,i.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i},e.exports=t()}).call(t,n(62)(e))},function(e,t,n){"use strict";(function(e){var r=n(925),i=n(926),a=n(371);function f(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(f()=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|e}function m(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:h(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):h(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function h(e,t,n,r,i){var a,f=1,s=e.length,o=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;f=2,s/=2,o/=2,n/=2}function l(e,t){return 1===f?e[t]:e.readUInt16BE(t*f)}if(i){var c=-1;for(a=n;as&&(n=s-o),a=n;a>=0;a--){for(var u=!0,d=0;di&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var f=0;f>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+u<=n)switch(u){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(o=(31&l)<<6|63&a)>127&&(c=o);break;case 3:a=e[i+1],f=e[i+2],128==(192&a)&&128==(192&f)&&(o=(15&l)<<12|(63&a)<<6|63&f)>2047&&(o<55296||o>57343)&&(c=o);break;case 4:a=e[i+1],f=e[i+2],s=e[i+3],128==(192&a)&&128==(192&f)&&128==(192&s)&&(o=(15&l)<<18|(63&a)<<12|(63&f)<<6|63&s)>65535&&o<1114112&&(c=o)}null===c?(c=65533,u=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=u}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return w(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,f=n-t,s=Math.min(a,f),l=this.slice(r,i),c=e.slice(t,n),u=0;ui)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,a){return a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,a){return a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}o.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||k(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=0,f=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=n-1,f=1,s=0;for(this[t+a]=255&e;--a>=0&&(f*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/f>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(f+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n(20))},function(e,t,n){var r=function(e,t){return function(){var n=Array.prototype.slice.call(arguments),r=n.length-1,i=n&&n.length>0?n[r]:null;return("function"==typeof i?i:null)?e.apply(t,n):new Promise(function(r,i){n.push(function(e,t){if(e)return i(e);r(t)}),e.apply(t,n)})}};e.exports=function(e,t){t=t||{};var n=Object.prototype.toString.call(e);if("[object Object]"===n||"[object Array]"===n){var i=t.replace?e:{};for(var a in e)e.hasOwnProperty(a)&&(i[a]=r(e[a]));return i}return r(e,t.context||e)}},function(e,t){e.exports={options:{usePureJavaScript:!1}}},,,function(e,t,n){var r=n(2),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function f(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=f),a(i,f),f.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},f.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},f.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},f.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r;r=function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},a=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},f=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||o).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=f<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new f.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new f.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},u=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),o=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*o,i);if(o){for(var c=0;c15?(i=Date.now(),o(e)):(n.push(e),1===n.length&&f.setAttribute("a",a=!a))}}s.nextTick=s.setImmediate}(),s.isNodejs=void 0!==t&&t.versions&&t.versions.node,s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=l,s.ByteStringBuffer=l;s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var n=this.data;t>0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){o(t);var n="";do{t-=8,n+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(n)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=e)return this;t=Math.max(t||this.growSize,e);var n=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(n),this.data=new DataView(r.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var n=0;n>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){o(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return o(t),this.accommodate(t/8),e<0&&(e+=2<0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return n},s.xorBytes=function(e,t,n){for(var r="",i="",a="",f=0,s=0;n>0;--n,++f)i=e.charCodeAt(f)^t.charCodeAt(f),s>=10&&(r+=a,a="",s=0),a+=String.fromCharCode(i),++s;return r+=a},s.hexToBytes=function(e){var t="",n=0;for(!0&e.length&&(n=1,t+=String.fromCharCode(parseInt(e[0],16)));n>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],d="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){for(var n,r,i,a="",f="",s=0;s>2),a+=c.charAt((3&n)<<4|r>>4),isNaN(r)?a+="==":(a+=c.charAt((15&r)<<2|i>>6),a+=isNaN(i)?"=":c.charAt(63&i)),t&&a.length>t&&(f+=a.substr(0,t)+"\r\n",a=a.substr(t));return f+=a},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,n,r,i,a="",f=0;f>4),64!==r&&(a+=String.fromCharCode((15&n)<<4|r>>2),64!==i&&(a+=String.fromCharCode((3&r)<<6|i)));return a},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:f.encode,decode:f.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(e.length));for(var i=n=n||0,a=0;a>2),a+=c.charAt((3&n)<<4|r>>4),isNaN(r)?a+="==":(a+=c.charAt((15&r)<<2|i>>6),a+=isNaN(i)?"=":c.charAt(63&i)),t&&a.length>t&&(f+=a.substr(0,t)+"\r\n",a=a.substr(t));return f+=a},s.binary.base64.decode=function(e,t,n){var r,i,a,f,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var o=0,l=n=n||0;o>4,64!==a&&(s[l++]=(15&i)<<4|a>>2,64!==f&&(s[l++]=(3&a)<<6|f));return t?l-n:s.subarray(0,l)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,d,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,d,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,n){e=s.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length));for(var i=n=n||0,a=0;a0?(i=n[r].substring(0,f),a=n[r].substring(f+1)):(i=n[r],a=null),i in t||(t[i]=[]),i in Object.prototype||null===a||t[i].push(unescape(a))}return t};return void 0===e?(null===v&&(v="undefined"!=typeof window&&window.location&&window.location.search?n(window.location.search.substring(1)):{}),t=v):t=n(e),t},s.parseFragment=function(e){var t=e,n="",r=e.indexOf("?");r>0&&(t=e.substring(0,r),n=e.substring(r+1));var i=t.split("/");return i.length>0&&""===i[0]&&i.shift(),{pathString:t,queryString:n,path:i,query:""===n?{}:s.getQueryVariables(n)}},s.makeRequest=function(e){var t=s.parseFragment(e),n={path:t.pathString,query:t.queryString,getPath:function(e){return void 0===e?t.path:t.path[e]},getQuery:function(e,n){var r;return void 0===e?r=t.query:(r=t.query[e])&&void 0!==n&&(r=r[n]),r},getQueryLast:function(e,t){var r=n.getQuery(e);return r?r[r.length-1]:t}};return n},s.makeLink=function(e,t,n){e=jQuery.isArray(e)?e.join("/"):e;var r=jQuery.param(t||{});return n=n||"",e+(r.length>0?"?"+r:"")+(n.length>0?"#"+n:"")},s.setPath=function(e,t,n){if("object"==typeof e&&null!==e)for(var r=0,i=t.length;r0&&a.push(n),f=r.lastIndex;var s=t[0][1];switch(s){case"s":case"o":i");break;case"%":a.push("%");break;default:a.push("<%"+s+"?>")}}return a.push(e.substring(f)),a.join("")},s.formatNumber=function(e,t,n,r){var i=e,a=isNaN(t=Math.abs(t))?2:t,f=void 0===n?",":n,s=void 0===r?".":r,o=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(a),10)+"",c=l.length>3?l.length%3:0;return o+(c?l.substr(0,c)+s:"")+l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+s)+(a?f+Math.abs(i-l).toFixed(a).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes"},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(4!==(e=e.split(".")).length)return null;for(var t=s.createBuffer(),n=0;nn[r].end-n[r].start&&(r=n.length-1)):n.push({start:o,end:o})}t.push(a)}if(n.length>0){var l=n[r];l.end-l.start>0&&(t.splice(l.start,l.end-l.start+1,""),0===l.start&&t.unshift(""),7===l.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"==typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"==typeof Blob)return s.cores=2,t(null,s.cores);var n=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){for(var t=Date.now(),n=t+4;Date.now()s.st&&i.sti.st&&s.st{const t=r();if("function"==typeof e)return e;if("object"==typeof e)return i(e);if("string"==typeof e){const n=a(e).nodeAddress();return t.host=n.address,t.port=n.port,i(t)}throw new Error("Argument must be a send function or a config object.")})},,,,,,,,,function(e,t,n){(t=e.exports=n(380)).Stream=t,t.Readable=t,t.Writable=n(260),t.Duplex=n(91),t.Transform=n(383),t.PassThrough=n(1004)},,function(e,t,n){var r=n(135),i=n(136),a=n(955),f={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},s=function(e,t,n){return new Array(t-e.length+1).join(n||"0")+e},o=function(e){e=a.encode(e);for(var t="",n=0;n7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},g=function(e){return e instanceof r||e&&e.constructor&&"BigNumber"===e.constructor.name},h=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},_=function(e){return"boolean"==typeof e};e.exports={padLeft:s,padRight:function(e,t,n){return e+new Array(t-e.length+1).join(n||"0")},toHex:u,toDecimal:function(e){return p(e).toNumber()},fromDecimal:c,toUtf8:function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7?n+=e[r].toUpperCase():n+=e[r];return n},isFunction:function(e){return"function"==typeof e},isString:h,isObject:function(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e},isBoolean:_,isArray:function(e){return Array.isArray(e)},isJson:function(e){try{return!!JSON.parse(e)}catch(e){return!1}},isBloom:function(e){return!(!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},isTopic:function(e){return!(!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}}},function(e,t,n){var r;r=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,f=r.BufferedBlockAlgorithm,s=n.enc,o=(s.Utf8,s.Base64),l=n.algo.EvpKDF,c=r.Cipher=f.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:h}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),u=(r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),d=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=u.CBC=function(){var e=d.extend();function n(e,n,r){var i=this._iv;if(i){var a=i;this._iv=t}else a=this._prevBlock;for(var f=0;f>>2];e.sigBytes-=t}},y=(r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:m}),reset:function(){c.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=a.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(o)},parse:function(e){var t=o.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=a.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:r})}},h=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),f=i.cfg;return y.create({ciphertext:a,key:n,iv:f.iv,algorithm:e,mode:f.mode,padding:f.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(n.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var i=l.create({keySize:t+n}).compute(e,r),f=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,y.create({key:i,iv:f,salt:r})}},b=r.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var a=h.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,h.decrypt.call(this,e,t,i.key,r)}})}()},e.exports=r(n(10))},,function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,f,s){if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,f,s],c=0;(o=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},,,,,,,,,function(e,t,n){e.exports=n(899)()},function(e,t,n){e.exports={encode:n(995),decode:n(996),encodingLength:n(997)}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(f=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(f))))+" */"),a=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(a).concat([i]).join("\n")}var f;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");return e.attrs.type="text/css",h(t,e.attrs),m(e,t),t}function h(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function _(e,t){var n,r,i,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var f=l++;n=o||(o=g(t)),r=T.bind(null,n,f,!1),i=T.bind(null,n,f,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",h(t,e.attrs),m(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||a)&&(r=u(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var f=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(f),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=f()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],i=0;it(null,e)),e=>{e&&t(e)})}},function(e,t,n){var r=n(4);n(97),n(445),n(446),n(11),r.random&&r.random.getBytes?e.exports=r.random:function(t){var n={},i=new Array(4),a=r.util.createBuffer();function f(){var e=r.prng.create(n);return e.getBytes=function(t,n){return e.generate(t,n)},e.getBytesSync=function(t){return e.generate(t)},e}n.formatKey=function(e){var t=r.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),r.aes._expandKey(e,!1)},n.formatSeed=function(e){var t=r.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),e},n.cipher=function(e,t){return r.aes._updateBlock(e,t,i,!1),a.putInt32(i[0]),a.putInt32(i[1]),a.putInt32(i[2]),a.putInt32(i[3]),a.getBytes()},n.increment=function(e){return++e[3],e},n.md=r.md.sha256;var s=f(),o=null;if("undefined"!=typeof window){var l=window.crypto||window.msCrypto;l&&l.getRandomValues&&(o=function(e){return l.getRandomValues(e)})}if(r.options.usePureJavaScript||!r.util.isNodejs&&!o){if("undefined"==typeof window||window.document,s.collectInt(+new Date,32),"undefined"!=typeof navigator){var c="";for(var u in navigator)try{"string"==typeof navigator[u]&&(c+=navigator[u])}catch(e){}s.collect(c),c=null}t&&(t().mousemove(function(e){s.collectInt(e.clientX,16),s.collectInt(e.clientY,16)}),t().keypress(function(e){s.collectInt(e.charCode,8)}))}if(r.random)for(var u in s)r.random[u]=s[u];else r.random=s;r.random.createInstance=f,e.exports=r.random}("undefined"!=typeof jQuery?jQuery:null)},,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,function(e,t,n){"use strict";var r=n(12),i=n(333);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,a)},function(e,t,n){var r=n(49),i=n(376),a=function(e){this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter};a.prototype.isType=function(e){throw"this method should be overrwritten for type "+e},a.prototype.staticPartLength=function(e){return(this.nestedTypes(e)||["[1]"]).map(function(e){return parseInt(e.slice(1,-1),10)||1}).reduce(function(e,t){return e*t},32)},a.prototype.isDynamicArray=function(e){var t=this.nestedTypes(e);return!!t&&!t[t.length-1].match(/[0-9]{1,}/g)},a.prototype.isStaticArray=function(e){var t=this.nestedTypes(e);return!!t&&!!t[t.length-1].match(/[0-9]{1,}/g)},a.prototype.staticArrayLength=function(e){var t=this.nestedTypes(e);return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1},a.prototype.nestedName=function(e){var t=this.nestedTypes(e);return t?e.substr(0,e.length-t[t.length-1].length):e},a.prototype.isDynamicType=function(){return!1},a.prototype.nestedTypes=function(e){return e.match(/(\[[0-9]*\])/g)},a.prototype.encode=function(e,t){var n,i,a,f=this;return this.isDynamicArray(t)?(n=e.length,i=f.nestedName(t),(a=[]).push(r.formatInputInt(n).encode()),e.forEach(function(e){a.push(f.encode(e,i))}),a):this.isStaticArray(t)?function(){for(var n=f.staticArrayLength(t),r=f.nestedName(t),i=[],a=0;a 3 bytes.");let r=a.decode(n);if(!t.isValidCode(r))throw new Error(`multihash unknown function code: 0x${r.toString(16)}`);n=n.slice(a.decode.bytes);let f=a.decode(n);if(f<1)throw new Error(`multihash invalid length: 0x${f.toString(16)}`);if((n=n.slice(a.decode.bytes)).length!==f)throw new Error(`multihash length inconsistent: 0x${n.toString("hex")}`);return{code:r,name:i.codes[r],length:f,digest:n}},t.encode=function(n,r,i){if(!n||!r)throw new Error("multihash encode requires at least two args: digest, code");const f=t.coerceCode(r);if(!e.isBuffer(n))throw new Error("digest should be a Buffer");if(null==i&&(i=n.length),i&&n.length!==i)throw new Error("digest length should be equal to specified length.");return e.concat([e.from(a.encode(f)),e.from(a.encode(i)),n])},t.coerceCode=function(e){let n=e;if("string"==typeof e){if(!i.names[e])throw new Error(`Unrecognized hash function named: ${e}`);n=i.names[e]}if("number"!=typeof n)throw new Error(`Hash function code should be a number. Got: ${n}`);if(!i.codes[n]&&!t.isAppCode(n))throw new Error(`Unrecognized function code: ${n}`);return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!i.codes[e]},t.validate=f,t.prefix=function(e){return f(e),e.slice(0,2)}}).call(t,n(2).Buffer)},function(e,t,n){var r=n(4);n(11),n(98);var i=e.exports=r.asn1=r.asn1||{};function a(e,t,n){if(n>t){var r=new Error("Too few bytes to parse DER.");throw r.available=e.length(),r.remaining=t,r.requested=n,r}}i.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},i.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},i.create=function(e,t,n,a,f){if(r.util.isArray(a)){for(var s=[],o=0;on){if(s.strict){var p=new Error("Too few bytes to read ASN.1 value.");throw p.available=t.length(),p.remaining=n,p.requested=d,p}d=n}var m;var y;var g=32==(32&l);if(g)if(m=[],void 0===d)for(;;){if(a(t,n,2),t.bytes(2)===String.fromCharCode(0,0)){t.getBytes(2),n-=2;break}o=t.length(),m.push(e(t,n,r+1,s)),n-=o-t.length()}else for(;d>0;)o=t.length(),m.push(e(t,d,r+1,s)),n-=o-t.length(),d-=o-t.length();void 0===m&&c===i.Class.UNIVERSAL&&u===i.Type.BITSTRING&&(y=t.bytes(d));if(void 0===m&&s.decodeBitStrings&&c===i.Class.UNIVERSAL&&u===i.Type.BITSTRING&&d>1){var h=t.read,_=n,b=0;if(u===i.Type.BITSTRING&&(a(t,n,1),b=t.getByte(),n--),0===b)try{o=t.length();var v={verbose:s.verbose,strict:!0,decodeBitStrings:!0},T=e(t,n,r+1,v),I=o-t.length();n-=I,u==i.Type.BITSTRING&&I++;var S=T.tagClass;I!==d||S!==i.Class.UNIVERSAL&&S!==i.Class.CONTEXT_SPECIFIC||(m=[T])}catch(e){}void 0===m&&(t.read=h,n=_)}if(void 0===m){if(void 0===d){if(s.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");d=n}if(u===i.Type.BMPSTRING)for(m="";d>0;d-=2)a(t,n,2),m+=String.fromCharCode(t.getInt16()),n-=2;else m=t.getBytes(d)}var M=void 0===y?null:{bitStringContents:y};return i.create(c,u,g,m,M)}(e,e.length(),0,t)},i.toDer=function(e){var t=r.util.createBuffer(),n=e.tagClass|e.type,a=r.util.createBuffer(),f=!1;if("bitStringContents"in e&&(f=!0,e.original&&(f=i.equals(e,e.original))),f)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?n|=32:a.putByte(0);for(var s=0;s1&&(0===e.value.charCodeAt(0)&&0==(128&e.value.charCodeAt(1))||255===e.value.charCodeAt(0)&&128==(128&e.value.charCodeAt(1)))?a.putBytes(e.value.substr(1)):a.putBytes(e.value);if(t.putByte(n),a.length()<=127)t.putByte(127&a.length());else{var o=a.length(),l="";do{l+=String.fromCharCode(255&o),o>>>=8}while(o>0);t.putByte(128|l.length);for(s=l.length-1;s>=0;--s)t.putByte(l.charCodeAt(s))}return t.putBuffer(a),t},i.oidToDer=function(e){var t,n,i,a,f=e.split("."),s=r.util.createBuffer();s.putByte(40*parseInt(f[0],10)+parseInt(f[1],10));for(var o=2;o>>=7,t||(a|=128),n.push(a),t=!1}while(i>0);for(var l=n.length-1;l>=0;--l)s.putByte(n[l])}return s},i.derToOid=function(e){var t;"string"==typeof e&&(e=r.util.createBuffer(e));var n=e.getByte();t=Math.floor(n/40)+"."+n%40;for(var i=0;e.length()>0;)i<<=7,128&(n=e.getByte())?i+=127&n:(t+="."+(i+n),i=0);return t},i.utcTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,2),10);n=n>=50?1900+n:2e3+n;var r=parseInt(e.substr(2,2),10)-1,i=parseInt(e.substr(4,2),10),a=parseInt(e.substr(6,2),10),f=parseInt(e.substr(8,2),10),s=0;if(e.length>11){var o=e.charAt(10),l=10;"+"!==o&&"-"!==o&&(s=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(n,r,i),t.setUTCHours(a,f,s,0),l&&("+"===(o=e.charAt(l))||"-"===o)){var c=60*parseInt(e.substr(l+1,2),10)+parseInt(e.substr(l+4,2),10);c*=6e4,"+"===o?t.setTime(+t-c):t.setTime(+t+c)}return t},i.generalizedTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,4),10),r=parseInt(e.substr(4,2),10)-1,i=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),f=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),o=0,l=0,c=!1;"Z"===e.charAt(e.length-1)&&(c=!0);var u=e.length-5,d=e.charAt(u);"+"!==d&&"-"!==d||(l=60*parseInt(e.substr(u+1,2),10)+parseInt(e.substr(u+4,2),10),l*=6e4,"+"===d&&(l*=-1),c=!0);return"."===e.charAt(14)&&(o=1e3*parseFloat(e.substr(14),10)),c?(t.setUTCFullYear(n,r,i),t.setUTCHours(a,f,s,o),t.setTime(+t+l)):(t.setFullYear(n,r,i),t.setHours(a,f,s,o)),t},i.dateToUtcTime=function(e){if("string"==typeof e)return e;var t="",n=[];n.push((""+e.getUTCFullYear()).substr(2)),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var r=0;r=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var n=new Error("Integer too large; max is 32-bits.");throw n.integer=e,n},i.derToInteger=function(e){"string"==typeof e&&(e=r.util.createBuffer(e));var t=8*e.length();if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},i.validate=function(e,t,n,a){var f=!1;if(e.tagClass!==t.tagClass&&void 0!==t.tagClass||e.type!==t.type&&void 0!==t.type)a&&(e.tagClass!==t.tagClass&&a.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&a.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));else if(e.constructed===t.constructed||void 0===t.constructed){if(f=!0,t.value&&r.util.isArray(t.value))for(var s=0,o=0;f&&o0&&(a+="\n");for(var f="",o=0;o1?a+="0x"+r.util.bytesToHex(e.value.slice(1)):a+="(none)",e.value.length>0){var d=e.value.charCodeAt(0);1==d?a+=" (1 unused bit shown)":d>1&&(a+=" ("+d+" unused bits shown)")}}else e.type===i.Type.OCTETSTRING?(s.test(e.value)||(a+="("+e.value+") "),a+="0x"+r.util.bytesToHex(e.value)):e.type===i.Type.UTF8?a+=r.util.decodeUtf8(e.value):e.type===i.Type.PRINTABLESTRING||e.type===i.Type.IA5String?a+=e.value:s.test(e.value)?a+="0x"+r.util.bytesToHex(e.value):0===e.value.length?a+="[null]":a+=e.value}return a}},function(e,t,n){var r=n(4);e.exports=r.md=r.md||{},r.md.algorithms=r.md.algorithms||{}},,,,function(e,t,n){"use strict";t.c=s,t.a=o,t.b=function(e){s(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]);return e};var r=n(12),i=n.n(r),a=Object.assign||function(e){for(var t=1;t1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},a.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,function(n,r){t.callback(n,e.formatOutput(r))}):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},a.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=a},function(e,t,n){"use strict";var r=n(181),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(138);a.inherits=n(9);var f=n(380),s=n(260);a.inherits(u,f);for(var o=i(s.prototype),l=0;ll(e,f),ipnsUrl:e=>c(e,f),url:e=>l(e,f)||c(e,f),urlPattern:f,ipfsPath:e=>l(e,s),ipnsPath:e=>c(e,s),path:e=>l(e,s)||c(e,s),pathPattern:s,urlOrPath:e=>l(e,f)||c(e,f)||l(e,s)||c(e,s)}}).call(t,n(2).Buffer)},function(e,t,n){(function(e,r){var i=/%[sdj%]/g;t.format=function(e){if(!h(e)){for(var t=[],n=0;n=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),o=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),c(r,e,r.depth)}function o(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return h(i)||(i=c(e,i,r)),i}var a=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(h(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(a)return a;var f=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(f);if(e.showHidden&&(f=Object.getOwnPropertyNames(n)),I(n)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return u(n);if(0===f.length){if(S(n)){var o=n.name?": "+n.name:"";return e.stylize("[Function"+o+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(I(n))return u(n)}var l,v="",M=!1,E=["{","}"];(p(n)&&(M=!0,E=["[","]"]),S(n))&&(v=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(v=" "+RegExp.prototype.toString.call(n)),T(n)&&(v=" "+Date.prototype.toUTCString.call(n)),I(n)&&(v=" "+u(n)),0!==f.length||M&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=M?function(e,t,n,r,i){for(var a=[],f=0,s=t.length;f=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,v,E)):E[0]+v+E[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,a){var f,s,o;if((o=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=o.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):o.set&&(s=e.stylize("[Setter]","special")),C(r,i)||(f="["+i+"]"),s||(e.seen.indexOf(o.value)<0?(s=y(n)?c(e,o.value,null):c(e,o.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(f)){if(a&&i.match(/^\d+$/))return s;(f=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=e.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=e.stylize(f,"string"))}return f+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function h(e){return"string"==typeof e}function _(e){return void 0===e}function b(e){return v(e)&&"[object RegExp]"===M(e)}function v(e){return"object"==typeof e&&null!==e}function T(e){return v(e)&&"[object Date]"===M(e)}function I(e){return v(e)&&("[object Error]"===M(e)||e instanceof Error)}function S(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(_(a)&&(a=Object({NODE_ENV:"production"}).NODE_DEBUG||""),e=e.toUpperCase(),!f[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=r.pid;f[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else f[e]=function(){};return f[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=h,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=b,t.isObject=v,t.isDate=T,t.isError=I,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1054);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),D[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(9),t._extend=function(e,t){if(!t||!v(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n(20),n(25))},function(e,t,n){(function(t){var r=n(51),i=n(267),a=n(1055),f=function(){},s=/^v?\.0/.test(t.version),o=function(e){return"function"==typeof e},l=function(e,t,n,l){l=r(l);var c=!1;e.on("close",function(){c=!0}),i(e,{readable:t,writable:n},function(e){if(e)return l(e);c=!0,l()});var u=!1;return function(t){if(!c&&!u)return u=!0,function(e){return!!s&&!!a&&(e instanceof(a.ReadStream||f)||e instanceof(a.WriteStream||f))&&o(e.close)}(e)?e.close(f):function(e){return e.setHeader&&o(e.abort)}(e)?e.abort():o(e.destroy)?e.destroy():void l(t||new Error("stream was destroyed"))}},c=function(e){e()},u=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=o(t[t.length-1]||f)&&t.pop()||f;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map(function(i,a){var f=a0,function(t){e||(e=t),t&&r.forEach(c),f||(r.forEach(c),n(e))})});return t.reduce(u)}}).call(t,n(25))},function(e,t,n){"use strict";(function(r){const i=n(69),a=n(189);(t=e.exports=class{constructor(e,t,n){a(n,"A link requires a multihash to point to"),this._name=e,this._size=t,"string"==typeof n?this._multihash=i.fromB58String(n):r.isBuffer(n)&&(this._multihash=n)}toString(){return`DAGLink <${i.toB58String(this.multihash)} - name: "${this.name}", size: ${this.size}>`}toJSON(){return{name:this.name,size:this.size,multihash:i.toB58String(this._multihash)}}get name(){return this._name}set name(e){throw new Error("Can't set property: 'name' is immutable")}get size(){return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}get multihash(){return this._multihash}set multihash(e){throw new Error("Can't set property: 'multihash' is immutable")}}).create=n(1176),t.util=n(1177)}).call(t,n(2).Buffer)},function(e,t,n){var r=n(7).Buffer,i=n(276).Transform,a=n(139).StringDecoder;function f(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(9)(f,i),f.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},f.prototype.setAutoPadding=function(){},f.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},f.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},f.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},f.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},f.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},f.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},f.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=f},function(e,t,n){var r=n(4);function i(e,t){r.cipher.registerAlgorithm(e,function(){return new r.aes.Algorithm(e,t)})}n(287),n(440),n(11),e.exports=r.aes=r.aes||{},r.aes.startEncrypting=function(e,t,n,r){var i=y({key:e,output:n,decrypt:!1,mode:r});return i.start(t),i},r.aes.createEncryptionCipher=function(e,t){return y({key:e,output:null,decrypt:!1,mode:t})},r.aes.startDecrypting=function(e,t,n,r){var i=y({key:e,output:n,decrypt:!0,mode:r});return i.start(t),i},r.aes.createDecryptionCipher=function(e,t){return y({key:e,output:null,decrypt:!0,mode:t})},r.aes.Algorithm=function(e,t){c||d();var n=this;n.name=e,n.mode=new t({blockSize:16,cipher:{encrypt:function(e,t){return m(n._w,e,t,!1)},decrypt:function(e,t){return m(n._w,e,t,!0)}}}),n._init=!1},r.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t,n=e.key;if("string"!=typeof n||16!==n.length&&24!==n.length&&32!==n.length){if(r.util.isArray(n)&&(16===n.length||24===n.length||32===n.length)){t=n,n=r.util.createBuffer();for(var i=0;i>>=2;for(i=0;i>8^255&u^99,a[y]=u,f[u]=y,p=(d=e[u])<<24^u<<16^u<<8^u^d,m=((n=e[y])^(r=e[n])^(i=e[r]))<<24^(y^i)<<16^(y^r^i)<<8^y^n^i;for(var h=0;h<4;++h)o[h][y]=p,l[h][u]=m,p=p<<24|p>>>8,m=m<<24|m>>>8;0===y?y=g=1:(y=n^e[e[e[n^i]]],g^=e[e[g]])}}function p(e,t){for(var n,r=e.slice(0),i=1,f=r.length,o=u*(f+6+1),c=f;c>>16&255]<<24^a[n>>>8&255]<<16^a[255&n]<<8^a[n>>>24]^s[i]<<24,i++):f>6&&c%f==4&&(n=a[n>>>24]<<24^a[n>>>16&255]<<16^a[n>>>8&255]<<8^a[255&n]),r[c]=r[c-f]^n;if(t){for(var d,p=l[0],m=l[1],y=l[2],g=l[3],h=r.slice(0),_=(c=0,(o=r.length)-u);c>>24]]^m[a[d>>>16&255]]^y[a[d>>>8&255]]^g[a[255&d]];r=h}return r}function m(e,t,n,r){var i,s,c,u,d,p,m,y,g,h,_,b,v=e.length/4-1;r?(i=l[0],s=l[1],c=l[2],u=l[3],d=f):(i=o[0],s=o[1],c=o[2],u=o[3],d=a),p=t[0]^e[0],m=t[r?3:1]^e[1],y=t[2]^e[2],g=t[r?1:3]^e[3];for(var T=3,I=1;I>>24]^s[m>>>16&255]^c[y>>>8&255]^u[255&g]^e[++T],_=i[m>>>24]^s[y>>>16&255]^c[g>>>8&255]^u[255&p]^e[++T],b=i[y>>>24]^s[g>>>16&255]^c[p>>>8&255]^u[255&m]^e[++T],g=i[g>>>24]^s[p>>>16&255]^c[m>>>8&255]^u[255&y]^e[++T],p=h,m=_,y=b;n[0]=d[p>>>24]<<24^d[m>>>16&255]<<16^d[y>>>8&255]<<8^d[255&g]^e[++T],n[r?3:1]=d[m>>>24]<<24^d[y>>>16&255]<<16^d[g>>>8&255]<<8^d[255&p]^e[++T],n[2]=d[y>>>24]<<24^d[g>>>16&255]<<16^d[p>>>8&255]<<8^d[255&m]^e[++T],n[r?1:3]=d[g>>>24]<<24^d[p>>>16&255]<<16^d[m>>>8&255]<<8^d[255&y]^e[++T]}function y(e){var t,n="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?r.cipher.createDecipher(n,e.key):r.cipher.createCipher(n,e.key)).start;return t.start=function(e,n){var a=null;n instanceof r.util.ByteBuffer&&(a=n,n={}),(n=n||{}).output=a,n.iv=e,i.call(t,n)},t}},function(e,t,n){var r=n(4);r.pki=r.pki||{};var i=e.exports=r.pki.oids=r.oids=r.oids||{};function a(e,t){i[e]=t,i[t]=e}function f(e,t){i[e]=t}a("1.2.840.113549.1.1.1","rsaEncryption"),a("1.2.840.113549.1.1.4","md5WithRSAEncryption"),a("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),a("1.2.840.113549.1.1.7","RSAES-OAEP"),a("1.2.840.113549.1.1.8","mgf1"),a("1.2.840.113549.1.1.9","pSpecified"),a("1.2.840.113549.1.1.10","RSASSA-PSS"),a("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),a("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),a("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),a("1.2.840.10040.4.3","dsa-with-sha1"),a("1.3.14.3.2.7","desCBC"),a("1.3.14.3.2.26","sha1"),a("2.16.840.1.101.3.4.2.1","sha256"),a("2.16.840.1.101.3.4.2.2","sha384"),a("2.16.840.1.101.3.4.2.3","sha512"),a("1.2.840.113549.2.5","md5"),a("1.2.840.113549.1.7.1","data"),a("1.2.840.113549.1.7.2","signedData"),a("1.2.840.113549.1.7.3","envelopedData"),a("1.2.840.113549.1.7.4","signedAndEnvelopedData"),a("1.2.840.113549.1.7.5","digestedData"),a("1.2.840.113549.1.7.6","encryptedData"),a("1.2.840.113549.1.9.1","emailAddress"),a("1.2.840.113549.1.9.2","unstructuredName"),a("1.2.840.113549.1.9.3","contentType"),a("1.2.840.113549.1.9.4","messageDigest"),a("1.2.840.113549.1.9.5","signingTime"),a("1.2.840.113549.1.9.6","counterSignature"),a("1.2.840.113549.1.9.7","challengePassword"),a("1.2.840.113549.1.9.8","unstructuredAddress"),a("1.2.840.113549.1.9.14","extensionRequest"),a("1.2.840.113549.1.9.20","friendlyName"),a("1.2.840.113549.1.9.21","localKeyId"),a("1.2.840.113549.1.9.22.1","x509Certificate"),a("1.2.840.113549.1.12.10.1.1","keyBag"),a("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),a("1.2.840.113549.1.12.10.1.3","certBag"),a("1.2.840.113549.1.12.10.1.4","crlBag"),a("1.2.840.113549.1.12.10.1.5","secretBag"),a("1.2.840.113549.1.12.10.1.6","safeContentsBag"),a("1.2.840.113549.1.5.13","pkcs5PBES2"),a("1.2.840.113549.1.5.12","pkcs5PBKDF2"),a("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),a("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),a("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),a("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),a("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),a("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),a("1.2.840.113549.2.7","hmacWithSHA1"),a("1.2.840.113549.2.8","hmacWithSHA224"),a("1.2.840.113549.2.9","hmacWithSHA256"),a("1.2.840.113549.2.10","hmacWithSHA384"),a("1.2.840.113549.2.11","hmacWithSHA512"),a("1.2.840.113549.3.7","des-EDE3-CBC"),a("2.16.840.1.101.3.4.1.2","aes128-CBC"),a("2.16.840.1.101.3.4.1.22","aes192-CBC"),a("2.16.840.1.101.3.4.1.42","aes256-CBC"),a("2.5.4.3","commonName"),a("2.5.4.5","serialName"),a("2.5.4.6","countryName"),a("2.5.4.7","localityName"),a("2.5.4.8","stateOrProvinceName"),a("2.5.4.10","organizationName"),a("2.5.4.11","organizationalUnitName"),a("2.16.840.1.113730.1.1","nsCertType"),f("2.5.29.1","authorityKeyIdentifier"),f("2.5.29.2","keyAttributes"),f("2.5.29.3","certificatePolicies"),f("2.5.29.4","keyUsageRestriction"),f("2.5.29.5","policyMapping"),f("2.5.29.6","subtreesConstraint"),f("2.5.29.7","subjectAltName"),f("2.5.29.8","issuerAltName"),f("2.5.29.9","subjectDirectoryAttributes"),f("2.5.29.10","basicConstraints"),f("2.5.29.11","nameConstraints"),f("2.5.29.12","policyConstraints"),f("2.5.29.13","basicConstraints"),a("2.5.29.14","subjectKeyIdentifier"),a("2.5.29.15","keyUsage"),f("2.5.29.16","privateKeyUsagePeriod"),a("2.5.29.17","subjectAltName"),a("2.5.29.18","issuerAltName"),a("2.5.29.19","basicConstraints"),f("2.5.29.20","cRLNumber"),f("2.5.29.21","cRLReason"),f("2.5.29.22","expirationDate"),f("2.5.29.23","instructionCode"),f("2.5.29.24","invalidityDate"),f("2.5.29.25","cRLDistributionPoints"),f("2.5.29.26","issuingDistributionPoint"),f("2.5.29.27","deltaCRLIndicator"),f("2.5.29.28","issuingDistributionPoint"),f("2.5.29.29","certificateIssuer"),f("2.5.29.30","nameConstraints"),a("2.5.29.31","cRLDistributionPoints"),a("2.5.29.32","certificatePolicies"),f("2.5.29.33","policyMappings"),f("2.5.29.34","policyConstraints"),a("2.5.29.35","authorityKeyIdentifier"),f("2.5.29.36","policyConstraints"),a("2.5.29.37","extKeyUsage"),f("2.5.29.46","freshestCRL"),f("2.5.29.54","inhibitAnyPolicy"),a("1.3.6.1.4.1.11129.2.4.2","timestampList"),a("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),a("1.3.6.1.5.5.7.3.1","serverAuth"),a("1.3.6.1.5.5.7.3.2","clientAuth"),a("1.3.6.1.5.5.7.3.3","codeSigning"),a("1.3.6.1.5.5.7.3.4","emailProtection"),a("1.3.6.1.5.5.7.3.8","timeStamping")},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(898);n.d(t,"Router",function(){return r.a});var i=n(362);n.d(t,"Link",function(){return i.a});var a=n(907);n.d(t,"IndexLink",function(){return a.a});var f=n(908);n.d(t,"withRouter",function(){return f.a});var s=n(910);n.d(t,"IndexRedirect",function(){return s.a});var o=n(911);n.d(t,"IndexRoute",function(){return o.a});var l=n(363);n.d(t,"Redirect",function(){return l.a});var c=n(912);n.d(t,"Route",function(){return c.a});var u=n(75);n.d(t,"createRoutes",function(){return u.b});var d=n(244);n.d(t,"RouterContext",function(){return d.a});var p=n(246);n.d(t,"locationShape",function(){return p.a}),n.d(t,"routerShape",function(){return p.b});var m=n(913);n.d(t,"match",function(){return m.a});var y=n(366);n.d(t,"useRouterHistory",function(){return y.a});var g=n(110);n.d(t,"formatPattern",function(){return g.a});var h=n(917);n.d(t,"applyRouterMiddleware",function(){return h.a});var _=n(918);n.d(t,"browserHistory",function(){return _.a});var b=n(920);n.d(t,"hashHistory",function(){return b.a});var v=n(364);n.d(t,"createMemoryHistory",function(){return v.a})},function(e,t,n){"use strict";var r=n(900);n.n(r)},function(e,t,n){"use strict";t.c=o,t.b=function(e){return s(e).paramNames},t.a=function(e,t){t=t||{};for(var n=s(e).tokens,r=0,a="",f=0,o=[],l=void 0,c=void 0,u=void 0,d=0,p=n.length;d0||i()(!1),null!=u&&(a+=encodeURI(u));else if("("===l)o[r]="",r+=1;else if(")"===l){var m=o.pop();(r-=1)?o[r-1]+=m:a+=m}else if("\\("===l)a+="(";else if("\\)"===l)a+=")";else if(":"===l.charAt(0))if(c=l.substring(1),null!=(u=t[c])||r>0||i()(!1),null==u){if(r){o[r-1]="";for(var y=n.indexOf(l),g=n.slice(y,n.length),h=-1,_=0;_0||i()(!1),d=y+h-1}}else r?o[r-1]+=encodeURIComponent(u):a+=encodeURIComponent(u);else r?o[r-1]+=l:a+=l;return r<=0||i()(!1),a.replace(/\/+/g,"/")};var r=n(31),i=n.n(r);function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var f=Object.create(null);function s(e){return f[e]||(f[e]=function(e){for(var t="",n=[],r=[],i=void 0,f=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;i=s.exec(e);)i.index!==f&&(r.push(e.slice(f,i.index)),t+=a(e.slice(f,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]?t+=")?":"\\("===i[0]?t+="\\(":"\\)"===i[0]&&(t+="\\)"),r.push(i[0]),f=s.lastIndex;return f!==e.length&&(r.push(e.slice(f,e.length)),t+=a(e.slice(f,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}(e)),f[e]}function o(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=s(e),r=n.regexpSource,i=n.paramNames,a=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===a[a.length-1]&&(r+="$");var f=t.match(new RegExp("^"+r,"i"));if(null==f)return null;var o=f[0],l=t.substr(o.length);if(l){if("/"!==o.charAt(o.length-1))return null;l="/"+l}return{remainingPathname:l,paramNames:i,paramValues:f.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var o=r.charAt(64);if(o)for(;i.length%4;)i.push(o);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-f%4*2;i[a>>>2]|=(s|o)<<24-a%4*8,a++}return n.create(i,a)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,f=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var o=f.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,f=e[t+0],o=e[t+1],p=e[t+2],m=e[t+3],y=e[t+4],g=e[t+5],h=e[t+6],_=e[t+7],b=e[t+8],v=e[t+9],T=e[t+10],I=e[t+11],S=e[t+12],M=e[t+13],E=e[t+14],D=e[t+15],C=a[0],w=a[1],x=a[2],A=a[3];w=d(w=d(w=d(w=d(w=u(w=u(w=u(w=u(w=c(w=c(w=c(w=c(w=l(w=l(w=l(w=l(w,x=l(x,A=l(A,C=l(C,w,x,A,f,7,s[0]),w,x,o,12,s[1]),C,w,p,17,s[2]),A,C,m,22,s[3]),x=l(x,A=l(A,C=l(C,w,x,A,y,7,s[4]),w,x,g,12,s[5]),C,w,h,17,s[6]),A,C,_,22,s[7]),x=l(x,A=l(A,C=l(C,w,x,A,b,7,s[8]),w,x,v,12,s[9]),C,w,T,17,s[10]),A,C,I,22,s[11]),x=l(x,A=l(A,C=l(C,w,x,A,S,7,s[12]),w,x,M,12,s[13]),C,w,E,17,s[14]),A,C,D,22,s[15]),x=c(x,A=c(A,C=c(C,w,x,A,o,5,s[16]),w,x,h,9,s[17]),C,w,I,14,s[18]),A,C,f,20,s[19]),x=c(x,A=c(A,C=c(C,w,x,A,g,5,s[20]),w,x,T,9,s[21]),C,w,D,14,s[22]),A,C,y,20,s[23]),x=c(x,A=c(A,C=c(C,w,x,A,v,5,s[24]),w,x,E,9,s[25]),C,w,m,14,s[26]),A,C,b,20,s[27]),x=c(x,A=c(A,C=c(C,w,x,A,M,5,s[28]),w,x,p,9,s[29]),C,w,_,14,s[30]),A,C,S,20,s[31]),x=u(x,A=u(A,C=u(C,w,x,A,g,4,s[32]),w,x,b,11,s[33]),C,w,I,16,s[34]),A,C,E,23,s[35]),x=u(x,A=u(A,C=u(C,w,x,A,o,4,s[36]),w,x,y,11,s[37]),C,w,_,16,s[38]),A,C,T,23,s[39]),x=u(x,A=u(A,C=u(C,w,x,A,M,4,s[40]),w,x,f,11,s[41]),C,w,m,16,s[42]),A,C,h,23,s[43]),x=u(x,A=u(A,C=u(C,w,x,A,v,4,s[44]),w,x,S,11,s[45]),C,w,D,16,s[46]),A,C,p,23,s[47]),x=d(x,A=d(A,C=d(C,w,x,A,f,6,s[48]),w,x,_,10,s[49]),C,w,E,15,s[50]),A,C,g,21,s[51]),x=d(x,A=d(A,C=d(C,w,x,A,S,6,s[52]),w,x,m,10,s[53]),C,w,T,15,s[54]),A,C,o,21,s[55]),x=d(x,A=d(A,C=d(C,w,x,A,b,6,s[56]),w,x,D,10,s[57]),C,w,h,15,s[58]),A,C,M,21,s[59]),x=d(x,A=d(A,C=d(C,w,x,A,y,6,s[60]),w,x,I,10,s[61]),C,w,p,15,s[62]),A,C,v,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+w|0,a[2]=a[2]+x|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),f=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,o=s.words,l=0;l<4;l++){var c=o[l];o[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,f){var s=e+(t&n|~t&r)+i+f;return(s<>>32-a)+t}function c(e,t,n,r,i,a,f){var s=e+(t&r|n&~r)+i+f;return(s<>>32-a)+t}function u(e,t,n,r,i,a,f){var s=e+(t^n^r)+i+f;return(s<>>32-a)+t}function d(e,t,n,r,i,a,f){var s=e+(n^(t|~r))+i+f;return(s<>>32-a)+t}n.MD5=a._createHelper(o),n.HmacMD5=a._createHmacHelper(o)}(Math),e.MD5},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){var t,n,r,i,a,f,s;return n=(t=e).lib,r=n.Base,i=n.WordArray,a=t.algo,f=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),a=i.create(),f=a.words,s=n.keySize,o=n.iterations;f.length1&&(e[n[0]]=e[n[0]]||{},e=e[n[0]],r=n[1]),Object.defineProperty(e,r,t),e[a(r)]=this.buildAsyncGet()};var a=function(e){return"get"+e.charAt(0).toUpperCase()+e.slice(1)};i.prototype.buildGet=function(){var e=this;return function(){return e.formatOutput(e.requestManager.send({method:e.getter}))}},i.prototype.buildAsyncGet=function(){var e=this,t=function(t){e.requestManager.sendAsync({method:e.getter},function(n,r){t(n,e.formatOutput(r))})};return t.request=this.request.bind(this),t},i.prototype.request=function(){var e={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return e.format=this.formatOutput.bind(this),e},e.exports=i},function(e,t,n){"use strict";(function(r){const i=n(257),a=n(180),f=n(991),s=n(258),o=n(41),l=n(50),c=new Error("Sorry, Not Implemented Yet.");function u(e){if(!(this instanceof u))return new u(e);if(null==e&&(e=""),e instanceof r)this.buffer=f.fromBuffer(e);else if("string"==typeof e||e instanceof String)this.buffer=f.fromString(e);else{if(!(e.buffer&&e.protos&&e.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr");this.buffer=f.fromBuffer(e.buffer)}}t=e.exports=u,u.prototype.toString=function(){return f.bufferToString(this.buffer)},u.prototype.toOptions=function(){const e={},t=this.toString().split("/");return e.family="ip4"===t[1]?"ipv4":"ipv6",e.host=t[2],e.transport=t[3],e.port=t[4],e},u.prototype.inspect=function(){return""},u.prototype.protos=function(){return i(this.protoCodes(),function(e){return a(s(e))})},u.prototype.protoCodes=function(){const e=[],t=this.buffer;let n=0;for(;n{if(e[0]===s.names.ipfs.code)return!0})[0][1],l.decode(e)}catch(t){e=null}return e},u.prototype.equals=function(e){return this.buffer.equals(e.buffer)},u.prototype.nodeAddress=function(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');const e=this.protoCodes(),t=this.toString().split("/").slice(1);return{family:41===e[0]?"IPv6":"IPv4",address:t[1],port:t[3]}},u.fromNodeAddress=function(e,t){if(!e)throw new Error("requires node address object");if(!t)throw new Error("requires transport protocol");return u("/"+["IPv6"===e.family?"ip6":"ip4",e.address,t,e.port].join("/"))},u.prototype.isThinWaistAddress=function(e){const t=(e||this).protos();return 2===t.length&&((4===t[0].code||41===t[0].code)&&(6===t[1].code||17===t[1].code))},u.prototype.fromStupidString=function(e){throw c},u.protocols=s,u.isMultiaddr=function(e){return e.constructor&&e.constructor.name?"Multiaddr"===e.constructor.name:Boolean(e.fromStupidString&&e.protos)},u.isName=function(e){return!!u.isMultiaddr(e)&&e.protos().some(e=>e.resolvable)},u.resolve=function(e,t){return u.isMultiaddr(e)&&u.isName(e)?t(new Error("not implemented yet")):t(new Error("not a valid name"))}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(26).Transform;e.exports=class extends r{constructor(e){super(Object.assign({},e||{},{objectMode:!0}))}_transform(e,t,n){if(!e.Hash)return n();n(null,{path:e.Name,hash:e.Hash,size:parseInt(e.Size,10)})}}},function(e,t,n){"use strict";(function(t){const r=n(50),i=n(52);e.exports=function(e){if(t.isBuffer(e)&&(e=r.encode(e)),i.isCID(e)&&(e=e.toBaseEncodedString()),"string"!=typeof e)throw new Error("unexpected cid type: "+typeof e);return i.validateCID(new i(e.split("/")[0])),e}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){const r=n(50),i=n(92);e.exports=function(e){if(t.isBuffer(e)&&(e=r.encode(e)),"string"!=typeof e)throw new Error("unexpected multihash type: "+typeof e);if(!i.multihash(e.split("/")[0]))throw new Error("not valid multihash");return e}}).call(t,n(2).Buffer)},function(e,t,n){var r=n(4);n(11);var i=e.exports=r.pem=r.pem||{};function a(e){for(var t=e.name+": ",n=[],r=function(e,t){return" "+t},i=0;i65&&-1!==f){var s=t[f];","===s?(++f,t=t.substr(0,f)+"\r\n "+t.substr(f)):t=t.substr(0,f)+"\r\n"+s+t.substr(f+1),a=i-f-1,f=-1,++i}else" "!==t[i]&&"\t"!==t[i]&&","!==t[i]||(f=i);return t}function f(e){return e.replace(/^\s+/,"")}i.encode=function(e,t){t=t||{};var n,i="-----BEGIN "+e.type+"-----\r\n";if(e.procType&&(i+=a(n={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]})),e.contentDomain&&(i+=a(n={name:"Content-Domain",values:[e.contentDomain]})),e.dekInfo&&(n={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&n.values.push(e.dekInfo.parameters),i+=a(n)),e.headers)for(var f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},,,,,,,,,function(e,t,n){"use strict";t.c=function(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')},n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return s});var r=n(40);n.n(r);Object(r.shape)({listen:r.func.isRequired,push:r.func.isRequired,replace:r.func.isRequired,go:r.func.isRequired,goBack:r.func.isRequired,goForward:r.func.isRequired});var i=Object(r.oneOfType)([r.func,r.string]),a=Object(r.oneOfType)([i,r.object]),f=Object(r.oneOfType)([r.object,r.element]),s=Object(r.oneOfType)([f,Object(r.arrayOf)(f)])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")}},function(e,t,n){var r;!function(i){"use strict";var a,f,s,o=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,l=Math.ceil,c=Math.floor,u=" not a boolean or binary digit",d="rounding mode",p="number type has more than 15 significant digits",m="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",y=1e14,g=14,h=9007199254740991,_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,v=1e9;function T(e){var t=0|e;return e>0||e===t?t:t-1}function I(e){for(var t,n,r=1,i=e.length,a=e[0]+"";rl^n?1:-1;for(s=(o=i.length)<(l=a.length)?o:l,f=0;fa[f]^n?1:-1;return o==l?0:o>l^n?1:-1}function M(e,t,n){return(e=x(e))>=t&&e<=n}function E(e){return"[object Array]"==Object.prototype.toString.call(e)}function D(e,t,n){for(var r,i,a=[0],f=0,s=e.length;fn-1&&(null==a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}function C(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(++t>(n=e.length)){for(r="0",t-=n;--t;r+="0");e+=r}else t15&&ee(N,p,e),a=!1):c.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1,l=K(l,10,t,c.s)}else{if(e instanceof W)return c.s=e.s,c.e=e.e,c.c=(e=e.c)?e.slice():e,void(N=0);if((a="number"==typeof e)&&0*e==0){if(c.s=1/e<0?(e=-e,-1):1,e===~~e){for(r=0,i=e;i>=10;i/=10,r++);return c.e=r,c.c=[e],void(N=0)}l=e+""}else{if(!o.test(l=e+""))return s(c,l,a);c.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1}}for((r=l.indexOf("."))>-1&&(l=l.replace(".","")),(i=l.search(/e/i))>0?(r<0&&(r=i),r+=+l.slice(i+1),l=l.substring(0,i)):r<0&&(r=l.length),i=0;48===l.charCodeAt(i);i++);for(f=l.length;48===l.charCodeAt(--f););if(l=l.slice(i,f+1))if(f=l.length,a&&z&&f>15&&ee(N,p,c.s*e),(r=r-i-1)>F)c.c=c.e=null;else if(r=0&&(s=G,G=0,e=e.replace(".",""),l=(u=new W(r)).pow(e.length-d),G=s,u.c=D(w(I(l.c),l.e),10,t),u.e=u.c.length),f=s=(c=D(e,r,t)).length;0==c[--s];c.pop());if(!c[0])return"0";if(d<0?--f:(l.c=c,l.e=f,l.s=i,c=(l=n(l,u,p,y,t)).c,o=l.r,f=l.e),d=c[a=f+p+1],s=t/2,o=o||a<0||null!=c[a+1],o=y<4?(null!=d||o)&&(0==y||y==(l.s<0?3:2)):d>s||d==s&&(4==y||o||6==y&&1&c[a-1]||y==(l.s<0?8:7)),a<1||!c[0])e=o?w("1",-p):"0";else{if(c.length=a,o)for(--t;++c[--a]>t;)c[a]=0,a||(++f,c.unshift(1));for(s=c.length;!c[--s];);for(d=0,e="";d<=s;e+=m.charAt(c[d++]));e=w(e,f)}return e}function Q(e,t,n,r){var i,a,f,s,o;if(n=null!=n&&V(n,0,8,r,d)?0|n:B,!e.c)return e.toString();if(i=e.c[0],f=e.e,null==t)o=I(e.c),o=19==r||24==r&&f<=j?C(o,f):w(o,f);else if(a=(e=te(new W(e),t,n)).e,s=(o=I(e.c)).length,19==r||24==r&&(t<=a||a<=j)){for(;ss){if(--t>0)for(o+=".";t--;o+="0");}else if((t+=a-s)>0)for(a+1==s&&(o+=".");t--;o+="0");return e.s<0&&i?"-"+o:o}function Z(e,t){var n,r,i=0;for(E(e[0])&&(e=e[0]),n=new W(e[0]);++in||e!=x(e))&&ee(r,(i||"decimal places")+(en?" out of range":" not an integer"),e),!0}function X(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*g-1)>F?e.c=e.e=null:n=10;s/=10,i++);if((a=t-i)<0)a+=g,f=t,d=(o=p[u=0])/m[i-f-1]%10|0;else if((u=l((a+1)/g))>=p.length){if(!r)break e;for(;p.length<=u;p.push(0));o=d=0,i=1,f=(a%=g)-g+1}else{for(o=s=p[u],i=1;s>=10;s/=10,i++);d=(f=(a%=g)-g+i)<0?0:o/m[i-f-1]%10|0}if(r=r||t<0||null!=p[u+1]||(f<0?o:o%m[i-f-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(a>0?f>0?o/m[i-f]:0:p[u-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[t%g],e.e=-t||0):p[0]=e.e=0,e;if(0==a?(p.length=u,s=1,u--):(p.length=u+1,s=m[g-a],p[u]=f>0?c(o/m[i-f]%m[f])*s:0),r)for(;;){if(0==u){for(a=1,f=p[0];f>=10;f/=10,a++);for(f=p[0]+=s,s=1;f>=10;f/=10,s++);a!=s&&(e.e++,p[0]==y&&(p[0]=1));break}if(p[u]+=s,p[u]!=y)break;p[u--]=0,s=1}for(a=p.length;0===p[--a];p.pop());}e.e>F?e.c=e.e=null:e.en)return null!=(e=i[n++])};return s(t="DECIMAL_PLACES")&&V(e,0,v,2,t)&&(P=0|e),r[t]=P,s(t="ROUNDING_MODE")&&V(e,0,8,2,t)&&(B=0|e),r[t]=B,s(t="EXPONENTIAL_AT")&&(E(e)?V(e[0],-v,0,2,t)&&V(e[1],0,v,2,t)&&(j=0|e[0],U=0|e[1]):V(e,-v,v,2,t)&&(j=-(U=0|(e<0?-e:e)))),r[t]=[j,U],s(t="RANGE")&&(E(e)?V(e[0],-v,-1,2,t)&&V(e[1],1,v,2,t)&&(Y=0|e[0],F=0|e[1]):V(e,-v,v,2,t)&&(0|e?Y=-(F=0|(e<0?-e:e)):z&&ee(2,t+" cannot be zero",e))),r[t]=[Y,F],s(t="ERRORS")&&(e===!!e||1===e||0===e?(N=0,V=(z=!!e)?J:M):z&&ee(2,t+u,e)),r[t]=z,s(t="CRYPTO")&&(e===!!e||1===e||0===e?(H=!(!e||!f||"object"!=typeof f),e&&!H&&z&&ee(2,"crypto unavailable",f)):z&&ee(2,t+u,e)),r[t]=H,s(t="MODULO_MODE")&&V(e,0,9,2,t)&&($=0|e),r[t]=$,s(t="POW_PRECISION")&&V(e,0,v,2,t)&&(G=0|e),r[t]=G,s(t="FORMAT")&&("object"==typeof e?q=e:z&&ee(2,t+" not an object",e)),r[t]=q,r},W.max=function(){return Z(arguments,R.lt)},W.min=function(){return Z(arguments,R.gt)},W.random=(r=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,i,a,s,o=0,u=[],d=new W(O);if(e=null!=e&&V(e,0,v,14)?0|e:P,a=l(e/g),H)if(f&&f.getRandomValues){for(t=f.getRandomValues(new Uint32Array(a*=2));o>>11))>=9e15?(n=f.getRandomValues(new Uint32Array(2)),t[o]=n[0],t[o+1]=n[1]):(u.push(s%1e14),o+=2);o=a/2}else if(f&&f.randomBytes){for(t=f.randomBytes(a*=7);o=9e15?f.randomBytes(7).copy(t,o):(u.push(s%1e14),o+=7);o=a/7}else z&&ee(14,"crypto unavailable",f);if(!o)for(;o=10;s/=10,o++);or?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.shift());}return function(r,i,a,f,s){var o,l,u,d,p,m,h,_,b,v,I,S,M,E,D,C,w,x=r.s==i.s?1:-1,A=r.c,L=i.c;if(!(A&&A[0]&&L&&L[0]))return new W(r.s&&i.s&&(A?!L||A[0]!=L[0]:L)?A&&0==A[0]||!L?0*x:x/0:NaN);for(b=(_=new W(x)).c=[],x=a+(l=r.e-i.e)+1,s||(s=y,l=T(r.e/g)-T(i.e/g),x=x/g|0),u=0;L[u]==(A[u]||0);u++);if(L[u]>(A[u]||0)&&l--,x<0)b.push(1),d=!0;else{for(E=A.length,C=L.length,u=0,x+=2,(p=c(s/(L[0]+1)))>1&&(L=e(L,p,s),A=e(A,p,s),C=L.length,E=A.length),M=C,I=(v=A.slice(0,C)).length;I=s/2&&D++;do{if(p=0,(o=t(L,v,C,I))<0){if(S=v[0],C!=I&&(S=S*s+(v[1]||0)),(p=c(S/D))>1)for(p>=s&&(p=s-1),h=(m=e(L,p,s)).length,I=v.length;1==t(m,v,h,I);)p--,n(m,C=10;x/=10,u++);te(_,a+(_.e=u+l*g-1)+1,f,d)}else _.e=l,_.r=+d;return _}}(),i=/^(-?)0([xbo])/i,a=/^([^.]+)\.$/,A=/^\.([^.]+)$/,L=/^-?(Infinity|NaN)$/,k=/^\s*\+|^\s+|\s+$/g,s=function(e,t,n,r){var f,s=n?t:t.replace(k,"");if(L.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(i,function(e,t,n){return f="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=f?e:t}),r&&(f=r,s=s.replace(a,"$1").replace(A,"0.$1")),t!=s))return new W(s,f);z&&ee(N,"not a"+(r?" base "+r:"")+" number",t),e.s=null}e.c=e.e=null,N=0},R.absoluteValue=R.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},R.ceil=function(){return te(new W(this),this.e+1,2)},R.comparedTo=R.cmp=function(e,t){return N=1,S(this,new W(e,t))},R.decimalPlaces=R.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-T(this.e/g))*g,t=n[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},R.dividedBy=R.div=function(e,t){return N=3,n(this,new W(e,t),P,B)},R.dividedToIntegerBy=R.divToInt=function(e,t){return N=4,n(this,new W(e,t),0,1)},R.equals=R.eq=function(e,t){return N=5,0===S(this,new W(e,t))},R.floor=function(){return te(new W(this),this.e+1,3)},R.greaterThan=R.gt=function(e,t){return N=6,S(this,new W(e,t))>0},R.greaterThanOrEqualTo=R.gte=function(e,t){return N=7,1===(t=S(this,new W(e,t)))||0===t},R.isFinite=function(){return!!this.c},R.isInteger=R.isInt=function(){return!!this.c&&T(this.e/g)>this.c.length-2},R.isNaN=function(){return!this.s},R.isNegative=R.isNeg=function(){return this.s<0},R.isZero=function(){return!!this.c&&0==this.c[0]},R.lessThan=R.lt=function(e,t){return N=8,S(this,new W(e,t))<0},R.lessThanOrEqualTo=R.lte=function(e,t){return N=9,-1===(t=S(this,new W(e,t)))||0===t},R.minus=R.sub=function(e,t){var n,r,i,a,f=this,s=f.s;if(N=10,t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,f.plus(e);var o=f.e/g,l=e.e/g,c=f.c,u=e.c;if(!o||!l){if(!c||!u)return c?(e.s=-t,e):new W(u?f:NaN);if(!c[0]||!u[0])return u[0]?(e.s=-t,e):new W(c[0]?f:3==B?-0:0)}if(o=T(o),l=T(l),c=c.slice(),s=o-l){for((a=s<0)?(s=-s,i=c):(l=o,i=u),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=c.length)<(t=u.length))?s:t,s=t=0;t0)for(;t--;c[n++]=0);for(t=y-1;r>s;){if(c[--r]0?(f=a,n=o):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=o.length)<0&&(n=o,o=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+o[t]+i)/y|0,s[t]%=y;return i&&(s.unshift(i),++f),X(e,s,f)},R.precision=R.sd=function(e){var t,n,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(z&&ee(13,"argument"+u,e),e!=!!e&&(e=null)),!i)return null;if(t=(n=i.length-1)*g+1,n=i[n]){for(;n%10==0;n/=10,t--);for(n=i[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},R.round=function(e,t){var n=new W(this);return(null==e||V(e,0,v,15))&&te(n,~~e+this.e+1,null!=t&&V(t,0,8,15,d)?0|t:B),n},R.shift=function(e){var t=this;return V(e,-h,h,16,"argument")?t.times("1e"+x(e)):new W(t.c&&t.c[0]&&(e<-h||e>h)?t.s*(e<0?0:1/0):t)},R.squareRoot=R.sqrt=function(){var e,t,r,i,a,f=this,s=f.c,o=f.s,l=f.e,c=P+4,u=new W("0.5");if(1!==o||!s||!s[0])return new W(!o||o<0&&(!s||s[0])?NaN:s?f:1/0);if(0==(o=Math.sqrt(+f))||o==1/0?(((t=I(s)).length+l)%2==0&&(t+="0"),o=Math.sqrt(t),l=T((l+1)/2)-(l<0||l%2),r=new W(t=o==1/0?"1e"+l:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new W(o+""),r.c[0])for((o=(l=r.e)+c)<3&&(o=0);;)if(a=r,r=u.times(a.plus(n(f,a,c,1))),I(a.c).slice(0,o)===(t=I(r.c)).slice(0,o)){if(r.e=0;){for(n=0,d=S[i]%_,p=S[i]/_|0,a=i+(f=o);a>i;)n=((l=d*(l=I[--f]%_)+(s=p*l+(c=I[f]/_|0)*d)%_*_+m[a]+n)/h|0)+(s/_|0)+p*c,m[a--]=l%h;m[a]=n}return n?++r:m.shift(),X(e,m,r)},R.toDigits=function(e,t){var n=new W(this);return e=null!=e&&V(e,1,v,18,"precision")?0|e:null,t=null!=t&&V(t,0,8,18,d)?0|t:B,e?te(n,e,t):n},R.toExponential=function(e,t){return Q(this,null!=e&&V(e,0,v,19)?1+~~e:null,t,19)},R.toFixed=function(e,t){return Q(this,null!=e&&V(e,0,v,20)?~~e+this.e+1:null,t,20)},R.toFormat=function(e,t){var n=Q(this,null!=e&&V(e,0,v,21)?~~e+this.e+1:null,t,21);if(this.c){var r,i=n.split("."),a=+q.groupSize,f=+q.secondaryGroupSize,s=q.groupSeparator,o=i[0],l=i[1],c=this.s<0,u=c?o.slice(1):o,d=u.length;if(f&&(r=a,a=f,f=r,d-=r),a>0&&d>0){for(r=d%a||a,o=u.substr(0,r);r0&&(o+=s+u.slice(r)),c&&(o="-"+o)}n=l?o+q.decimalSeparator+((f=+q.fractionGroupSize)?l.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+q.fractionGroupSeparator):l):o}return n},R.toFraction=function(e){var t,r,i,a,f,s,o,l,c,u=z,d=this,p=d.c,m=new W(O),y=r=new W(O),h=o=new W(O);if(null!=e&&(z=!1,s=new W(e),z=u,(u=s.isInt())&&!s.lt(O)||(z&&ee(22,"max denominator "+(u?"out of range":"not an integer"),e),e=!u&&s.c&&te(s,s.e+1,1).gte(O)?s:null)),!p)return d.toString();for(c=I(p),a=m.e=c.length-d.e-1,m.c[0]=_[(f=a%g)<0?g+f:f],e=!e||s.cmp(m)>0?a>0?m:y:s,f=F,F=1/0,s=new W(c),o.c[0]=0;l=n(s,m,0,1),1!=(i=r.plus(l.times(h))).cmp(e);)r=h,h=i,y=o.plus(l.times(i=y)),o=i,m=s.minus(l.times(i=m)),s=i;return i=n(e.minus(r),h,0,1),o=o.plus(i.times(y)),r=r.plus(i.times(h)),o.s=y.s=d.s,t=n(y,h,a*=2,B).minus(d).abs().cmp(n(o,r,a,B).minus(d).abs())<1?[y.toString(),h.toString()]:[o.toString(),r.toString()],F=f,t},R.toNumber=function(){var e=this;return+e||(e.s?0*e.s:NaN)},R.toPower=R.pow=function(e){var t,n,r=c(e<0?-e:+e),i=this;if(!V(e,-h,h,23,"exponent")&&(!isFinite(e)||r>h&&(e/=0)||parseFloat(e)!=e&&!(e=NaN)))return new W(Math.pow(+i,e));for(t=G?l(G/g+2):0,n=new W(O);;){if(r%2){if(!(n=n.times(i)).c)break;t&&n.c.length>t&&(n.c.length=t)}if(!(r=c(r/2)))break;i=i.times(i),t&&i.c&&i.c.length>t&&(i.c.length=t)}return e<0&&(n=O.div(n)),t?te(n,G,B):n},R.toPrecision=function(e,t){return Q(this,null!=e&&V(e,1,v,24,"precision")?0|e:null,t,24)},R.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=I(n.c),t=null!=e&&V(e,2,64,25,"base")?K(w(t,i),0|e,10,r):i<=j||i>=U?C(t,i):w(t,i),r<0&&n.c[0]&&(t="-"+t)),t},R.truncated=R.trunc=function(){return te(new W(this),this.e+1,1)},R.valueOf=R.toJSON=function(){return this.toString()},null!=t&&W.config(t),W}(),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){var r=n(932),i=n(375);e.exports=function(e,t){return t&&"hex"===t.encoding&&(e.length>2&&"0x"===e.substr(0,2)&&(e=e.substr(2)),e=r.enc.Hex.parse(e)),i(e,{outputLength:256}).toString()}},function(e,t,n){(function(t){var r=n(26).Writable,i=n(9),a=n(1005);if("undefined"==typeof Uint8Array)var f=n(1006).Uint8Array;else f=Uint8Array;function s(e,t){if(!(this instanceof s))return new s(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,i=!1;n?"u8"!==(n=String(n).toLowerCase())&&"uint8"!==n||(n="uint8array"):i=!0,r.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}e.exports=s,i(s,r),s.prototype._write=function(e,t,n){this.body.push(e),n()},s.prototype.inferEncoding=function(e){var n=void 0===e?this.body[0]:e;return t.isBuffer(n)?"buffer":"undefined"!=typeof Uint8Array&&n instanceof Uint8Array?"uint8array":Array.isArray(n)?"array":"string"==typeof n?"string":"[object Object]"===Object.prototype.toString.call(n)?"object":"buffer"},s.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";const r=n(26).Duplex,i=n(1008),a=n(384),f=n(51),s=n(1037),o=n(1042);function l(e,t,n){return t in e?e[t]:n in e?e[n]:void 0}e.exports=((e,t)=>n=>{let c,u=!1,d=!1;n=n?Object.assign({},n,n.qs):{};const p=new o,m=new r({objectMode:!0});m._read=(e=>{}),m._write=((e,t,r)=>{const a=f(r);try{const r=s(e,n).map(e=>Object.assign({headers:function(e){const t={"Content-Disposition":`file; filename="${e.path?encodeURIComponent(e.path):""}"`};return e.content?e.symlink?t["Content-Type"]="application/symlink":t["Content-Type"]="application/octet-stream":t["Content-Type"]="application/x-directory",t}(e)},e));d=!0,i(r,(e,n)=>p.write(e,t,n),e=>{if(d=!1,e)return a(e);u&&p.end(),a()})}catch(e){a(e)}}),m.once("finish",()=>{u||(u=!0,d||p.end())});const y=n.qs||{};y["cid-version"]=l(n,"cid-version","cidVersion"),y["raw-leaves"]=l(n,"raw-leaves","rawLeaves"),y["only-hash"]=l(n,"only-hash","onlyHash"),y.hash=l(n,"hash","hashAlg");const g={path:t,qs:y,args:n.args,multipart:!0,multipartBoundary:p._boundary,stream:!0,recursive:!0,progress:n.progress};return p.on("error",e=>{m.emit("error",e)}),(c=e(g,(e,t)=>{if(e)return m.emit("error",e);if(!t)return m.push(null);if(!a(t))return m.push(t),void m.push(null);if(t.on("error",e=>m.emit("error",e)),n.converter){t.on("data",e=>{e.Bytes&&n.progress&&n.progress(e.Bytes)});const e=new(0,n.converter);e.once("end",()=>m.push(null)),e.on("data",e=>m.push(e)),t.pipe(e)}else t.on("data",e=>{e.Bytes&&n.progress&&n.progress(e.Bytes),m.push(e)}),t.once("end",()=>m.push(null))})).on("drain",()=>p.emit("drain")),p.pipe(c),m})},function(e,t,n){(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(t,n(20))},function(e,t,n){"use strict";e.exports=function(e,t){var n,r;function i(a){if(n=a,r)return i.abort();!function i(){for(var a=!0,f=!1;a;)if(f=!1,n(null,function(s,o){if(f=!0,s=s||r){if(a=!1,t)t(!0===s?null:s);else if(s&&!0!==s)throw s}else e&&!1===e(o)||r?(a=!1,n(r||!0,t||function(){})):a||i()}),!f)return void(a=!1)}()}return i.abort=function(e,t){if("function"==typeof e&&(t=e,e=!0),r=e||!0,n)return n(r,t||function(){})},i}},function(e,t){e.exports=function(e){return e&&("string"==typeof e?function(t){return t[e]}:"object"==typeof e&&"function"==typeof e.exec?function(t){var n=e.exec(t);return n&&n[0]}:e)}},function(e,t,n){var r;!function(i){"use strict";var a,f=20,s=1,o=1e6,l=-7,c=21,u="[big.js] ",d=u+"Invalid ",p=d+"decimal places",m=d+"rounding mode",y={},g=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _(e,t,n,r){var i=e.c,a=e.e+t+1;if(a=5;else if(2===n)r=i[a]>5||5==i[a]&&(r||a<0||i[a+1]!==g||1&i[a-1]);else if(3===n)r=r||i[a]!==g||a<0;else if(r=!1,0!==n)throw Error(m);if(a<1)i.length=1,r?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=a--,r)for(;++i[a]>9;)i[a]=0,a--||(++e.e,i.unshift(1));for(a=i.length;!i[--a];)i.pop()}}else if(n<0||n>3||n!==~~n)throw Error(m);return e}function b(e,t,n,r){var i,a,f=e.constructor,s=!e.c[0];if(n!==g){if(n!==~~n||n<(3==t)||n>o)throw Error(3==t?d+"precision":p);for(n=r-(e=new f(e)).e,e.c.length>++r&&_(e,n,f.RM),2==t&&(r=e.e+n+1);e.c.length=f.PE))a=a.charAt(0)+(n>1?"."+a.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)a="0"+a;a="0."+a}else if(i>0)if(++i>n)for(i-=n;i--;)a+="0";else i1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&(!s||4==t)?"-"+a:a}y.abs=function(){var e=new this.constructor(this);return e.s=1,e},y.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,a=n.s,f=e.s,s=n.e,o=e.e;if(!r[0]||!i[0])return r[0]?a:i[0]?-f:0;if(a!=f)return a;if(t=a<0,s!=o)return s>o^t?1:-1;for(f=(s=r.length)<(o=i.length)?s:o,a=-1;++ai[a]^t?1:-1;return s==o?0:s>o^t?1:-1},y.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,a=t.s==e.s?1:-1,f=n.DP;if(f!==~~f||f<0||f>o)throw Error(p);if(!i[0])throw Error("[big.js] Division by zero");if(!r[0])return new n(0*a);var s,l,c,u,d,m=i.slice(),y=s=i.length,h=r.length,b=r.slice(0,s),v=b.length,T=e,I=T.c=[],S=0,M=f+(T.e=t.e-e.e)+1;for(T.s=a,a=M<0?0:M,m.unshift(0);v++v?1:-1;else for(d=-1,u=0;++db[d]?1:-1;break}if(!(u<0))break;for(l=v==s?i:m;v;){if(b[--v]M&&_(T,f,n.RM,b[0]!==g),T},y.eq=function(e){return!this.cmp(e)},y.gt=function(e){return this.cmp(e)>0},y.gte=function(e){return this.cmp(e)>-1},y.lt=function(e){return this.cmp(e)<0},y.lte=function(e){return this.cmp(e)<1},y.minus=y.sub=function(e){var t,n,r,i,a=this,f=a.constructor,s=a.s,o=(e=new f(e)).s;if(s!=o)return e.s=-o,a.plus(e);var l=a.c.slice(),c=a.e,u=e.c,d=e.e;if(!l[0]||!u[0])return u[0]?(e.s=-o,e):new f(l[0]?a:0);if(s=c-d){for((i=s<0)?(s=-s,r=l):(d=c,r=u),r.reverse(),o=s;o--;)r.push(0);r.reverse()}else for(n=((i=l.length0)for(;o--;)l[t++]=0;for(o=t;n>s;){if(l[--n]0?(o=f,t=l):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-l.length<0&&(t=l,l=s,s=t),i=l.length,a=0;i;s[i]%=10)a=(s[--i]=s[i]+l[i]+a)/10|0;for(a&&(s.unshift(a),++o),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=o,e},y.pow=function(e){var t=this,n=new t.constructor(1),r=n,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(d+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},y.round=function(e,t){var n=this.constructor;if(e===g)e=0;else if(e!==~~e||e<0||e>o)throw Error(p);return _(new n(this),e,t===g?n.RM:t)},y.sqrt=function(){var e,t,n,r=this,i=r.constructor,a=r.s,f=r.e,s=new i(.5);if(!r.c[0])return new i(r);if(a<0)throw Error(u+"No square root");0===(a=Math.sqrt(r.toString()))||a===1/0?((t=r.c.join("")).length+f&1||(t+="0"),(e=new i(Math.sqrt(t).toString())).e=((f+1)/2|0)-(f<0||1&f)):e=new i(a.toString()),f=e.e+(i.DP+=4);do{n=e,e=s.times(n.plus(r.div(n)))}while(n.c.slice(0,f).join("")!==e.c.slice(0,f).join(""));return _(e,i.DP-=4,i.RM)},y.times=y.mul=function(e){var t,n=this,r=n.constructor,i=n.c,a=(e=new r(e)).c,f=i.length,s=a.length,o=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!a[0])return new r(0*e.s);for(e.e=o+l,fo;)s=t[l]+a[o]*i[l-o-1]+s,t[l--]=s%10,s=s/10|0;t[l]=(t[l]+s)%10}for(s?++e.e:t.shift(),o=t.length;!t[--o];)t.pop();return e.c=t,e},y.toExponential=function(e){return b(this,1,e,e)},y.toFixed=function(e){return b(this,2,e,this.e+e)},y.toPrecision=function(e){return b(this,3,e,e-1)},y.toString=function(){return b(this)},y.valueOf=y.toJSON=function(){return b(this,4)},(a=function e(){function t(n){var r=this;if(!(r instanceof t))return n===g?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice()):function(e,t){var n,r,i;if(0===t&&1/t<0)t="-0";else if(!h.test(t+=""))throw Error(d+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),i=t.length,r=0;r0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n),r.constructor=t}return t.prototype=y,t.DP=f,t.RM=s,t.NE=l,t.PE=c,t.version="5.0.2",t}()).default=a.Big=a,void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";const r=n(275);e.exports=((e,t)=>{const n=r(e,t);return(e,t,r)=>{n(e,t,(e,t)=>{if(e)return r(e);r(null,t[0])})}})},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(188),a=i.DAGNode,f=i.DAGLink,s=n(50),o=n(52),l=n(193)({max:128});e.exports=(e=>r((n,r,i)=>{let c;"function"==typeof r&&(i=r,r={}),r||(r={});try{n=new o(n),c=n.toBaseEncodedString()}catch(e){return i(e)}const u=l.get(c);if(u)return i(null,u);e({path:"object/get",args:c},(e,n)=>{if(e)return i(e);const r=n.Links.map(e=>new f(e.Name,e.Size,t.from(s.decode(e.Hash))));a.create(n.Data,r,(e,t)=>{if(e)return i(e);l.set(c,t),i(null,t)})})}))}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){const r=n(69),i=n(1152);function a(e,t,n,i){if("function"==typeof n&&(i=n,n=void 0),!i)throw new Error("Missing callback");a.digest(e,t,n,(e,a)=>{if(e)return i(e);i(null,r.encode(a,t,n))})}e.exports=a,a.Buffer=t,a.multihash=r,a.digest=function(e,t,n,r){if("function"==typeof n&&(r=n,n=void 0),!r)throw new Error("Missing callback");let i,f=r;n&&(f=((e,t)=>{if(e)return r(e);r(null,t.slice(0,n))}));try{i=a.createHash(t)}catch(e){return f(e)}i(e,f)},a.createHash=function(e){if(e=r.coerceCode(e),!a.functions[e])throw new Error("multihash function "+e+" not yet supported");return a.functions[e]},a.functions={17:i.sha1,18:i.sha2256,19:i.sha2512,20:i.sha3512,21:i.sha3384,22:i.sha3256,23:i.sha3224,24:i.shake128,25:i.shake256,26:i.keccak224,27:i.keccak256,28:i.keccak384,29:i.keccak512,34:i.murmur3128,35:i.murmur332,86:i.dblSha2256},i.addBlake(a.functions)}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(1165),i=n(1169);e.exports=function(e,n){if(n||(n={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var a="object"!=typeof e||t.isBuffer(e)?r.parse(e):e,f=function(){var e=this;i(a,n.encodings||{}).forEach(function(t){e[t.name]=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t}(t.values)||t})};return f.prototype.toString=function(){return r.stringify(a)},f.prototype.toJSON=function(){return a},new f}}).call(t,n(2).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;at.blockLength&&(t.start(),t.update(f.bytes()),f=t.digest()),n=r.util.createBuffer(),i=r.util.createBuffer(),l=f.length();for(o=0;o>>0,o>>>0];for(var l=i.fullMessageLength.length-1;l>=0;--l)i.fullMessageLength[l]+=o[1],o[1]=o[0]+(i.fullMessageLength[l]/4294967296>>>0),i.fullMessageLength[l]=i.fullMessageLength[l]>>>0,o[0]=o[1]/4294967296>>>0;return t.putBytes(a),s(e,n,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var f=r.util.createBuffer();f.putBytes(t.bytes());var o,l=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;f.putBytes(a.substr(0,i.blockLength-l));for(var c=8*i.fullMessageLength[0],u=0;u>>0,f.putInt32(c>>>0),c=o>>>0;f.putInt32(c);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};s(d,n,f);var p=r.util.createBuffer();return p.putInt32(d.h0),p.putInt32(d.h1),p.putInt32(d.h2),p.putInt32(d.h3),p.putInt32(d.h4),p},i};var a=null,f=!1;function s(e,t,n){for(var r,i,a,f,s,o,l,c=n.length();c>=64;){for(i=e.h0,a=e.h1,f=e.h2,s=e.h3,o=e.h4,l=0;l<16;++l)r=n.getInt32(),t[l]=r,r=(i<<5|i>>>27)+(s^a&(f^s))+o+1518500249+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;for(;l<20;++l)r=(r=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|r>>>31,t[l]=r,r=(i<<5|i>>>27)+(s^a&(f^s))+o+1518500249+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;for(;l<32;++l)r=(r=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|r>>>31,t[l]=r,r=(i<<5|i>>>27)+(a^f^s)+o+1859775393+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;for(;l<40;++l)r=(r=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|r>>>30,t[l]=r,r=(i<<5|i>>>27)+(a^f^s)+o+1859775393+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;for(;l<60;++l)r=(r=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|r>>>30,t[l]=r,r=(i<<5|i>>>27)+(a&f|s&(a^f))+o+2400959708+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;for(;l<80;++l)r=(r=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|r>>>30,t[l]=r,r=(i<<5|i>>>27)+(a^f^s)+o+3395469782+r,o=s,s=f,f=(a<<30|a>>>2)>>>0,a=i,i=r;e.h0=e.h0+i|0,e.h1=e.h1+a|0,e.h2=e.h2+f|0,e.h3=e.h3+s|0,e.h4=e.h4+o|0,c-=64}}},function(e,t,n){"use strict";const r=t;r.Reporter=n(1247).Reporter,r.DecoderBuffer=n(457).DecoderBuffer,r.EncoderBuffer=n(457).EncoderBuffer,r.Node=n(1248)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoxTitle=t.FundContainer=t.Button=t.Centred=t.SectionContent=t.Section=t.SectionTitle=t.SectionTabs=t.AddItemButtonText=t.AddItemButton=t.TotalCost=t.FooterButton=t.Badge=t.Title=t.Paper=t.Container=void 0;var r=Object.assign||function(e){for(var t=1;t=t&&r<=n?r-t+10:e}).join("")},f=function(e){for(var t,n=e;n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97},s=function(e){this._iban=e};s.fromAddress=function(e){var t=new r(e,16).toString(36),n=i(t,15);return s.fromBban(n.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-f(a("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===f(a(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.address=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new r(e,36);return i(t.toString(16),20)}return""},s.prototype.toString=function(){return this._iban},e.exports=s},function(e,t,n){var r=n(77),i=n(28),a=function(e){return null===e||void 0===e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)},f=function(e,t){i.isString(e.options)||e.get(function(e,n){e&&t(e),i.isArray(n)&&n.forEach(function(e){t(null,e)})})},s=function(e){e.requestManager.startPolling({method:e.implementation.poll.call,params:[e.filterId]},e.filterId,function(t,n){if(t)return e.callbacks.forEach(function(e){e(t)});i.isArray(n)&&n.forEach(function(t){t=e.formatter?e.formatter(t):t,e.callbacks.forEach(function(e){e(null,t)})})},e.stopWatching.bind(e))},o=function(e,t,n,o,l,c,u){var d=this,p={};return o.forEach(function(e){e.setRequestManager(n),e.attachToObject(p)}),this.requestManager=n,this.options=function(e,t){if(i.isString(e))return e;switch(e=e||{},t){case"eth":return e.topics=e.topics||[],e.topics=e.topics.map(function(e){return i.isArray(e)?e.map(a):a(e)}),{topics:e.topics,from:e.from,to:e.to,address:e.address,fromBlock:r.inputBlockNumberFormatter(e.fromBlock),toBlock:r.inputBlockNumberFormatter(e.toBlock)};case"shh":return e}}(e,t),this.implementation=p,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=l,this.implementation.newFilter(this.options,function(e,t){if(e)d.callbacks.forEach(function(t){t(e)}),"function"==typeof u&&u(e);else if(d.filterId=t,d.getLogsCallbacks.forEach(function(e){d.get(e)}),d.getLogsCallbacks=[],d.callbacks.forEach(function(e){f(d,e)}),d.callbacks.length>0&&s(d),"function"==typeof c)return d.watch(c)}),this};o.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(f(this,e),s(this)),this},o.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},o.prototype.get=function(e){var t=this;if(!i.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map(function(e){return t.formatter?t.formatter(e):e})}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,function(n,r){n?e(n):e(null,r.map(function(e){return t.formatter?t.formatter(e):e}))}),this},e.exports=o},function(e,t,n){var r=n(90);e.exports={eth:function(){return[new r({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new r({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new r({name:"getLogs",call:"eth_getFilterLogs",params:1}),new r({name:"poll",call:"eth_getFilterChanges",params:1})]},shh:function(){return[new r({name:"newFilter",call:"shh_newMessageFilter",params:1}),new r({name:"uninstallFilter",call:"shh_deleteMessageFilter",params:1}),new r({name:"getLogs",call:"shh_getFilterMessages",params:1}),new r({name:"poll",call:"shh_getFilterMessages",params:1})]}}},function(e,t){e.exports=function(){for(var e={},t=0;t0&&this._events[e].length>f&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,a,f,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(f=(n=this._events[e]).length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=f;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=s;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(1002),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(20))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t|=0;for(var n=Math.max(e.length-t,0),r=Array(n),i=0;i=0;l--)if(c[l]!==u[l])return!1;for(l=c.length-1;l>=0;l--)if(o=c[l],!_(e[o],t[o],n,r))return!1;return!0}(e,t,n,f))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function T(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&g(i,n,"Missing expected exception"+r);var f="string"==typeof r,s=!e&&a.isError(i),o=!e&&i&&!n;if((s&&f&&v(i,n)||o)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!v(i,n)||!e&&i)throw i}u.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=m(y((t=this).actual),128)+" "+t.operator+" "+m(y(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,a=p(n),f=i.indexOf("\n"+a);if(f>=0){var s=i.indexOf("\n",f+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(u.AssertionError,Error),u.fail=g,u.ok=h,u.equal=function(e,t,n){e!=t&&g(e,t,n,"==",u.equal)},u.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",u.notEqual)},u.deepEqual=function(e,t,n){_(e,t,!1)||g(e,t,n,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,n){_(e,t,!0)||g(e,t,n,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,n){_(e,t,!1)&&g(e,t,n,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,n,r){_(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",u.strictEqual)},u.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",u.notStrictEqual)},u.throws=function(e,t,n){T(!0,e,t,n)},u.doesNotThrow=function(e,t,n){T(!1,e,t,n)},u.ifError=function(e){if(e)throw e};var I=Object.keys||function(e){var t=[];for(var n in e)f.call(e,n)&&t.push(n);return t}}).call(t,n(20))},function(e,t,n){"use strict";(function(t){const r=n(147),i=n(1164),a=n(278).serialize,f=n(192).linkSort,s=n(277),o=n(95);e.exports=function(e,n,l,c){if("function"==typeof e?(c=e,e=void 0):"string"==typeof e&&(e=t.from(e)),"function"==typeof n&&(c=n,n=[]),"function"==typeof l&&(c=l,l=void 0),!t.isBuffer(e))return c(new Error("Passed 'data' is not a buffer or a string!"));l||(l="sha2-256");const u=n.map(e=>o.util.isDagLink(e)?e:o.util.createDagLinkFromB58EncodedHash(e)),d=i(u,f);a({data:e,links:d},(t,n)=>{if(t)return c(t);r(n,l,(t,r)=>{if(t)return c(t);const i=new s(e,d,n,r);c(null,i)})})}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(393),a=(r=i)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){"use strict";(function(r){const i=n(95);(t=e.exports).cloneData=function(e){let t;return e.data&&e.data.length>0?(t=r.alloc(e.data.length),e.data.copy(t)):t=r.alloc(0),t},t.cloneLinks=function(e){return e.links.slice()},t.linkSort=function(e,t){const n=r.from(e.name||""),i=r.from(t.name||"");return n.compare(i)},t.toDAGLink=function(e){return new i("",e.size,e.multihash)}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";e.exports=h;var r,i=n(1182),a=n(93),f=n(1184),s=(r="function"==typeof Symbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),o=r("length"),l=r("lengthCalculator"),c=r("allowStale"),u=r("maxAge"),d=r("dispose"),p=r("noDisposeOnSet"),m=r("lruList"),y=r("cache");function g(){return 1}function h(e){if(!(this instanceof h))return new h(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[s]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[s]=1/0);var n=e.length||g;"function"!=typeof n&&(n=g),this[l]=n,this[c]=e.stale||!1,this[u]=e.maxAge||0,this[d]=e.dispose,this[p]=e.noDisposeOnSet||!1,this.reset()}function _(e,t,n,r){var i=n.value;v(e,i)&&(I(e,n),e[c]||(i=void 0)),i&&t.call(r,i.value,i.key,e)}function b(e,t,n){var r=e[y].get(t);if(r){var i=r.value;v(e,i)?(I(e,r),e[c]||(i=void 0)):n&&e[m].unshiftNode(r),i&&(i=i.value)}return i}function v(e,t){if(!t||!t.maxAge&&!e[u])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]}function T(e){if(e[o]>e[s])for(var t=e[m].tail;e[o]>e[s]&&null!==t;){var n=t.prev;I(e,t),t=n}}function I(e,t){if(t){var n=t.value;e[d]&&e[d](n.key,n.value),e[o]-=n.length,e[y].delete(n.key),e[m].removeNode(t)}}Object.defineProperty(h.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[s]=e,T(this)},get:function(){return this[s]},enumerable:!0}),Object.defineProperty(h.prototype,"allowStale",{set:function(e){this[c]=!!e},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(h.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[u]=e,T(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(h.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=g),e!==this[l]&&(this[l]=e,this[o]=0,this[m].forEach(function(e){e.length=this[l](e.value,e.key),this[o]+=e.length},this)),T(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this[o]},enumerable:!0}),Object.defineProperty(h.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),h.prototype.rforEach=function(e,t){t=t||this;for(var n=this[m].tail;null!==n;){var r=n.prev;_(this,e,n,t),n=r}},h.prototype.forEach=function(e,t){t=t||this;for(var n=this[m].head;null!==n;){var r=n.next;_(this,e,n,t),n=r}},h.prototype.keys=function(){return this[m].toArray().map(function(e){return e.key},this)},h.prototype.values=function(){return this[m].toArray().map(function(e){return e.value},this)},h.prototype.reset=function(){this[d]&&this[m]&&this[m].length&&this[m].forEach(function(e){this[d](e.key,e.value)},this),this[y]=new i,this[m]=new f,this[o]=0},h.prototype.dump=function(){return this[m].map(function(e){if(!v(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}},this).toArray().filter(function(e){return e})},h.prototype.dumpLru=function(){return this[m]},h.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[c]&&(n+="\n allowStale: true",r=!0);var i=this[s];i&&i!==1/0&&(r&&(n+=","),n+="\n max: "+a.inspect(i,t),r=!0);var f=this[u];f&&(r&&(n+=","),n+="\n maxAge: "+a.inspect(f,t),r=!0);var d=this[l];d&&d!==g&&(r&&(n+=","),n+="\n length: "+a.inspect(this[o],t),r=!0);var p=!1;return this[m].forEach(function(e){p?n+=",\n ":(r&&(n+=",\n"),p=!0,n+="\n ");var i=a.inspect(e.key).split("\n").join("\n "),s={value:e.value};e.maxAge!==f&&(s.maxAge=e.maxAge),d!==g&&(s.length=e.length),v(this,e)&&(s.stale=!0),s=a.inspect(s,t).split("\n").join("\n "),n+=i+" => "+s}),(p||r)&&(n+="\n"),n+="}"},h.prototype.set=function(e,t,n){var r=(n=n||this[u])?Date.now():0,i=this[l](t,e);if(this[y].has(e)){if(i>this[s])return I(this,this[y].get(e)),!1;var a=this[y].get(e).value;return this[d]&&(this[p]||this[d](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=i-a.length,a.length=i,this.get(e),T(this),!0}var f=new function(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}(e,t,i,r,n);return f.length>this[s]?(this[d]&&this[d](e,t),!1):(this[o]+=f.length,this[m].unshift(f),this[y].set(e,this[m].head),T(this),!0)},h.prototype.has=function(e){return!!this[y].has(e)&&!v(this,this[y].get(e).value)},h.prototype.get=function(e){return b(this,e,!0)},h.prototype.peek=function(e){return b(this,e,!1)},h.prototype.pop=function(){var e=this[m].tail;return e?(I(this,e),e.value):null},h.prototype.del=function(e){I(this,this[y].get(e))},h.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var a=i-t;a>0&&this.set(r.k,r.v,a)}}},h.prototype.prune=function(){var e=this;this[y].forEach(function(t,n){b(e,n,!1)})}},function(e,t,n){var r=n(7).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i>>24]^c[m>>>16&255]^u[y>>>8&255]^d[255&g]^t[h++],f=l[m>>>24]^c[y>>>16&255]^u[g>>>8&255]^d[255&p]^t[h++],s=l[y>>>24]^c[g>>>16&255]^u[p>>>8&255]^d[255&m]^t[h++],o=l[g>>>24]^c[p>>>16&255]^u[m>>>8&255]^d[255&y]^t[h++],p=a,m=f,y=s,g=o;return a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[y>>>8&255]<<8|r[255&g])^t[h++],f=(r[m>>>24]<<24|r[y>>>16&255]<<16|r[g>>>8&255]<<8|r[255&p])^t[h++],s=(r[y>>>24]<<24|r[g>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[h++],o=(r[g>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&y])^t[h++],[a>>>=0,f>>>=0,s>>>=0,o>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],o=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],f=0,s=0,o=0;o<256;++o){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[f]=l,r[l]=f;var c=e[f],u=e[c],d=e[u],p=257*e[l]^16843008*l;i[0][f]=p<<24|p>>>8,i[1][f]=p<<16|p>>>16,i[2][f]=p<<8|p>>>24,i[3][f]=p,p=16843009*d^65537*u^257*c^16843008*f,a[0][l]=p<<24|p>>>8,a[1][l]=p<<16|p>>>16,a[2][l]=p<<8|p>>>24,a[3][l]=p,0===f?f=s=1:(f=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a>>24,f=o.SBOX[f>>>24]<<24|o.SBOX[f>>>16&255]<<16|o.SBOX[f>>>8&255]<<8|o.SBOX[255&f],f^=s[a/t|0]<<24):t>6&&a%t==4&&(f=o.SBOX[f>>>24]<<24|o.SBOX[f>>>16&255]<<16|o.SBOX[f>>>8&255]<<8|o.SBOX[255&f]),i[a]=i[a-t]^f}for(var l=[],c=0;c>>24]]^o.INV_SUB_MIX[1][o.SBOX[d>>>16&255]]^o.INV_SUB_MIX[2][o.SBOX[d>>>8&255]]^o.INV_SUB_MIX[3][o.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return f(e=i(e),this._keySchedule,o.SUB_MIX,o.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=f(e,this._invKeySchedule,o.INV_SUB_MIX,o.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=l},function(e,t,n){var r=n(4);function i(e,t){r.cipher.registerAlgorithm(e,function(){return new r.des.Algorithm(e,t)})}n(287),n(440),n(11),e.exports=r.des=r.des||{},r.des.startEncrypting=function(e,t,n,r){var i=m({key:e,output:n,decrypt:!1,mode:r||(null===t?"ECB":"CBC")});return i.start(t),i},r.des.createEncryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!1,mode:t})},r.des.startDecrypting=function(e,t,n,r){var i=m({key:e,output:n,decrypt:!0,mode:r||(null===t?"ECB":"CBC")});return i.start(t),i},r.des.createDecryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!0,mode:t})},r.des.Algorithm=function(e,t){var n=this;n.name=e,n.mode=new t({blockSize:8,cipher:{encrypt:function(e,t){return p(n._keys,e,t,!1)},decrypt:function(e,t){return p(n._keys,e,t,!0)}}}),n._init=!1},r.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=r.util.createBuffer(e.key);if(0===this.name.indexOf("3DES")&&24!==t.length())throw new Error("Invalid Triple-DES key size: "+8*t.length());this._keys=function(e){for(var t,n=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],f=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],l=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],c=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],p=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],m=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],y=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],g=e.length()>8?3:1,h=[],_=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],b=0,v=0;v>>4^I))<<4,T^=t=65535&((I^=t)>>>-16^T),T^=(t=858993459&(T>>>2^(I^=t<<-16)))<<2,T^=t=65535&((I^=t)>>>-16^T),T^=(t=1431655765&(T>>>1^(I^=t<<-16)))<<1,T^=t=16711935&((I^=t)>>>8^T),t=(T^=(t=1431655765&(T>>>1^(I^=t<<8)))<<1)<<8|(I^=t)>>>20&240,T=I<<24|I<<8&16711680|I>>>8&65280|I>>>24&240,I=t;for(var S=0;S<_.length;++S){_[S]?(T=T<<2|T>>>26,I=I<<2|I>>>26):(T=T<<1|T>>>27,I=I<<1|I>>>27);var M=n[(T&=-15)>>>28]|r[T>>>24&15]|i[T>>>20&15]|a[T>>>16&15]|f[T>>>12&15]|s[T>>>8&15]|o[T>>>4&15],E=l[(I&=-15)>>>28]|c[I>>>24&15]|u[I>>>20&15]|d[I>>>16&15]|p[I>>>12&15]|m[I>>>8&15]|y[I>>>4&15];t=65535&(E>>>16^M),h[b++]=M^t,h[b++]=E^t<<16}}return h}(t),this._init=!0}},i("DES-ECB",r.cipher.modes.ecb),i("DES-CBC",r.cipher.modes.cbc),i("DES-CFB",r.cipher.modes.cfb),i("DES-OFB",r.cipher.modes.ofb),i("DES-CTR",r.cipher.modes.ctr),i("3DES-ECB",r.cipher.modes.ecb),i("3DES-CBC",r.cipher.modes.cbc),i("3DES-CFB",r.cipher.modes.cfb),i("3DES-OFB",r.cipher.modes.ofb),i("3DES-CTR",r.cipher.modes.ctr);var a=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],f=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],s=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],o=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],l=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],c=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],u=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],d=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function p(e,t,n,r){var i,p,m=32===e.length?3:9;i=3===m?r?[30,-2,-2]:[0,32,2]:r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var y=t[0],g=t[1];y^=(p=252645135&(y>>>4^g))<<4,y^=(p=65535&(y>>>16^(g^=p)))<<16,y^=p=858993459&((g^=p)>>>2^y),y^=p=16711935&((g^=p<<2)>>>8^y),y=(y^=(p=1431655765&(y>>>1^(g^=p<<8)))<<1)<<1|y>>>31,g=(g^=p)<<1|g>>>31;for(var h=0;h>>4|g<<28)^e[v+1];p=y,y=g,g=p^(f[T>>>24&63]|o[T>>>16&63]|c[T>>>8&63]|d[63&T]|a[I>>>24&63]|s[I>>>16&63]|l[I>>>8&63]|u[63&I])}p=y,y=g,g=p}g=g>>>1|g<<31,g^=p=1431655765&((y=y>>>1|y<<31)>>>1^g),g^=(p=16711935&(g>>>8^(y^=p<<1)))<<8,g^=(p=858993459&(g>>>2^(y^=p)))<<2,g^=p=65535&((y^=p)>>>16^g),g^=p=252645135&((y^=p<<16)>>>4^g),y^=p<<4,n[0]=y,n[1]=g}function m(e){var t,n="DES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?r.cipher.createDecipher(n,e.key):r.cipher.createCipher(n,e.key)).start;return t.start=function(e,n){var a=null;n instanceof r.util.ByteBuffer&&(a=n,n={}),(n=n||{}).output=a,n.iv=e,i.call(t,n)},t}},function(e,t,n){var r=n(4);if(n(70),n(197),n(98),n(448),n(449),n(54),n(11),void 0===i)var i=r.jsbn.BigInteger;var a=r.asn1;r.pki=r.pki||{},e.exports=r.pki.rsa=r.rsa=r.rsa||{};var f=r.pki,s=[6,4,2,4,2,4,6,2],o={name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},l={name:"RSAPrivateKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},c={name:"RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},u=r.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},d=function(e){var t;if(!(e.algorithm in f.oids)){var n=new Error("Unknown message digest algorithm.");throw n.algorithm=e.algorithm,n}t=f.oids[e.algorithm];var r=a.oidToDer(t).getBytes(),i=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]),s=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);s.value.push(a.create(a.Class.UNIVERSAL,a.Type.OID,!1,r)),s.value.push(a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,""));var o=a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,e.digest().getBytes());return i.value.push(s),i.value.push(o),a.toDer(i).getBytes()},p=function(e,t,n){if(n)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);var a;t.dP||(t.dP=t.d.mod(t.p.subtract(i.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(i.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));do{a=new i(r.util.bytesToHex(r.random.getBytes(t.n.bitLength()/8)),16)}while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(i.ONE));for(var f=(e=e.multiply(a.modPow(t.e,t.n)).mod(t.n)).mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);f.compareTo(s)<0;)f=f.add(t.p);var o=f.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return o=o.multiply(a.modInverse(t.n)).mod(t.n)};function m(e,t,n){var i=r.util.createBuffer(),a=Math.ceil(t.n.bitLength()/8);if(e.length>a-11){var f=new Error("Message is too long for PKCS#1 v1.5 padding.");throw f.length=e.length,f.max=a-11,f}i.putByte(0),i.putByte(n);var s,o=a-3-e.length;if(0===n||1===n){s=0===n?0:255;for(var l=0;l0;){var c=0,u=r.random.getBytes(o);for(l=0;l1;){if(255!==f.getByte()){--f.read;break}++l}else if(2===o)for(l=0;f.length()>1;){if(0===f.getByte()){--f.read;break}++l}if(0!==f.getByte()||l!==a-3-f.length())throw new Error("Encryption block is invalid.");return f.getBytes()}function g(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var n=r.util.hexToBytes(t);return n.length>1&&(0===n.charCodeAt(0)&&0==(128&n.charCodeAt(1))||255===n.charCodeAt(0)&&128==(128&n.charCodeAt(1)))?n.substr(1):n}function h(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function _(e){return"undefined"!=typeof window&&"object"==typeof window.crypto&&"object"==typeof window.crypto.subtle&&"function"==typeof window.crypto.subtle[e]}function b(e){return"undefined"!=typeof window&&"object"==typeof window.msCrypto&&"object"==typeof window.msCrypto.subtle&&"function"==typeof window.msCrypto.subtle[e]}function v(e){for(var t=r.util.hexToBytes(e.toString(16)),n=new Uint8Array(t.length),i=0;i0;)c.putByte(0),--u;return c.putBytes(r.util.hexToBytes(l)),c.getBytes()},f.rsa.decrypt=function(e,t,n,a){var f=Math.ceil(t.n.bitLength()/8);if(e.length!==f){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=f,s}var o=new i(r.util.createBuffer(e).toHex(),16);if(o.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var l=p(o,t,n).toString(16),c=r.util.createBuffer(),u=f-Math.ceil(l.length/2);u>0;)c.putByte(0),--u;return c.putBytes(r.util.hexToBytes(l)),!1!==a?y(c.getBytes(),t,n):c.getBytes()},f.rsa.createKeyPairGenerationState=function(e,t,n){"string"==typeof e&&(e=parseInt(e,10)),e=e||2048;var a,f=(n=n||{}).prng||r.random,s={nextBytes:function(e){for(var t=f.getBytesSync(e.length),n=0;n>1,pBits:e-(e>>1),pqState:0,num:null,keys:null}).e.fromInt(a.eInt),a},f.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var n=new i(null);n.fromInt(30);for(var r,a=0,o=function(e,t){return e|t},l=+new Date,c=0;null===e.keys&&(t<=0||cu?e.pqState=0:e.num.isProbablePrime(h(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(s[a++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(i.ONE).gcd(e.e).compareTo(i.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(2===e.state)e.p1=e.p.subtract(i.ONE),e.q1=e.q.subtract(i.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(3===e.state)0===e.phi.gcd(e.e).compareTo(i.ONE)?++e.state:(e.p=null,e.q=null,e.state=0);else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(5===e.state){var p=e.e.modInverse(e.phi);e.keys={privateKey:f.rsa.setPrivateKey(e.n,e.e,p,e.p,e.q,p.mod(e.p1),p.mod(e.q1),e.q.modInverse(e.p)),publicKey:f.rsa.setPublicKey(e.n,e.e)}}c+=(r=+new Date)-l,l=r}return null!==e.keys},f.rsa.generateKeyPair=function(e,t,n,s){if(1===arguments.length?"object"==typeof e?(n=e,e=void 0):"function"==typeof e&&(s=e,e=void 0):2===arguments.length?"number"==typeof e?"function"==typeof t?(s=t,t=void 0):"number"!=typeof t&&(n=t,t=void 0):(n=e,s=t,e=void 0,t=void 0):3===arguments.length&&("number"==typeof t?"function"==typeof n&&(s=n,n=void 0):(s=n,n=t,t=void 0)),n=n||{},void 0===e&&(e=n.bits||2048),void 0===t&&(t=n.e||65537),!r.options.usePureJavaScript&&s&&e>=256&&e<=16384&&(65537===t||3===t)){if(_("generateKey")&&_("exportKey"))return window.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(e){return window.crypto.subtle.exportKey("pkcs8",e.privateKey)}).then(void 0,function(e){s(e)}).then(function(e){if(e){var t=f.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(e)));s(null,{privateKey:t,publicKey:f.setRsaPublicKey(t.n,t.e)})}});if(b("generateKey")&&b("exportKey")){var o=window.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);return o.oncomplete=function(e){var t=e.target.result,n=window.msCrypto.subtle.exportKey("pkcs8",t.privateKey);n.oncomplete=function(e){var t=e.target.result,n=f.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(t)));s(null,{privateKey:n,publicKey:f.setRsaPublicKey(n.n,n.e)})},n.onerror=function(e){s(e)}},void(o.onerror=function(e){s(e)})}}var l=f.rsa.createKeyPairGenerationState(e,t,n);if(!s)return f.rsa.stepKeyPairGenerationState(l,0),l.keys;!function(e,t,n){"function"==typeof t&&(n=t,t={});var a={algorithm:{name:(t=t||{}).algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng);function s(){o(e.pBits,function(t,r){return t?n(t):(e.p=r,null!==e.q?l(t,e.q):void o(e.qBits,l))})}function o(e,t){r.prime.generateProbablePrime(e,a,t)}function l(t,r){if(t)return n(t);if(e.q=r,e.p.compareTo(e.q)<0){var a=e.p;e.p=e.q,e.q=a}if(0!==e.p.subtract(i.ONE).gcd(e.e).compareTo(i.ONE))return e.p=null,void s();if(0!==e.q.subtract(i.ONE).gcd(e.e).compareTo(i.ONE))return e.q=null,void o(e.qBits,l);if(e.p1=e.p.subtract(i.ONE),e.q1=e.q.subtract(i.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(i.ONE))return e.p=e.q=null,void s();if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void o(e.qBits,l);var c=e.e.modInverse(e.phi);e.keys={privateKey:f.rsa.setPrivateKey(e.n,e.e,c,e.p,e.q,c.mod(e.p1),c.mod(e.q1),e.q.modInverse(e.p)),publicKey:f.rsa.setPublicKey(e.n,e.e)},n(null,e.keys)}s()}(l,n,s)},f.setRsaPublicKey=f.rsa.setPublicKey=function(e,t){var n={n:e,e:t,encrypt:function(e,t,i){if("string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,n){return m(e,t,2).getBytes()}};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return r.pkcs1.encode_rsa_oaep(t,e,i)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}};else if("string"==typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".');var a=t.encode(e,n,!0);return f.rsa.encrypt(a,n,!0)},verify:function(e,t,r){"string"==typeof r?r=r.toUpperCase():void 0===r&&(r="RSASSA-PKCS1-V1_5"),"RSASSA-PKCS1-V1_5"===r?r={verify:function(e,t){return t=y(t,n,!0),e===a.fromDer(t).value[1].value}}:"NONE"!==r&&"NULL"!==r&&null!==r||(r={verify:function(e,t){return e===(t=y(t,n,!0))}});var i=f.rsa.decrypt(t,n,!0,!1);return r.verify(e,i,n.n.bitLength())}};return n},f.setRsaPrivateKey=f.rsa.setPrivateKey=function(e,t,n,i,a,s,o,l){var c={n:e,e:t,d:n,p:i,q:a,dP:s,dQ:o,qInv:l,decrypt:function(e,t,n){"string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5");var i=f.rsa.decrypt(e,c,!1,!1);if("RSAES-PKCS1-V1_5"===t)t={decode:y};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return r.pkcs1.decode_rsa_oaep(t,e,n)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".');t={decode:function(e){return e}}}return t.decode(i,c,!1)},sign:function(e,t){var n=!1;"string"==typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:d},n=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},n=1);var r=t.encode(e,c.n.bitLength());return f.rsa.encrypt(r,c,n)}};return c},f.wrapRsaPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(f.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(e).getBytes())])},f.privateKeyFromAsn1=function(e){var t,n,s,c,u,d,p,m,y={},g=[];if(a.validate(e,o,y,g)&&(e=a.fromDer(r.util.createBuffer(y.privateKey))),y={},g=[],!a.validate(e,l,y,g)){var h=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw h.errors=g,h}return t=r.util.createBuffer(y.privateKeyModulus).toHex(),n=r.util.createBuffer(y.privateKeyPublicExponent).toHex(),s=r.util.createBuffer(y.privateKeyPrivateExponent).toHex(),c=r.util.createBuffer(y.privateKeyPrime1).toHex(),u=r.util.createBuffer(y.privateKeyPrime2).toHex(),d=r.util.createBuffer(y.privateKeyExponent1).toHex(),p=r.util.createBuffer(y.privateKeyExponent2).toHex(),m=r.util.createBuffer(y.privateKeyCoefficient).toHex(),f.setRsaPrivateKey(new i(t,16),new i(n,16),new i(s,16),new i(c,16),new i(u,16),new i(d,16),new i(p,16),new i(m,16))},f.privateKeyToAsn1=f.privateKeyToRSAPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.e)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.d)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.p)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.q)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.dP)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.dQ)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.qInv))])},f.publicKeyFromAsn1=function(e){var t={},n=[];if(a.validate(e,u,t,n)){var s,o=a.derToOid(t.publicKeyOid);if(o!==f.oids.rsaEncryption)throw(s=new Error("Cannot read public key. Unknown OID.")).oid=o,s;e=t.rsaPublicKey}if(n=[],!a.validate(e,c,t,n))throw(s=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=n,s;var l=r.util.createBuffer(t.publicKeyModulus).toHex(),d=r.util.createBuffer(t.publicKeyExponent).toHex();return f.setRsaPublicKey(new i(l,16),new i(d,16))},f.publicKeyToAsn1=f.publicKeyToSubjectPublicKeyInfo=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(f.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,[f.publicKeyToRSAPublicKey(e)])])},f.publicKeyToRSAPublicKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,g(e.e))])}},function(e,t,n){var r,i=n(4);e.exports=i.jsbn=i.jsbn||{};function a(e,t,n){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function f(){return new a(null)}function s(e,t,n,r,i,a){for(var f=16383&t,s=t>>14;--a>=0;){var o=16383&this.data[e],l=this.data[e++]>>14,c=s*o+l*f;i=((o=f*o+((16383&c)<<14)+n.data[r]+i)>>28)+(c>>14)+s*l,n.data[r++]=268435455&o}return i}i.jsbn.BigInteger=a,"undefined"==typeof navigator?(a.prototype.am=s,r=28):"Microsoft Internet Explorer"==navigator.appName?(a.prototype.am=function(e,t,n,r,i,a){for(var f=32767&t,s=t>>15;--a>=0;){var o=32767&this.data[e],l=this.data[e++]>>15,c=s*o+l*f;i=((o=f*o+((32767&c)<<15)+n.data[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n.data[r++]=1073741823&o}return i},r=30):"Netscape"!=navigator.appName?(a.prototype.am=function(e,t,n,r,i,a){for(;--a>=0;){var f=t*this.data[e++]+n.data[r]+i;i=Math.floor(f/67108864),n.data[r++]=67108863&f}return i},r=26):(a.prototype.am=s,r=28),a.prototype.DB=r,a.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function g(e){this.m=e}function h(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function S(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function M(){}function E(e){return e}function D(e){this.r2=f(),this.q3=f(),a.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}g.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},g.prototype.revert=function(e){return e},g.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},g.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},g.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},h.prototype.convert=function(e){var t=f();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(a.ZERO)>0&&this.m.subTo(t,t),t},h.prototype.revert=function(e){var t=f();return e.copyTo(t),this.reduce(t),t},h.prototype.reduce=function(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e.data[n]+=this.m.am(0,r,e,t,0,this.m.t);e.data[n]>=e.DV;)e.data[n]-=e.DV,e.data[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},h.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},a.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s},a.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0},a.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,f=0;--r>=0;){var s=8==n?255&e[r]:p(e,r);s<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==f?this.data[this.t++]=s:f+n>this.DB?(this.data[this.t-1]|=(s&(1<>this.DB-f):this.data[this.t-1]|=s<=this.DB&&(f-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,f>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e;)--this.t},a.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t.data[n+e]=this.data[n];for(n=e-1;n>=0;--n)t.data[n]=0;t.t=this.t+e,t.s=this.s},a.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t.data[n+f+1]=this.data[n]>>i|s,s=(this.data[n]&a)<=0;--n)t.data[n]=0;t.data[f]=s,t.t=this.t+f+1,t.s=this.s,t.clamp()},a.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,a=(1<>r;for(var f=n+1;f>r;r>0&&(t.data[this.t-n-1]|=(this.s&a)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t.data[n++]=this.DV+r:r>0&&(t.data[n++]=r),t.t=n,t.clamp()},a.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t.data[i]=0;for(i=0;i=0;)e.data[n]=0;for(n=0;n=t.DV&&(e.data[n+t.t]-=t.DV,e.data[n+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(n,t.data[n],e,2*n,0,1)),e.s=0,e.clamp()},a.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(c,s),i.lShiftTo(c,n)):(r.copyTo(s),i.copyTo(n));var u=s.t,d=s.data[u-1];if(0!=d){var p=d*(1<1?s.data[u-2]>>this.F2:0),m=this.FV/p,g=(1<=0&&(n.data[n.t++]=1,n.subTo(v,n)),a.ONE.dlShiftTo(u,v),v.subTo(s,s);s.t=0;){var T=n.data[--_]==d?this.DM:Math.floor(n.data[_]*m+(n.data[_-1]+h)*g);if((n.data[_]+=s.am(0,T,n,b,0,u))0&&n.rShiftTo(c,n),o<0&&a.ZERO.subTo(n,n)}}},a.prototype.invDigit=function(){if(this.t<1)return 0;var e=this.data[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},a.prototype.isEven=function(){return 0==(this.t>0?1&this.data[0]:this.s)},a.prototype.exp=function(e,t){if(e>4294967295||e<1)return a.ONE;var n=f(),r=f(),i=t.convert(this),s=y(e)-1;for(i.copyTo(n);--s>=0;)if(t.sqrTo(n,r),(e&1<0)t.mulTo(r,i,n);else{var o=n;n=r,r=o}return t.revert(n)},a.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,a=d(n));f>=0;)s>(s+=this.DB-t)):(n=this.data[f]>>(s-=t)&r,s<=0&&(s+=this.DB,--f)),n>0&&(i=!0),i&&(a+=d(n));return i?a:"0"},a.prototype.negate=function(){var e=f();return a.ZERO.subTo(this,e),e},a.prototype.abs=function(){return this.s<0?this.negate():this},a.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this.data[n]-e.data[n]))return t;return 0},a.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this.data[this.t-1]^this.s&this.DM)},a.prototype.mod=function(e){var t=f();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(a.ZERO)>0&&e.subTo(t,t),t},a.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new g(t):new h(t),this.exp(e,n)},a.ZERO=m(0),a.ONE=m(1),M.prototype.convert=E,M.prototype.revert=E,M.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},M.prototype.sqrTo=function(e,t){e.squareTo(t)},D.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=f();return e.copyTo(t),this.reduce(t),t},D.prototype.revert=function(e){return e},D.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},D.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},D.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var C=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],w=(1<<26)/C[C.length-1];a.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},a.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=m(n),i=f(),a=f(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(e)+s},a.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,f=0,s=0,o=0;o=n&&(this.dMultiply(r),this.dAddOffset(s,0),f=0,s=0))}f>0&&(this.dMultiply(Math.pow(t,f)),this.dAddOffset(s,0)),i&&a.ZERO.subTo(this,this)},a.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(a.ONE.shiftLeft(e-1),b,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(a.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t.data[n++]=r:r<-1&&(t.data[n++]=this.DV+r),t.t=n,t.clamp()},a.prototype.dMultiply=function(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},a.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}},a.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n.data[--i]=0;for(r=n.t-this.t;i=0;)n.data[r]=0;for(r=Math.max(t-this.t,0);r0)if(0==t)n=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this.data[r])%e;return n},a.prototype.millerRabin=function(e){var t=this.subtract(a.ONE),n=t.getLowestSetBit();if(n<=0)return!1;for(var r,i=t.shiftRight(n),f={nextBytes:function(e){for(var t=0;t=0);var o=r.modPow(i,this);if(0!=o.compareTo(a.ONE)&&0!=o.compareTo(t)){for(var l=1;l++>24},a.prototype.shortValue=function(){return 0==this.t?this.s:this.data[0]<<16>>16},a.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},a.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<=0;)r<8?(n=(this.data[e]&(1<>(r+=this.DB-8)):(n=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},a.prototype.equals=function(e){return 0==this.compareTo(e)},a.prototype.min=function(e){return this.compareTo(e)<0?this:e},a.prototype.max=function(e){return this.compareTo(e)>0?this:e},a.prototype.and=function(e){var t=f();return this.bitwiseTo(e,_,t),t},a.prototype.or=function(e){var t=f();return this.bitwiseTo(e,b,t),t},a.prototype.xor=function(e){var t=f();return this.bitwiseTo(e,v,t),t},a.prototype.andNot=function(e){var t=f();return this.bitwiseTo(e,T,t),t},a.prototype.not=function(){for(var e=f(),t=0;t=this.t?0!=this.s:0!=(this.data[t]&1<1){var u=f();for(r.sqrTo(s[1],u);o<=c;)s[o]=f(),r.mulTo(u,s[o-2],s[o]),o+=2}var d,p,_=e.t-1,b=!0,v=f();for(i=y(e.data[_])-1;_>=0;){for(i>=l?d=e.data[_]>>i-l&c:(d=(e.data[_]&(1<0&&(d|=e.data[_-1]>>this.DB+i-l)),o=n;0==(1&d);)d>>=1,--o;if((i-=o)<0&&(i+=this.DB,--_),b)s[d].copyTo(a),b=!1;else{for(;o>1;)r.sqrTo(a,v),r.sqrTo(v,a),o-=2;o>0?r.sqrTo(a,v):(p=a,a=v,v=p),r.mulTo(v,s[d],a)}for(;_>=0&&0==(e.data[_]&1<=0?(n.subTo(r,n),t&&i.subTo(s,i),f.subTo(o,f)):(r.subTo(n,r),t&&s.subTo(i,s),o.subTo(f,o))}return 0!=r.compareTo(a.ONE)?a.ZERO:o.compareTo(e)>=0?o.subtract(e):o.signum()<0?(o.addTo(e,o),o.signum()<0?o.add(e):o):o},a.prototype.pow=function(e){return this.exp(e,new M)},a.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;for(i0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},a.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n.data[0]<=C[C.length-1]){for(t=0;t>>2,t.words[2]=(63&e[22])<<20|e[23]<<12|e[24]<<4|e[25]>>>4,t.words[3]=(255&e[19])<<18|e[20]<<10|e[21]<<2|e[22]>>>6,t.words[4]=(3&e[15])<<24|e[16]<<16|e[17]<<8|e[18],t.words[5]=(15&e[12])<<22|e[13]<<14|e[14]<<6|e[15]>>>2,t.words[6]=(63&e[9])<<20|e[10]<<12|e[11]<<4|e[12]>>>4,t.words[7]=(255&e[6])<<18|e[7]<<10|e[8]<<2|e[9]>>>6,t.words[8]=(3&e[2])<<24|e[3]<<16|e[4]<<8|e[5],t.words[9]=e[0]<<14|e[1]<<6|e[2]>>>2,t.length=10,t.strip()},a.prototype.toBuffer=function(){for(var e=this.words,t=this.length;t<10;++t)e[t]=0;return r.from([e[9]>>>14&255,e[9]>>>6&255,(63&e[9])<<2|e[8]>>>24&3,e[8]>>>16&255,e[8]>>>8&255,255&e[8],e[7]>>>18&255,e[7]>>>10&255,e[7]>>>2&255,(3&e[7])<<6|e[6]>>>20&63,e[6]>>>12&255,e[6]>>>4&255,(15&e[6])<<4|e[5]>>>22&15,e[5]>>>14&255,e[5]>>>6&255,(63&e[5])<<2|e[4]>>>24&3,e[4]>>>16&255,e[4]>>>8&255,255&e[4],e[3]>>>18&255,e[3]>>>10&255,e[3]>>>2&255,(3&e[3])<<6|e[2]>>>20&63,e[2]>>>12&255,e[2]>>>4&255,(15&e[2])<<4|e[1]>>>22&15,e[1]>>>14&255,e[1]>>>6&255,(63&e[1])<<2|e[0]>>>24&3,e[0]>>>16&255,e[0]>>>8&255,255&e[0]])},a.prototype.clone=function(){var e=new a;e.words=new Array(this.length);for(var t=0;t1&&0==(0|this.words[this.length-1]);)this.length--;return this},a.prototype.normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.ucmp=function(e){if(this.length!==e.length)return this.length>e.length?1:-1;for(var t=this.length-1;t>=0;--t)if(this.words[t]!==e.words[t])return this.words[t]>e.words[t]?1:-1;return 0},a.prototype.gtOne=function(){return this.length>1||this.words[0]>1},a.prototype.isOverflow=function(){return this.ucmp(a.n)>=0},a.prototype.isHigh=function(){return 1===this.ucmp(a.nh)},a.prototype.bitLengthGT256=function(){return this.length>10||10===this.length&&this.words[9]>4194303},a.prototype.iuaddn=function(e){this.words[0]+=e;for(var t=0;this.words[t]>67108863&&te.length?(t=this,n=e):(t=e,n=this);for(var r=0,i=0;r>>26}for(;0!==i&&r>>26;if(this.length=t.length,0!==i)this.words[this.length++]=i;else if(t!==this)for(;r0?(t=this,n=e):(t=e,n=this);for(var i=0,a=0;i>26,this.words[i]=67108863&f}for(;0!==a&&i>26,this.words[i]=67108863&f;if(0===a&&i>>26,o=67108863&i,l=Math.max(0,a-e.length+1),c=Math.min(a,t.length-1);l<=c;l++){var u=a-l,d=e.words[u]*t.words[l]+o;s+=d/67108864|0,o=67108863&d}n.words[a]=o,i=s}return 0!==i&&(n.words[n.length++]=i),n.strip()},a.umulTo10x10=Math.imul?i.umulTo10x10:a.umulTo,a.umulnTo=function(e,t,n){if(0===t)return n.words=[0],n.length=1,n;for(var r=0,i=0;r0?(n.words[r]=i,n.length=e.length+1):n.length=e.length,n},a.prototype.umul=function(e){var t=new a;return t.words=new Array(this.length+e.length),10===this.length&&10===e.length?a.umulTo10x10(this,e,t):1===this.length?a.umulnTo(e,this.words[0],t):1===e.length?a.umulnTo(this,e.words[0],t):a.umulTo(this,e,t)},a.prototype.isplit=function(e){e.length=Math.min(this.length,9);for(var t=0;t>>22,n=r}return n>>>=22,this.words[t-10]=n,0===n&&this.length>10?this.length-=10:this.length-=9,this},a.prototype.fireduce=function(){return this.isOverflow()&&this.isub(a.n),this},a.prototype.ureduce=function(){var e=this.clone().isplit(a.tmp).umul(a.nc).iadd(a.tmp);return e.bitLengthGT256()&&(e=e.isplit(a.tmp).umul(a.nc).iadd(a.tmp)).bitLengthGT256()&&(e=e.isplit(a.tmp).umul(a.nc).iadd(a.tmp)),e.fireduce()},a.prototype.ishrn=function(e){for(var t=(1<=0;--r){var a=this.words[r];this.words[r]=i<>>e,i=a&t}return this.length>1&&0===this.words[this.length-1]&&(this.length-=1),this},a.prototype.uinvm=function(){for(var e=this.clone(),t=a.n.clone(),n=a.fromNumber(1),r=a.fromNumber(0),i=a.fromNumber(0),f=a.fromNumber(1);e.isEven()&&t.isEven();){for(var s=1,o=1;0==(e.words[0]&o)&&0==(t.words[0]&o)&&s<26;++s,o<<=1);e.ishrn(s),t.ishrn(s)}for(var l=t.clone(),c=e.clone();!e.isZero();){for(var u=0,d=1;0==(e.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(e.ishrn(u);u-- >0;)(n.isOdd()||r.isOdd())&&(n.iadd(l),r.isub(c)),n.ishrn(1),r.ishrn(1);for(var p=0,m=1;0==(t.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(t.ishrn(p);p-- >0;)(i.isOdd()||f.isOdd())&&(i.iadd(l),f.isub(c)),i.ishrn(1),f.ishrn(1);e.ucmp(t)>=0?(e.isub(t),n.isub(i),r.isub(f)):(t.isub(e),i.isub(n),f.isub(r))}if(1===i.negative){i.negative=0;var y=i.ureduce();return y.negative^=1,y.normSign().iadd(a.n)}return i.ureduce()},a.prototype.imulK=function(){this.words[this.length]=0,this.words[this.length+1]=0,this.length+=2;for(var e=0,t=0;e0?this.isub(a.p):this.strip(),this},a.prototype.redNeg=function(){return this.isZero()?a.fromNumber(0):a.p.sub(this)},a.prototype.redAdd=function(e){return this.clone().redIAdd(e)},a.prototype.redIAdd=function(e){return this.iadd(e),this.ucmp(a.p)>=0&&this.isub(a.p),this},a.prototype.redIAdd7=function(){return this.iuaddn(7),this.ucmp(a.p)>=0&&this.isub(a.p),this},a.prototype.redSub=function(e){return this.clone().redISub(e)},a.prototype.redISub=function(e){return this.isub(e),0!==this.negative&&this.iadd(a.p),this},a.prototype.redMul=function(e){return this.umul(e).redIReduce()},a.prototype.redSqr=function(){return this.umul(this).redIReduce()},a.prototype.redSqrt=function(){if(this.isZero())return this.clone();for(var e=this.redSqr(),t=e.redSqr(),n=t.redSqr().redMul(t),r=n.redMul(e),i=r.redMul(this),a=i,f=0;f<54;++f)a=a.redSqr().redSqr().redSqr().redSqr().redMul(i);for(a=a.redSqr().redSqr().redSqr().redSqr().redMul(r),f=0;f<5;++f)a=a.redSqr().redSqr().redSqr().redSqr().redMul(i);return 0===(a=(a=a.redSqr().redSqr().redSqr().redSqr().redMul(n)).redSqr().redSqr().redSqr().redSqr().redSqr().redSqr().redMul(n)).redSqr().ucmp(this)?a:null},a.prototype.redInvm=function(){for(var e,t=this.clone(),n=a.p.clone(),r=a.fromNumber(1),i=a.fromNumber(0);t.gtOne()&&n.gtOne();){for(var f=0,s=1;0==(t.words[0]&s)&&f<26;++f,s<<=1);if(f>0)for(t.ishrn(f);f-- >0;)r.isOdd()&&r.iadd(a.p),r.ishrn(1);for(var o=0,l=1;0==(n.words[0]&l)&&o<26;++o,l<<=1);if(o>0)for(n.ishrn(o);o-- >0;)i.isOdd()&&i.iadd(a.p),i.ishrn(1);t.ucmp(n)>=0?(t.isub(n),r.isub(i)):(n.isub(t),i.isub(r))}return 0!==(e=1===t.length&&1===t.words[0]?r:i).negative&&e.iadd(a.p),0!==e.negative?(e.negative=0,e.redIReduce().redNeg()):e.redIReduce()},a.prototype.getNAF=function(e){for(var t=[],n=1<>1,a=this.clone();!a.isZero();){for(var f=0,s=1;0==(a.words[0]&s)&&f<26;++f,s<<=1)t.push(0);if(0!==f)a.ishrn(f);else{var o=a.words[0]&r;if(o>=i)t.push(i-o),a.iuaddn(o-i).ishrn(1);else if(t.push(o),a.words[0]-=o,!a.isZero()){for(f=e-1;f>0;--f)t.push(0);a.ishrn(e)}}}return t},a.prototype.inspect=function(){if(this.isZero())return"0";for(var e=this.toBuffer().toString("hex"),t=0;"0"===e[t];++t);return e.slice(t)},a.n=a.fromBuffer(r.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex")),a.nh=a.n.clone().ishrn(1),a.nc=a.fromBuffer(r.from("000000000000000000000000000000014551231950B75FC4402DA1732FC9BEBF","hex")),a.p=a.fromBuffer(r.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","hex")),a.psn=a.p.sub(a.n),a.tmp=new a,a.tmp.words=new Array(10),a.fromNumber(1).words[3]=0,e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.a=function(e,t,n){var r=0,i=!1,a=!1,f=!1,s=void 0;function o(){i=!0,a?s=[].concat(Array.prototype.slice.call(arguments)):n.apply(this,arguments)}!function l(){if(i)return;f=!0;if(a)return;a=!0;for(;!i&&r=e&&f&&(i=!0,n())}()},t.b=function(e,t,n){var r=e.length,i=[];if(0===r)return n(null,i);var a=!1,f=0;e.forEach(function(e,s){t(e,s,function(e,t){!function(e,t,s){if(a)return;t?(a=!0,n(t)):(i[e]=s,(a=++f===r)&&n(null,i))}(s,e,t)})})}},function(e,t,n){"use strict";var r=n(31),i=n.n(r),a=n(12),f=n.n(a),s=n(67),o=n.n(s),l=n(40),c=(n.n(l),n(906)),u=n(245),d=n(75),p=Object.assign||function(e){for(var t=1;t1?t-1:0),i=1;i1?t-1:0),i=1;i0)i(e.errors[0]);else try{var a=e.contracts[t+":"+t].interface,f="0x"+e.contracts[t+":"+t].bytecode;r({abi:a,bytecode:f})}catch(e){i(e)}},20)})},d=new Promise(function(e,t){window.addEventListener("load",function(){var t,n=window.web3;if(void 0!==n){if(n.currentProvider&&n.currentProvider.isMetaMask)n=new a.default(n.currentProvider);else{var r=new a.default.providers.HttpProvider;n=new a.default(r)}t={web3:n},console.log("Injected web3 detected."),e(t)}else{r=new a.default.providers.HttpProvider("https://kovan.infura.io/eKZdJzgmRo31DJI94iSO");t={web3:n=new a.default(r)},console.log("No web3 instance injected, using Local web3."),e(t)}})}),p=(t.estimateNewRegistryGas=function(e){return new Promise(function(t,n){d.then(function(r){var i=r.web3;i.eth.estimateGas({data:e},function(e,r){e?n(e):t({web3:i,gasEstimate:r})})})})},t.deployRegistry=function(e,t,n,r){var i=r.gasEstimate,a=r.contractName,f=r.permissionType,s=r.entryCreationFee,o=r.description,l=r.tags;return new Promise(function(r,c){var u=n.eth.contract(JSON.parse(t)),d=n.eth.accounts[0],p=[d],m=n.toWei(s,"ether");u.new(p,[100],[{a:"0xa3564D084fabf13e69eca6F2949D3328BF6468Ef",count:5}],f,m,a,o,l,{from:d,data:e,gas:i},function(e,t){e?c(e):t.address&&r(t.address)})})},t.getContract=function(){return d.then(function(e){var t=e.web3.eth.contract(r.default.abi).at(r.default.networks[42].address);return e.web3.eth.defaultAccount=e.web3.eth.accounts[0],new Promise(function(n){e.web3.eth.getAccounts(function(r,i){n({contract:t,web3:e.web3,accounts:i})})})})}),m=(t.register=function(e,t,n){return new Promise(function(r){p().then(function(i){var a=i.contract,f=i.web3;a.register(e,t,n,{from:f.eth.accounts[0]}).then(function(e){r()})})})},t.getRegistry=function(){return p().then(function(e){var t=e.contract,n=(e.web3,e.accounts);return S=n,y(t,"registriesAmount","registryInfo",function(e){return{name:e[0],symbol:e[1],address:e[2],creator:e[3],contractVersion:e[4],registrationTimestamp:e[5],ipfsHash:"",admin:e[6]}}).then(function(e){return{accounts:S,items:e}})})},t.removeRegistry=function(e,t){return p().then(function(t){var n=t.contract,r=t.web3;return n.deleteRegistry(e,{from:r.eth.accounts[0]})})},t.getFieldByHash=function(e){return new Promise(function(t){h.get(e,function(e,n){var r=n[0].content,i=JSON.parse(JSON.parse(r.toString())),a=i.filter(function(e){return"entries"===e.name})[0].outputs;a=a.filter(function(e){return"metainformation"!==e.name&&"owner"!==e.name&&"lastUpdateTime"!==e.name}),t({abi:i,fields:a})})})}),y=(t.getContractByAbi=function(e,t){return new Promise(function(n){d.then(function(r){var i=r.web3;i.eth.defaultAccount=i.eth.accounts[0];var a=i.eth.contract(t).at(e);n({web3:i,contract:a})})})},t.getItems2=function(e,t,n,r){return new Promise(function(i){e[t](function(t,a){for(var f=a.toNumber(),s=[],o=function(t){s.push(new Promise(function(r,i){e[n](t,function(e,n){e?i(e):r(n,t)})}))},l=0;l> ",t.args),s.eth.contract(f.default.abi).at(t.args.registryAddress).initializeRegistry(v,b,function(e,r){n(t.args)}))})}})})}).catch(i)})})},void 0),I=void 0,S=void 0;t.init=function(){return new Promise(function(e){I?e({contract:T,web3:I,accounts:S}):p().then(function(t){var n=t.contract,r=t.web3,i=t.accounts;T=n,I=r,S=i,e({contract:n,web3:r,accounts:i})})})},t.getRegistryByAddress=function(e){return I.eth.contract(f.default.abi).at(e)},t.getRegistryData=function(e,t,n){return new Promise(function(r){var i=I.eth.contract(f.default.abi).at(e);i.getEntriesStorage(function(e,a){var f=I.eth.contract(n).at(a);y(f,"entriesAmount","entryInfo",function(e,n){var r=Array.isArray(e)?e:[e];return t.reduce(function(e,t,n){return e[t.name]=r[n],e},{__index:n})}).then(function(e){i.getEntryCreationFee(function(n,i){var a=i.toNumber();r({fee:a,items:e,fields:t})})})})})},t.getEntryMeta=function(){},t.removeItem=function(e,t){return new Promise(function(n){var r=I.eth.contract(f.default.abi).at(e),i=r.EntryDeleted();i.watch(function(e,t){i.stopWatching(),n(t.args)}),r.deleteEntry(t,function(e,t){})})},t.fundEntry=function(e,t,n){return new Promise(function(r){var i=I.eth.contract(f.default.abi).at(e),a=i.EntryFunded();a.watch(function(e,t){a.stopWatching(),r(t.args)}),i.fundEntry(t,{value:I.toWei(n,"ether")},function(e,t){})})},t.addItem=function(e){return new Promise(function(t){var n=I.eth.contract(f.default.abi).at(e),r=n.EntryCreated();r.watch(function(e,n){r.stopWatching(),t(n.args.entryID.toNumber())}),n.getEntryCreationFee(function(e,t){var r=t.toNumber();n.createEntry({value:r},function(e,t){})})})},t.getSafeBalance=function(e){return new Promise(function(t){I.eth.contract(f.default.abi).at(e).safeBalance(function(e,n){t(n)})})},t.updateEntryCreationFee=function(e,t){return new Promise(function(n,r){I.eth.contract(f.default.abi).at(e).updateEntryCreationFee(I.toWei(t,"ether"),function(e,t){e?r(e):n(t)})})},t.updateItem=function(e,t,n,r){return new Promise(function(i){var a=I.eth.contract(f.default.abi).at(e);m(t).then(function(e){var t=e.abi;a.getEntriesStorage(function(e,a){var f=I.eth.contract(t).at(a),s=[n].concat(o(r),[function(e,t){i(t)}]);f.updateEntry.apply(f,s)})})})}}).call(t,n(2).Buffer)},function(e,t,n){var r;r=function(e){var t,n,r,i,a,f;return n=(t=e).lib,r=n.WordArray,i=n.Hasher,a=[],f=t.algo.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],f=n[2],s=n[3],o=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var c=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=c<<1|c>>>31}var u=(r<<5|r>>>27)+o+a[l];u+=l<20?1518500249+(i&f|~i&s):l<40?1859775393+(i^f^s):l<60?(i&f|i&s|f&s)-1894007588:(i^f^s)-899497514,o=s,s=f,f=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+f|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(f),t.HmacSHA1=i._createHmacHelper(f),e.SHA1},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){var t,n,r;n=(t=e).lib.Base,r=t.enc.Utf8,t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),f=this._iKey=t.clone(),s=a.words,o=f.words,l=0;l-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ae(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new Me,map:new(ue||Ee),string:new Me}},De.prototype.delete=function(e){return He(this,e).delete(e)},De.prototype.get=function(e){return He(this,e).get(e)},De.prototype.has=function(e){return He(this,e).has(e)},De.prototype.set=function(e,t){return He(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,a),this},Ce.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new Ee},we.prototype.delete=function(e){return this.__data__.delete(e)},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var i=n.__data__;if(!ue||i.lengthl))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,p=!0,m=i&f?new Ce:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=l}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function lt(e){return"symbol"==typeof e||ot(e)&&re.call(e)==S}var ct=F?function(e){return function(t){return e(t)}}(F):function(e){return ot(e)&&ft(e.length)&&!!N[re.call(e)]};function ut(e){return it(e)?xe(e):Ye(e)}function dt(e){return e}n.exports=function(e,t){return(rt(e)?z:Fe)(e,Ue(t))}}).call(t,n(20),n(62)(e))},function(e,t,n){"use strict";const r=n(257);function i(e){if("number"==typeof e){if(i.codes[e])return i.codes[e];throw new Error("no protocol with code: "+e)}if("string"==typeof e||e instanceof String){if(i.names[e])return i.names[e];throw new Error("no protocol with name: "+e)}throw new Error("invalid protocol id type: "+e)}function a(e,t,n,r){return{code:e,size:t,name:n,resolvable:Boolean(r)}}i.lengthPrefixedVarSize=-1,i.V=-1,i.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[54,-1,"dns4","resolvable"],[55,-1,"dns6","resolvable"],[56,-1,"dnsaddr","resolvable"],[132,16,"sctp"],[302,0,"utp"],[421,i.lengthPrefixedVarSize,"ipfs"],[480,0,"http"],[443,0,"https"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[290,0,"p2p-circuit"]],i.names={},i.codes={},r(i.table,function(e){const t=a.apply(null,e);i.codes[t.code]=t,i.names[t.name]=t}),i.object=a,e.exports=i},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(137),a=n(51),f=n(384),s=n(2).Buffer,o=n(118),l=n(140);e.exports=(e=>{const n=l(e,"add");return r((e,r,l)=>{"function"==typeof r&&(l=r,r=null);const c=a(l);if(r||(r={}),r.converter=o,!(t.isBuffer(e)||f.readable(e)||Array.isArray(e)||s.isBuffer(e)||"object"==typeof e))return c(new Error("first arg must be a buffer, readable stream, an object or array of objects"));const u=[].concat(e),d=n({qs:r}),p=i(e=>c(null,e));d.once("error",c),d.pipe(p),u.forEach(e=>d.write(e)),d.end()})})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t,r,i){var a=n(181);function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=_;var s,o=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;_.WritableState=h;var l=n(138);l.inherits=n(9);var c={deprecate:n(1003)},u=n(381),d=n(7).Buffer,p=i.Uint8Array||function(){};var m,y=n(382);function g(){}function h(e,t){s=s||n(91),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(M,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),M(e,t))}(e,n,r,t,i);else{var f=I(n);f||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?o(v,e,n,f,i):v(e,n,f,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function _(e){if(s=s||n(91),!(m.call(_,this)||this instanceof s))return new _(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function b(e,t,n,r,i,a,f){t.writelen=r,t.writecb=f,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,o=!0;n;)i[s]=n,n.isBuf||(o=!1),n=n.next,s+=1;i.allBuffers=o,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,u=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var n=I(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(_,u),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===_&&(e&&e._writableState instanceof h)}})):m=function(e){return e instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(e,t,n){var r,i=this._writableState,f=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,f=!1;return null===n?f=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(e.emit("error",f),a.nextTick(r,f),i=!1),i}(this,i,e,n))&&(i.pendingcb++,f=function(e,t,n,r,i,a){if(!n){var f=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==f&&(n=!0,i="buffer",r=f)}var s=t.objectMode?1:r.length;t.length+=s;var o=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,M(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=y.destroy,_.prototype._undestroy=y.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(25),n(183).setImmediate,n(20))},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(387),i=n(1013),a=n(1014),f="[object Null]",s="[object Undefined]",o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:f:o&&o in Object(e)?i(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0;var r,i=n(1034),a=(r=i)&&r.__esModule?r:{default:r};var f="function"==typeof Symbol;function s(e){return f&&"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){return s(e)?(0,a.default)(e):e},t.isAsync=s},function(e,t,n){"use strict";(function(n){(t=e.exports).raw=n.from("55","hex"),t.base1=n.from("01","hex"),t.base2=n.from("00","hex"),t.base8=n.from("07","hex"),t.base10=n.from("09","hex"),t.cbor=n.from("51","hex"),t.protobuf=n.from("50","hex"),t.rlp=n.from("60","hex"),t.bencode=n.from("63","hex"),t.multicodec=n.from("30","hex"),t.multihash=n.from("31","hex"),t.multiaddr=n.from("32","hex"),t.multibase=n.from("33","hex"),t.md4=n.from("d4","hex"),t.md5=n.from("d5","hex"),t.sha1=n.from("11","hex"),t["sha2-256"]=n.from("12","hex"),t["sha2-512"]=n.from("13","hex"),t["dbl-sha2-256"]=n.from("56","hex"),t["sha3-224"]=n.from("17","hex"),t["sha3-256"]=n.from("16","hex"),t["sha3-384"]=n.from("15","hex"),t["sha3-512"]=n.from("14","hex"),t["shake-128"]=n.from("18","hex"),t["shake-256"]=n.from("19","hex"),t["keccak-224"]=n.from("1a","hex"),t["keccak-256"]=n.from("1b","hex"),t["keccak-384"]=n.from("1c","hex"),t["keccak-512"]=n.from("1d","hex"),t.murmur3=n.from("22","hex"),t["blake2b-8"]=n.from("b201","hex"),t["blake2b-16"]=n.from("b202","hex"),t["blake2b-24"]=n.from("b203","hex"),t["blake2b-32"]=n.from("b204","hex"),t["blake2b-40"]=n.from("b205","hex"),t["blake2b-48"]=n.from("b206","hex"),t["blake2b-56"]=n.from("b207","hex"),t["blake2b-64"]=n.from("b208","hex"),t["blake2b-72"]=n.from("b209","hex"),t["blake2b-80"]=n.from("b20a","hex"),t["blake2b-88"]=n.from("b20b","hex"),t["blake2b-96"]=n.from("b20c","hex"),t["blake2b-104"]=n.from("b20d","hex"),t["blake2b-112"]=n.from("b20e","hex"),t["blake2b-120"]=n.from("b20f","hex"),t["blake2b-128"]=n.from("b210","hex"),t["blake2b-136"]=n.from("b211","hex"),t["blake2b-144"]=n.from("b212","hex"),t["blake2b-152"]=n.from("b213","hex"),t["blake2b-160"]=n.from("b214","hex"),t["blake2b-168"]=n.from("b215","hex"),t["blake2b-176"]=n.from("b216","hex"),t["blake2b-184"]=n.from("b217","hex"),t["blake2b-192"]=n.from("b218","hex"),t["blake2b-200"]=n.from("b219","hex"),t["blake2b-208"]=n.from("b21a","hex"),t["blake2b-216"]=n.from("b21b","hex"),t["blake2b-224"]=n.from("b21c","hex"),t["blake2b-232"]=n.from("b21d","hex"),t["blake2b-240"]=n.from("b21e","hex"),t["blake2b-248"]=n.from("b21f","hex"),t["blake2b-256"]=n.from("b220","hex"),t["blake2b-264"]=n.from("b221","hex"),t["blake2b-272"]=n.from("b222","hex"),t["blake2b-280"]=n.from("b223","hex"),t["blake2b-288"]=n.from("b224","hex"),t["blake2b-296"]=n.from("b225","hex"),t["blake2b-304"]=n.from("b226","hex"),t["blake2b-312"]=n.from("b227","hex"),t["blake2b-320"]=n.from("b228","hex"),t["blake2b-328"]=n.from("b229","hex"),t["blake2b-336"]=n.from("b22a","hex"),t["blake2b-344"]=n.from("b22b","hex"),t["blake2b-352"]=n.from("b22c","hex"),t["blake2b-360"]=n.from("b22d","hex"),t["blake2b-368"]=n.from("b22e","hex"),t["blake2b-376"]=n.from("b22f","hex"),t["blake2b-384"]=n.from("b230","hex"),t["blake2b-392"]=n.from("b231","hex"),t["blake2b-400"]=n.from("b232","hex"),t["blake2b-408"]=n.from("b233","hex"),t["blake2b-416"]=n.from("b234","hex"),t["blake2b-424"]=n.from("b235","hex"),t["blake2b-432"]=n.from("b236","hex"),t["blake2b-440"]=n.from("b237","hex"),t["blake2b-448"]=n.from("b238","hex"),t["blake2b-456"]=n.from("b239","hex"),t["blake2b-464"]=n.from("b23a","hex"),t["blake2b-472"]=n.from("b23b","hex"),t["blake2b-480"]=n.from("b23c","hex"),t["blake2b-488"]=n.from("b23d","hex"),t["blake2b-496"]=n.from("b23e","hex"),t["blake2b-504"]=n.from("b23f","hex"),t["blake2b-512"]=n.from("b240","hex"),t["blake2s-8"]=n.from("b241","hex"),t["blake2s-16"]=n.from("b242","hex"),t["blake2s-24"]=n.from("b243","hex"),t["blake2s-32"]=n.from("b244","hex"),t["blake2s-40"]=n.from("b245","hex"),t["blake2s-48"]=n.from("b246","hex"),t["blake2s-56"]=n.from("b247","hex"),t["blake2s-64"]=n.from("b248","hex"),t["blake2s-72"]=n.from("b249","hex"),t["blake2s-80"]=n.from("b24a","hex"),t["blake2s-88"]=n.from("b24b","hex"),t["blake2s-96"]=n.from("b24c","hex"),t["blake2s-104"]=n.from("b24d","hex"),t["blake2s-112"]=n.from("b24e","hex"),t["blake2s-120"]=n.from("b24f","hex"),t["blake2s-128"]=n.from("b250","hex"),t["blake2s-136"]=n.from("b251","hex"),t["blake2s-144"]=n.from("b252","hex"),t["blake2s-152"]=n.from("b253","hex"),t["blake2s-160"]=n.from("b254","hex"),t["blake2s-168"]=n.from("b255","hex"),t["blake2s-176"]=n.from("b256","hex"),t["blake2s-184"]=n.from("b257","hex"),t["blake2s-192"]=n.from("b258","hex"),t["blake2s-200"]=n.from("b259","hex"),t["blake2s-208"]=n.from("b25a","hex"),t["blake2s-216"]=n.from("b25b","hex"),t["blake2s-224"]=n.from("b25c","hex"),t["blake2s-232"]=n.from("b25d","hex"),t["blake2s-240"]=n.from("b25e","hex"),t["blake2s-248"]=n.from("b25f","hex"),t["blake2s-256"]=n.from("b260","hex"),t["skein256-8"]=n.from("b301","hex"),t["skein256-16"]=n.from("b302","hex"),t["skein256-24"]=n.from("b303","hex"),t["skein256-32"]=n.from("b304","hex"),t["skein256-40"]=n.from("b305","hex"),t["skein256-48"]=n.from("b306","hex"),t["skein256-56"]=n.from("b307","hex"),t["skein256-64"]=n.from("b308","hex"),t["skein256-72"]=n.from("b309","hex"),t["skein256-80"]=n.from("b30a","hex"),t["skein256-88"]=n.from("b30b","hex"),t["skein256-96"]=n.from("b30c","hex"),t["skein256-104"]=n.from("b30d","hex"),t["skein256-112"]=n.from("b30e","hex"),t["skein256-120"]=n.from("b30f","hex"),t["skein256-128"]=n.from("b310","hex"),t["skein256-136"]=n.from("b311","hex"),t["skein256-144"]=n.from("b312","hex"),t["skein256-152"]=n.from("b313","hex"),t["skein256-160"]=n.from("b314","hex"),t["skein256-168"]=n.from("b315","hex"),t["skein256-176"]=n.from("b316","hex"),t["skein256-184"]=n.from("b317","hex"),t["skein256-192"]=n.from("b318","hex"),t["skein256-200"]=n.from("b319","hex"),t["skein256-208"]=n.from("b31a","hex"),t["skein256-216"]=n.from("b31b","hex"),t["skein256-224"]=n.from("b31c","hex"),t["skein256-232"]=n.from("b31d","hex"),t["skein256-240"]=n.from("b31e","hex"),t["skein256-248"]=n.from("b31f","hex"),t["skein256-256"]=n.from("b320","hex"),t["skein512-8"]=n.from("b321","hex"),t["skein512-16"]=n.from("b322","hex"),t["skein512-24"]=n.from("b323","hex"),t["skein512-32"]=n.from("b324","hex"),t["skein512-40"]=n.from("b325","hex"),t["skein512-48"]=n.from("b326","hex"),t["skein512-56"]=n.from("b327","hex"),t["skein512-64"]=n.from("b328","hex"),t["skein512-72"]=n.from("b329","hex"),t["skein512-80"]=n.from("b32a","hex"),t["skein512-88"]=n.from("b32b","hex"),t["skein512-96"]=n.from("b32c","hex"),t["skein512-104"]=n.from("b32d","hex"),t["skein512-112"]=n.from("b32e","hex"),t["skein512-120"]=n.from("b32f","hex"),t["skein512-128"]=n.from("b330","hex"),t["skein512-136"]=n.from("b331","hex"),t["skein512-144"]=n.from("b332","hex"),t["skein512-152"]=n.from("b333","hex"),t["skein512-160"]=n.from("b334","hex"),t["skein512-168"]=n.from("b335","hex"),t["skein512-176"]=n.from("b336","hex"),t["skein512-184"]=n.from("b337","hex"),t["skein512-192"]=n.from("b338","hex"),t["skein512-200"]=n.from("b339","hex"),t["skein512-208"]=n.from("b33a","hex"),t["skein512-216"]=n.from("b33b","hex"),t["skein512-224"]=n.from("b33c","hex"),t["skein512-232"]=n.from("b33d","hex"),t["skein512-240"]=n.from("b33e","hex"),t["skein512-248"]=n.from("b33f","hex"),t["skein512-256"]=n.from("b340","hex"),t["skein512-264"]=n.from("b341","hex"),t["skein512-272"]=n.from("b342","hex"),t["skein512-280"]=n.from("b343","hex"),t["skein512-288"]=n.from("b344","hex"),t["skein512-296"]=n.from("b345","hex"),t["skein512-304"]=n.from("b346","hex"),t["skein512-312"]=n.from("b347","hex"),t["skein512-320"]=n.from("b348","hex"),t["skein512-328"]=n.from("b349","hex"),t["skein512-336"]=n.from("b34a","hex"),t["skein512-344"]=n.from("b34b","hex"),t["skein512-352"]=n.from("b34c","hex"),t["skein512-360"]=n.from("b34d","hex"),t["skein512-368"]=n.from("b34e","hex"),t["skein512-376"]=n.from("b34f","hex"),t["skein512-384"]=n.from("b350","hex"),t["skein512-392"]=n.from("b351","hex"),t["skein512-400"]=n.from("b352","hex"),t["skein512-408"]=n.from("b353","hex"),t["skein512-416"]=n.from("b354","hex"),t["skein512-424"]=n.from("b355","hex"),t["skein512-432"]=n.from("b356","hex"),t["skein512-440"]=n.from("b357","hex"),t["skein512-448"]=n.from("b358","hex"),t["skein512-456"]=n.from("b359","hex"),t["skein512-464"]=n.from("b35a","hex"),t["skein512-472"]=n.from("b35b","hex"),t["skein512-480"]=n.from("b35c","hex"),t["skein512-488"]=n.from("b35d","hex"),t["skein512-496"]=n.from("b35e","hex"),t["skein512-504"]=n.from("b35f","hex"),t["skein512-512"]=n.from("b360","hex"),t["skein1024-8"]=n.from("b361","hex"),t["skein1024-16"]=n.from("b362","hex"),t["skein1024-24"]=n.from("b363","hex"),t["skein1024-32"]=n.from("b364","hex"),t["skein1024-40"]=n.from("b365","hex"),t["skein1024-48"]=n.from("b366","hex"),t["skein1024-56"]=n.from("b367","hex"),t["skein1024-64"]=n.from("b368","hex"),t["skein1024-72"]=n.from("b369","hex"),t["skein1024-80"]=n.from("b36a","hex"),t["skein1024-88"]=n.from("b36b","hex"),t["skein1024-96"]=n.from("b36c","hex"),t["skein1024-104"]=n.from("b36d","hex"),t["skein1024-112"]=n.from("b36e","hex"),t["skein1024-120"]=n.from("b36f","hex"),t["skein1024-128"]=n.from("b370","hex"),t["skein1024-136"]=n.from("b371","hex"),t["skein1024-144"]=n.from("b372","hex"),t["skein1024-152"]=n.from("b373","hex"),t["skein1024-160"]=n.from("b374","hex"),t["skein1024-168"]=n.from("b375","hex"),t["skein1024-176"]=n.from("b376","hex"),t["skein1024-184"]=n.from("b377","hex"),t["skein1024-192"]=n.from("b378","hex"),t["skein1024-200"]=n.from("b379","hex"),t["skein1024-208"]=n.from("b37a","hex"),t["skein1024-216"]=n.from("b37b","hex"),t["skein1024-224"]=n.from("b37c","hex"),t["skein1024-232"]=n.from("b37d","hex"),t["skein1024-240"]=n.from("b37e","hex"),t["skein1024-248"]=n.from("b37f","hex"),t["skein1024-256"]=n.from("b380","hex"),t["skein1024-264"]=n.from("b381","hex"),t["skein1024-272"]=n.from("b382","hex"),t["skein1024-280"]=n.from("b383","hex"),t["skein1024-288"]=n.from("b384","hex"),t["skein1024-296"]=n.from("b385","hex"),t["skein1024-304"]=n.from("b386","hex"),t["skein1024-312"]=n.from("b387","hex"),t["skein1024-320"]=n.from("b388","hex"),t["skein1024-328"]=n.from("b389","hex"),t["skein1024-336"]=n.from("b38a","hex"),t["skein1024-344"]=n.from("b38b","hex"),t["skein1024-352"]=n.from("b38c","hex"),t["skein1024-360"]=n.from("b38d","hex"),t["skein1024-368"]=n.from("b38e","hex"),t["skein1024-376"]=n.from("b38f","hex"),t["skein1024-384"]=n.from("b390","hex"),t["skein1024-392"]=n.from("b391","hex"),t["skein1024-400"]=n.from("b392","hex"),t["skein1024-408"]=n.from("b393","hex"),t["skein1024-416"]=n.from("b394","hex"),t["skein1024-424"]=n.from("b395","hex"),t["skein1024-432"]=n.from("b396","hex"),t["skein1024-440"]=n.from("b397","hex"),t["skein1024-448"]=n.from("b398","hex"),t["skein1024-456"]=n.from("b399","hex"),t["skein1024-464"]=n.from("b39a","hex"),t["skein1024-472"]=n.from("b39b","hex"),t["skein1024-480"]=n.from("b39c","hex"),t["skein1024-488"]=n.from("b39d","hex"),t["skein1024-496"]=n.from("b39e","hex"),t["skein1024-504"]=n.from("b39f","hex"),t["skein1024-512"]=n.from("b3a0","hex"),t["skein1024-520"]=n.from("b3a1","hex"),t["skein1024-528"]=n.from("b3a2","hex"),t["skein1024-536"]=n.from("b3a3","hex"),t["skein1024-544"]=n.from("b3a4","hex"),t["skein1024-552"]=n.from("b3a5","hex"),t["skein1024-560"]=n.from("b3a6","hex"),t["skein1024-568"]=n.from("b3a7","hex"),t["skein1024-576"]=n.from("b3a8","hex"),t["skein1024-584"]=n.from("b3a9","hex"),t["skein1024-592"]=n.from("b3aa","hex"),t["skein1024-600"]=n.from("b3ab","hex"),t["skein1024-608"]=n.from("b3ac","hex"),t["skein1024-616"]=n.from("b3ad","hex"),t["skein1024-624"]=n.from("b3ae","hex"),t["skein1024-632"]=n.from("b3af","hex"),t["skein1024-640"]=n.from("b3b0","hex"),t["skein1024-648"]=n.from("b3b1","hex"),t["skein1024-656"]=n.from("b3b2","hex"),t["skein1024-664"]=n.from("b3b3","hex"),t["skein1024-672"]=n.from("b3b4","hex"),t["skein1024-680"]=n.from("b3b5","hex"),t["skein1024-688"]=n.from("b3b6","hex"),t["skein1024-696"]=n.from("b3b7","hex"),t["skein1024-704"]=n.from("b3b8","hex"),t["skein1024-712"]=n.from("b3b9","hex"),t["skein1024-720"]=n.from("b3ba","hex"),t["skein1024-728"]=n.from("b3bb","hex"),t["skein1024-736"]=n.from("b3bc","hex"),t["skein1024-744"]=n.from("b3bd","hex"),t["skein1024-752"]=n.from("b3be","hex"),t["skein1024-760"]=n.from("b3bf","hex"),t["skein1024-768"]=n.from("b3c0","hex"),t["skein1024-776"]=n.from("b3c1","hex"),t["skein1024-784"]=n.from("b3c2","hex"),t["skein1024-792"]=n.from("b3c3","hex"),t["skein1024-800"]=n.from("b3c4","hex"),t["skein1024-808"]=n.from("b3c5","hex"),t["skein1024-816"]=n.from("b3c6","hex"),t["skein1024-824"]=n.from("b3c7","hex"),t["skein1024-832"]=n.from("b3c8","hex"),t["skein1024-840"]=n.from("b3c9","hex"),t["skein1024-848"]=n.from("b3ca","hex"),t["skein1024-856"]=n.from("b3cb","hex"),t["skein1024-864"]=n.from("b3cc","hex"),t["skein1024-872"]=n.from("b3cd","hex"),t["skein1024-880"]=n.from("b3ce","hex"),t["skein1024-888"]=n.from("b3cf","hex"),t["skein1024-896"]=n.from("b3d0","hex"),t["skein1024-904"]=n.from("b3d1","hex"),t["skein1024-912"]=n.from("b3d2","hex"),t["skein1024-920"]=n.from("b3d3","hex"),t["skein1024-928"]=n.from("b3d4","hex"),t["skein1024-936"]=n.from("b3d5","hex"),t["skein1024-944"]=n.from("b3d6","hex"),t["skein1024-952"]=n.from("b3d7","hex"),t["skein1024-960"]=n.from("b3d8","hex"),t["skein1024-968"]=n.from("b3d9","hex"),t["skein1024-976"]=n.from("b3da","hex"),t["skein1024-984"]=n.from("b3db","hex"),t["skein1024-992"]=n.from("b3dc","hex"),t["skein1024-1000"]=n.from("b3dd","hex"),t["skein1024-1008"]=n.from("b3de","hex"),t["skein1024-1016"]=n.from("b3df","hex"),t["skein1024-1024"]=n.from("b3e0","hex"),t.ip4=n.from("04","hex"),t.ip6=n.from("29","hex"),t.tcp=n.from("06","hex"),t.udp=n.from("0111","hex"),t.dccp=n.from("21","hex"),t.sctp=n.from("84","hex"),t.udt=n.from("012d","hex"),t.utp=n.from("012e","hex"),t.ipfs=n.from("01a5","hex"),t.http=n.from("01e0","hex"),t.https=n.from("01bb","hex"),t.quic=n.from("01cc","hex"),t.ws=n.from("01dd","hex"),t.onion=n.from("01bc","hex"),t["p2p-circuit"]=n.from("0122","hex"),t["git-raw"]=n.from("78","hex"),t["dag-pb"]=n.from("70","hex"),t["dag-cbor"]=n.from("71","hex"),t["git-raw"]=n.from("78","hex"),t["eth-block"]=n.from("90","hex"),t["eth-block-list"]=n.from("91","hex"),t["eth-tx-trie"]=n.from("92","hex"),t["eth-tx"]=n.from("93","hex"),t["eth-tx-receipt-trie"]=n.from("94","hex"),t["eth-tx-receipt"]=n.from("95","hex"),t["eth-state-trie"]=n.from("96","hex"),t["eth-account-snapshot"]=n.from("97","hex"),t["eth-storage-trie"]=n.from("98","hex"),t["bitcoin-block"]=n.from("b0","hex"),t["bitcoin-tx"]=n.from("b1","hex"),t["zcash-block"]=n.from("c0","hex"),t["zcash-tx"]=n.from("c1","hex"),t["stellar-block"]=n.from("d0","hex"),t["stellar-tx"]=n.from("d1","hex"),t["torrent-info"]=n.from("7b","hex"),t["torrent-file"]=n.from("7c","hex"),t["ed25519-pub"]=n.from("ed","hex")}).call(t,n(2).Buffer)},function(e,t,n){var r=n(51),i=function(){},a=function(e,t,n){if("function"==typeof t)return a(e,null,t);t||(t={}),n=r(n||i);var f=e._writableState,s=e._readableState,o=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||u()},u=function(){l=!1,o||n.call(e)},d=function(){o=!1,l||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},y=function(){return(!o||s&&s.ended)&&(!l||f&&f.ended)?void 0:n.call(e,new Error("premature close"))},g=function(){e.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?l&&!f&&(e.on("end",c),e.on("close",c)):(e.on("complete",u),e.on("abort",y),e.req?g():e.on("request",g)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",d),e.on("finish",u),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",u),e.removeListener("abort",y),e.removeListener("request",g),e.req&&e.req.removeListener("finish",u),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",u),e.removeListener("exit",p),e.removeListener("end",d),e.removeListener("error",m),e.removeListener("close",y)}};e.exports=a},function(e,t,n){"use strict";const r=n(94),i=n(1058),a=n(26).Readable;e.exports=((e,t)=>{let n=new class extends a{constructor(e){super(Object.assign(e||{},{objectMode:!0}))}_read(){}},f=i.extract();f.on("entry",(e,t,r)=>{t.on("end",r),"directory"!==e.type?n.push({path:e.name,content:t}):(n.push({path:e.name}),t.resume())}).on("finish",()=>n.push(null)),r(e,f),t(null,n)})},function(e,t,n){"use strict";var r=n(1065),i=n(1071),a=n(1077);for(var f in(t=e.exports=n(396)).pull=t,r)t[f]=r[f];for(var f in a)t[f]=a[f];for(var f in i)t[f]=i[f]},function(e,t,n){"use strict";var r=n(413);e.exports=function(e,t){if(!e)return function(e,n){return e?r(n,e,t):n(!0)};Array.isArray(e)||(e=Object.keys(e).map(function(t){return e[t]}));var n=0;return function(i,a){if(i)return r(a,i,t);n>=e.length?a(!0):a(null,e[n++])}}},function(e,t,n){"use strict";var r=n(142);e.exports=function(e,t,n){n||(n=t,t=null);var i=r(function(n){t=e(t,n)},function(e){n(e,t)});return 2===arguments.length?function(e){e(null,function(r,a){if(r)return n(!0===r?null:r);t=a,i(e)})}:i}},function(e,t,n){"use strict";var r=n(415);e.exports=function(e){return e=r(e),function(t){return function n(r,i){for(var a,f=!0;f;)f=!1,a=!0,t(r,function(t,r){if(!t&&!e(r))return a?f=!0:n(t,i);i(t,r)}),a=!1}}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(r):a<128?n+=i[a]:a<2048?n+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?n+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),n+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return n},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var f=t;return Array.isArray(t)&&!Array.isArray(n)&&(f=a(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(t,a)?t[a]&&"object"==typeof t[a]?t[a]=e(t[a],n,i):t.push(n):t[a]=n}),t):Object.keys(n).reduce(function(t,a){var f=n[a];return r.call(t,a)?t[a]=e(t[a],f,i):t[a]=f,t},f)}}},function(e,t,n){"use strict";var r=n(1096),i=n(1097);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var f=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n(1098);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a127?N+="x":N+=k[R];if(!N.match(p)){var P=A.slice(0,C),B=A.slice(C+1),j=k.match(m);j&&(P.push(j[1]),B.unshift(j[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",Y=this.hostname||"";this.host=Y+U,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!y[I])for(C=0,L=c.length;C0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],D=(n.host||e.host||S.length>1)&&("."===E||".."===E)||""===E,C=0,w=S.length;w>=0;w--)"."===(E=S[w])?S.splice(w,1):".."===E?(S.splice(w,1),C++):C&&(S.splice(w,1),C--);if(!T&&!I)for(;C--;C)S.unshift("..");!T||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),D&&"/"!==S.join("/").substr(-1)&&S.push("");var x,A=""===S[0]||S[0]&&"/"===S[0].charAt(0);M&&(n.hostname=n.host=A?"":S.length?S.shift():"",(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift()));return(T=T||n.host&&S.length)&&!A&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";const r=n(51),i=n(137),a=n(140);e.exports=((e,t)=>{const n=a(e,t);return(e,t,a)=>{const f=r(a),s=n(t),o=i(e=>f(null,e));s.once("error",f),s.pipe(o),s.write(e),s.end()}})},function(e,t,n){e.exports=i;var r=n(182).EventEmitter;function i(){r.call(this)}n(9)(i,r),i.Readable=n(26),i.Writable=n(1122),i.Duplex=n(401),i.Transform=n(410),i.PassThrough=n(1123),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",o));var f=!1;function s(){f||(f=!0,e.end())}function o(){f||(f=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",o),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t,n){"use strict";(function(r){const i=n(69),a=n(189);(t=e.exports=class{constructor(e,t,n,f){a(n,"DAGNode needs its serialized format"),a(f,"DAGNode needs its multihash"),"string"==typeof f&&(f=i.fromB58String(f)),this._data=e||r.alloc(0),this._links=t||[],this._serialized=n,this._multihash=f,this._size=this.links.reduce((e,t)=>e+t.size,this.serialized.length),this._json={data:this.data,links:this.links.map(e=>e.toJSON()),multihash:i.toB58String(this.multihash),size:this.size}}toJSON(){return this._json}toString(){return`DAGNode <${i.toB58String(this.multihash)} - data: "${this.data.toString()}", links: ${this.links.length}, size: ${this.size}>`}get data(){return this._data}set data(e){throw new Error("Can't set property: 'data' is immutable")}get links(){return this._links}set links(e){throw new Error("Can't set property: 'links' is immutable")}get serialized(){return this._serialized}set serialized(e){throw new Error("Can't set property: 'serialized' is immutable")}get size(){return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}get multihash(){return this._multihash}set multihash(e){throw new Error("Can't set property: 'multihash' is immutable")}}).create=n(190),t.clone=n(1178),t.addLink=n(1179),t.rmLink=n(1180)}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(r){const i=n(52),a=n(148)(n(1175)),f=n(95),s=n(277);(t=e.exports).serialize=function(e,t){let n;"DAGNode"!==e.constructor.name&&e.links&&(e.links=e.links.map(e=>f.util.isDagLink(e)?e:f.util.createDagLinkFromB58EncodedHash(e)));try{n=a.PBNode.encode(function(e){const t={};return e.data&&e.data.length>0?t.Data=e.data:t.Data=null,e.links&&e.links.length>0?t.Links=e.links.map(e=>({Hash:e.multihash,Name:e.name,Tsize:e.size})):t.Links=null,t}(e))}catch(e){return t(e)}t(null,n)},t.deserialize=function(e,t){const n=a.PBNode.decode(e),i=n.Links.map(e=>new f(e.Name,e.Tsize,e.Hash)),o=null==n.Data?r.alloc(0):r.from(n.Data);s.create(o,i,t)},t.cid=function(e,t){if(e.multihash)return t(null,new i(e.multihash));t(new Error("not valid dagPB node"))}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";t.defined=function(e){return null!==e&&void 0!==e&&("number"!=typeof e||!isNaN(e))}},function(e,t,n){"use strict";const r=n(144);e.exports=(e=>({totalIn:new r(e.TotalIn),totalOut:new r(e.TotalOut),rateIn:new r(e.RateIn),rateOut:new r(e.RateOut)}))},function(e,t,n){"use strict";(function(r){const i=n(69),a=n(1215),f=n(189),s=n(429);class o{constructor(e,t,n){f(r.isBuffer(e),"invalid id provided"),t&&n&&f(t.public.bytes.equals(n.bytes),"inconsistent arguments"),this._id=e,this._idB58String=i.toB58String(this.id),this._privKey=t,this._pubKey=n}get id(){return this._id}set id(e){throw new Error("Id is immutable")}get privKey(){return this._privKey}set privKey(e){this._privKey=e}get pubKey(){return this._pubKey?this._pubKey:this._privKey?this._privKey.public:void 0}set pubKey(e){this._pubKey=e}marshalPubKey(){if(this.pubKey)return a.keys.marshalPublicKey(this.pubKey)}marshalPrivKey(){if(this.privKey)return a.keys.marshalPrivateKey(this.privKey)}toPrint(){return this.toJSON()}toJSON(){return{id:this.toB58String(),privKey:l(this.marshalPrivKey()),pubKey:l(this.marshalPubKey())}}toHexString(){return i.toHexString(this.id)}toBytes(){return this.id}toB58String(){return this._idB58String}isEqual(e){if(r.isBuffer(e))return this.id.equals(e);if(e.id)return this.id.equals(e.id);throw new Error("not valid Id")}isValid(e){this.privKey&&this.privKey.public&&this.privKey.public.bytes&&r.isBuffer(this.pubKey.bytes)&&this.privKey.public.bytes.equals(this.pubKey.bytes)?e():e(new Error("Keys not match"))}}function l(e){if(e)return e.toString("base64")}(t=e.exports=o).create=function(e,t){"function"==typeof e&&(t=e,e={}),(e=e||{}).bits=e.bits||2048,s([t=>a.keys.generateKeyPair("RSA",e.bits,t),(e,t)=>e.public.hash((n,r)=>{t(n,r,e)})],(e,n,r)=>{if(e)return t(e);t(null,new o(n,r))})},t.createFromHexString=function(e){return new o(i.fromHexString(e))},t.createFromBytes=function(e){return new o(e)},t.createFromB58String=function(e){return new o(i.fromB58String(e))},t.createFromPubKey=function(e,t){if("function"!=typeof t)throw new Error("callback is required");let n;try{let i=e;if("string"==typeof i&&(i=r.from(e,"base64")),!r.isBuffer(i))throw new Error("Supplied key is neither a base64 string nor a buffer");n=a.keys.unmarshalPublicKey(i)}catch(e){return t(e)}n.hash((e,r)=>{if(e)return t(e);t(null,new o(r,null,n))})},t.createFromPrivKey=function(e,t){if("function"!=typeof t)throw new Error("callback is required");let n=e;try{if("string"==typeof n&&(n=r.from(e,"base64")),!r.isBuffer(n))throw new Error("Supplied key is neither a base64 string nor a buffer")}catch(e){return t(e)}s([e=>a.keys.unmarshalPrivateKey(n,e),(e,t)=>e.public.hash((n,r)=>{t(n,r,e)})],(e,n,r)=>{if(e)return t(e);t(null,new o(n,r,r.public))})},t.createFromJSON=function(e,t){if("function"!=typeof t)throw new Error("callback is required");let n,f,l,c;try{n=i.fromB58String(e.id),f=e.privKey&&r.from(e.privKey,"base64"),l=e.pubKey&&r.from(e.pubKey,"base64"),c=l&&a.keys.unmarshalPublicKey(l)}catch(e){return t(e)}f?s([e=>a.keys.unmarshalPrivateKey(f,e),(e,t)=>e.public.hash((n,r)=>{t(n,r,e)}),(e,t,n)=>{c?c.hash((r,i)=>{n(r,e,t,i)}):n(null,e,t)}],(e,r,i,a)=>e?t(e):c&&!r.equals(a)?t(new Error("Public and private key do not match")):n&&!r.equals(n)?t(new Error("Id and private key do not match")):void t(null,new o(n,i,c))):t(null,new o(n,null,c))},t.isPeerId=function(e){return Boolean("object"==typeof e&&e._id&&e._idB58String)}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";e.exports=function(e,t){return e.then(e=>{t(null,e)},e=>{t(e)})}},function(e,t,n){"use strict";e.exports=(()=>{if("undefined"!=typeof self&&(n(1216)(self),self.crypto))return self.crypto;throw new Error("Please use an environment with crypto support")})},function(e,t,n){"use strict";(function(t){var r=n(9),i=n(439),a=new Array(16);function f(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function o(e,t,n,r,i,a,f){return s(e+(t&n|~t&r)+i+a|0,f)+t|0}function l(e,t,n,r,i,a,f){return s(e+(t&r|n&~r)+i+a|0,f)+t|0}function c(e,t,n,r,i,a,f){return s(e+(t^n^r)+i+a|0,f)+t|0}function u(e,t,n,r,i,a,f){return s(e+(n^(t|~r))+i+a|0,f)+t|0}r(f,i),f.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,f=this._d;r=u(r=u(r=u(r=u(r=c(r=c(r=c(r=c(r=l(r=l(r=l(r=l(r=o(r=o(r=o(r=o(r,i=o(i,f=o(f,n=o(n,r,i,f,e[0],3614090360,7),r,i,e[1],3905402710,12),n,r,e[2],606105819,17),f,n,e[3],3250441966,22),i=o(i,f=o(f,n=o(n,r,i,f,e[4],4118548399,7),r,i,e[5],1200080426,12),n,r,e[6],2821735955,17),f,n,e[7],4249261313,22),i=o(i,f=o(f,n=o(n,r,i,f,e[8],1770035416,7),r,i,e[9],2336552879,12),n,r,e[10],4294925233,17),f,n,e[11],2304563134,22),i=o(i,f=o(f,n=o(n,r,i,f,e[12],1804603682,7),r,i,e[13],4254626195,12),n,r,e[14],2792965006,17),f,n,e[15],1236535329,22),i=l(i,f=l(f,n=l(n,r,i,f,e[1],4129170786,5),r,i,e[6],3225465664,9),n,r,e[11],643717713,14),f,n,e[0],3921069994,20),i=l(i,f=l(f,n=l(n,r,i,f,e[5],3593408605,5),r,i,e[10],38016083,9),n,r,e[15],3634488961,14),f,n,e[4],3889429448,20),i=l(i,f=l(f,n=l(n,r,i,f,e[9],568446438,5),r,i,e[14],3275163606,9),n,r,e[3],4107603335,14),f,n,e[8],1163531501,20),i=l(i,f=l(f,n=l(n,r,i,f,e[13],2850285829,5),r,i,e[2],4243563512,9),n,r,e[7],1735328473,14),f,n,e[12],2368359562,20),i=c(i,f=c(f,n=c(n,r,i,f,e[5],4294588738,4),r,i,e[8],2272392833,11),n,r,e[11],1839030562,16),f,n,e[14],4259657740,23),i=c(i,f=c(f,n=c(n,r,i,f,e[1],2763975236,4),r,i,e[4],1272893353,11),n,r,e[7],4139469664,16),f,n,e[10],3200236656,23),i=c(i,f=c(f,n=c(n,r,i,f,e[13],681279174,4),r,i,e[0],3936430074,11),n,r,e[3],3572445317,16),f,n,e[6],76029189,23),i=c(i,f=c(f,n=c(n,r,i,f,e[9],3654602809,4),r,i,e[12],3873151461,11),n,r,e[15],530742520,16),f,n,e[2],3299628645,23),i=u(i,f=u(f,n=u(n,r,i,f,e[0],4096336452,6),r,i,e[7],1126891415,10),n,r,e[14],2878612391,15),f,n,e[5],4237533241,21),i=u(i,f=u(f,n=u(n,r,i,f,e[12],1700485571,6),r,i,e[3],2399980690,10),n,r,e[10],4293915773,15),f,n,e[1],2240044497,21),i=u(i,f=u(f,n=u(n,r,i,f,e[8],1873313359,6),r,i,e[15],4264355552,10),n,r,e[6],2734768916,15),f,n,e[13],1309151649,21),i=u(i,f=u(f,n=u(n,r,i,f,e[4],4149444226,6),r,i,e[11],3174756917,10),n,r,e[2],718787259,15),f,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+f|0},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=f}).call(t,n(2).Buffer)},function(e,t,n){"use strict";e.exports="enum KeyType {\n RSA = 0;\n Ed25519 = 1;\n Secp256k1 = 2;\n}\nmessage PublicKey {\n required KeyType Type = 1;\n required bytes Data = 2;\n}\nmessage PrivateKey {\n required KeyType Type = 1;\n required bytes Data = 2;\n}"},function(e,t,n){e.exports=n(4),n(97),n(1232),n(70),n(287),n(453),n(195),n(1234),n(150),n(1235),n(455),n(1236),n(452),n(289),n(121),n(448),n(450),n(1237),n(442),n(449),n(446),n(291),n(54),n(447),n(1238),n(1239),n(441),n(11)},function(e,t,n){var r=n(4);n(11),e.exports=r.cipher=r.cipher||{},r.cipher.algorithms=r.cipher.algorithms||{},r.cipher.createCipher=function(e,t){var n=e;if("string"==typeof n&&(n=r.cipher.getAlgorithm(n))&&(n=n()),!n)throw new Error("Unsupported algorithm: "+e);return new r.cipher.BlockCipher({algorithm:n,key:t,decrypt:!1})},r.cipher.createDecipher=function(e,t){var n=e;if("string"==typeof n&&(n=r.cipher.getAlgorithm(n))&&(n=n()),!n)throw new Error("Unsupported algorithm: "+e);return new r.cipher.BlockCipher({algorithm:n,key:t,decrypt:!0})},r.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),r.cipher.algorithms[e]=t},r.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in r.cipher.algorithms?r.cipher.algorithms[e]:null};var i=r.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};i.prototype.start=function(e){e=e||{};var t={};for(var n in e)t[n]=e[n];t.decrypt=this._decrypt,this._finish=!1,this._input=r.util.createBuffer(),this.output=e.output||r.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t))&&(this._finish=!0,this.update(),!(this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))&&!(this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},function(e,t,n){var r=n(4);n(71),n(11);var i=e.exports=r.md5=r.md5||{};r.md.md5=r.md.algorithms.md5=i,i.create=function(){l||function(){a=String.fromCharCode(128),a+=r.util.fillString(String.fromCharCode(0),64),f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],s=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],o=new Array(64);for(var e=0;e<64;++e)o[e]=Math.floor(4294967296*Math.abs(Math.sin(e+1)));l=!0}();var e=null,t=r.util.createBuffer(),n=new Array(16),i={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var n=i.messageLengthSize/4,a=0;a>>0,s>>>0];for(var o=i.fullMessageLength.length-1;o>=0;--o)i.fullMessageLength[o]+=s[1],s[1]=s[0]+(i.fullMessageLength[o]/4294967296>>>0),i.fullMessageLength[o]=i.fullMessageLength[o]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(a),c(e,n,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var f=r.util.createBuffer();f.putBytes(t.bytes());var s=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;f.putBytes(a.substr(0,i.blockLength-s));for(var o,l=0,u=i.fullMessageLength.length-1;u>=0;--u)l=(o=8*i.fullMessageLength[u]+l)/4294967296>>>0,f.putInt32Le(o>>>0);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};c(d,n,f);var p=r.util.createBuffer();return p.putInt32Le(d.h0),p.putInt32Le(d.h1),p.putInt32Le(d.h2),p.putInt32Le(d.h3),p},i};var a=null,f=null,s=null,o=null,l=!1;function c(e,t,n){for(var r,i,a,l,c,u,d,p=n.length();p>=64;){for(i=e.h0,a=e.h1,l=e.h2,c=e.h3,d=0;d<16;++d)t[d]=n.getInt32Le(),r=i+(c^a&(l^c))+o[d]+t[d],i=c,c=l,l=a,a+=r<<(u=s[d])|r>>>32-u;for(;d<32;++d)r=i+(l^c&(a^l))+o[d]+t[f[d]],i=c,c=l,l=a,a+=r<<(u=s[d])|r>>>32-u;for(;d<48;++d)r=i+(a^l^c)+o[d]+t[f[d]],i=c,c=l,l=a,a+=r<<(u=s[d])|r>>>32-u;for(;d<64;++d)r=i+(l^(a|~c))+o[d]+t[f[d]],i=c,c=l,l=a,a+=r<<(u=s[d])|r>>>32-u;e.h0=e.h0+i|0,e.h1=e.h1+a|0,e.h2=e.h2+l|0,e.h3=e.h3+c|0,p-=64}}},function(e,t,n){(function(t){var r=n(4);n(150),n(71),n(11);var i,a=r.pkcs5=r.pkcs5||{};r.util.isNodejs&&!r.options.usePureJavaScript&&(i=n(444)),e.exports=r.pbkdf2=a.pbkdf2=function(e,n,a,f,s,o){if("function"==typeof s&&(o=s,s=null),r.util.isNodejs&&!r.options.usePureJavaScript&&i.pbkdf2&&(null===s||"object"!=typeof s)&&(i.pbkdf2Sync.length>4||!s||"sha1"===s))return"string"!=typeof s&&(s="sha1"),e=new t(e,"binary"),n=new t(n,"binary"),o?4===i.pbkdf2Sync.length?i.pbkdf2(e,n,a,f,function(e,t){if(e)return o(e);o(null,t.toString("binary"))}):i.pbkdf2(e,n,a,f,s,function(e,t){if(e)return o(e);o(null,t.toString("binary"))}):4===i.pbkdf2Sync.length?i.pbkdf2Sync(e,n,a,f).toString("binary"):i.pbkdf2Sync(e,n,a,f,s).toString("binary");if(void 0!==s&&null!==s||(s="sha1"),"string"==typeof s){if(!(s in r.md.algorithms))throw new Error("Unknown hash algorithm: "+s);s=r.md[s].create()}var l=s.digestLength;if(f>4294967295*l){var c=new Error("Derived key is too long.");if(o)return o(c);throw c}var u=Math.ceil(f/l),d=f-(u-1)*l,p=r.hmac.create();p.start(s,e);var m,y,g,h="";if(!o){for(var _=1;_<=u;++_){p.start(null,null),p.update(n),p.update(r.util.int32ToBytes(_)),m=g=p.digest().getBytes();for(var b=2;b<=a;++b)p.start(null,null),p.update(g),y=p.digest().getBytes(),m=r.util.xorBytes(m,y,l),g=y;h+=_u)return o(null,h);p.start(null,null),p.update(n),p.update(r.util.int32ToBytes(_)),m=g=p.digest().getBytes(),b=2,T()}function T(){if(b<=a)return p.start(null,null),p.update(g),y=p.digest().getBytes(),m=r.util.xorBytes(m,y,l),g=y,++b,r.util.setImmediate(T);h+=_2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(u.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(o.validity.notBefore=u[0],o.validity.notAfter=u[1],o.tbsCertificate=n.tbsCertificate,t){var d;if(o.md=null,o.signatureOid in f)switch(f[o.signatureOid]){case"sha1WithRSAEncryption":o.md=r.md.sha1.create();break;case"md5WithRSAEncryption":o.md=r.md.md5.create();break;case"sha256WithRSAEncryption":o.md=r.md.sha256.create();break;case"sha384WithRSAEncryption":o.md=r.md.sha384.create();break;case"sha512WithRSAEncryption":o.md=r.md.sha512.create();break;case"RSASSA-PSS":o.md=r.md.sha256.create()}if(null===o.md)throw(d=new Error("Could not compute certificate digest. Unknown signature OID.")).signatureOid=o.signatureOid,d;var y=i.toDer(o.tbsCertificate);o.md.update(y.getBytes())}var h=r.md.sha1.create();o.issuer.getField=function(e){return p(o.issuer,e)},o.issuer.addField=function(e){g([e]),o.issuer.attributes.push(e)},o.issuer.attributes=a.RDNAttributesAsArray(n.certIssuer,h),n.certIssuerUniqueId&&(o.issuer.uniqueId=n.certIssuerUniqueId),o.issuer.hash=h.digest().toHex();var _=r.md.sha1.create();return o.subject.getField=function(e){return p(o.subject,e)},o.subject.addField=function(e){g([e]),o.subject.attributes.push(e)},o.subject.attributes=a.RDNAttributesAsArray(n.certSubject,_),n.certSubjectUniqueId&&(o.subject.uniqueId=n.certSubjectUniqueId),o.subject.hash=_.digest().toHex(),n.certExtensions?o.extensions=a.certificateExtensionsFromAsn1(n.certExtensions):o.extensions=[],o.publicKey=a.publicKeyFromAsn1(n.subjectPublicKeyInfo),o},a.certificateExtensionsFromAsn1=function(e){for(var t=[],n=0;n1&&(n=o.value.charCodeAt(1),a=o.value.length>2?o.value.charCodeAt(2):0),t.digitalSignature=128==(128&n),t.nonRepudiation=64==(64&n),t.keyEncipherment=32==(32&n),t.dataEncipherment=16==(16&n),t.keyAgreement=8==(8&n),t.keyCertSign=4==(4&n),t.cRLSign=2==(2&n),t.encipherOnly=1==(1&n),t.decipherOnly=128==(128&a)}else if("basicConstraints"===t.name){(o=i.fromDer(t.value)).value.length>0&&o.value[0].type===i.Type.BOOLEAN?t.cA=0!==o.value[0].value.charCodeAt(0):t.cA=!1;var s=null;o.value.length>0&&o.value[0].type===i.Type.INTEGER?s=o.value[0].value:o.value.length>1&&(s=o.value[1].value),null!==s&&(t.pathLenConstraint=i.derToInteger(s))}else if("extKeyUsage"===t.name)for(var o=i.fromDer(t.value),l=0;l1&&(n=o.value.charCodeAt(1)),t.client=128==(128&n),t.server=64==(64&n),t.email=32==(32&n),t.objsign=16==(16&n),t.reserved=8==(8&n),t.sslCA=4==(4&n),t.emailCA=2==(2&n),t.objCA=1==(1&n)}else if("subjectAltName"===t.name||"issuerAltName"===t.name){var u;t.altNames=[];o=i.fromDer(t.value);for(var d=0;d0&&t.value.push(a.certificateExtensionsToAsn1(e.extensions)),t},a.getCertificationRequestInfo=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),y(e.subject),a.publicKeyToAsn1(e.publicKey),function(e){var t=i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[]);if(0===e.attributes.length)return t;for(var n=e.attributes,a=0;ac.validity.notAfter)&&(o={message:"Certificate is not valid yet or has expired.",error:a.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:f}),null===o){if(null===(u=t[0]||e.getIssuer(c))&&c.isIssuer(c)&&(d=!0,u=c),u){var p=u;r.util.isArray(p)||(p=[p]);for(var m=!1;!m&&p.length>0;){u=p.shift();try{m=u.verify(c)}catch(e){}}m||(o={message:"Certificate signature is invalid.",error:a.certificateError.bad_certificate})}null!==o||u&&!d||e.hasCertificate(c)||(o={message:"Certificate is not trusted.",error:a.certificateError.unknown_ca})}if(null===o&&u&&!c.isIssuer(u)&&(o={message:"Certificate issuer is invalid.",error:a.certificateError.bad_certificate}),null===o)for(var y={keyUsage:!0,basicConstraints:!0},g=0;null===o&&g_.pathLenConstraint&&(o={message:"Certificate basicConstraints pathLenConstraint violated.",error:a.certificateError.bad_certificate})}var v=null===o||o.error,T=n?n(v,l,i):v;if(!0!==T)throw!0===v&&(o={message:"The application rejected the certificate.",error:a.certificateError.bad_certificate}),(T||0===T)&&("object"!=typeof T||r.util.isArray(T)?"string"==typeof T&&(o.error=T):(T.message&&(o.message=T.message),T.error&&(o.error=T.error))),o;o=null,s=!1,++l}while(t.length>0);return!0}},function(e,t,n){var r=n(4);n(54),n(11),(e.exports=r.pss=r.pss||{}).create=function(e){3===arguments.length&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t,n=e.md,i=e.mgf,a=n.digestLength,f=e.salt||null;if("string"==typeof f&&(f=r.util.createBuffer(f)),"saltLength"in e)t=e.saltLength;else{if(null===f)throw new Error("Salt length not specified or specific salt not given.");t=f.length()}if(null!==f&&f.length()!==t)throw new Error("Given salt length does not match length of given salt.");var s=e.prng||r.random,o={encode:function(e,o){var l,c,u=o-1,d=Math.ceil(u/8),p=e.digest().getBytes();if(d>8*d-u&255;return(v=String.fromCharCode(v.charCodeAt(0)&~T)+v.substr(1))+y+String.fromCharCode(188)},verify:function(e,f,s){var o,l=s-1,c=Math.ceil(l/8);if(f=f.substr(-c),c>8*c-l&255;if(0!=(d.charCodeAt(0)&m))throw new Error("Bits beyond keysize not zero as expected.");var y=i.generate(p,u),g="";for(o=0;o1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=h++)}var b=Object.create(null);function v(e){return e.map(function(e){return b[_(e)]}).filter(function(e){return e})}function T(e,i){Object(s.a)(t,e,function(t,a){if(null!=a){m=o({},a,{location:e});for(var f=v(Object(r.a)(n,m).leaveRoutes),s=void 0,l=0,c=f.length;null==s&&l=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),s=this.context.router;if(s){if(!t)return i.a.createElement("a",f);var o=p(t,s);f.href=s.createHref(o),(n||null!=r&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r))&&s.isActive(o,a)&&(n&&(f.className?f.className+=" "+n:f.className=n),r&&(f.style=d({},f.style,r)))}return i.a.createElement("a",d({},f,{onClick:this.handleClick}))}});t.a=m},function(e,t,n){"use strict";var r=n(67),i=n.n(r),a=n(40),f=(n.n(a),n(31)),s=n.n(f),o=n(75),l=n(110),c=n(132),u=i()({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=Object(o.a)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,i=e.params,a=void 0;if("/"===t.to.charAt(0))a=Object(l.a)(t.to,i);else if(t.to){var f=e.routes.indexOf(t),s=u.getRoutePattern(e.routes,f-1).replace(/\/*$/,"/")+t.to;a=Object(l.a)(s,i)}else a=r.pathname;n({pathname:a,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var i=e[r].path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:a.string,from:a.string,to:a.string.isRequired,query:a.object,state:a.object,onEnter:c.c,children:c.c},render:function(){s()(!1)}});t.a=u},function(e,t,n){"use strict";t.a=function(e){var t=o()(e);return i()(f()(function(){return t}))(e)};var r=n(247),i=n.n(r),a=n(249),f=n.n(a),s=n(365),o=n.n(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0&&t=0&&u=0&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(f(e))}catch(e){if("SecurityError"===e.name)return}if(t)try{return JSON.parse(t)}catch(e){}}},function(e,t,n){"use strict";t.a=function(e){var t=void 0;i&&(t=Object(r.a)(e)());return t};var r=n(366),i=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t>>7)^(m<<14|m>>>18)^m>>>3,g=l[p-2],h=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=y+l[p-7]+h+l[p-16]}var _=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),v=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&u)+o[p]+l[p];d=u,u=c,c=s,s=f+v|0,f=a,a=i,i=r,r=v+(b+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+f|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(c),n.HmacSHA256=a._createHmacHelper(c)}(Math),e.SHA256},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,f=t.algo;function s(){return i.create.apply(i,arguments)}var o=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var c=f.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],f=n[3],s=n[4],c=n[5],u=n[6],d=n[7],p=r.high,m=r.low,y=i.high,g=i.low,h=a.high,_=a.low,b=f.high,v=f.low,T=s.high,I=s.low,S=c.high,M=c.low,E=u.high,D=u.low,C=d.high,w=d.low,x=p,A=m,L=y,k=g,N=h,R=_,O=b,P=v,B=T,j=I,U=S,Y=M,F=E,z=D,V=C,H=w,$=0;$<80;$++){var G=l[$];if($<16)var q=G.high=0|e[t+2*$],W=G.low=0|e[t+2*$+1];else{var K=l[$-15],Q=K.high,Z=K.low,J=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),ee=l[$-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=l[$-7],fe=ae.high,se=ae.low,oe=l[$-16],le=oe.high,ce=oe.low;q=(q=(q=J+fe+((W=X+se)>>>0>>0?1:0))+re+((W=W+ie)>>>0>>0?1:0))+le+((W=W+ce)>>>0>>0?1:0);G.high=q,G.low=W}var ue,de=B&U^~B&F,pe=j&Y^~j&z,me=x&L^x&N^L&N,ye=A&k^A&R^k&R,ge=(x>>>28|A<<4)^(x<<30|A>>>2)^(x<<25|A>>>7),he=(A>>>28|x<<4)^(A<<30|x>>>2)^(A<<25|x>>>7),_e=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),be=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),ve=o[$],Te=ve.high,Ie=ve.low,Se=V+_e+((ue=H+be)>>>0>>0?1:0),Me=he+ye;V=F,H=z,F=U,z=Y,U=B,Y=j,B=O+(Se=(Se=(Se=Se+de+((ue=ue+pe)>>>0>>0?1:0))+Te+((ue=ue+Ie)>>>0>>0?1:0))+q+((ue=ue+W)>>>0>>0?1:0))+((j=P+ue|0)>>>0

>>0?1:0)|0,O=N,P=R,N=L,R=k,L=x,k=A,x=Se+(ge+me+(Me>>>0>>0?1:0))+((A=ue+Me|0)>>>0>>0?1:0)|0}m=r.low=m+A,r.high=p+x+(m>>>0>>0?1:0),g=i.low=g+k,i.high=y+L+(g>>>0>>0?1:0),_=a.low=_+R,a.high=h+N+(_>>>0>>0?1:0),v=f.low=v+P,f.high=b+O+(v>>>0

>>0?1:0),I=s.low=I+j,s.high=T+B+(I>>>0>>0?1:0),M=c.low=M+Y,c.high=S+U+(M>>>0>>0?1:0),D=u.low=D+z,u.high=E+F+(D>>>0>>0?1:0),w=d.low=w+H,d.high=C+V+(w>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(c),t.HmacSHA512=n._createHmacHelper(c)}(),e.SHA512},e.exports=r(n(10),n(175))},function(e,t,n){var r;r=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,f=n.x64.Word,s=n.algo,o=[],l=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){o[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,u=0,d=0;d<7;d++){if(1&i){var p=(1<>>24)|4278255360&(a<<24|a>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),(w=n[i]).high^=f,w.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var p=0,m=0,y=0;y<5;y++){p^=(w=n[d+5*y]).high,m^=w.low}var g=u[d];g.high=p,g.low=m}for(d=0;d<5;d++){var h=u[(d+4)%5],_=u[(d+1)%5],b=_.high,v=_.low;for(p=h.high^(b<<1|v>>>31),m=h.low^(v<<1|b>>>31),y=0;y<5;y++){(w=n[d+5*y]).high^=p,w.low^=m}}for(var T=1;T<25;T++){var I=(w=n[T]).high,S=w.low,M=o[T];if(M<32)p=I<>>32-M,m=S<>>32-M;else p=S<>>64-M,m=I<>>64-M;var E=u[l[T]];E.high=p,E.low=m}var D=u[0],C=n[0];D.high=C.high,D.low=C.low;for(d=0;d<5;d++)for(y=0;y<5;y++){var w=n[T=d+5*y],x=u[T],A=u[(d+1)%5+5*y],L=u[(d+2)%5+5*y];w.high=x.high^~A.high&L.high,w.low=x.low^~A.low&L.low}w=n[0];var k=c[s];w.high^=k.high,w.low^=k.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var f=this._state,s=this.cfg.outputLength/8,o=s/8,l=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(d)}return new i.init(l,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(d),n.HmacSHA3=a._createHmacHelper(d)}(Math),e.SHA3},e.exports=r(n(10),n(175))},function(e,t,n){var r=n(28),i=function(e,t){this.value=e||"",this.offset=t};i.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},i.prototype.withOffset=function(e){return new i(this.value,e)},i.prototype.combine=function(e){return new i(this.value+e.value)},i.prototype.isDynamic=function(){return void 0!==this.offset},i.prototype.offsetAsBytes=function(){return this.isDynamic()?r.padLeft(r.toTwosComplement(this.offset).toString(16),64):""},i.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},i.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},i.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},i.encodeList=function(e){var t=32*e.length,n=e.map(function(e){if(!e.isDynamic())return e;var n=t;return t+=e.dynamicPartLength(),e.withOffset(n)});return n.reduce(function(e,t){return e+t.dynamicPart()},n.reduce(function(e,t){return e+t.staticPart()},""))},e.exports=i},function(e,t,n){var r=n(28),i=n(256),a=n(77),f=n(136),s=n(178),o=n(179),l=function(e,t,n){this._requestManager=e,this._params=t.inputs,this._name=r.transformToFullName(t),this._address=n,this._anonymous=t.anonymous};l.prototype.types=function(e){return this._params.filter(function(t){return t.indexed===e}).map(function(e){return e.type})},l.prototype.displayName=function(){return r.extractDisplayName(this._name)},l.prototype.typeName=function(){return r.extractTypeName(this._name)},l.prototype.signature=function(){return f(this._name)},l.prototype.encode=function(e,t){e=e||{},t=t||{};var n={};["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(e){n[e]=a.inputBlockNumberFormatter(t[e])}),n.topics=[],n.address=this._address,this._anonymous||n.topics.push("0x"+this.signature());var f=this._params.filter(function(e){return!0===e.indexed}).map(function(t){var n=e[t.name];return void 0===n||null===n?null:r.isArray(n)?n.map(function(e){return"0x"+i.encodeParam(t.type,e)}):"0x"+i.encodeParam(t.type,n)});return n.topics=n.topics.concat(f),n},l.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=(this._anonymous?e.topics:e.topics.slice(1)).map(function(e){return e.slice(2)}).join(""),n=i.decodeParams(this.types(!0),t),r=e.data.slice(2),f=i.decodeParams(this.types(!1),r),s=a.outputLogFormatter(e);return s.event=this.displayName(),s.address=e.address,s.args=this._params.reduce(function(e,t){return e[t.name]=t.indexed?n.shift():f.shift(),e},{}),delete s.data,delete s.topics,s},l.prototype.execute=function(e,t,n){r.isFunction(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],2===arguments.length&&(t=null),1===arguments.length&&(t=null,e={}));var i=this.encode(e,t),a=this.decode.bind(this);return new s(i,"eth",this._requestManager,o.eth(),a,n)},l.prototype.attachToContract=function(e){var t=this.execute.bind(this),n=this.displayName();e[n]||(e[n]=t),e[n][this.typeName()]=this.execute.bind(this,e)},e.exports=l},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,n){var r=n(7).Buffer;e.exports=function(e){for(var t={},n=e.length,i=e.charAt(0),a=0;a>=8;for(;l>0;)a.push(255&l),l>>=8}for(var c=0;e[c]===i&&c0;)r.push(s%n),s=s/n|0}for(var o="",l=0;0===t[l]&&l=0;--c)o+=e[r[c]];return o},decodeUnsafe:s,decode:function(e){var t=s(e);if(t)return t;throw new Error("Non-base"+n+" character")}}}},function(e,t,n){"use strict";(function(t,r){var i=n(181);e.exports=b;var a,f=n(371);b.ReadableState=_;n(182).EventEmitter;var s=function(e,t){return e.listeners(t).length},o=n(381),l=n(7).Buffer,c=t.Uint8Array||function(){};var u=n(138);u.inherits=n(9);var d=n(999),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var m,y=n(1e3),g=n(382);u.inherits(b,o);var h=["error","close","destroy","pause","resume"];function _(e,t){a=a||n(91),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,f=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(f||0===f)?f:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=n(139).StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(91),!(this instanceof b))return new b(e);this._readableState=new _(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function v(e,t,n,r,i){var a,f=e._readableState;null===t?(f.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}(e,f)):(i||(a=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(f,t)),a?e.emit("error",a):f.objectMode||t&&t.length>0?("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?f.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):T(e,f,t,!0):f.ended?e.emit("error",new Error("stream.push() after EOF")):(f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||0!==t.length?T(e,f,t,!1):D(e,f)):T(e,f,t,!1))):r||(f.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){p("emit readable"),e.emit("readable"),A(e)}function D(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ea.length?a.length:e;if(f===a.length?i+=a:i+=a.slice(0,e),0===(e-=f)){f===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(f));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,f=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,f),0===(e-=f)){f===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(f));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function k(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?k(this):M(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&k(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&k(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,p("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function l(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",h),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",y),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){p("onend"),e.end()}a.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",u);var d=!1;var m=!1;function y(t){p("ondata"),m=!1,!1!==e.write(t)||m||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==R(a.pipes,e))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,m=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",_),b()}function _(){p("onfinish"),e.removeListener("close",h),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?f(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",h),e.once("finish",_),e.emit("pipe",n),a.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a-1&&e%1==0&&e<=n}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=c,t.wrap=u;var i,a=n(184),f=(i=a)&&i.__esModule?i:{default:i};var s,o=t.hasSetImmediate="function"==typeof e&&e,l=t.hasNextTick="object"==typeof r&&"function"==typeof r.nextTick;function c(e){setTimeout(e,0)}function u(e){return function(t){var n=(0,f.default)(arguments,1);e(function(){t.apply(null,n)})}}s=o?e:l?r.nextTick:c,t.default=u(s)}).call(t,n(183).setImmediate,n(25))},function(e,t,n){"use strict";const r=n(140),i=n(118);e.exports=(e=>t=>((t=t||{}).converter=i,r(e,"add")(t)))},function(e,t,n){"use strict";const r=n(140),i=n(118),a=n(185);e.exports=(e=>t=>((t=t||{}).converter=i,a(r(e,"add")({qs:t}))))},function(e,t,n){"use strict";e.exports=function e(t){var n=arguments.length;if("function"==typeof t&&1===t.length){for(var r=new Array(n),i=0;ir((t,n,r)=>{"function"==typeof n&&(r=n,n={});try{t=i(t)}catch(e){if(!a.ipfsPath(t))return r(e)}e({path:"cat",args:t,buffer:n.buffer},(e,t)=>{if(e)return r(e);t.pipe(f((e,t)=>{if(e)return r(e);r(null,t)}))})}))},function(e,t,n){"use strict";const r=n(266),i=n(399).varintBufferEncode,a={};e.exports=a;for(let e in r){let t=r[e];a[e]=i(t)}},function(e,t,n){"use strict";(function(t){const r=n(41);function i(e){return parseInt(e.toString("hex"),16)}function a(e){let n=e.toString(16);return n.length%2==1&&(n="0"+n),t.from(n,"hex")}e.exports={numberToBuffer:a,bufferToNumber:i,varintBufferEncode:function(e){return t.from(r.encode(i(e)))},varintBufferDecode:function(e){return a(r.decode(e))}}}).call(t,n(2).Buffer)},function(e,t,n){var r=n(401),i=n(93),a=n(7).Buffer;function f(e){if(!(this instanceof f))return new f(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)})}else this.append(e);r.call(this)}i.inherits(f,r),f.prototype._offset=function(e){var t,n=0,r=0;if(0===e)return[0,0];for(;rthis.length)&&(r=this.length),n>=this.length)return e||a.alloc(0);if(r<=0)return e||a.alloc(0);var i,f,s=!!e,o=this._offset(n),l=r-n,c=l,u=s&&t||0,d=o[1];if(0===n&&r==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:a.concat(this._bufs,this.length);for(f=0;f(i=this._bufs[f].length-d))){this._bufs[f].copy(e,u,d,d+c);break}this._bufs[f].copy(e,u,d),u+=i,c-=i,d&&(d=0)}return e},f.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new f(i)},f.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},f.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},f.prototype.duplicate=function(){for(var e=0,t=new f;e(t,n)=>{n=n||{};const s=new a.PassThrough;try{t=r(t)}catch(e){if(!i.ipfsPath(t))return s.destroy(e)}return e({path:"cat",args:t,buffer:n.buffer},(e,t)=>{if(e)return s.destroy(e);f(t,s)}),s})},function(e,t,n){"use strict";const r=n(119),i=n(92),a=n(185),f=n(186);e.exports=(e=>(t,n)=>{n=n||{};const s=f.source();try{t=r(t)}catch(e){if(!i.ipfsPath(t))return s.end(e)}return e({path:"cat",args:t,buffer:n.buffer},(e,t)=>{if(e)return s.end(e);s.resolve(a(t))}),s})},function(e,t){e.exports=function(){var e,t,n,r,i=function(i,a){e?e(i,a):i?(r=i,n=a):t=a};return i.resolve=function(i){if(e)throw new Error("already resolved");if(!(e=i))throw new Error("no read cannot resolve!"+e);t&&i(null,t),n&&i(r,n)},i.abort=function(e){i.resolve(function(t,n){n(e||!0)})},i}},function(e,t){e.exports=function(e){var t,n=!1;Math.random();function r(r){if(!r)throw new Error("must be passed a readable");t=r,n&&e(t)}return r.resolve=r.ready=r.start=function(i){return n=!0,e=i||e,t&&e(t),r},r}},function(e,t,n){"use strict";const r=n(3),i=n(119),a=n(268),f=n(137),s=n(187),o=n(92);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={});try{t=i(t)}catch(e){if(!o.ipfsPath(t))return r(e)}const l={path:"get",args:t,qs:n};e.andTransform(l,a,(e,t)=>{if(e)return r(e);const n=[];t.pipe(s.obj((e,t,r)=>{e.content?e.content.pipe(f(t=>{n.push({path:e.path,content:t})})):n.push(e),r()},()=>r(null,n)))})}))},function(e,t,n){(function(e){var r=n(408),i=n(409),a="0".charCodeAt(0),f=parseInt("7777",8),s=function(e,t,n,r){for(;nt?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var c=function(e,t,n){if(128&(e=e.slice(t,t+n))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var n=!1,r=[],i=e.length-1;i>0;i--){var a=e[i];t?r.push(a):n&&0===a?r.push(0):n?(n=!1,r.push(256-a)):r.push(255-a)}var f=0,s=r.length;for(i=0;i=a?a:i>=0?i:(i+=a)>=0?i:0);t=Math.pow(10,r)&&r++,n+r+t};t.decodeLongPath=function(e,t){return u(e,0,e.length,t)},t.encodePax=function(e){var t="";e.name&&(t+=d(" path="+e.name+"\n")),e.linkname&&(t+=d(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var i in n)t+=d(" "+i+"="+n[i]+"\n");return r(t)},t.decodePax=function(e){for(var t={};e.length;){for(var n=0;n100;){var c=r.indexOf("/");if(-1===c)return null;s+=s?"/"+r.slice(0,c):r.slice(0,c),r=r.slice(c+1)}return e.byteLength(r)>100||e.byteLength(s)>155?null:t.linkname&&e.byteLength(t.linkname)>100?null:(n.write(r),n.write(l(t.mode&f,6),100),n.write(l(t.uid,6),108),n.write(l(t.gid,6),116),n.write(l(t.size,11),124),n.write(l(t.mtime.getTime()/1e3|0,11),136),n[156]=a+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&n.write(t.linkname,157),n.write("ustar\x0000",257),t.uname&&n.write(t.uname,265),t.gname&&n.write(t.gname,297),n.write(l(t.devmajor||0,6),329),n.write(l(t.devminor||0,6),337),s&&n.write(s,345),n.write(l(o(n),6),148),n)},t.decode=function(e,t){var n=0===e[156]?0:e[156]-a,r=u(e,0,100,t),i=c(e,100,8),f=c(e,108,8),s=c(e,116,8),l=c(e,124,12),d=c(e,136,12),p=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),m=0===e[157]?null:u(e,157,100,t),y=u(e,265,32),g=u(e,297,32),h=c(e,329,8),_=c(e,337,8);e[345]&&(r=u(e,345,155,t)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var b=o(e);if(256===b)return null;if(b!==c(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:f,gid:s,size:l,mtime:new Date(1e3*d),type:p,linkname:m,uname:y,gname:g,devmajor:h,devminor:_}}}).call(t,n(2).Buffer)},function(e,t,n){(function(t){e.exports=function(e,r){if(t.isBuffer(e))return e;if("string"==typeof e)return n(e,r);if(Array.isArray(e))return n(e);throw new Error("Input should be a buffer or a string")};var n=t.from&&t.from!==Uint8Array.from?t.from:function(e,n){return new t(e,n)}}).call(t,n(2).Buffer)},function(e,t,n){(function(t){var r=n(1060),i=n(1061);e.exports=function(e,n,a){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(t.alloc)return t.alloc(e,n,a);var f=i(e);return 0===e?f:void 0===n?r(f,0):("string"!=typeof a&&(a=void 0),r(f,n,a))}}).call(t,n(2).Buffer)},function(e,t,n){e.exports=n(26).Transform},function(e,t,n){"use strict";const r=n(119),i=n(268),a=n(92),f=n(26),s=n(94);e.exports=(e=>(t,n)=>{n=n||{};const o=new f.PassThrough({objectMode:!0});try{t=r(t)}catch(e){if(!a.ipfsPath(t))return o.destroy(e)}const l={path:"get",args:t,qs:n};return e.andTransform(l,i,(e,t)=>{if(e)return o.destroy(e);s(t,o)}),o})},function(e,t,n){"use strict";const r=n(119),i=n(268),a=n(92),f=n(187),s=n(269),o=n(185),l=n(186);e.exports=(e=>(t,n)=>{n=n||{};const c=l.source();try{t=r(t)}catch(e){if(!a.ipfsPath(t))return c.end(e)}const u={path:"get",args:t,qs:n};return e.andTransform(u,i,(e,t)=>{if(e)return c.end(e);const n=[];t.pipe(f.obj((e,t,r)=>{e.content?n.push({path:e.path,content:o(e.content)}):n.push(e),r()},()=>c.resolve(s.values(n))))}),c})},function(e,t){e.exports=function(e,t,n){e(t),n&&n(!0===t?null:t)}},function(e,t,n){"use strict";var r=n(413);e.exports=function(e,t){return function(n,i){if(n)return r(i,n,t);if(null!=e){var a=e;e=null,i(null,a)}else i(!0)}}},function(e,t,n){var r=n(143);function i(e){return e}e.exports=function(e){return"object"==typeof e&&"function"==typeof e.test?function(t){return e.test(t)}:r(e)||i}},function(e,t,n){"use strict";function r(e){return e}var i=n(143),a=n(272);e.exports=function(e,t){e=i(e)||r;var n={};return a(function(r){var i=e(r);return n[i]?!!t:(n[i]=!0,!t)})}},function(e,t,n){"use strict";const r=n(1086);e.exports=(()=>({"api-path":"/api/v0/","user-agent":`/node-${r.name}/${r.version}/`,host:"localhost",port:"5001",protocol:"http"}))},function(e,t,n){"use strict";(function(r){const i=n(1087),a=n(273).encode,f=n(141),s=n(420),o=n(94),l=n(51),c=n(53),u=n(1092),d=n(421);function p(e,t){return n=>{const r=Boolean(n.headers["x-stream-output"]),i=Boolean(n.headers["x-chunked-output"]),a=n.headers["content-type"]&&0===n.headers["content-type"].indexOf("application/json");if(n.statusCode>=400||!n.statusCode)return function(e,t){const n=new Error(`Server responded with ${e.statusCode}`);u(e,(e,r)=>{if(e)return t(e);r&&(n.code=r.Code,n.message=r.Message||r.toString()),t(n)})}(n,t);if(r&&!e)return t(null,n);if(i&&a){const e=s.parse();return o(n,e),n.on("end",()=>{let t=n.trailers["x-stream-error"];if(t){try{t=JSON.parse(t)}catch(e){t={Message:t}}e.emit("error",new Error(t.Message))}}),t(null,e)}return a?u(n,t):c(n,t)}}t=e.exports=(e=>{const t=(t,n)=>"object"!=typeof t?n(new Error("no options were passed")):function(e,t,n){n=l(n),t.qs=t.qs||{},Array.isArray(t.path)&&(t.path=t.path.join("/")),t.args&&!Array.isArray(t.args)&&(t.args=[t.args]),t.args&&(t.qs.arg=t.args),t.progress&&(t.qs.progress=!0),t.qs.r&&(t.qs.recursive=t.qs.r,delete t.qs.r),t.qs["stream-channels"]=!0,t.stream&&(t.buffer=!1),delete t.qs.followSymlinks;const s={};if(f&&(s["User-Agent"]=e["user-agent"]),t.multipart){if(!t.multipartBoundary)return n(new Error("No multipartBoundary"));s["Content-Type"]=`multipart/form-data; boundary=${t.multipartBoundary}`}const o=i.stringify(t.qs,{arrayFormat:"repeat",encoder:e=>{if(r.isBuffer(e)){let t="";for(const n of e)if(n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||45===n||46===n||95===n||126===n)t+=String.fromCharCode(n);else{const e=n.toString(16);t+=`%${1===e.length?`0${e}`:e}`}return t}return a(e)}}),c={hostname:e.host,path:`${e["api-path"]}${t.path}?${o}`,port:e.port,method:"POST",headers:s,protocol:`${e.protocol}:`},u=d(e.protocol)(c,p(t.buffer,n));return u.on("error",e=>{n(e)}),t.stream||u.end(),u}(e,t,n);return t.andTransform=((e,n,r)=>t(e,(e,t)=>{if(e)return r(e);n(t,r)})),t})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){var r=n(187),i=n(1090),a=n(378).EOL,f=n(1091);function s(e){return(e=e||{}).strict=!1!==e.strict,i(function(t){try{if(t)return JSON.parse(t)}catch(n){e.strict&&this.emit("error",new Error("Could not parse row "+t.slice(0,50)+"..."))}},e)}e.exports=s,e.exports.serialize=e.exports.stringify=function(e){return r.obj(e,function(e,t,n){n(null,f(e)+a)})},e.exports.parse=s},function(e,t,n){"use strict";const r=n(422).request,i=n(1101).request;e.exports=(e=>0===e.indexOf("https")?i:r)},function(e,t,n){(function(e){var r=n(1093),i=n(424),a=n(180),f=n(1095),s=n(274),o=t;o.request=function(t,n){t="string"==typeof t?s.parse(t):a(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",f=t.protocol||i,o=t.hostname||t.host,l=t.port,c=t.path||"/";o&&-1!==o.indexOf(":")&&(o="["+o+"]"),t.url=(o?f+"//"+o:"")+(l?":"+l:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var u=new r(t);return n&&u.on("response",n),u},o.get=function(e,t){var n=o.request(e,t);return n.end(),n},o.ClientRequest=r,o.IncomingMessage=i.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=f,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,n(20))},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var a=void 0!==e.ArrayBuffer,f=a&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||a&&i("arraybuffer"),t.msstream=!t.fetch&&f&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(t,n(20))},function(e,t,n){(function(e,r,i){var a=n(423),f=n(9),s=n(26),o=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(t,n,f,o){var l=this;if(s.Readable.call(l),l._mode=f,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){e.nextTick(function(){l.emit("close")})}),"fetch"===f){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach(function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)}),a.writableStream){var c=new WritableStream({write:function(e){return new Promise(function(t,n){l._destroyed?n():l.push(new r(e))?t():l._resumeFetch=t})},close:function(){i.clearTimeout(o),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void n.body.pipeTo(c).catch(function(e){i.clearTimeout(o),l._destroyed||l.emit("error",e)})}catch(e){}}var u=n.body.getReader();!function e(){u.read().then(function(t){if(!l._destroyed){if(t.done)return i.clearTimeout(o),void l.push(null);l.push(new r(t.value)),e()}}).catch(function(e){i.clearTimeout(o),l._destroyed||l.emit("error",e)})}()}else{if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}}),l._charset="x-user-defined",!a.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(l._charset=p[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};f(l,s.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==o.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var a=n.substr(e._pos);if("x-user-defined"===e._charset){for(var f=new r(a.length),s=0;se._pos&&(e.push(new r(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===o.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,n(25),n(2).Buffer,n(20))},function(e,t,n){"use strict";(function(t){const r=n(52);e.exports=class{constructor(e,n){if(!e||!t.isBuffer(e))throw new Error("first argument must be a buffer");if(!n||!r.isCID(n))throw new Error("second argument must be a CID");this._data=e,this._cid=n}get data(){return this._data}set data(e){throw new Error("Tried to change an immutable block")}get cid(){return this._cid}set cid(e){throw new Error("Tried to change an immutable block")}static isBlock(e){return e&&"Block"===e.constructor.name}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(e){const r=n(191);t.toCallback=(e=>(function(t,n){const i=(e,t)=>r(()=>{n(e,t)});let a;try{a=e(t)}catch(e){return void i(e)}i(null,a)})),t.toBuf=((t,n)=>r=>{let i=t(r,n);return e.from(i,"hex")}),t.fromString=((t,n)=>r=>{const i=e.isBuffer(r)?r.toString():r;return t(i,n)}),t.fromNumberTo32BitBuf=((t,n)=>r=>{let i=t(r,n);const a=new Array(4);for(let e=0;e<4;e++)a[e]=255&i,i>>=8;return e.from(a)})}).call(t,n(2).Buffer)},function(e,t){e.exports=function(e){return e&&"function"==typeof e.then}},function(e,t,n){(function(t){var n="Input must be an string, Buffer or Uint8Array";function r(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var r;if(e instanceof Uint8Array)r=e;else if(e instanceof t)r=new Uint8Array(e);else{if("string"!=typeof e)throw new Error(n);r=new Uint8Array(t.from(e,"utf8"))}return r},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,n){for(var i="\n"+e+" = ",a=0;a>>1,Y=[["ary",M],["bind",h],["bindKey",_],["curry",v],["curryRight",T],["flip",D],["partial",I],["partialRight",S],["rearg",E]],F="[object Arguments]",z="[object Array]",V="[object AsyncFunction]",H="[object Boolean]",$="[object Date]",G="[object DOMException]",q="[object Error]",W="[object Function]",K="[object GeneratorFunction]",Q="[object Map]",Z="[object Number]",J="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ie="[object Symbol]",ae="[object Undefined]",fe="[object WeakMap]",se="[object WeakSet]",oe="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",ue="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",me="[object Int32Array]",ye="[object Uint8Array]",ge="[object Uint8ClampedArray]",he="[object Uint16Array]",_e="[object Uint32Array]",be=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Me=RegExp(Ie.source),Ee=RegExp(Se.source),De=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,we=/<%=([\s\S]+?)%>/g,xe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Le=/^\./,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Ne.source),Oe=/^\s+|\s+$/g,Pe=/^\s+/,Be=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Xe+"]",it="\\d+",at="[\\u2700-\\u27bf]",ft="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+ft+"|"+st+")",mt="(?:"+dt+"|"+st+")",yt="(?:"+rt+"|"+ot+")"+"?",gt="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[lt,ct,ut].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),ht="(?:"+[at,ct,ut].join("|")+")"+gt,_t="(?:"+[lt+rt+"?",rt,ct,ut,tt].join("|")+")",bt=RegExp("['’]","g"),vt=RegExp(rt,"g"),Tt=RegExp(ot+"(?="+ot+")|"+_t+gt,"g"),It=RegExp([dt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,dt,"$"].join("|")+")",mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,dt+pt,"$"].join("|")+")",dt+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",it,ht].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+Xe+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Dt=-1,Ct={};Ct[ce]=Ct[ue]=Ct[de]=Ct[pe]=Ct[me]=Ct[ye]=Ct[ge]=Ct[he]=Ct[_e]=!0,Ct[F]=Ct[z]=Ct[oe]=Ct[H]=Ct[le]=Ct[$]=Ct[q]=Ct[W]=Ct[Q]=Ct[Z]=Ct[X]=Ct[te]=Ct[ne]=Ct[re]=Ct[fe]=!1;var wt={};wt[F]=wt[z]=wt[oe]=wt[le]=wt[H]=wt[$]=wt[ce]=wt[ue]=wt[de]=wt[pe]=wt[me]=wt[Q]=wt[Z]=wt[X]=wt[te]=wt[ne]=wt[re]=wt[ie]=wt[ye]=wt[ge]=wt[he]=wt[_e]=!0,wt[q]=wt[W]=wt[fe]=!1;var xt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Lt=parseInt,kt="object"==typeof e&&e&&e.Object===Object&&e,Nt="object"==typeof self&&self&&self.Object===Object&&self,Rt=kt||Nt||Function("return this")(),Ot="object"==typeof t&&t&&!t.nodeType&&t,Pt=Ot&&"object"==typeof r&&r&&!r.nodeType&&r,Bt=Pt&&Pt.exports===Ot,jt=Bt&&kt.process,Ut=function(){try{return jt&&jt.binding&&jt.binding("util")}catch(e){}}(),Yt=Ut&&Ut.isArrayBuffer,Ft=Ut&&Ut.isDate,zt=Ut&&Ut.isMap,Vt=Ut&&Ut.isRegExp,Ht=Ut&&Ut.isSet,$t=Ut&&Ut.isTypedArray;function Gt(e,t){return e.set(t[0],t[1]),e}function qt(e,t){return e.add(t),e}function Wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Kt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function tn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Mn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var En=gn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Dn=gn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Cn(e){return"\\"+xt[e]}function wn(e){return St.test(e)}function xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function Ln(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Bn=function e(t){var n,r=(t=null==t?Rt:Bn.defaults(Rt.Object(),t,Bn.pick(Rt,Et))).Array,i=t.Date,Xe=t.Error,et=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,at=t.TypeError,ft=r.prototype,st=et.prototype,ot=nt.prototype,lt=t["__core-js_shared__"],ct=st.toString,ut=ot.hasOwnProperty,dt=0,pt=(n=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",mt=ot.toString,yt=ct.call(nt),gt=Rt._,ht=rt("^"+ct.call(ut).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=Bt?t.Buffer:a,Tt=t.Symbol,St=t.Uint8Array,xt=_t?_t.allocUnsafe:a,kt=An(nt.getPrototypeOf,nt),Nt=nt.create,Ot=ot.propertyIsEnumerable,Pt=ft.splice,jt=Tt?Tt.isConcatSpreadable:a,Ut=Tt?Tt.iterator:a,on=Tt?Tt.toStringTag:a,gn=function(){try{var e=Fa(nt,"defineProperty");return e({},"",{}),e}catch(e){}}(),jn=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,Un=i&&i.now!==Rt.Date.now&&i.now,Yn=t.setTimeout!==Rt.setTimeout&&t.setTimeout,Fn=tt.ceil,zn=tt.floor,Vn=nt.getOwnPropertySymbols,Hn=_t?_t.isBuffer:a,$n=t.isFinite,Gn=ft.join,qn=An(nt.keys,nt),Wn=tt.max,Kn=tt.min,Qn=i.now,Zn=t.parseInt,Jn=tt.random,Xn=ft.reverse,er=Fa(t,"DataView"),tr=Fa(t,"Map"),nr=Fa(t,"Promise"),rr=Fa(t,"Set"),ir=Fa(t,"WeakMap"),ar=Fa(nt,"create"),fr=ir&&new ir,sr={},or=pf(er),lr=pf(tr),cr=pf(nr),ur=pf(rr),dr=pf(ir),pr=Tt?Tt.prototype:a,mr=pr?pr.valueOf:a,yr=pr?pr.toString:a;function gr(e){if(As(e)&&!bs(e)&&!(e instanceof vr)){if(e instanceof br)return e;if(ut.call(e,"__wrapped__"))return mf(e)}return new br(e)}var hr=function(){function e(){}return function(t){if(!xs(t))return{};if(Nt)return Nt(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function _r(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Tr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jr(e,t,n,r,i,f){var s,o=t&d,l=t&p,c=t&m;if(n&&(s=i?n(e,r,i,f):n(e)),s!==a)return s;if(!xs(e))return e;var u=bs(e);if(u){if(s=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!o)return aa(e,s)}else{var y=Ha(e),g=y==W||y==K;if(Ss(e))return Xi(e,o);if(y==X||y==F||g&&!i){if(s=l||g?{}:Ga(e),!o)return l?function(e,t){return fa(e,Va(e),t)}(e,function(e,t){return e&&fa(t,so(t),e)}(s,e)):function(e,t){return fa(e,za(e),t)}(e,Rr(s,e))}else{if(!wt[y])return i?e:{};s=function(e,t,n,r){var i,a,f,s=e.constructor;switch(t){case oe:return ea(e);case H:case $:return new s(+e);case le:return function(e,t){var n=t?ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case ce:case ue:case de:case pe:case me:case ye:case ge:case he:case _e:return ta(e,r);case Q:return function(e,t,n){return an(t?n(xn(e),d):xn(e),Gt,new e.constructor)}(e,r,n);case Z:case re:return new s(e);case te:return(f=new(a=e).constructor(a.source,He.exec(a))).lastIndex=a.lastIndex,f;case ne:return function(e,t,n){return an(t?n(kn(e),d):kn(e),qt,new e.constructor)}(e,r,n);case ie:return i=e,mr?nt(mr.call(i)):{}}}(e,y,jr,o)}}f||(f=new Er);var h=f.get(e);if(h)return h;f.set(e,s);var _=u?a:(c?l?Ra:Na:l?so:fo)(e);return Qt(_||e,function(r,i){_&&(r=e[i=r]),Lr(s,i,jr(r,t,n,i,e,f))}),s}function Ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=nt(e);r--;){var i=n[r],f=t[i],s=e[i];if(s===a&&!(i in e)||!f(s))return!1}return!0}function Yr(e,t,n){if("function"!=typeof e)throw new at(o);return ff(function(){e.apply(a,n)},t)}function Fr(e,t,n,r){var i=-1,a=en,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;n&&(t=nn(t,vn(n))),r?(a=tn,s=!1):t.length>=f&&(a=In,s=!1,t=new Mr(t));e:for(;++i-1},Ir.prototype.set=function(e,t){var n=this.__data__,r=kr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Sr.prototype.clear=function(){this.size=0,this.__data__={hash:new Tr,map:new(tr||Ir),string:new Tr}},Sr.prototype.delete=function(e){var t=Ua(this,e).delete(e);return this.size-=t?1:0,t},Sr.prototype.get=function(e){return Ua(this,e).get(e)},Sr.prototype.has=function(e){return Ua(this,e).has(e)},Sr.prototype.set=function(e,t){var n=Ua(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mr.prototype.add=Mr.prototype.push=function(e){return this.__data__.set(e,l),this},Mr.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.clear=function(){this.__data__=new Ir,this.size=0},Er.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Er.prototype.get=function(e){return this.__data__.get(e)},Er.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ir){var r=n.__data__;if(!tr||r.length0&&n(s)?t>1?qr(s,t-1,n,r,i):rn(i,s):r||(i[i.length]=s)}return i}var Wr=ca(),Kr=ca(!0);function Qr(e,t){return e&&Wr(e,t,fo)}function Zr(e,t){return e&&Kr(e,t,fo)}function Jr(e,t){return Xt(t,function(t){return Ds(e[t])})}function Xr(e,t){for(var n=0,r=(t=Ki(t,e)).length;null!=e&&nt}function ri(e,t){return null!=e&&ut.call(e,t)}function ii(e,t){return null!=e&&t in nt(e)}function ai(e,t,n){for(var i=n?tn:en,f=e[0].length,s=e.length,o=s,l=r(s),c=1/0,u=[];o--;){var d=e[o];o&&t&&(d=nn(d,vn(t))),c=Kn(d.length,c),l[o]=!n&&(t||f>=120&&d.length>=120)?new Mr(o&&d):a}d=e[0];var p=-1,m=l[0];e:for(;++p=s)return o;var l=n[r];return o*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function Ti(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)s!==e&&Pt.call(s,o,1),Pt.call(e,o,1);return e}function Si(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Wa(i)?Pt.call(e,i,1):Fi(e,i)}}return e}function Mi(e,t){return e+zn(Jn()*(t-e+1))}function Ei(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),(t=zn(t/2))&&(e+=e)}while(t);return n}function Di(e,t){return sf(nf(e,t,No),e+"")}function Ci(e){return Cr(go(e))}function wi(e,t){var n=go(e);return cf(n,Br(t,0,n.length))}function xi(e,t,n,r){if(!xs(e))return e;for(var i=-1,f=(t=Ki(t,e)).length,s=f-1,o=e;null!=o&&++ia?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var f=r(a);++i>>1,f=e[a];null!==f&&!Bs(f)&&(n?f<=t:f=f){var c=t?null:Ea(e);if(c)return kn(c);s=!1,i=In,l=new Mr}else l=t?[]:o;e:for(;++r=r?e:Ni(e,t,n)}var Ji=jn||function(e){return Rt.clearTimeout(e)};function Xi(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function ea(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function ta(e,t){var n=t?ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function na(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,f=Bs(e),s=t!==a,o=null===t,l=t==t,c=Bs(t);if(!o&&!c&&!f&&e>t||f&&s&&l&&!o&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!f&&!c&&e1?n[i-1]:a,s=i>2?n[2]:a;for(f=e.length>3&&"function"==typeof f?(i--,f):a,s&&Ka(n[0],n[1],s)&&(f=i<3?a:f,i=1),t=nt(t);++r-1?i[f?t[s]:s]:a}}function ya(e){return ka(function(t){var n=t.length,r=n,i=br.prototype.thru;for(e&&t.reverse();r--;){var f=t[r];if("function"!=typeof f)throw new at(o);if(i&&!s&&"wrapper"==Pa(f))var s=new br([],!0)}for(r=s?r:n;++r1&&v.reverse(),d&&c<_&&(v.length=c),this&&this!==Rt&&this instanceof h&&(D=b||pa(D)),D.apply(E,v)}}function ha(e,t){return function(n,r){return function(e,t,n,r){return Qr(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function _a(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=Ui(n),r=Ui(r)):(n=ji(n),r=ji(r)),i=e(n,r)}return i}}function ba(e){return ka(function(t){return t=nn(t,vn(ja())),Di(function(n){var r=this;return e(t,function(e){return Wt(e,r,n)})})})}function va(e,t){var n=(t=t===a?" ":Ui(t)).length;if(n<2)return n?Ei(t,e):t;var r=Ei(t,Fn(e/Rn(t)));return wn(t)?Zi(On(r),0,e).join(""):r.slice(0,e)}function Ta(e){return function(t,n,i){return i&&"number"!=typeof i&&Ka(t,n,i)&&(n=i=a),t=zs(t),n===a?(n=t,t=0):n=zs(n),function(e,t,n,i){for(var a=-1,f=Wn(Fn((t-e)/(n||1)),0),s=r(f);f--;)s[i?f:++a]=e,e+=n;return s}(t,n,i=i===a?to))return!1;var c=f.get(e);if(c&&f.get(t))return c==t;var u=-1,d=!0,p=n&g?new Mr:a;for(f.set(e,t),f.set(t,e);++u-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Qt(Y,function(n){var r="_."+n[0];t&n[1]&&!en(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(Ye):[]}(r),n)))}function lf(e){var t=0,n=0;return function(){var r=Qn(),i=A-(r-n);if(n=r,i>0){if(++t>=x)return arguments[0]}else t=0;return e.apply(a,arguments)}}function cf(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return Rf(e,n="function"==typeof n?(e.pop(),n):a)});function Ff(e){var t=gr(e);return t.__chain__=!0,t}function zf(e,t){return t(e)}var Vf=ka(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof vr&&Wa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:zf,args:[i],thisArg:a}),new br(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(a),e})):this.thru(i)});var Hf=sa(function(e,t,n){ut.call(e,n)?++e[n]:Or(e,n,1)});var $f=ma(_f),Gf=ma(bf);function qf(e,t){return(bs(e)?Qt:zr)(e,ja(t,3))}function Wf(e,t){return(bs(e)?Zt:Vr)(e,ja(t,3))}var Kf=sa(function(e,t,n){ut.call(e,n)?e[n].push(t):Or(e,n,[t])});var Qf=Di(function(e,t,n){var i=-1,a="function"==typeof t,f=Ts(e)?r(e.length):[];return zr(e,function(e){f[++i]=a?Wt(t,e,n):fi(e,t,n)}),f}),Zf=sa(function(e,t,n){Or(e,n,t)});function Jf(e,t){return(bs(e)?nn:yi)(e,ja(t,3))}var Xf=sa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var es=Di(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ka(e,t[0],t[1])?t=[]:n>2&&Ka(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,qr(t,1),[])}),ts=Un||function(){return Rt.Date.now()};function ns(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ca(e,M,a,a,a,a,t)}function rs(e,t){var n;if("function"!=typeof t)throw new at(o);return e=Vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var is=Di(function(e,t,n){var r=h;if(n.length){var i=Ln(n,Ba(is));r|=I}return Ca(e,r,t,n,i)}),as=Di(function(e,t,n){var r=h|_;if(n.length){var i=Ln(n,Ba(as));r|=I}return Ca(t,r,e,n,i)});function fs(e,t,n){var r,i,f,s,l,c,u=0,d=!1,p=!1,m=!0;if("function"!=typeof e)throw new at(o);function y(t){var n=r,f=i;return r=i=a,u=t,s=e.apply(f,n)}function g(e){var n=e-c;return c===a||n>=t||n<0||p&&e-u>=f}function h(){var e=ts();if(g(e))return _(e);l=ff(h,function(e){var n=t-(e-c);return p?Kn(n,f-(e-u)):n}(e))}function _(e){return l=a,m&&r?y(e):(r=i=a,s)}function b(){var e=ts(),n=g(e);if(r=arguments,i=this,c=e,n){if(l===a)return function(e){return u=e,l=ff(h,t),d?y(e):s}(c);if(p)return l=ff(h,t),y(c)}return l===a&&(l=ff(h,t)),s}return t=$s(t)||0,xs(n)&&(d=!!n.leading,f=(p="maxWait"in n)?Wn($s(n.maxWait)||0,t):f,m="trailing"in n?!!n.trailing:m),b.cancel=function(){l!==a&&Ji(l),u=0,r=c=i=l=a},b.flush=function(){return l===a?s:_(ts())},b}var ss=Di(function(e,t){return Yr(e,1,t)}),os=Di(function(e,t,n){return Yr(e,$s(t)||0,n)});function ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var f=e.apply(this,r);return n.cache=a.set(i,f)||a,f};return n.cache=new(ls.Cache||Sr),n}function cs(e){if("function"!=typeof e)throw new at(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ls.Cache=Sr;var us=Qi(function(e,t){var n=(t=1==t.length&&bs(t[0])?nn(t[0],vn(ja())):nn(qr(t,1),vn(ja()))).length;return Di(function(r){for(var i=-1,a=Kn(r.length,n);++i=t}),_s=si(function(){return arguments}())?si:function(e){return As(e)&&ut.call(e,"callee")&&!Ot.call(e,"callee")},bs=r.isArray,vs=Yt?vn(Yt):function(e){return As(e)&&ti(e)==oe};function Ts(e){return null!=e&&ws(e.length)&&!Ds(e)}function Is(e){return As(e)&&Ts(e)}var Ss=Hn||Go,Ms=Ft?vn(Ft):function(e){return As(e)&&ti(e)==$};function Es(e){if(!As(e))return!1;var t=ti(e);return t==q||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Ns(e)}function Ds(e){if(!xs(e))return!1;var t=ti(e);return t==W||t==K||t==V||t==ee}function Cs(e){return"number"==typeof e&&e==Vs(e)}function ws(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function xs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function As(e){return null!=e&&"object"==typeof e}var Ls=zt?vn(zt):function(e){return As(e)&&Ha(e)==Q};function ks(e){return"number"==typeof e||As(e)&&ti(e)==Z}function Ns(e){if(!As(e)||ti(e)!=X)return!1;var t=kt(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==yt}var Rs=Vt?vn(Vt):function(e){return As(e)&&ti(e)==te};var Os=Ht?vn(Ht):function(e){return As(e)&&Ha(e)==ne};function Ps(e){return"string"==typeof e||!bs(e)&&As(e)&&ti(e)==re}function Bs(e){return"symbol"==typeof e||As(e)&&ti(e)==ie}var js=$t?vn($t):function(e){return As(e)&&ws(e.length)&&!!Ct[ti(e)]};var Us=Ia(mi),Ys=Ia(function(e,t){return e<=t});function Fs(e){if(!e)return[];if(Ts(e))return Ps(e)?On(e):aa(e);if(Ut&&e[Ut])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ut]());var t=Ha(e);return(t==Q?xn:t==ne?kn:go)(e)}function zs(e){return e?(e=$s(e))===N||e===-N?(e<0?-1:1)*O:e==e?e:0:0===e?e:0}function Vs(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Br(Vs(e),0,B):0}function $s(e){if("number"==typeof e)return e;if(Bs(e))return P;if(xs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oe,"");var n=Ge.test(e);return n||We.test(e)?Lt(e.slice(2),n?2:8):$e.test(e)?P:+e}function Gs(e){return fa(e,so(e))}function qs(e){return null==e?"":Ui(e)}var Ws=oa(function(e,t){if(Xa(t)||Ts(t))fa(t,fo(t),e);else for(var n in t)ut.call(t,n)&&Lr(e,n,t[n])}),Ks=oa(function(e,t){fa(t,so(t),e)}),Qs=oa(function(e,t,n,r){fa(t,so(t),e,r)}),Zs=oa(function(e,t,n,r){fa(t,fo(t),e,r)}),Js=ka(Pr);var Xs=Di(function(e){return e.push(a,wa),Wt(Qs,a,e)}),eo=Di(function(e){return e.push(a,xa),Wt(lo,a,e)});function to(e,t,n){var r=null==e?a:Xr(e,t);return r===a?n:r}function no(e,t){return null!=e&&$a(e,t,ii)}var ro=ha(function(e,t,n){e[t]=n},Ao(No)),io=ha(function(e,t,n){ut.call(e,t)?e[t].push(n):e[t]=[n]},ja),ao=Di(fi);function fo(e){return Ts(e)?Dr(e):di(e)}function so(e){return Ts(e)?Dr(e,!0):pi(e)}var oo=oa(function(e,t,n){_i(e,t,n)}),lo=oa(function(e,t,n,r){_i(e,t,n,r)}),co=ka(function(e,t){var n={};if(null==e)return n;var r=!1;t=nn(t,function(t){return t=Ki(t,e),r||(r=t.length>1),t}),fa(e,Ra(e),n),r&&(n=jr(n,d|p|m,Aa));for(var i=t.length;i--;)Fi(n,t[i]);return n});var uo=ka(function(e,t){return null==e?{}:function(e,t){return Ti(e,t,function(t,n){return no(e,n)})}(e,t)});function po(e,t){if(null==e)return{};var n=nn(Ra(e),function(e){return[e]});return t=ja(t),Ti(e,n,function(e,n){return t(e,n[0])})}var mo=Da(fo),yo=Da(so);function go(e){return null==e?[]:Tn(e,fo(e))}var ho=da(function(e,t,n){return t=t.toLowerCase(),e+(n?_o(t):t)});function _o(e){return Do(qs(e).toLowerCase())}function bo(e){return(e=qs(e))&&e.replace(Qe,En).replace(vt,"")}var vo=da(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),To=da(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Io=ua("toLowerCase");var So=da(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Mo=da(function(e,t,n){return e+(n?" ":"")+Do(t)});var Eo=da(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Do=ua("toUpperCase");function Co(e,t,n){return e=qs(e),(t=n?a:t)===a?function(e){return Mt.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Fe)||[]}(e):e.match(t)||[]}var wo=Di(function(e,t){try{return Wt(e,a,t)}catch(e){return Es(e)?e:new Xe(e)}}),xo=ka(function(e,t){return Qt(t,function(t){t=df(t),Or(e,t,is(e[t],e))}),e});function Ao(e){return function(){return e}}var Lo=ya(),ko=ya(!0);function No(e){return e}function Ro(e){return ui("function"==typeof e?e:jr(e,d))}var Oo=Di(function(e,t){return function(n){return fi(n,e,t)}}),Po=Di(function(e,t){return function(n){return fi(e,n,t)}});function Bo(e,t,n){var r=fo(t),i=Jr(t,r);null!=n||xs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Jr(t,fo(t)));var a=!(xs(n)&&"chain"in n&&!n.chain),f=Ds(e);return Qt(i,function(n){var r=t[n];e[n]=r,f&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=aa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,rn([this.value()],arguments))})}),e}function jo(){}var Uo=ba(nn),Yo=ba(Jt),Fo=ba(sn);function zo(e){return Qa(e)?yn(df(e)):function(e){return function(t){return Xr(t,e)}}(e)}var Vo=Ta(),Ho=Ta(!0);function $o(){return[]}function Go(){return!1}var qo=_a(function(e,t){return e+t},0),Wo=Ma("ceil"),Ko=_a(function(e,t){return e/t},1),Qo=Ma("floor");var Zo,Jo=_a(function(e,t){return e*t},1),Xo=Ma("round"),el=_a(function(e,t){return e-t},0);return gr.after=function(e,t){if("function"!=typeof t)throw new at(o);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},gr.ary=ns,gr.assign=Ws,gr.assignIn=Ks,gr.assignInWith=Qs,gr.assignWith=Zs,gr.at=Js,gr.before=rs,gr.bind=is,gr.bindAll=xo,gr.bindKey=as,gr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bs(e)?e:[e]},gr.chain=Ff,gr.chunk=function(e,t,n){t=(n?Ka(e,t,n):t===a)?1:Wn(Vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var f=0,s=0,o=r(Fn(i/t));fi?0:i+n),(r=r===a||r>i?i:Vs(r))<0&&(r+=i),r=n>r?0:Hs(r);n>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Ui(t))&&wn(e)?Zi(On(e),0,n):e.split(t,n):[]},gr.spread=function(e,t){if("function"!=typeof e)throw new at(o);return t=null==t?0:Wn(Vs(t),0),Di(function(n){var r=n[t],i=Zi(n,0,t);return r&&rn(i,r),Wt(e,this,i)})},gr.tail=function(e){var t=null==e?0:e.length;return t?Ni(e,1,t):[]},gr.take=function(e,t,n){return e&&e.length?Ni(e,0,(t=n||t===a?1:Vs(t))<0?0:t):[]},gr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ni(e,(t=r-(t=n||t===a?1:Vs(t)))<0?0:t,r):[]},gr.takeRightWhile=function(e,t){return e&&e.length?Vi(e,ja(t,3),!1,!0):[]},gr.takeWhile=function(e,t){return e&&e.length?Vi(e,ja(t,3)):[]},gr.tap=function(e,t){return t(e),e},gr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(o);return xs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),fs(e,t,{leading:r,maxWait:t,trailing:i})},gr.thru=zf,gr.toArray=Fs,gr.toPairs=mo,gr.toPairsIn=yo,gr.toPath=function(e){return bs(e)?nn(e,df):Bs(e)?[e]:aa(uf(qs(e)))},gr.toPlainObject=Gs,gr.transform=function(e,t,n){var r=bs(e),i=r||Ss(e)||js(e);if(t=ja(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:xs(e)&&Ds(a)?hr(kt(e)):{}}return(i?Qt:Qr)(e,function(e,r,i){return t(n,e,r,i)}),n},gr.unary=function(e){return ns(e,1)},gr.union=Af,gr.unionBy=Lf,gr.unionWith=kf,gr.uniq=function(e){return e&&e.length?Yi(e):[]},gr.uniqBy=function(e,t){return e&&e.length?Yi(e,ja(t,2)):[]},gr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Yi(e,a,t):[]},gr.unset=function(e,t){return null==e||Fi(e,t)},gr.unzip=Nf,gr.unzipWith=Rf,gr.update=function(e,t,n){return null==e?e:zi(e,t,Wi(n))},gr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:zi(e,t,Wi(n),r)},gr.values=go,gr.valuesIn=function(e){return null==e?[]:Tn(e,so(e))},gr.without=Of,gr.words=Co,gr.wrap=function(e,t){return ds(Wi(t),e)},gr.xor=Pf,gr.xorBy=Bf,gr.xorWith=jf,gr.zip=Uf,gr.zipObject=function(e,t){return Gi(e||[],t||[],Lr)},gr.zipObjectDeep=function(e,t){return Gi(e||[],t||[],xi)},gr.zipWith=Yf,gr.entries=mo,gr.entriesIn=yo,gr.extend=Ks,gr.extendWith=Qs,Bo(gr,gr),gr.add=qo,gr.attempt=wo,gr.camelCase=ho,gr.capitalize=_o,gr.ceil=Wo,gr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=$s(n))==n?n:0),t!==a&&(t=(t=$s(t))==t?t:0),Br($s(e),t,n)},gr.clone=function(e){return jr(e,m)},gr.cloneDeep=function(e){return jr(e,d|m)},gr.cloneDeepWith=function(e,t){return jr(e,d|m,t="function"==typeof t?t:a)},gr.cloneWith=function(e,t){return jr(e,m,t="function"==typeof t?t:a)},gr.conformsTo=function(e,t){return null==t||Ur(e,t,fo(t))},gr.deburr=bo,gr.defaultTo=function(e,t){return null==e||e!=e?t:e},gr.divide=Ko,gr.endsWith=function(e,t,n){e=qs(e),t=Ui(t);var r=e.length,i=n=n===a?r:Br(Vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},gr.eq=ys,gr.escape=function(e){return(e=qs(e))&&Ee.test(e)?e.replace(Se,Dn):e},gr.escapeRegExp=function(e){return(e=qs(e))&&Re.test(e)?e.replace(Ne,"\\$&"):e},gr.every=function(e,t,n){var r=bs(e)?Jt:Hr;return n&&Ka(e,t,n)&&(t=a),r(e,ja(t,3))},gr.find=$f,gr.findIndex=_f,gr.findKey=function(e,t){return ln(e,ja(t,3),Qr)},gr.findLast=Gf,gr.findLastIndex=bf,gr.findLastKey=function(e,t){return ln(e,ja(t,3),Zr)},gr.floor=Qo,gr.forEach=qf,gr.forEachRight=Wf,gr.forIn=function(e,t){return null==e?e:Wr(e,ja(t,3),so)},gr.forInRight=function(e,t){return null==e?e:Kr(e,ja(t,3),so)},gr.forOwn=function(e,t){return e&&Qr(e,ja(t,3))},gr.forOwnRight=function(e,t){return e&&Zr(e,ja(t,3))},gr.get=to,gr.gt=gs,gr.gte=hs,gr.has=function(e,t){return null!=e&&$a(e,t,ri)},gr.hasIn=no,gr.head=Tf,gr.identity=No,gr.includes=function(e,t,n,r){e=Ts(e)?e:go(e),n=n&&!r?Vs(n):0;var i=e.length;return n<0&&(n=Wn(i+n,0)),Ps(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&un(e,t,n)>-1},gr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Vs(n);return i<0&&(i=Wn(r+i,0)),un(e,t,i)},gr.inRange=function(e,t,n){return t=zs(t),n===a?(n=t,t=0):n=zs(n),function(e,t,n){return e>=Kn(t,n)&&e=-R&&e<=R},gr.isSet=Os,gr.isString=Ps,gr.isSymbol=Bs,gr.isTypedArray=js,gr.isUndefined=function(e){return e===a},gr.isWeakMap=function(e){return As(e)&&Ha(e)==fe},gr.isWeakSet=function(e){return As(e)&&ti(e)==se},gr.join=function(e,t){return null==e?"":Gn.call(e,t)},gr.kebabCase=vo,gr.last=Ef,gr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=Vs(n))<0?Wn(r+i,0):Kn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):cn(e,pn,i,!0)},gr.lowerCase=To,gr.lowerFirst=Io,gr.lt=Us,gr.lte=Ys,gr.max=function(e){return e&&e.length?$r(e,No,ni):a},gr.maxBy=function(e,t){return e&&e.length?$r(e,ja(t,2),ni):a},gr.mean=function(e){return mn(e,No)},gr.meanBy=function(e,t){return mn(e,ja(t,2))},gr.min=function(e){return e&&e.length?$r(e,No,mi):a},gr.minBy=function(e,t){return e&&e.length?$r(e,ja(t,2),mi):a},gr.stubArray=$o,gr.stubFalse=Go,gr.stubObject=function(){return{}},gr.stubString=function(){return""},gr.stubTrue=function(){return!0},gr.multiply=Jo,gr.nth=function(e,t){return e&&e.length?bi(e,Vs(t)):a},gr.noConflict=function(){return Rt._===this&&(Rt._=gt),this},gr.noop=jo,gr.now=ts,gr.pad=function(e,t,n){e=qs(e);var r=(t=Vs(t))?Rn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return va(zn(i),n)+e+va(Fn(i),n)},gr.padEnd=function(e,t,n){e=qs(e);var r=(t=Vs(t))?Rn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Jn();return Kn(e+i*(t-e+At("1e-"+((i+"").length-1))),t)}return Mi(e,t)},gr.reduce=function(e,t,n){var r=bs(e)?an:hn,i=arguments.length<3;return r(e,ja(t,4),n,i,zr)},gr.reduceRight=function(e,t,n){var r=bs(e)?fn:hn,i=arguments.length<3;return r(e,ja(t,4),n,i,Vr)},gr.repeat=function(e,t,n){return t=(n?Ka(e,t,n):t===a)?1:Vs(t),Ei(qs(e),t)},gr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},gr.result=function(e,t,n){var r=-1,i=(t=Ki(t,e)).length;for(i||(i=1,e=a);++rR)return[];var n=B,r=Kn(e,B);t=ja(t),e-=B;for(var i=bn(r,t);++n=f)return e;var o=n-Rn(r);if(o<1)return r;var l=s?Zi(s,0,o).join(""):e.slice(0,o);if(i===a)return l+r;if(s&&(o+=l.length-o),Rs(i)){if(e.slice(o).search(i)){var c,u=l;for(i.global||(i=rt(i.source,qs(He.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,d===a?o:d)}}else if(e.indexOf(Ui(i),o)!=o){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},gr.unescape=function(e){return(e=qs(e))&&Me.test(e)?e.replace(Ie,Pn):e},gr.uniqueId=function(e){var t=++dt;return qs(e)+t},gr.upperCase=Eo,gr.upperFirst=Do,gr.each=qf,gr.eachRight=Wf,gr.first=Tf,Bo(gr,(Zo={},Qr(gr,function(e,t){ut.call(gr.prototype,t)||(Zo[t]=e)}),Zo),{chain:!1}),gr.VERSION="4.17.4",Qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){gr[e].placeholder=gr}),Qt(["drop","take"],function(e,t){vr.prototype[e]=function(n){n=n===a?1:Wn(Vs(n),0);var r=this.__filtered__&&!t?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(n,r.__takeCount__):r.__views__.push({size:Kn(n,B),type:e+(r.__dir__<0?"Right":"")}),r},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Qt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==L||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ja(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Qt(["head","last"],function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}}),Qt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(No)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=Di(function(e,t){return"function"==typeof e?new vr(this):this.map(function(n){return fi(n,e,t)})}),vr.prototype.reject=function(e){return this.filter(cs(ja(e)))},vr.prototype.slice=function(e,t){e=Vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new vr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(B)},Qr(vr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=gr[r?"take"+("last"==t?"Right":""):t],f=r||/^find/.test(t);i&&(gr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,o=t instanceof vr,l=s[0],c=o||bs(t),u=function(e){var t=i.apply(gr,rn([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(o=c=!1);var d=this.__chain__,p=!!this.__actions__.length,m=f&&!d,y=o&&!p;if(!f&&c){t=y?t:new vr(this);var g=e.apply(t,s);return g.__actions__.push({func:zf,args:[u],thisArg:a}),new br(g,d)}return m&&y?e.apply(this,s):(g=this.thru(u),m?r?g.value()[0]:g.value():g)})}),Qt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ft[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);gr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(bs(i)?i:[],e)}return this[n](function(n){return t.apply(bs(n)?n:[],e)})}}),Qr(vr.prototype,function(e,t){var n=gr[t];if(n){var r=n.name+"";(sr[r]||(sr[r]=[])).push({name:t,func:n})}}),sr[ga(a,_).name]=[{name:"wrapper",func:a}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=aa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=aa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=aa(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bs(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},gr.prototype.plant=function(e){for(var t,n=this;n instanceof _r;){var r=mf(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},gr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:zf,args:[xf],thisArg:a}),new br(t,this.__chain__)}return this.thru(xf)},gr.prototype.toJSON=gr.prototype.valueOf=gr.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},gr.prototype.first=gr.prototype.head,Ut&&(gr.prototype[Ut]=function(){return this}),gr}();Rt._=Bn,(i=function(){return Bn}.call(t,n,t,r))===a||(r.exports=i)}).call(this)}).call(t,n(20),n(62)(e))},function(e,t,n){"use strict";(function(e){const r=n(282),i=n(283)(),a=n(1217),f={SHA1:"SHA-1",SHA256:"SHA-256",SHA512:"SHA-512"};t.create=function(t,n,s){const o=f[t];r(i.subtle.importKey("raw",n,{name:"HMAC",hash:{name:o}},!1,["sign"]).then(n=>({digest(t,a){((t,n,a)=>{r(i.subtle.sign({name:"HMAC"},t,n).then(t=>e.from(t)),a)})(n,t,a)},length:a[t]})),s)}}).call(t,n(2).Buffer)},function(e,t,n){var r={ECB:n(1222),CBC:n(1223),CFB:n(1224),CFB8:n(1225),CFB1:n(1226),OFB:n(1227),CTR:n(433),GCM:n(433)},i=n(435);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){var r=n(149),i=n(7).Buffer,a=n(434);function f(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s0||a>0;){var c=new i;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var u=0;if(f>0){var d=s.length-f;u=Math.min(f,l.length),l.copy(s,d,0,u),f-=u}if(u0){var p=o.length-a,m=Math.min(a,l.length-u);l.copy(o,p,u,u+m),a-=m}}return l.fill(0),{key:s,iv:o}}},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(276).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(9)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++f)this._length[f]+=s,(s=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){var r=n(4);n(11),r.cipher=r.cipher||{};var i=e.exports=r.cipher.modes=r.cipher.modes||{};function a(e){if("string"==typeof e&&(e=r.util.createBuffer(e)),r.util.isArray(e)&&e.length>4){var t=e;e=r.util.createBuffer();for(var n=0;n0))return!0;for(var r=0;r0))return!0;for(var r=0;r0)return!1;var n=e.length(),r=e.at(n-1);return!(r>this.blockSize<<2)&&(e.truncate(r),!0)},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,n){if(e.length()0))return!0;for(var r=0;r0))return!0;for(var r=0;r0)return!1;var n=e.length(),r=e.at(n-1);return!(r>this.blockSize<<2)&&(e.truncate(r),!0)},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=r.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,n){var r=e.length();if(0===r)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&r>=this.blockSize)for(var i=0;i0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!n)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,n){var r=e.length();if(0===r)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&r>=this.blockSize)for(var i=0;i0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!n)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=r.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,n){var r=e.length();if(0===e.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&r>=this.blockSize)for(var i=0;i0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!n)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=r.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,n){var r=e.length();if(0===r)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&r>=this.blockSize)for(var i=0;i0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!n)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}f(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=r.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t,n=r.util.createBuffer(e.iv);if(this._cipherLength=0,t="additionalData"in e?r.util.createBuffer(e.additionalData):r.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=r.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var i=n.length();if(12===i)this._j0=[n.getInt32(),n.getInt32(),n.getInt32(),1];else{for(this._j0=[0,0,0,0];n.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[n.getInt32(),n.getInt32(),n.getInt32(),n.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*i)))}this._inBlock=this._j0.slice(0),f(this._inBlock),this._partialBytes=0,t=r.util.createBuffer(t),this._aDataLength=s(8*t.length());var a=t.length()%this.blockSize;for(a&&t.fillWithByte(0,this.blockSize-a),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,n){var r=e.length();if(0===r)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&r>=this.blockSize){for(var i=0;i0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!n)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),f(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,n){var r=e.length();if(r0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),f(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i0;--r)t[r]=e[r]>>>1|(1&e[r-1])<<31;t[0]=e[0]>>>1,n&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],n=0;n<32;++n){var r=e[n/8|0]>>>4*(7-n%8)&15,i=this._m[n][r];t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,n){return t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var n=8/t,r=4*n,i=16*n,a=new Array(i),f=0;f>>1,i=new Array(n);i[r]=e.slice(0);for(var a=r>>>1;a>0;)this.pow(i[2*a],i[a]=[]),a>>=1;for(a=2;a>1,s=f+(1&e.length),o=e.substr(0,s),l=e.substr(f,s),c=r.util.createBuffer(),u=r.hmac.create();n=t+n;var d=Math.ceil(i/16),p=Math.ceil(i/20);u.start("MD5",o);var m=r.util.createBuffer();c.putBytes(n);for(var y=0;y0&&(l.queue(e,l.createAlert(e,{level:l.Alert.Level.warning,description:l.Alert.Description.no_renegotiation})),l.flush(e)),e.process()},l.parseHelloMessage=function(e,t,n){var i=null,a=e.entity===l.ConnectionEnd.client;if(n<38)e.error(e,{message:a?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.illegal_parameter}});else{var f=t.fragment,o=f.length();if(i={version:{major:f.getByte(),minor:f.getByte()},random:r.util.createBuffer(f.getBytes(32)),session_id:s(f,1),extensions:[]},a?(i.cipher_suite=f.getBytes(2),i.compression_method=f.getByte()):(i.cipher_suites=s(f,2),i.compression_methods=s(f,1)),(o=n-(o-f.length()))>0){for(var c=s(f,2);c.length()>0;)i.extensions.push({type:[c.getByte(),c.getByte()],data:s(c,2)});if(!a)for(var u=0;u0;){if(0!==p.getByte())break;e.session.extensions.server_name.serverNameList.push(s(p,2).getBytes())}}}if(e.session.version&&(i.version.major!==e.session.version.major||i.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.protocol_version}});if(a)e.session.cipherSuite=l.getCipherSuite(i.cipher_suite);else for(var m=r.util.createBuffer(i.cipher_suites.bytes());m.length()>0&&(e.session.cipherSuite=l.getCipherSuite(m.getBytes(2)),null===e.session.cipherSuite););if(null===e.session.cipherSuite)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.handshake_failure},cipherSuite:r.util.bytesToHex(i.cipher_suite)});e.session.compressionMethod=a?i.compression_method:l.CompressionMethod.none}return i},l.createSecurityParameters=function(e,t){var n=e.entity===l.ConnectionEnd.client,r=t.random.bytes(),i=n?e.session.sp.client_random:r,a=n?r:l.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:l.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:a}},l.handleServerHello=function(e,t,n){var r=l.parseHelloMessage(e,t,n);if(!e.fail){if(!(r.version.minor<=e.version.minor))return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.protocol_version}});e.version.minor=r.version.minor,e.session.version=e.version;var i=r.session_id.bytes();i.length>0&&i===e.session.id?(e.expect=m,e.session.resuming=!0,e.session.sp.server_random=r.random.bytes()):(e.expect=c,e.session.resuming=!1,l.createSecurityParameters(e,r)),e.session.id=i,e.process()}},l.handleClientHello=function(e,t,n){var i=l.parseHelloMessage(e,t,n);if(!e.fail){var a=i.session_id.bytes(),f=null;if(e.sessionCache&&(null===(f=e.sessionCache.getSession(a))?a="":(f.version.major!==i.version.major||f.version.minor>i.version.minor)&&(f=null,a="")),0===a.length&&(a=r.random.getBytes(32)),e.session.id=a,e.session.clientHelloVersion=i.version,e.session.sp={},f)e.version=e.session.version=f.version,e.session.sp=f.sp;else{for(var s,o=1;o0;)i=s(o.certificate_list,3),a=r.asn1.fromDer(i),i=r.pki.certificateFromAsn1(a,!0),c.push(i)}catch(t){return e.error(e,{message:"Could not parse certificate list.",cause:t,send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.bad_certificate}})}var d=e.entity===l.ConnectionEnd.client;!d&&!0!==e.verifyClient||0!==c.length?0===c.length?e.expect=d?u:b:(d?e.session.serverCertificate=c[0]:e.session.clientCertificate=c[0],l.verifyCertificateChain(e,c)&&(e.expect=d?u:b)):e.error(e,{message:d?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.illegal_parameter}}),e.process()},l.handleServerKeyExchange=function(e,t,n){if(n>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.unsupported_certificate}});e.expect=d,e.process()},l.handleClientKeyExchange=function(e,t,n){if(n<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.unsupported_certificate}});var i=t.fragment,a={enc_pre_master_secret:s(i,2).getBytes()},f=null;if(e.getPrivateKey)try{f=e.getPrivateKey(e,e.session.serverCertificate),f=r.pki.privateKeyFromPem(f)}catch(t){e.error(e,{message:"Could not get private key.",cause:t,send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.internal_error}})}if(null===f)return e.error(e,{message:"No private key set.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.internal_error}});try{var o=e.session.sp;o.pre_master_secret=f.decrypt(a.enc_pre_master_secret);var c=e.session.clientHelloVersion;if(c.major!==o.pre_master_secret.charCodeAt(0)||c.minor!==o.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch(e){o.pre_master_secret=r.random.getBytes(48)}e.expect=T,null!==e.session.clientCertificate&&(e.expect=v),e.process()},l.handleCertificateRequest=function(e,t,n){if(n<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.illegal_parameter}});var r=t.fragment,i={certificate_types:s(r,1),certificate_authorities:s(r,2)};e.session.certificateRequest=i,e.expect=p,e.process()},l.handleCertificateVerify=function(e,t,n){if(n<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.illegal_parameter}});var i=t.fragment;i.read-=4;var a=i.bytes();i.read+=4;var f={signature:s(i,2).getBytes()},o=r.util.createBuffer();o.putBuffer(e.session.md5.digest()),o.putBuffer(e.session.sha1.digest()),o=o.getBytes();try{if(!e.session.clientCertificate.publicKey.verify(o,f.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(a),e.session.sha1.update(a)}catch(t){return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.handshake_failure}})}e.expect=T,e.process()},l.handleServerHelloDone=function(e,t,n){if(n>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.record_overflow}});if(null===e.serverCertificate){var i={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.insufficient_security}},a=e.verify(e,i.alert.description,0,[]);if(!0!==a)return(a||0===a)&&("object"!=typeof a||r.util.isArray(a)?"number"==typeof a&&(i.alert.description=a):(a.message&&(i.message=a.message),a.alert&&(i.alert.description=a.alert))),e.error(e,i)}null!==e.session.certificateRequest&&(t=l.createRecord(e,{type:l.ContentType.handshake,data:l.createCertificate(e)}),l.queue(e,t)),t=l.createRecord(e,{type:l.ContentType.handshake,data:l.createClientKeyExchange(e)}),l.queue(e,t),e.expect=h;var f=function(e,t){null!==e.session.certificateRequest&&null!==e.session.clientCertificate&&l.queue(e,l.createRecord(e,{type:l.ContentType.handshake,data:l.createCertificateVerify(e,t)})),l.queue(e,l.createRecord(e,{type:l.ContentType.change_cipher_spec,data:l.createChangeCipherSpec()})),e.state.pending=l.createConnectionState(e),e.state.current.write=e.state.pending.write,l.queue(e,l.createRecord(e,{type:l.ContentType.handshake,data:l.createFinished(e)})),e.expect=m,l.flush(e),e.process()};if(null===e.session.certificateRequest||null===e.session.clientCertificate)return f(e,null);l.getClientSignature(e,f)},l.handleChangeCipherSpec=function(e,t){if(1!==t.fragment.getByte())return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.illegal_parameter}});var n=e.entity===l.ConnectionEnd.client;(e.session.resuming&&n||!e.session.resuming&&!n)&&(e.state.pending=l.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&n||e.session.resuming&&!n)&&(e.state.pending=null),e.expect=n?y:I,e.process()},l.handleFinished=function(e,t,n){var a=t.fragment;a.read-=4;var f=a.bytes();a.read+=4;var s=t.fragment.getBytes();(a=r.util.createBuffer()).putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var o=e.entity===l.ConnectionEnd.client,c=o?"server finished":"client finished",u=e.session.sp;if((a=i(u.master_secret,c,a.getBytes(),12)).getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.decrypt_error}});e.session.md5.update(f),e.session.sha1.update(f),(e.session.resuming&&o||!e.session.resuming&&!o)&&(l.queue(e,l.createRecord(e,{type:l.ContentType.change_cipher_spec,data:l.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,l.queue(e,l.createRecord(e,{type:l.ContentType.handshake,data:l.createFinished(e)}))),e.expect=o?g:S,e.handshaking=!1,++e.handshakes,e.peerCertificate=o?e.session.serverCertificate:e.session.clientCertificate,l.flush(e),e.isConnected=!0,e.connected(e),e.process()},l.handleAlert=function(e,t){var n,r=t.fragment,i={level:r.getByte(),description:r.getByte()};switch(i.description){case l.Alert.Description.close_notify:n="Connection closed.";break;case l.Alert.Description.unexpected_message:n="Unexpected message.";break;case l.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case l.Alert.Description.decryption_failed:n="Decryption failed.";break;case l.Alert.Description.record_overflow:n="Record overflow.";break;case l.Alert.Description.decompression_failure:n="Decompression failed.";break;case l.Alert.Description.handshake_failure:n="Handshake failure.";break;case l.Alert.Description.bad_certificate:n="Bad certificate.";break;case l.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case l.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case l.Alert.Description.certificate_expired:n="Certificate expired.";break;case l.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case l.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case l.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case l.Alert.Description.access_denied:n="Access denied.";break;case l.Alert.Description.decode_error:n="Decode error.";break;case l.Alert.Description.decrypt_error:n="Decrypt error.";break;case l.Alert.Description.export_restriction:n="Export restriction.";break;case l.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case l.Alert.Description.insufficient_security:n="Insufficient security.";break;case l.Alert.Description.internal_error:n="Internal error.";break;case l.Alert.Description.user_canceled:n="User canceled.";break;case l.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error."}if(i.description===l.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===l.ConnectionEnd.client?"server":"client",alert:i}),e.process()},l.handleHandshake=function(e,t){var n=t.fragment,i=n.getByte(),a=n.getInt24();if(a>n.length())return e.fragmented=t,t.fragment=r.util.createBuffer(),n.read-=4,e.process();e.fragmented=null,n.read-=4;var f=n.bytes(a+4);n.read+=4,i in j[e.entity][e.expect]?(e.entity!==l.ConnectionEnd.server||e.open||e.fail||(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:r.md.md5.create(),sha1:r.md.sha1.create()}),i!==l.HandshakeType.hello_request&&i!==l.HandshakeType.certificate_verify&&i!==l.HandshakeType.finished&&(e.session.md5.update(f),e.session.sha1.update(f)),j[e.entity][e.expect][i](e,t,a)):l.handleUnexpected(e,t)},l.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},l.handleHeartbeat=function(e,t){var n=t.fragment,i=n.getByte(),a=n.getInt16(),f=n.getBytes(a);if(i===l.HeartbeatMessageType.heartbeat_request){if(e.handshaking||a>f.length)return e.process();l.queue(e,l.createRecord(e,{type:l.ContentType.heartbeat,data:l.createHeartbeat(l.HeartbeatMessageType.heartbeat_response,f)})),l.flush(e)}else if(i===l.HeartbeatMessageType.heartbeat_response){if(f!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,r.util.createBuffer(f))}e.process()};var c=1,u=2,d=3,p=4,m=5,y=6,g=7,h=8,_=1,b=2,v=3,T=4,I=5,S=6,M=l.handleUnexpected,E=l.handleChangeCipherSpec,D=l.handleAlert,C=l.handleHandshake,w=l.handleApplicationData,x=l.handleHeartbeat,A=[];A[l.ConnectionEnd.client]=[[M,D,C,M,x],[M,D,C,M,x],[M,D,C,M,x],[M,D,C,M,x],[M,D,C,M,x],[E,D,M,M,x],[M,D,C,M,x],[M,D,C,w,x],[M,D,C,M,x]],A[l.ConnectionEnd.server]=[[M,D,C,M,x],[M,D,C,M,x],[M,D,C,M,x],[M,D,C,M,x],[E,D,M,M,x],[M,D,C,M,x],[M,D,C,w,x],[M,D,C,M,x]];var L=l.handleHelloRequest,k=l.handleServerHello,N=l.handleCertificate,R=l.handleServerKeyExchange,O=l.handleCertificateRequest,P=l.handleServerHelloDone,B=l.handleFinished,j=[];j[l.ConnectionEnd.client]=[[M,M,k,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,N,R,O,P,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,R,O,P,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,M,O,P,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,M,M,P,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,B],[L,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[L,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M]];var U=l.handleClientHello,Y=l.handleClientKeyExchange,F=l.handleCertificateVerify;j[l.ConnectionEnd.server]=[[M,U,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,N,M,M,M,M,M,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,Y,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,F,M,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,B],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M],[M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M]],l.generateKeys=function(e,t){var n=i,r=t.client_random+t.server_random;e.session.resuming||(t.master_secret=n(t.pre_master_secret,"master secret",r,48).bytes(),t.pre_master_secret=null),r=t.server_random+t.client_random;var a=2*t.mac_key_length+2*t.enc_key_length,f=e.version.major===l.Versions.TLS_1_0.major&&e.version.minor===l.Versions.TLS_1_0.minor;f&&(a+=2*t.fixed_iv_length);var s=n(t.master_secret,"key expansion",r,a),o={client_write_MAC_key:s.getBytes(t.mac_key_length),server_write_MAC_key:s.getBytes(t.mac_key_length),client_write_key:s.getBytes(t.enc_key_length),server_write_key:s.getBytes(t.enc_key_length)};return f&&(o.client_write_IV=s.getBytes(t.fixed_iv_length),o.server_write_IV=s.getBytes(t.fixed_iv_length)),o},l.createConnectionState=function(e){var t=e.entity===l.ConnectionEnd.client,n=function(){var e={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(e){return!0},compressionState:null,compressFunction:function(e){return!0},updateSequenceNumber:function(){4294967295===e.sequenceNumber[1]?(e.sequenceNumber[1]=0,++e.sequenceNumber[0]):++e.sequenceNumber[1]}};return e},r={read:n(),write:n()};if(r.read.update=function(e,t){return r.read.cipherFunction(t,r.read)?r.read.compressFunction(e,t,r.read)||e.error(e,{message:"Could not decompress record.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.decompression_failure}}):e.error(e,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.bad_record_mac}}),!e.fail},r.write.update=function(e,t){return r.write.compressFunction(e,t,r.write)?r.write.cipherFunction(t,r.write)||e.error(e,{message:"Could not encrypt record.",send:!1,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.internal_error}}):e.error(e,{message:"Could not compress record.",send:!1,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.internal_error}}),!e.fail},e.session){var i=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(i),i.keys=l.generateKeys(e,i),r.read.macKey=t?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,r.write.macKey=t?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(r,e,i),i.compression_algorithm){case l.CompressionMethod.none:break;case l.CompressionMethod.deflate:r.read.compressFunction=f,r.write.compressFunction=a;break;default:throw new Error("Unsupported compression algorithm.")}}return r},l.createRandom=function(){var e=new Date,t=+e+6e4*e.getTimezoneOffset(),n=r.util.createBuffer();return n.putInt32(t),n.putBytes(r.random.getBytes(28)),n},l.createRecord=function(e,t){return t.data?{type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data}:null},l.createAlert=function(e,t){var n=r.util.createBuffer();return n.putByte(t.level),n.putByte(t.description),l.createRecord(e,{type:l.ContentType.alert,data:n})},l.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=r.util.createBuffer(),n=0;n0&&(m+=2);var y=e.session.id,g=y.length+1+2+4+28+2+a+1+s+m,h=r.util.createBuffer();return h.putByte(l.HandshakeType.client_hello),h.putInt24(g),h.putByte(e.version.major),h.putByte(e.version.minor),h.putBytes(e.session.sp.client_random),o(h,1,r.util.createBuffer(y)),o(h,2,t),o(h,1,f),m>0&&o(h,2,c),h},l.createServerHello=function(e){var t=e.session.id,n=t.length+1+2+4+28+2+1,i=r.util.createBuffer();return i.putByte(l.HandshakeType.server_hello),i.putInt24(n),i.putByte(e.version.major),i.putByte(e.version.minor),i.putBytes(e.session.sp.server_random),o(i,1,r.util.createBuffer(t)),i.putByte(e.session.cipherSuite.id[0]),i.putByte(e.session.cipherSuite.id[1]),i.putByte(e.session.compressionMethod),i},l.createCertificate=function(e){var t,n=e.entity===l.ConnectionEnd.client,i=null;e.getCertificate&&(t=n?e.session.certificateRequest:e.session.extensions.server_name.serverNameList,i=e.getCertificate(e,t));var a=r.util.createBuffer();if(null!==i)try{r.util.isArray(i)||(i=[i]);for(var f=null,s=0;sl.MaxFragment;)i.push(l.createRecord(e,{type:t.type,data:r.util.createBuffer(a.slice(0,l.MaxFragment))})),a=a.slice(l.MaxFragment);a.length>0&&i.push(l.createRecord(e,{type:t.type,data:r.util.createBuffer(a)}))}for(var f=0;f0&&(i=n.order[0]),null!==i&&i in n.cache)for(var a in t=n.cache[i],delete n.cache[i],n.order)if(n.order[a]===i){n.order.splice(a,1);break}return t},n.setSession=function(e,t){if(n.order.length===n.capacity){var i=n.order.shift();delete n.cache[i]}i=r.util.bytesToHex(e);n.order.push(i),n.cache[i]=t}}return n},l.createConnection=function(e){var t=null;t=e.caStore?r.util.isArray(e.caStore)?r.pki.createCaStore(e.caStore):e.caStore:r.pki.createCaStore();var n=e.cipherSuites||null;if(null===n)for(var i in n=[],l.CipherSuites)n.push(l.CipherSuites[i]);var a=e.server?l.ConnectionEnd.server:l.ConnectionEnd.client,f=e.sessionCache?l.createSessionCache(e.sessionCache):null,s={version:{major:l.Version.major,minor:l.Version.minor},entity:a,sessionId:e.sessionId,caStore:t,sessionCache:f,cipherSuites:n,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(e,t,n,r){return t},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:r.util.createBuffer(),tlsData:r.util.createBuffer(),data:r.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(t,n){n.origin=n.origin||(t.entity===l.ConnectionEnd.client?"client":"server"),n.send&&(l.queue(t,l.createAlert(t,n.alert)),l.flush(t));var r=!1!==n.fatal;r&&(t.fail=!0),e.error(t,n),r&&t.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null,reset:function(e){s.version={major:l.Version.major,minor:l.Version.minor},s.record=null,s.session=null,s.peerCertificate=null,s.state={pending:null,current:null},s.expect=(s.entity,l.ConnectionEnd.client,0),s.fragmented=null,s.records=[],s.open=!1,s.handshakes=0,s.handshaking=!1,s.isConnected=!1,s.fail=!(e||void 0===e),s.input.clear(),s.tlsData.clear(),s.data.clear(),s.state.current=l.createConnectionState(s)}};s.reset();return s.handshake=function(e){if(s.entity!==l.ConnectionEnd.client)s.error(s,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(s.handshaking)s.error(s,{message:"Handshake already in progress.",fatal:!1});else{s.fail&&!s.open&&0===s.handshakes&&(s.fail=!1),s.handshaking=!0;var t=null;(e=e||"").length>0&&(s.sessionCache&&(t=s.sessionCache.getSession(e)),null===t&&(e="")),0===e.length&&s.sessionCache&&null!==(t=s.sessionCache.getSession())&&(e=t.id),s.session={id:e,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:r.md.md5.create(),sha1:r.md.sha1.create()},t&&(s.version=t.version,s.session.sp=t.sp),s.session.sp.client_random=l.createRandom().getBytes(),s.open=!0,l.queue(s,l.createRecord(s,{type:l.ContentType.handshake,data:l.createClientHello(s)})),l.flush(s)}},s.process=function(e){var t=0;return e&&s.input.putBytes(e),s.fail||(null!==s.record&&s.record.ready&&s.record.fragment.isEmpty()&&(s.record=null),null===s.record&&(t=function(e){var t=0,n=e.input,i=n.length();if(i<5)t=5-i;else{e.record={type:n.getByte(),version:{major:n.getByte(),minor:n.getByte()},length:n.getInt16(),fragment:r.util.createBuffer(),ready:!1};var a=e.record.version.major===e.version.major;a&&e.session&&e.session.version&&(a=e.record.version.minor===e.version.minor),a||e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:l.Alert.Level.fatal,description:l.Alert.Description.protocol_version}})}return t}(s)),s.fail||null===s.record||s.record.ready||(t=function(e){var t=0,n=e.input,r=n.length();r=0;o--)x>>=8,x+=E.at(o)+w.at(o),w.setAt(o,255&x);C.putBuffer(w)}v=C,u.putBuffer(S)}return u.truncate(u.length()-a),u},f.pbe.getCipher=function(e,t,n){switch(e){case f.oids.pkcs5PBES2:return f.pbe.getCipherForPBES2(e,t,n);case f.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case f.oids["pbewithSHAAnd40BitRC2-CBC"]:return f.pbe.getCipherForPKCS12PBE(e,t,n);default:var r=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw r.oid=e,r.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],r}},f.pbe.getCipherForPBES2=function(e,t,n){var i,s={},o=[];if(!a.validate(t,l,s,o))throw(i=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=o,i;if((e=a.derToOid(s.kdfOid))!==f.oids.pkcs5PBKDF2)throw(i=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=e,i.supportedOids=["pkcs5PBKDF2"],i;if((e=a.derToOid(s.encOid))!==f.oids["aes128-CBC"]&&e!==f.oids["aes192-CBC"]&&e!==f.oids["aes256-CBC"]&&e!==f.oids["des-EDE3-CBC"]&&e!==f.oids.desCBC)throw(i=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=e,i.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],i;var c,u,p=s.kdfSalt,m=r.util.createBuffer(s.kdfIterationCount);switch(m=m.getInt(m.length()<<3),f.oids[e]){case"aes128-CBC":c=16,u=r.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,u=r.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,u=r.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,u=r.des.createDecryptionCipher;break;case"desCBC":c=8,u=r.des.createDecryptionCipher}var y=d(s.prfOid),g=r.pkcs5.pbkdf2(n,p,m,c,y),h=s.encIv,_=u(g);return _.start(h),_},f.pbe.getCipherForPKCS12PBE=function(e,t,n){var i={},s=[];if(!a.validate(t,c,i,s))throw(y=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=s,y;var o,l,u,p=r.util.createBuffer(i.salt),m=r.util.createBuffer(i.iterations);switch(m=m.getInt(m.length()<<3),e){case f.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:o=24,l=8,u=r.des.startDecrypting;break;case f.oids["pbewithSHAAnd40BitRC2-CBC"]:o=5,l=8,u=function(e,t){var n=r.rc2.createDecryptionCipher(e,40);return n.start(t,null),n};break;default:var y;throw(y=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=e,y}var g=d(i.prfOid),h=f.pbe.generatePkcs12Key(n,p,1,m,o,g);return g.start(),u(h,f.pbe.generatePkcs12Key(n,p,2,m,l,g))},f.pbe.opensslDeriveBytes=function(e,t,n,i){if(void 0===i||null===i){if(!("md5"in r.md))throw new Error('"md5" hash algorithm unavailable.');i=r.md.md5.create()}null===t&&(t="");for(var a=[u(i,e+t)],f=16,s=1;f>>0,s>>>0];for(var l=i.fullMessageLength.length-1;l>=0;--l)i.fullMessageLength[l]+=s[1],s[1]=s[0]+(i.fullMessageLength[l]/4294967296>>>0),i.fullMessageLength[l]=i.fullMessageLength[l]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(a),o(e,n,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var f=r.util.createBuffer();f.putBytes(t.bytes());var s,l=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;f.putBytes(a.substr(0,i.blockLength-l));for(var c=8*i.fullMessageLength[0],u=0;u>>0,f.putInt32(c>>>0),c=s>>>0;f.putInt32(c);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};o(d,n,f);var p=r.util.createBuffer();return p.putInt32(d.h0),p.putInt32(d.h1),p.putInt32(d.h2),p.putInt32(d.h3),p.putInt32(d.h4),p.putInt32(d.h5),p.putInt32(d.h6),p.putInt32(d.h7),p},i};var a=null,f=!1,s=null;function o(e,t,n){for(var r,i,a,f,o,l,c,u,d,p,m,y,g,h=n.length();h>=64;){for(o=0;o<16;++o)t[o]=n.getInt32();for(;o<64;++o)r=((r=t[o-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,i=((i=t[o-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,t[o]=r+t[o-7]+i+t[o-16]|0;for(l=e.h0,c=e.h1,u=e.h2,d=e.h3,p=e.h4,m=e.h5,y=e.h6,g=e.h7,o=0;o<64;++o)a=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),f=l&c|u&(l^c),r=g+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(y^p&(m^y))+s[o]+t[o],g=y,y=m,m=p,p=d+r>>>0,d=u,u=c,c=l,l=r+(i=a+f)>>>0;e.h0=e.h0+l|0,e.h1=e.h1+c|0,e.h2=e.h2+u|0,e.h3=e.h3+d|0,e.h4=e.h4+p|0,e.h5=e.h5+m|0,e.h6=e.h6+y|0,e.h7=e.h7+g|0,h-=64}}},function(e,t,n){(function(t){var r=n(4);n(11);var i=null;!r.util.isNodejs||r.options.usePureJavaScript||t.versions["node-webkit"]||(i=n(444)),(e.exports=r.prng=r.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},n=e.md,a=new Array(32),f=0;f<32;++f)a[f]=n.create();function s(){if(t.pools[0].messageLength>=32)return o();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),o()}function o(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var n=1,r=0;r<32;++r)t.reseeds%n==0&&(e.update(t.pools[r].digest().getBytes()),t.pools[r].start()),n<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var i=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(i),t.generated=0}function l(e){var t=null;if("undefined"!=typeof window){var n=window.crypto||window.msCrypto;n&&n.getRandomValues&&(t=function(e){return n.getRandomValues(e)})}var i=r.util.createBuffer();if(t)for(;i.length()>16)))<<16,u=4294967295&(l=(2147483647&(l+=o>>15))+(l>>31));for(s=0;s<3;++s)c=u>>>(s<<3),c^=Math.floor(256*Math.random()),i.putByte(String.fromCharCode(255&c))}return i.getBytes(e)}return t.pools=a,t.pool=0,t.generate=function(e,n){if(!n)return t.generateSync(e);var i=t.plugin.cipher,a=t.plugin.increment,f=t.plugin.formatKey,s=t.plugin.formatSeed,l=r.util.createBuffer();t.key=null,function c(u){if(u)return n(u);if(l.length()>=e)return n(null,l.getBytes(e));t.generated>1048575&&(t.key=null);if(null===t.key)return r.util.nextTick(function(){!function(e){if(t.pools[0].messageLength>=32)return o(),e();var n=32-t.pools[0].messageLength<<5;t.seedFile(n,function(n,r){if(n)return e(n);t.collect(r),o(),e()})}(c)});var d=i(t.key,t.seed);t.generated+=d.length;l.putBytes(d);t.key=f(i(t.key,a(t.seed)));t.seed=s(i(t.key,t.seed));r.util.setImmediate(c)}()},t.generateSync=function(e){var n=t.plugin.cipher,i=t.plugin.increment,a=t.plugin.formatKey,f=t.plugin.formatSeed;t.key=null;for(var o=r.util.createBuffer();o.length()1048575&&(t.key=null),null===t.key&&s();var l=n(t.key,t.seed);t.generated+=l.length,o.putBytes(l),t.key=a(n(t.key,i(t.seed))),t.seed=f(n(t.key,t.seed))}return o.getBytes(e)},i?(t.seedFile=function(e,t){i.randomBytes(e,function(e,n){if(e)return t(e);t(null,n.toString())})},t.seedFileSync=function(e){return i.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,l(e))}catch(e){t(e)}},t.seedFileSync=l),t.collect=function(e){for(var n=e.length,r=0;r>i&255);t.collect(r)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){self.addEventListener("message",function e(n){var r=n.data;r.forge&&r.forge.prng&&(self.removeEventListener("message",e),t(r.forge.prng.err,r.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:e}}})};else{e.addEventListener("message",function(n){var r=n.data;r.forge&&r.forge.prng&&t.seedFile(r.forge.prng.needed,function(t,n){e.postMessage({forge:{prng:{err:t,bytes:n}}})})})}},t}}).call(t,n(25))},function(e,t,n){var r=n(4);n(11);var i=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],a=[1,2,3,5];e.exports=r.rc2=r.rc2||{},r.rc2.expandKey=function(e,t){"string"==typeof e&&(e=r.util.createBuffer(e)),t=t||128;var n,a=e,f=e.length(),s=t,o=Math.ceil(s/8),l=255>>(7&s);for(n=f;n<128;n++)a.putByte(i[a.at(n-1)+a.at(n-f)&255]);for(a.setAt(128-o,i[a.at(128-o)&l]),n=127-o;n>=0;n--)a.setAt(n,i[a.at(n+1)^a.at(n+o)]);return a};var f=function(e,t,n){var i,f,s,o,l=!1,c=null,u=null,d=null,p=[];for(e=r.rc2.expandKey(e,t),s=0;s<64;s++)p.push(e.getInt16Le());n?(i=function(e){for(s=0;s<4;s++)e[s]+=p[o]+(e[(s+3)%4]&e[(s+2)%4])+(~e[(s+3)%4]&e[(s+1)%4]),e[s]=(t=e[s])<<(n=a[s])&65535|(65535&t)>>16-n,o++;var t,n},f=function(e){for(s=0;s<4;s++)e[s]+=p[63&e[(s+3)%4]]}):(i=function(e){for(s=3;s>=0;s--)e[s]=(65535&(t=e[s]))>>(n=a[s])|t<<16-n&65535,e[s]-=p[o]+(e[(s+3)%4]&e[(s+2)%4])+(~e[(s+3)%4]&e[(s+1)%4]),o--;var t,n},f=function(e){for(s=3;s>=0;s--)e[s]-=p[63&e[(s+3)%4]]});var m=function(e){var t=[];for(s=0;s<4;s++){var r=c.getInt16Le();null!==d&&(n?r^=d.getInt16Le():d.putInt16Le(r)),t.push(65535&r)}o=n?0:63;for(var i=0;i=8;)m([[5,i],[1,f],[6,i],[1,f],[5,i]])},finish:function(e){var t=!0;if(n)if(e)t=e(8,c,!n);else{var r=8===c.length()?8:8-c.length();c.fillWithByte(r,r)}if(t&&(l=!0,y.update()),!n&&(t=0===c.length()))if(e)t=e(8,u,!n);else{var i=u.length(),a=u.at(i-1);a>i?t=!1:u.truncate(a)}return t}}};r.rc2.startEncrypting=function(e,t,n){var i=r.rc2.createEncryptionCipher(e,128);return i.start(t,n),i},r.rc2.createEncryptionCipher=function(e,t){return f(e,t,!0)},r.rc2.startDecrypting=function(e,t,n){var i=r.rc2.createDecryptionCipher(e,128);return i.start(t,n),i},r.rc2.createDecryptionCipher=function(e,t){return f(e,t,!1)}},function(e,t,n){var r=n(4);n(11),n(54),n(151);var i=e.exports=r.pkcs1=r.pkcs1||{};function a(e,t,n){n||(n=r.md.sha1.create());for(var i="",a=Math.ceil(t/n.digestLength),f=0;f>24&255,f>>16&255,f>>8&255,255&f);n.start(),n.update(e+s),i+=n.digest().getBytes()}return i.substring(0,t)}i.encode_rsa_oaep=function(e,t,n){var i,f,s,o;"string"==typeof n?(i=n,f=arguments[3]||void 0,s=arguments[4]||void 0):n&&(i=n.label||void 0,f=n.seed||void 0,s=n.md||void 0,n.mgf1&&n.mgf1.md&&(o=n.mgf1.md)),s?s.start():s=r.md.sha1.create(),o||(o=s);var l=Math.ceil(e.n.bitLength()/8),c=l-2*s.digestLength-2;if(t.length>c)throw(g=new Error("RSAES-OAEP input message length is too long.")).length=t.length,g.maxLength=c,g;i||(i=""),s.update(i,"raw");for(var u=s.digest(),d="",p=c-t.length,m=0;me&&(f=o(e,t));var p=f.toString(16);i.target.postMessage({hex:p,workLoad:c}),f.dAddOffset(u,0)}}}p()}(e,t,i,a);return s(e,t,i,a)}(e,l,a.options,i);throw new Error("Invalid prime generation algorithm: "+a.name)}}function s(e,t,n,a){var f=o(e,t),s=function(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}(f.bitLength());"millerRabinTests"in n&&(s=n.millerRabinTests);var l=10;"maxBlockTime"in n&&(l=n.maxBlockTime),function e(t,n,a,f,s,l,c){var u=+new Date;do{if(t.bitLength()>n&&(t=o(n,a)),t.isProbablePrime(s))return c(null,t);t.dAddOffset(i[f++%8],0)}while(l<0||+new Date-u=0&&i.push(s):i.push(s))}return i}function p(e){if(e.composed||e.constructed){for(var t=r.util.createBuffer(),n=0;n0&&(o=i.create(i.Class.UNIVERSAL,i.Type.SET,!0,u));var d=[],p=[];null!==t&&(p=r.util.isArray(t)?t:[t]);for(var m=[],y=0;y0){var b=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,m),v=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(b).getBytes())])]);d.push(v)}var T=null;if(null!==e){var I=a.wrapRsaPrivateKey(a.privateKeyToAsn1(e));T=null===n?i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.keyBag).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[I]),o]):i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.pkcs8ShroudedKeyBag).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[a.encryptPrivateKeyInfo(I,n,s)]),o]);var S=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[T]),M=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(S).getBytes())])]);d.push(M)}var E,D=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,d);if(s.useMac){var C=r.md.sha1.create(),w=new r.util.ByteBuffer(r.random.getBytes(s.saltSize)),x=s.count,A=(e=f.generateKey(n,w,3,x,20),r.hmac.create());A.start(C,e),A.update(i.toDer(D).getBytes());var L=A.getMac();E=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.sha1).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,L.getBytes())]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,w.getBytes()),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(x).getBytes())])}return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(3).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(D).getBytes())])]),E])},f.generateKey=r.pbe.generatePkcs12Key},function(e,t,n){var r=n(4);n(70),n(11);var i=r.asn1,a=e.exports=r.pkcs7asn1=r.pkcs7asn1||{};r.pkcs7=r.pkcs7||{},r.pkcs7.asn1=a;var f={name:"ContentInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};a.contentInfoValidator=f;var s={name:"EncryptedContentInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};a.envelopedDataValidator={name:"EnvelopedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(s)},a.encryptedDataValidator={name:"EncryptedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"}].concat(s)};var o={name:"SignerInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};a.signedDataValidator={name:"SignedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},f,{name:"SignedData.Certificates",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,capture:"signerInfos",optional:!0,value:[o]}]},a.recipientInfoValidator={name:"RecipientInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter"}]},{name:"RecipientInfo.encryptedKey",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}},function(e,t,n){var r=n(4);n(11),r.mgf=r.mgf||{},(e.exports=r.mgf.mgf1=r.mgf1=r.mgf1||{}).create=function(e){return{generate:function(t,n){for(var i=new r.util.ByteBuffer,a=Math.ceil(n/e.digestLength),f=0;f>>0,f>>>0];for(var s=p.fullMessageLength.length-1;s>=0;--s)p.fullMessageLength[s]+=f[1],f[1]=f[0]+(p.fullMessageLength[s]/4294967296>>>0),p.fullMessageLength[s]=p.fullMessageLength[s]>>>0,f[0]=f[1]/4294967296>>>0;return i.putBytes(e),c(n,a,i),(i.read>2048||0===i.length())&&i.compact(),p},p.digest=function(){var t=r.util.createBuffer();t.putBytes(i.bytes());var s,o=p.fullMessageLength[p.fullMessageLength.length-1]+p.messageLengthSize&p.blockLength-1;t.putBytes(f.substr(0,p.blockLength-o));for(var l=8*p.fullMessageLength[0],u=0;u>>0,t.putInt32(l>>>0),l=s>>>0;t.putInt32(l);var d=new Array(n.length);for(u=0;u=128;){for(A=0;A<16;++A)t[A][0]=n.getInt32()>>>0,t[A][1]=n.getInt32()>>>0;for(;A<80;++A)r=(((L=(N=t[A-2])[0])>>>19|(k=N[1])<<13)^(k>>>29|L<<3)^L>>>6)>>>0,i=((L<<13|k>>>19)^(k<<3|L>>>29)^(L<<26|k>>>6))>>>0,a=(((L=(O=t[A-15])[0])>>>1|(k=O[1])<<31)^(L>>>8|k<<24)^L>>>7)>>>0,f=((L<<31|k>>>1)^(L<<24|k>>>8)^(L<<25|k>>>7))>>>0,R=t[A-7],P=t[A-16],k=i+R[1]+f+P[1],t[A][0]=r+R[0]+a+P[0]+(k/4294967296>>>0)>>>0,t[A][1]=k>>>0;for(m=e[0][0],y=e[0][1],g=e[1][0],h=e[1][1],_=e[2][0],b=e[2][1],v=e[3][0],T=e[3][1],I=e[4][0],S=e[4][1],M=e[5][0],E=e[5][1],D=e[6][0],C=e[6][1],w=e[7][0],x=e[7][1],A=0;A<80;++A)c=((I>>>14|S<<18)^(I>>>18|S<<14)^(S>>>9|I<<23))>>>0,u=(D^I&(M^D))>>>0,s=((m>>>28|y<<4)^(y>>>2|m<<30)^(y>>>7|m<<25))>>>0,l=((m<<4|y>>>28)^(y<<30|m>>>2)^(y<<25|m>>>7))>>>0,d=(m&g|_&(m^g))>>>0,p=(y&h|b&(y^h))>>>0,k=x+(((I<<18|S>>>14)^(I<<14|S>>>18)^(S<<23|I>>>9))>>>0)+((C^S&(E^C))>>>0)+o[A][1]+t[A][1],r=w+c+u+o[A][0]+t[A][0]+(k/4294967296>>>0)>>>0,i=k>>>0,a=s+d+((k=l+p)/4294967296>>>0)>>>0,f=k>>>0,w=D,x=C,D=M,C=E,M=I,E=S,I=v+r+((k=T+i)/4294967296>>>0)>>>0,S=k>>>0,v=_,T=b,_=g,b=h,g=m,h=y,m=r+a+((k=i+f)/4294967296>>>0)>>>0,y=k>>>0;k=e[0][1]+y,e[0][0]=e[0][0]+m+(k/4294967296>>>0)>>>0,e[0][1]=k>>>0,k=e[1][1]+h,e[1][0]=e[1][0]+g+(k/4294967296>>>0)>>>0,e[1][1]=k>>>0,k=e[2][1]+b,e[2][0]=e[2][0]+_+(k/4294967296>>>0)>>>0,e[2][1]=k>>>0,k=e[3][1]+T,e[3][0]=e[3][0]+v+(k/4294967296>>>0)>>>0,e[3][1]=k>>>0,k=e[4][1]+S,e[4][0]=e[4][0]+I+(k/4294967296>>>0)>>>0,e[4][1]=k>>>0,k=e[5][1]+E,e[5][0]=e[5][0]+M+(k/4294967296>>>0)>>>0,e[5][1]=k>>>0,k=e[6][1]+C,e[6][0]=e[6][0]+D+(k/4294967296>>>0)>>>0,e[6][1]=k>>>0,k=e[7][1]+x,e[7][0]=e[7][0]+w+(k/4294967296>>>0)>>>0,e[7][1]=k>>>0,B-=128}}},function(e,t,n){var r=n(4);n(11),e.exports=r.log=r.log||{},r.log.levels=["none","error","warning","info","debug","verbose","max"];var i={},a=[],f=null;r.log.LEVEL_LOCKED=2,r.log.NO_LEVEL_CHECK=4,r.log.INTERPOLATE=8;for(var s=0;s({privateKey:e[0],publicKey:e[1]})),t)},t.unmarshalPrivateKey=function(e,t){const n=i.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["sign"]);var f;r(Promise.all([n,(f=e,i.subtle.importKey("jwk",{kty:f.kty,n:f.n,e:f.e},{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["verify"]))]).then(e=>a({privateKey:e[0],publicKey:e[1]})).then(e=>({privateKey:e[0],publicKey:e[1]})),t)},t.getRandomValues=function(t){return e.from(i.getRandomValues(t))},t.hashAndSign=function(t,n,a){r(i.subtle.importKey("jwk",t,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!1,["sign"]).then(e=>i.subtle.sign({name:"RSASSA-PKCS1-v1_5"},e,Uint8Array.from(n))).then(t=>e.from(t)),a)},t.hashAndVerify=function(e,t,n,a){r(i.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!1,["verify"]).then(e=>i.subtle.verify({name:"RSASSA-PKCS1-v1_5"},e,t,n)),a)}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(9),i=n(152).Reporter,a=n(2).Buffer;function f(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(f,i),t.DecoderBuffer=f,f.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},f.prototype.restore=function(e){const t=new f(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},f.prototype.isEmpty=function(){return this.offset===this.length},f.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},f.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new f(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},f.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,n){"use strict";const r=t;r._reverse=function(e){const t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n}),t},r.der=n(1250)},function(e,t,n){"use strict";const r=n(9),i=n(122),a=i.base,f=i.bignum,s=i.constants.der;function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function c(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function u(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;t=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128){const e=new i(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let f=1;for(let e=r.length;e>=256;e>>=8)f++;const o=new i(2+f);o[0]=a,o[1]=128|f;for(let e=1+f,t=r.length;t>0;e--,t>>=8)o[e]=255&t;return this._createEncoderBuffer([o,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=new i(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;n>>=7)r++}const a=new i(r);let f=a.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(a[f--]=127&n;(n>>=7)>0;)a[f--]=128|127&n}return this._createEncoderBuffer(a)},l.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=new i(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=new i(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(new i(r))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i>>32-t}function y(e,t,n,r,i,a,f,s){return m(e+(t^n^r)+a+f|0,s)+i|0}function g(e,t,n,r,i,a,f,s){return m(e+(t&n|~t&r)+a+f|0,s)+i|0}function h(e,t,n,r,i,a,f,s){return m(e+((t|~n)^r)+a+f|0,s)+i|0}function _(e,t,n,r,i,a,f,s){return m(e+(t&r|n&~r)+a+f|0,s)+i|0}function b(e,t,n,r,i,a,f,s){return m(e+(t^(n|~r))+a+f|0,s)+i|0}i(p,a),p.prototype._update=function(){for(var e=f,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,p=0|this._e,v=0|this._a,T=0|this._b,I=0|this._c,S=0|this._d,M=0|this._e,E=0;E<80;E+=1){var D,C;E<16?(D=y(n,r,i,a,p,e[s[E]],u[0],l[E]),C=b(v,T,I,S,M,e[o[E]],d[0],c[E])):E<32?(D=g(n,r,i,a,p,e[s[E]],u[1],l[E]),C=_(v,T,I,S,M,e[o[E]],d[1],c[E])):E<48?(D=h(n,r,i,a,p,e[s[E]],u[2],l[E]),C=h(v,T,I,S,M,e[o[E]],d[2],c[E])):E<64?(D=_(n,r,i,a,p,e[s[E]],u[3],l[E]),C=g(v,T,I,S,M,e[o[E]],d[3],c[E])):(D=b(n,r,i,a,p,e[s[E]],u[4],l[E]),C=y(v,T,I,S,M,e[o[E]],d[4],c[E])),n=p,p=a,a=m(i,10),i=r,r=D,v=M,M=S,S=m(I,10),I=T,T=C}var w=this._b+i+S|0;this._b=this._c+a+M|0,this._c=this._d+p+v|0,this._d=this._e+n+T|0,this._e=this._a+r+I|0,this._a=w},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(1268),t.sha1=n(1269),t.sha224=n(1270),t.sha256=n(465),t.sha384=n(1271),t.sha512=n(466)},function(e,t,n){var r=n(9),i=n(123),a=n(7).Buffer,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function o(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(o,i),o.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},o.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,o=0|this._e,m=0|this._f,y=0|this._g,g=0|this._h,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<64;++h)n[h]=0|(((t=n[h-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[h-7]+p(n[h-15])+n[h-16];for(var _=0;_<64;++_){var b=g+d(o)+l(o,m,y)+f[_]+n[_]|0,v=u(r)+c(r,i,a)|0;g=y,y=m,m=o,o=s+b|0,s=a,a=i,i=r,r=b+v|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0,this._f=m+this._f|0,this._g=y+this._g|0,this._h=g+this._h|0},o.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=o},function(e,t,n){var r=n(9),i=n(123),a=n(7).Buffer,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function o(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0>>0?1:0}r(o,i),o.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},o.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,o=0|this._fh,_=0|this._gh,b=0|this._hh,v=0|this._al,T=0|this._bl,I=0|this._cl,S=0|this._dl,M=0|this._el,E=0|this._fl,D=0|this._gl,C=0|this._hl,w=0;w<32;w+=2)t[w]=e.readInt32BE(4*w),t[w+1]=e.readInt32BE(4*w+4);for(;w<160;w+=2){var x=t[w-30],A=t[w-30+1],L=p(x,A),k=m(A,x),N=y(x=t[w-4],A=t[w-4+1]),R=g(A,x),O=t[w-14],P=t[w-14+1],B=t[w-32],j=t[w-32+1],U=k+P|0,Y=L+O+h(U,k)|0;Y=(Y=Y+N+h(U=U+R|0,R)|0)+B+h(U=U+j|0,j)|0,t[w]=Y,t[w+1]=U}for(var F=0;F<160;F+=2){Y=t[F],U=t[F+1];var z=c(n,r,i),V=c(v,T,I),H=u(n,v),$=u(v,n),G=d(s,M),q=d(M,s),W=f[F],K=f[F+1],Q=l(s,o,_),Z=l(M,E,D),J=C+q|0,X=b+G+h(J,C)|0;X=(X=(X=X+Q+h(J=J+Z|0,Z)|0)+W+h(J=J+K|0,K)|0)+Y+h(J=J+U|0,U)|0;var ee=$+V|0,te=H+z+h(ee,$)|0;b=_,C=D,_=o,D=E,o=s,E=M,s=a+X+h(M=S+J|0,S)|0,a=i,S=I,i=r,I=T,r=n,T=v,n=X+te+h(v=J+ee|0,J)|0}this._al=this._al+v|0,this._bl=this._bl+T|0,this._cl=this._cl+I|0,this._dl=this._dl+S|0,this._el=this._el+M|0,this._fl=this._fl+E|0,this._gl=this._gl+D|0,this._hl=this._hl+C|0,this._ah=this._ah+n+h(this._al,v)|0,this._bh=this._bh+r+h(this._bl,T)|0,this._ch=this._ch+i+h(this._cl,I)|0,this._dh=this._dh+a+h(this._dl,S)|0,this._eh=this._eh+s+h(this._el,M)|0,this._fh=this._fh+o+h(this._fl,E)|0,this._gh=this._gh+_+h(this._gl,D)|0,this._hh=this._hh+b+h(this._hl,C)|0},o.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=o},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(198),a=n(468);function f(e,t){null===e&&null===t?(this.x=this.y=null,this.inf=!0):(this.x=e,this.y=t,this.inf=!1)}f.fromPublicKey=function(e){var t,n,r=e[0];return 33!==e.length||2!==r&&3!==r?65!==e.length||4!==r&&6!==r&&7!==r?null:(t=i.fromBuffer(e.slice(1,33)),n=i.fromBuffer(e.slice(33,65)),t.ucmp(i.p)>=0||n.ucmp(i.p)>=0?null:6!==r&&7!==r||n.isOdd()===(7===r)?0!==t.redSqr().redMul(t).redIAdd7().ucmp(n.redSqr())?null:new f(t,n):null):(t=i.fromBuffer(e.slice(1,33))).ucmp(i.p)>=0?null:null===(n=t.redSqr().redMul(t).redIAdd7().redSqrt())?null:(3===r!==n.isOdd()&&(n=n.redNeg()),new f(t,n))},f.prototype.toPublicKey=function(e){var t,n=this.x,i=this.y;return e?((t=r.alloc(33))[0]=i.isOdd()?3:2,n.toBuffer().copy(t,1)):((t=r.alloc(65))[0]=4,n.toBuffer().copy(t,1),i.toBuffer().copy(t,33)),t},f.fromECJPoint=function(e){if(e.inf)return new f(null,null);var t=e.z.redInvm(),n=t.redSqr();return new f(e.x.redMul(n),e.y.redMul(n).redMul(t))},f.prototype.toECJPoint=function(){return this.inf?new a(null,null,null):new a(this.x,this.y,a.one)},f.prototype.neg=function(){return this.inf?this:new f(this.x,this.y.redNeg())},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(0===this.x.ucmp(e.x))return 0===this.y.ucmp(e.y)?this.dbl():new f(null,null);var t=this.y.redSub(e.y);t.isZero()||(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x);return new f(n,t.redMul(this.x.redSub(n)).redISub(this.y))},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.isZero())return new f(null,null);var t=this.x.redSqr(),n=t.redAdd(t).redIAdd(t).redMul(e.redInvm()),r=n.redSqr().redISub(this.x.redAdd(this.x));return new f(r,n.redMul(this.x.redSub(r)).redISub(this.y))},f.prototype.mul=function(e){for(var t=this._getNAFPoints(4),n=t.points,r=e.getNAF(t.wnd),i=new a(null,null,null),s=r.length-1;s>=0;s--){for(var o=0;s>=0&&0===r[s];s--,++o);if(s>=0&&(o+=1),i=i.dblp(o),s<0)break;var l=r[s];i=l>0?i.mixedAdd(n[l-1>>1]):i.mixedAdd(n[-l-1>>1].neg())}return f.fromECJPoint(i)},f.prototype._getNAFPoints1=function(){return{wnd:1,points:[this]}},f.prototype._getNAFPoints=function(e){var t=new Array((1<=20?"ste":"de")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,f){var s=r(t),o=i[e][r(t)];return 2===s&&(o=o[n?0:1]),o.replace(/%d/i,t)}},f=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:f,monthsShort:f,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,f){var s=n(t),o=r[e][n(t)];return 2===s&&(o=o[i?0:1]),o.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){if(2===t)return function(e){var t={m:"v",b:"v",d:"z"};if(void 0===t[e.charAt(0)])return e;return t[e.charAt(0)]+e.substring(1)}(e);return e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,a){var f="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":f=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":f=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":f=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":f=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":f=a?"vuoden":"vuotta"}return f=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+f}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,f){var s=e+" ";return 1===e?s+n(0,t,a[0],f):t?s+(r(e)?i(a)[1]:i(a)[0]):f?s+i(a)[1]:s+(r(e)?i(a)[1]:i(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";n>0&&(a+=t[n]+"vatlh");r>0&&(a+=(""!==a?" ":"")+t[r]+"maH");i>0&&(a+=(""!==a?" ":"")+t[i]);return""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r?i[n][0]:t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})(n(1))},function(e,t,n){(function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})(n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=t.AddButton=t.RemoveButton=t.PageTitle=t.Control=t.ContainerRegister=t.Content=t.SideBar=t.CreateButton=t.Label=t.Panel=t.FieldsTable=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return i.createElement("button",r({className:a.createButton},n),t)};t.SideBar=function(e){var t=e.children;return i.createElement("div",{className:a.sideBar},t)},t.Content=function(e){var t=e.children;return i.createElement("div",{className:a.content},t)},t.ContainerRegister=function(e){var t=e.children;return i.createElement("div",{className:a.container2},t)},t.Control=function(e){var t=e.children,n=e.title;return i.createElement("div",{className:a.control},i.createElement("label",{className:a.controlLabel},n),i.createElement("div",{className:a.controlComponent},t))},t.PageTitle=function(e){var t=e.children;e.inline;return i.createElement("h2",{className:a.pageTitle},t)},t.RemoveButton=function(e){return i.createElement("button",r({},e,{className:a.removeButton}))},t.AddButton=function(e){return i.createElement("button",r({},e,{className:a.addButton}))},t.ErrorMessage=function(e){return i.createElement("div",r({},e,{className:a.errorMessage}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(12));var i=n(1515);t.default=function(e){var t=e.open,n=e.message,a=e.type,f=void 0===a?"processing":a,s=e.onClose;return r.createElement("div",{style:{position:"fixed",top:0,bottom:0,left:0,right:0,display:t?"flex":"none",justifyContent:"center",alignItems:"center",fontSize:"50px",color:"#fff"},className:i.container+" "+i["container"+f]},r.createElement("div",{className:i.message+" "+i["message"+f]},n),"error"===f&&r.createElement("button",{onClick:s,className:i.button+" "+i.buttonError},"try again"),"success"===f&&r.createElement("button",{onClick:s,className:i.button+" "+i.buttonSuccess},"go to registry"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=256;)e-=255;return n.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)n.EXP_TABLE[r]=1<=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["inputRef"]);return i.createElement("input",r({},n,{ref:t,className:a.fieldInput}))};t.EditButton=function(e){return i.createElement("button",r({},e,{className:a.editButton}))},t.DeleteButton=function(e){return i.createElement("button",r({},e,{className:a.deleteButton}))},t.UpdateButton=function(e){return i.createElement("button",r({},e,{className:a.updateButton}))},t.CancelButton=function(e){return i.createElement("button",r({},e,{className:a.cancelButton}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(896)},function(e,t,n){"use strict";var r=f(n(12)),i=f(n(225)),a=n(897);function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}i.render(r.createElement(a.Root,null),document.getElementById("root"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0,t.Root=function(){return r.createElement(i.Router,{history:u},r.createElement(i.Route,{component:l.Container},r.createElement(i.Route,{path:"/",component:f.default}),r.createElement(i.Route,{path:"/new",component:s.default})),r.createElement(i.Route,{path:"/registers/:adress",component:o.default}))};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(12)),i=n(108),a=n(922),f=c(n(924)),s=c(n(1325)),o=c(n(1519)),l=n(153);function c(e){return e&&e.__esModule?e:{default:e}}var u=t.history=(0,a.createHashHistory)({})},function(e,t,n){"use strict";var r=n(31),i=n.n(r),a=n(12),f=n.n(a),s=n(67),o=n.n(s),l=n(40),c=(n.n(l),n(359)),u=n(132),d=n(244),p=n(75),m=n(361),y=(n(109),Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["createElement","render"]);return null==t?null:(Object.keys(g).forEach(function(e){return delete o[e]}),s(y({},o,{router:this.router,location:t,routes:n,params:r,components:i,createElement:f})))}});t.a=h},function(e,t,n){"use strict";var r=n(332);function i(){}e.exports=function(){function e(e,t,n,i,a,f){if(f!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(110);t.a=function(e,t){var n=e&&e.routes,i=t.routes,a=void 0,f=void 0,s=void 0;if(n){var o=!1;(a=n.filter(function(n){if(o)return!0;var a=-1===i.indexOf(n)||function(e,t,n){return!!e.path&&Object(r.b)(e.path).some(function(e){return t.params[e]!==n.params[e]})}(n,e,t);return a&&(o=!0),a})).reverse(),s=[],f=[],i.forEach(function(e){var t=-1===n.indexOf(e),r=-1!==a.indexOf(e);t||r?s.push(e):f.push(e)})}else a=[],f=[],s=i;return{leaveRoutes:a,changeRoutes:f,enterRoutes:s}}},function(e,t,n){"use strict";t.a=function(){var e=new i,t=new i;function n(e,t,n,r){var i=e.length4&&void 0!==arguments[4]?arguments[4]:[],f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===i&&("/"!==t.pathname.charAt(0)&&(t=s({},t,{pathname:"/"+t.pathname})),i=t.pathname),Object(r.a)(e.length,function(n,r,s){c(e[n],t,i,a,f,function(e,t){e||t?s(e,t):r()})},n)}},function(e,t,n){"use strict";var r=n(110);t.a=function(e,t){var n={};return e.path?(Object(r.b)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}},function(e,t,n){"use strict";var r=n(12),i=n.n(r),a=n(67),f=n.n(a),s=n(362),o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["history","routes","location"]);n||u||a()(!1),n=n||Object(f.a)(d);var p=Object(s.a)(n,Object(o.b)(i));u=u?n.createLocation(u):n.getCurrentLocation(),p.match(u,function(e,i,a){var f=void 0;if(a){var s=Object(l.b)(n,p,a);f=c({},a,{router:s,matchContext:{transitionManager:p,router:s}})}t(e,i&&n.createLocation(i,r.REPLACE),f)})}},function(e,t,n){"use strict";var r=n(915),i=n(19);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),n(decodeURIComponent(i),a,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(n):e[t]=n,e},Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[a(t,e),"[",r,"]"].join(""):[a(t,e),"[",a(r,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t=i({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(r){var i=e[r];if(void 0===i)return"";if(null===i)return a(r,t);if(Array.isArray(i)){var f=[];return i.slice().forEach(function(e){void 0!==e&&f.push(n(r,e,f.length))}),f.join("&")}return a(r,t)+"="+a(i,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.loopAsync=function(e,t,n){var r=0,i=!1,a=!1,f=!1,s=void 0,o=function(){for(var e=arguments.length,t=Array(e),r=0;r=e&&f&&(i=!0,n())}}()}},function(e,t,n){"use strict";var r=n(12),i=n.n(r),a=n(244),f=(n(109),Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:r.createElement;return function(t,n){return o.reduceRight(function(e,t){return t(e,n)},e(t,n))}}(e.createElement)})))}}},function(e,t,n){"use strict";var r=n(367),i=n.n(r),a=n(369);t.a=Object(a.a)(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(252);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var i=n(89),a=n(76);t.getCurrentLocation=function(){return(0,i.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){"use strict";var r=n(370),i=n.n(r),a=n(369);t.a=Object(a.a)(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(252);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var i,a=n(111),f=((i=a)&&i.__esModule,n(89)),s=n(134),o=n(368),l=n(76);var c=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},u=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},d=function(){var e=c();return!!(0,l.isAbsolutePath)(e)||(u("/"+e),!1)},p=t.getCurrentLocation=function(e){var t=c(),n=(0,l.getQueryStringValueFromPath)(t,e),r=void 0;n&&(t=(0,l.stripQueryStringValueFromPath)(t,e),r=(0,o.readState)(n));var i=(0,l.parsePath)(t);return i.state=r,(0,f.createLocation)(i,void 0,n)},m=void 0,y=(t.startListener=function(e,t){var n=function(){if(d()){var n=p(t);m&&n.key&&m.key===n.key||(m=n,e(n))}};return d(),(0,s.addEventListener)(window,"hashchange",n),function(){return(0,s.removeEventListener)(window,"hashchange",n)}},function(e,t,n){var r=e.state,i=e.key,a=(0,l.createPath)(e);void 0!==r&&(a=(0,l.addQueryStringValueToPath)(a,t,i),(0,o.saveState)(i,r)),m=e,n(a)});t.pushLocation=function(e,t){return y(e,t,function(e){c()!==e&&function(e){window.location.hash=e}(e)})},t.replaceLocation=function(e,t){return y(e,t,function(e){c()!==e&&u(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locationsAreEqual=t.Actions=t.useQueries=t.useBeforeUnload=t.useBasename=t.createMemoryHistory=t.createHashHistory=t.createHistory=void 0;var r=n(89);Object.defineProperty(t,"locationsAreEqual",{enumerable:!0,get:function(){return r.locationsAreEqual}});var i=u(n(367)),a=u(n(370)),f=u(n(365)),s=u(n(249)),o=u(n(923)),l=u(n(247)),c=u(n(133));function u(e){return e&&e.__esModule?e:{default:e}}t.createHistory=i.default,t.createHashHistory=a.default,t.createMemoryHistory=f.default,t.useBasename=s.default,t.useBeforeUnload=o.default,t.useQueries=l.default,t.Actions=c.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t0&&(a=f.default.createElement("div",null,f.default.createElement(l.Section,{title:f.default.createElement("span",null,"My registries",f.default.createElement(l.Badge,null,i.length))},f.default.createElement(l.SectionContent,null,f.default.createElement(c.Table,null,f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",null,"Name"),f.default.createElement("th",null,"Symbol"),f.default.createElement("th",null,"Creator"),f.default.createElement("th",null,"Created"))),f.default.createElement("tbody",null,i)),f.default.createElement(l.FooterButton,{to:"/new"},"create new register"))))),f.default.createElement("div",null,f.default.createElement("div",null,a),f.default.createElement(l.Section,{title:f.default.createElement("span",null,"All registries",f.default.createElement(l.Badge,null,r.length))},f.default.createElement(l.SectionContent,null,f.default.createElement(c.Table,null,f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",null,"Name"),f.default.createElement("th",null,"Symbol"),f.default.createElement("th",null,"Creator"),f.default.createElement("th",null,"Created"))),f.default.createElement("tbody",null,r)))))}}]),t}();t.default=m},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=l(e),r=n[0],f=n[1],s=new a(function(e,t,n){return 3*(t+n)/4-n}(0,r,f)),o=0,c=f>0?r-4:r,u=0;u>16&255,s[o++]=t>>8&255,s[o++]=255&t;2===f&&(t=i[e.charCodeAt(u)]<<2|i[e.charCodeAt(u+1)]>>4,s[o++]=255&t);1===f&&(t=i[e.charCodeAt(u)]<<10|i[e.charCodeAt(u+1)]<<4|i[e.charCodeAt(u+2)]>>2,s[o++]=t>>8&255,s[o++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],f=0,s=n-i;fs?s:f+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=f.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,a,f=[],s=t;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return f.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,f,s=8*i-r-1,o=(1<>1,c=-7,u=n?i-1:0,d=n?-1:1,p=e[t+u];for(u+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+u],u+=d,c-=8);for(f=a&(1<<-c)-1,a>>=-c,c+=r;c>0;f=256*f+e[t+u],u+=d,c-=8);if(0===a)a=1-l;else{if(a===o)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,r),a-=l}return(p?-1:1)*f*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var f,s,o,l=8*a-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,m=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,f=c):(f=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-f))<1&&(f--,o*=2),(t+=f+u>=1?d/o:d*Math.pow(2,1-u))*o>=2&&(f++,o/=2),f+u>=c?(s=0,f=c):f+u>=1?(s=(t*o-1)*Math.pow(2,i),f+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,i),f=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(f=f<0;e[n+p]=255&f,p+=m,f/=256,l-=8);e[n+p-m]|=128*y}},function(e,t){e.exports={contractName:"Chaingear",abi:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"getApproved",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRegistrationFee",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getDescription",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_registryID",type:"uint256"}],name:"registryInfo",outputs:[{name:"",type:"string"},{name:"",type:"string"},{name:"",type:"address"},{name:"",type:"address"},{name:"",type:"string"},{name:"",type:"uint256"},{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalShares",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"claim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"registriesAmount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"payees",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"ownerOf",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getSafe",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getSafeBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_payeeIndex",type:"uint256"},{name:"_newAddress",type:"address"}],name:"changePayeeAddress",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"destroy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"released",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_registryID",type:"uint256"}],name:"registryBalanceInfo",outputs:[{name:"",type:"uint256"},{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_newFee",type:"uint256"}],name:"updateRegistrationFee",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"},{name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_nameOfVersion",type:"string"}],name:"getRegistryCreatorInfo",outputs:[{name:"_addressRegistryCreator",type:"address"},{name:"_link",type:"string"},{name:"_description",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"shares",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_nameOfVersion",type:"string"},{name:"_addressRegistryCreator",type:"address"},{name:"_link",type:"string"},{name:"_description",type:"string"}],name:"addRegistryCreatorVersion",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalReleased",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_description",type:"string"}],name:"updateDescription",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_recipient",type:"address"}],name:"destroyAndSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_benefitiaries",type:"address[]"},{name:"_shares",type:"uint256[]"},{name:"_description",type:"string"},{name:"_registrationFee",type:"uint256"},{name:"_chaingearName",type:"string"},{name:"_chaingearSymbol",type:"string"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"_from",type:"address"},{indexed:!0,name:"_to",type:"address"},{indexed:!1,name:"_tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_approved",type:"address"},{indexed:!1,name:"_tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_operator",type:"address"},{indexed:!1,name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"registryID",type:"uint256"},{indexed:!1,name:"sender",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RegistryFunded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"registryID",type:"uint256"},{indexed:!1,name:"claimer",type:"address"},{indexed:!1,name:"amout",type:"uint256"}],name:"RegistryFundsClaimed",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"payeeIndex",type:"uint256"},{indexed:!1,name:"oldAddress",type:"address"},{indexed:!1,name:"newAddress",type:"address"}],name:"PayeeAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"name",type:"string"},{indexed:!1,name:"registryAddress",type:"address"},{indexed:!1,name:"creator",type:"address"},{indexed:!1,name:"registryID",type:"uint256"}],name:"RegistryRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"caller",type:"address"},{indexed:!1,name:"registyID",type:"uint256"},{indexed:!1,name:"newOwner",type:"address"}],name:"RegistryChangedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"admin",type:"address"},{indexed:!1,name:"name",type:"string"}],name:"RegistryUnregistered",type:"event"},{constant:!1,inputs:[{name:"_version",type:"string"},{name:"_benefitiaries",type:"address[]"},{name:"_shares",type:"uint256[]"},{name:"_name",type:"string"},{name:"_symbol",type:"string"}],name:"registerRegistry",outputs:[{name:"",type:"address"},{name:"",type:"uint256"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"transferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_registryID",type:"uint256"}],name:"unregisterRegistry",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_registryID",type:"uint256"}],name:"fundRegistry",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"_registryID",type:"uint256"},{name:"_amount",type:"uint256"}],name:"claimEntryFunds",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],bytecode:"0x60806040526000805560006001556000600660146101000a81548160ff0219169083151502179055503480156200003557600080fd5b5060405162005e3038038062005e30833981018060405281019080805182019291906020018051820192919060200180518201929190602001805190602001909291908051820192919060200180518201929190505050818187878181600081518351141515620000a557600080fd5b600090505b82518110156200010d57620000ff8382815181101515620000c757fe5b906020019060200201518383815181101515620000e057fe5b906020019060200201516200021b640100000000026401000000009004565b8080600101915050620000aa565b50505033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505081601390805190602001906200016b929190620003ad565b50806014908051906020019062000184929190620003ad565b50505082600a819055508360099080519060200190620001a6929190620003ad565b50620001b162000434565b604051809103906000f080158015620001ce573d6000803e3d6000fd5b50600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050506200046d565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200025857600080fd5b6000811115156200026857600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141515620002b757600080fd5b60048290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506200038681600054620003906401000000000262004369179091906401000000009004565b6000819055505050565b60008183019050828110151515620003a457fe5b80905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003f057805160ff191683800117855562000421565b8280016001018555821562000421579182015b828111156200042057825182559160200191906001019062000403565b5b50905062000430919062000445565b5090565b6040516102e38062005b4d83390190565b6200046a91905b80821115620004665760008160009055506001016200044c565b5090565b90565b6156d0806200047d6000396000f300608060405260043610610225576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610227578063081812fc146102b75780630946e80714610324578063095ea7b31461034f57806318160ddd1461039c5780631a092541146103c757806323b872dd146104575780632a29fb8c146104c45780632f745c59146104e457806337f5881c146105455780633a98ef39146107635780633f4ba83a1461078e57806342842e0e146107a55780634e71d92d146108125780634f558e79146108295780634f6ccce71461086e578063529ab9d0146108af578063557902ad146109845780635c975abb146109af57806363037b0c146109de5780636352211e14610a4b57806368bc573e14610ab857806370a0823114610b0f578063791b4d4e14610b665780637b49376814610b9157806383197ef014610bde5780638456cb5914610bf55780638da5cb5b14610c0c57806395d89b4114610c635780639852595c14610cf3578063a22cb46514610d4a578063a58017af14610d99578063acaff7d414610dc6578063af582c6b14610e0e578063b88d4fde14610e3b578063c87b56dd14610eee578063cb2428ca14610f94578063ce7c2ac2146110e7578063d4af2ab81461113e578063d714853514611175578063e33b7de314611200578063e735b48a1461122b578063e985e9c514611266578063f2fde38b146112e1578063f5074f4114611324575b005b34801561023357600080fd5b5061023c611367565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561027c578082015181840152602081019050610261565b50505050905090810190601f1680156102a95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102c357600080fd5b506102e260048036038101908080359060200190929190505050611409565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561033057600080fd5b50610339611446565b6040518082815260200191505060405180910390f35b34801561035b57600080fd5b5061039a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611450565b005b3480156103a857600080fd5b506103b1611616565b6040518082815260200191505060405180910390f35b3480156103d357600080fd5b506103dc611623565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561041c578082015181840152602081019050610401565b50505050905090810190601f1680156104495780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046357600080fd5b506104c2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116c5565b005b6104e2600480360381019080803590602001909291905050506118d5565b005b3480156104f057600080fd5b5061052f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a7e565b6040518082815260200191505060405180910390f35b34801561055157600080fd5b5061057060048036038101908080359060200190929190505050611af5565b6040518080602001806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184810384528b818151815260200191508051906020019080838360005b83811015610654578082015181840152602081019050610639565b50505050905090810190601f1680156106815780820380516001836020036101000a031916815260200191505b5084810383528a818151815260200191508051906020019080838360005b838110156106ba57808201518184015260208101905061069f565b50505050905090810190601f1680156106e75780820380516001836020036101000a031916815260200191505b50848103825287818151815260200191508051906020019080838360005b83811015610720578082015181840152602081019050610705565b50505050905090810190601f16801561074d5780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b34801561076f57600080fd5b50610778611f07565b6040518082815260200191505060405180910390f35b34801561079a57600080fd5b506107a3611f0d565b005b3480156107b157600080fd5b50610810600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611fcd565b005b34801561081e57600080fd5b50610827612005565b005b34801561083557600080fd5b5061085460048036038101908080359060200190929190505050612274565b604051808215151515815260200191505060405180910390f35b34801561087a57600080fd5b50610899600480360381019080803590602001909291905050506122e6565b6040518082815260200191505060405180910390f35b61093b60048036038101908080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939050505061231e565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561099057600080fd5b50610999612556565b6040518082815260200191505060405180910390f35b3480156109bb57600080fd5b506109c4612563565b604051808215151515815260200191505060405180910390f35b3480156109ea57600080fd5b50610a0960048036038101908080359060200190929190505050612576565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a5757600080fd5b50610a76600480360381019080803590602001909291905050506125b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610ac457600080fd5b50610acd612632565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b1b57600080fd5b50610b50600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061265c565b6040518082815260200191505060405180910390f35b348015610b7257600080fd5b50610b7b6126e0565b6040518082815260200191505060405180910390f35b348015610b9d57600080fd5b50610bdc60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612721565b005b348015610bea57600080fd5b50610bf3612a43565b005b348015610c0157600080fd5b50610c0a612ada565b005b348015610c1857600080fd5b50610c21612b9b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c6f57600080fd5b50610c78612bc1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cb8578082015181840152602081019050610c9d565b50505050905090810190601f168015610ce55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610cff57600080fd5b50610d34600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612c63565b6040518082815260200191505060405180910390f35b348015610d5657600080fd5b50610d97600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612c7b565b005b348015610da557600080fd5b50610dc460048036038101908080359060200190929190505050612db7565b005b348015610dd257600080fd5b50610df160048036038101908080359060200190929190505050613404565b604051808381526020018281526020019250505060405180910390f35b348015610e1a57600080fd5b50610e3960048036038101908080359060200190929190505050613452565b005b348015610e4757600080fd5b50610eec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506134b8565b005b348015610efa57600080fd5b50610f19600480360381019080803590602001909291905050506134f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f59578082015181840152602081019050610f3e565b50505050905090810190601f168015610f865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610fa057600080fd5b50610fcd6004803603810190808035906020019082018035906020019190919293919293905050506135c0565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611043578082015181840152602081019050611028565b50505050905090810190601f1680156110705780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156110a957808201518184015260208101905061108e565b50505050905090810190601f1680156110d65780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156110f357600080fd5b50611128600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061379a565b6040518082815260200191505060405180910390f35b34801561114a57600080fd5b5061117360048036038101908080359060200190929190803590602001909291905050506137b2565b005b34801561118157600080fd5b506111fe600480360381019080803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293905050506139ec565b005b34801561120c57600080fd5b50611215613b89565b6040518082815260200191505060405180910390f35b34801561123757600080fd5b50611264600480360381019080803590602001908201803590602001919091929391929390505050613b8f565b005b34801561127257600080fd5b506112c7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c1b565b604051808215151515815260200191505060405180910390f35b3480156112ed57600080fd5b50611322600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613caf565b005b34801561133057600080fd5b50611365600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e07565b005b606060138054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113ff5780601f106113d4576101008083540402835291602001916113ff565b820191906000526020600020905b8154815290600101906020018083116113e257829003601f168201915b5050505050905090565b60006010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a54905090565b600061145b826125b4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561149857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114d857506114d78133613c1b565b5b15156114e357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff1661150483611409565b73ffffffffffffffffffffffffffffffffffffffff161415806115545750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561161157826010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b6000601780549050905090565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116bb5780601f10611690576101008083540402835291602001916116bb565b820191906000526020600020905b81548152906001019060200180831161169e57829003601f168201915b5050505050905090565b6000816116d23382613e7c565b15156116dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415151561171957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561175557600080fd5b61175f8584613f11565b611769858461407a565b6117738484614292565b60058381548110151561178257fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663b5106add856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a35050505050565b600660149054906101000a900460ff161515156118f157600080fd5b6119243460058381548110151561190457fe5b90600052602060002090600702016005015461436990919063ffffffff16565b60058281548110151561193357fe5b90600052602060002090600702016005018190555061197b3460058381548110151561195b57fe5b90600052602060002090600702016006015461436990919063ffffffff16565b60058281548110151561198a57fe5b9060005260206000209060070201600601819055507f6d44c7fc406a93af487f7a19d84cfda6be594ac4cc18c18b87045d6ccafe4679813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611a7a573d6000803e3d6000fd5b5050565b6000611a898361265c565b82101515611a9657600080fd5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481101515611ae257fe5b9060005260206000200154905092915050565b60608060008060606000806000600589815481101515611b1157fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611ba957600080fd5b505af1158015611bbd573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611be757600080fd5b810190808051640100000000811115611bff57600080fd5b82810190506020810184811115611c1557600080fd5b8151856001820283011164010000000082111715611c3257600080fd5b50509291905050508173ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611c9e57600080fd5b505af1158015611cb2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611cdc57600080fd5b810190808051640100000000811115611cf457600080fd5b82810190506020810184811115611d0a57600080fd5b8151856001820283011164010000000082111715611d2757600080fd5b50509291905050508260058c815481101515611d3f57fe5b906000526020600020906007020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660058d815481101515611d8057fe5b906000526020600020906007020160020160058e815481101515611da057fe5b9060005260206000209060070201600401548673ffffffffffffffffffffffffffffffffffffffff16636e9960c36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015611e1657600080fd5b505af1158015611e2a573d6000803e3d6000fd5b505050506040513d6020811015611e4057600080fd5b8101908080519060200190929190505050828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ee65780601f10611ebb57610100808354040283529160200191611ee6565b820191906000526020600020905b815481529060010190602001808311611ec957829003601f168201915b50505050509250975097509750975097509750975050919395979092949650565b60005481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f6957600080fd5b600660149054906101000a900460ff161515611f8457600080fd5b6000600660146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b80611fd83382613e7c565b1515611fe357600080fd5b611fff84848460206040519081016040528060008152506134b8565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561205b57600080fd5b6120876001543073ffffffffffffffffffffffffffffffffffffffff163161436990919063ffffffff16565b9150612140600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612132600054612124600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548761438590919063ffffffff16565b6143bd90919063ffffffff16565b6143d390919063ffffffff16565b90506000811415151561215257600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561217857600080fd5b6121ca81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461436990919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122228160015461436990919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561226e573d6000803e3d6000fd5b50505050565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b60006122f0611616565b821015156122fd57600080fd5b60178281548110151561230c57fe5b90600052602060002001549050919050565b600080600660149054906101000a900460ff1615151561233d57600080fd5b6000600c8d8d60405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515156123a857600080fd5b34600a541415156123b857600080fd5b600015156007878760405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff1615151415156123fd57600080fd5b600015156008858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff16151514151561244257600080fd5b6125438c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050508b8b808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050508a8a8080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505089898080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505088888080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506143ec565b915091509a509a98505050505050505050565b6000600580549050905090565b600660149054906101000a900460ff1681565b60048181548110151561258557fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561262957600080fd5b80915050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561269957600080fd5b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561277f57600080fd5b60048381548110151561278e57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816004848154811015156128d157fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a9f57600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612b3657600080fd5b600660149054906101000a900460ff16151515612b5257600080fd5b6001600660146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060148054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612c595780601f10612c2e57610100808354040283529160200191612c59565b820191906000526020600020905b815481529060010190602001808311612c3c57829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612cb657600080fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000806000806060853373ffffffffffffffffffffffffffffffffffffffff16612de0826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515612e0257600080fd5b600660149054906101000a900460ff16151515612e1e57600080fd5b600587815481101515612e2d57fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16955060008673ffffffffffffffffffffffffffffffffffffffff1663791b4d4e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612ec757600080fd5b505af1158015612edb573d6000803e3d6000fd5b505050506040513d6020811015612ef157600080fd5b8101908080519060200190929190505050141515612f0e57600080fd5b60186000888152602001908152602001600020549450612f3d60016005805490506143d390919063ffffffff16565b9350600584815481101515612f4e57fe5b9060005260206000209060070201925082600586815481101515612f6e57fe5b90600052602060002090600702016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028201816002019080546001816001161561010002031660029004613071929190615343565b5060038201816003019080546001816001161561010002031660029004613099929190615343565b506004820154816004015560058201548160050155600682015481600601559050506005848154811015156130ca57fe5b9060005260206000209060070201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061313791906153ca565b60038201600061314791906153ca565b600482016000905560058201600090556006820160009055505060058054809190600190036131769190615412565b506131813388614bfc565b8573ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1580156131e557600080fd5b505af11580156131f9573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561322357600080fd5b81019080805164010000000081111561323b57600080fd5b8281019050602081018481111561325157600080fd5b815185600182028301116401000000008211171561326e57600080fd5b505092919050505091507fc87efb95ac06ce4ec97503af7cd49444f98c4100d49236dcd550a365f45153433383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561330d5780820151818401526020810190506132f2565b50505050905090810190601f16801561333a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a18573ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156133e357600080fd5b505af11580156133f7573d6000803e3d6000fd5b5050505050505050505050565b60008060058381548110151561341657fe5b90600052602060002090600702016005015460058481548110151561343757fe5b90600052602060002090600702016006015491509150915091565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156134ae57600080fd5b80600a8190555050565b816134c33382613e7c565b15156134ce57600080fd5b6134d98585856116c5565b6134e585858585614d34565b15156134f057600080fd5b5050505050565b606061350282612274565b151561350d57600080fd5b601960008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135b45780601f10613589576101008083540402835291602001916135b4565b820191906000526020600020905b81548152906001019060200180831161359757829003601f168201915b50505050509050919050565b6000606080600c858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d8686604051808383808284378201915050925050509081526020016040518091039020600e8787604051808383808284378201915050925050509081526020016040518091039020818054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156136ea5780601f106136bf576101008083540402835291602001916136ea565b820191906000526020600020905b8154815290600101906020018083116136cd57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156137865780601f1061375b57610100808354040283529160200191613786565b820191906000526020600020905b81548152906001019060200180831161376957829003601f168201915b505050505090509250925092509250925092565b60026020528060005260406000206000915090505481565b813373ffffffffffffffffffffffffffffffffffffffff166137d3826125b4565b73ffffffffffffffffffffffffffffffffffffffff161415156137f557600080fd5b600660149054906101000a900460ff1615151561381157600080fd5b60058381548110151561382057fe5b906000526020600020906007020160050154821115151561384057600080fd5b6138738260058581548110151561385357fe5b9060005260206000209060070201600501546143d390919063ffffffff16565b60058481548110151561388257fe5b9060005260206000209060070201600501819055507fcd195521b5866a88c295a8f1d2b7e034e0d0761acf72511922f81a85c8ae9f85833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156139cf57600080fd5b505af11580156139e3573d6000803e3d6000fd5b50505050505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613a4857600080fd5b6000600c888860405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613ab257600080fd5b84600c888860405180838380828437820191505092505050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508383600d89896040518083838082843782019150509250505090815260200160405180910390209190613b4a929190615444565b508181600e89896040518083838082843782019150509250505090815260200160405180910390209190613b7f929190615444565b5050505050505050565b60015481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613bed57600080fd5b8282905090506101008111151515613c0457600080fd5b828260099190613c15929190615444565b50505050565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613d0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613d4757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613e6357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16ff5b600080613e88836125b4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613ef757508373ffffffffffffffffffffffffffffffffffffffff16613edf84611409565b73ffffffffffffffffffffffffffffffffffffffff16145b80613f085750613f078185613c1b565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16613f31826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515613f5357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156140765760006010600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b60008060006140898585614f22565b601660008581526020019081526020016000205492506140f56001601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506143d390919063ffffffff16565b9150601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561414357fe5b9060005260206000200154905080601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561419d57fe5b90600052602060002001819055506000601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811015156141f957fe5b9060005260206000200181905550601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548091906001900361425991906154c4565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b600061429e8383615051565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806016600084815260200190815260200160002081905550505050565b6000818301905082811015151561437c57fe5b80905092915050565b60008083141561439857600090506143b7565b81830290508183828115156143a957fe5b041415156143b357fe5b8090505b92915050565b600081838115156143ca57fe5b04905092915050565b60008282111515156143e157fe5b818303905092915050565b60008060006143f96154f0565b6000600c8a6040518082805190602001908083835b602083101515614433578051825260208201915060208101905060208303925061440e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663920d00868a8a8a8a6040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b83811015614520578082015181840152602081019050614505565b50505050905001858103845288818151815260200191508051906020019060200280838360005b83811015614562578082015181840152602081019050614547565b50505050905001858103835287818151815260200191508051906020019080838360005b838110156145a1578082015181840152602081019050614586565b50505050905090810190601f1680156145ce5780820380516001836020036101000a031916815260200191505b50858103825286818151815260200191508051906020019080838360005b838110156146075780820151818401526020810190506145ec565b50505050905090810190601f1680156146345780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561465957600080fd5b505af115801561466d573d6000803e3d6000fd5b505050506040513d602081101561468357600080fd5b8101908080519060200190929190505050925060e0604051908101604052808473ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018b8152602001600d8c6040518082805190602001908083835b60208310151561471857805182526020820191506020810190506020830392506146f3565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156147df5780601f106147b4576101008083540402835291602001916147df565b820191906000526020600020905b8154815290600101906020018083116147c257829003601f168201915b50505050508152602001428152602001600081526020016000815250915060016005839080600181540180825580915050906001820390600052602060002090600702016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190805190602001906148d792919061555a565b5060608201518160030190805190602001906148f492919061555a565b506080820151816004015560a0820151816005015560c08201518160060155505003905061492233826151ab565b60016007886040518082805190602001908083835b60208310151561495c5780518252602082019150602081019050602083039250614937565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555060016008876040518082805190602001908083835b6020831015156149e057805182526020820191506020810190506020830392506149bb565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055507fd98034e5da8b5718635c8cce4df2965d7cbeeb60f90d84a427442fc79497cb838784338460405180806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825286818151815260200191508051906020019080838360005b83811015614af9578082015181840152602081019050614ade565b50505050905090810190601f168015614b265780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a18273ffffffffffffffffffffffffffffffffffffffff1663b5106add336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015614bd157600080fd5b505af1158015614be5573d6000803e3d6000fd5b505050508281945094505050509550959350505050565b6000806000614c0b8585615202565b600060196000868152602001908152602001600020805460018160011615610100020316600290049050141515614c5c57601960008581526020019081526020016000206000614c5b91906153ca565b5b60186000858152602001908152602001600020549250614c8b60016017805490506143d390919063ffffffff16565b9150601782815481101515614c9c57fe5b9060005260206000200154905080601784815481101515614cb957fe5b90600052602060002001819055506000601783815481101515614cd857fe5b90600052602060002001819055506017805480919060019003614cfb91906154c4565b50600060186000868152602001908152602001600020819055508260186000838152602001908152602001600020819055505050505050565b600080614d568573ffffffffffffffffffffffffffffffffffffffff16615280565b1515614d655760019150614f19565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614e27578082015181840152602081019050614e0c565b50505050905090810190601f168015614e545780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015614e7557600080fd5b505af1158015614e89573d6000803e3d6000fd5b505050506040513d6020811015614e9f57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b8173ffffffffffffffffffffffffffffffffffffffff16614f42826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515614f6457600080fd5b614fb76001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143d390919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156150bf57600080fd5b81600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506151646001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461436990919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6151b58282615293565b601780549050601860008381526020019081526020016000208190555060178190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b61520c8282613f11565b615216828261407a565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156152cf57600080fd5b6152d98282614292565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061537c57805485556153b9565b828001600101855582156153b957600052602060002091601f016020900482015b828111156153b857825482559160010191906001019061539d565b5b5090506153c691906155da565b5090565b50805460018160011615610100020316600290046000825580601f106153f0575061540f565b601f01602090049060005260206000209081019061540e91906155da565b5b50565b81548183558181111561543f5760070281600702836000526020600020918201910161543e91906155ff565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061548557803560ff19168380011785556154b3565b828001600101855582156154b3579182015b828111156154b2578235825591602001919060010190615497565b5b5090506154c091906155da565b5090565b8154818355818111156154eb578183600052602060002091820191016154ea91906155da565b5b505050565b60e060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061559b57805160ff19168380011785556155c9565b828001600101855582156155c9579182015b828111156155c85782518255916020019190600101906155ad565b5b5090506155d691906155da565b5090565b6155fc91905b808211156155f85760008160009055506001016155e0565b5090565b90565b6156a191905b8082111561569d57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061566c91906153ca565b60038201600061567c91906153ca565b60048201600090556005820160009055600682016000905550600701615605565b5090565b905600a165627a7a723058204d532ad0fc1a725e68701a65065ff42407f75e86d23ede3172f667d5650a1c6200296080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610290806100536000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b146100a9578063aad3ec9614610100575b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100a757600080fd5b005b3480156100b557600080fd5b506100be61014d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010c57600080fd5b5061014b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610172565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cd57600080fd5b3073ffffffffffffffffffffffffffffffffffffffff163181111515156101f357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff161415151561021957600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561025f573d6000803e3d6000fd5b5050505600a165627a7a723058208d505abd7652ab7c2708e3e1539e0555c9cd63c0d3ba520cde7653a6362f3b490029",deployedBytecode:"0x608060405260043610610225576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610227578063081812fc146102b75780630946e80714610324578063095ea7b31461034f57806318160ddd1461039c5780631a092541146103c757806323b872dd146104575780632a29fb8c146104c45780632f745c59146104e457806337f5881c146105455780633a98ef39146107635780633f4ba83a1461078e57806342842e0e146107a55780634e71d92d146108125780634f558e79146108295780634f6ccce71461086e578063529ab9d0146108af578063557902ad146109845780635c975abb146109af57806363037b0c146109de5780636352211e14610a4b57806368bc573e14610ab857806370a0823114610b0f578063791b4d4e14610b665780637b49376814610b9157806383197ef014610bde5780638456cb5914610bf55780638da5cb5b14610c0c57806395d89b4114610c635780639852595c14610cf3578063a22cb46514610d4a578063a58017af14610d99578063acaff7d414610dc6578063af582c6b14610e0e578063b88d4fde14610e3b578063c87b56dd14610eee578063cb2428ca14610f94578063ce7c2ac2146110e7578063d4af2ab81461113e578063d714853514611175578063e33b7de314611200578063e735b48a1461122b578063e985e9c514611266578063f2fde38b146112e1578063f5074f4114611324575b005b34801561023357600080fd5b5061023c611367565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561027c578082015181840152602081019050610261565b50505050905090810190601f1680156102a95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102c357600080fd5b506102e260048036038101908080359060200190929190505050611409565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561033057600080fd5b50610339611446565b6040518082815260200191505060405180910390f35b34801561035b57600080fd5b5061039a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611450565b005b3480156103a857600080fd5b506103b1611616565b6040518082815260200191505060405180910390f35b3480156103d357600080fd5b506103dc611623565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561041c578082015181840152602081019050610401565b50505050905090810190601f1680156104495780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046357600080fd5b506104c2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116c5565b005b6104e2600480360381019080803590602001909291905050506118d5565b005b3480156104f057600080fd5b5061052f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a7e565b6040518082815260200191505060405180910390f35b34801561055157600080fd5b5061057060048036038101908080359060200190929190505050611af5565b6040518080602001806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184810384528b818151815260200191508051906020019080838360005b83811015610654578082015181840152602081019050610639565b50505050905090810190601f1680156106815780820380516001836020036101000a031916815260200191505b5084810383528a818151815260200191508051906020019080838360005b838110156106ba57808201518184015260208101905061069f565b50505050905090810190601f1680156106e75780820380516001836020036101000a031916815260200191505b50848103825287818151815260200191508051906020019080838360005b83811015610720578082015181840152602081019050610705565b50505050905090810190601f16801561074d5780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b34801561076f57600080fd5b50610778611f07565b6040518082815260200191505060405180910390f35b34801561079a57600080fd5b506107a3611f0d565b005b3480156107b157600080fd5b50610810600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611fcd565b005b34801561081e57600080fd5b50610827612005565b005b34801561083557600080fd5b5061085460048036038101908080359060200190929190505050612274565b604051808215151515815260200191505060405180910390f35b34801561087a57600080fd5b50610899600480360381019080803590602001909291905050506122e6565b6040518082815260200191505060405180910390f35b61093b60048036038101908080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939080359060200190820180359060200191909192939192939050505061231e565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561099057600080fd5b50610999612556565b6040518082815260200191505060405180910390f35b3480156109bb57600080fd5b506109c4612563565b604051808215151515815260200191505060405180910390f35b3480156109ea57600080fd5b50610a0960048036038101908080359060200190929190505050612576565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a5757600080fd5b50610a76600480360381019080803590602001909291905050506125b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610ac457600080fd5b50610acd612632565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b1b57600080fd5b50610b50600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061265c565b6040518082815260200191505060405180910390f35b348015610b7257600080fd5b50610b7b6126e0565b6040518082815260200191505060405180910390f35b348015610b9d57600080fd5b50610bdc60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612721565b005b348015610bea57600080fd5b50610bf3612a43565b005b348015610c0157600080fd5b50610c0a612ada565b005b348015610c1857600080fd5b50610c21612b9b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c6f57600080fd5b50610c78612bc1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cb8578082015181840152602081019050610c9d565b50505050905090810190601f168015610ce55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610cff57600080fd5b50610d34600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612c63565b6040518082815260200191505060405180910390f35b348015610d5657600080fd5b50610d97600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612c7b565b005b348015610da557600080fd5b50610dc460048036038101908080359060200190929190505050612db7565b005b348015610dd257600080fd5b50610df160048036038101908080359060200190929190505050613404565b604051808381526020018281526020019250505060405180910390f35b348015610e1a57600080fd5b50610e3960048036038101908080359060200190929190505050613452565b005b348015610e4757600080fd5b50610eec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506134b8565b005b348015610efa57600080fd5b50610f19600480360381019080803590602001909291905050506134f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f59578082015181840152602081019050610f3e565b50505050905090810190601f168015610f865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610fa057600080fd5b50610fcd6004803603810190808035906020019082018035906020019190919293919293905050506135c0565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611043578082015181840152602081019050611028565b50505050905090810190601f1680156110705780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156110a957808201518184015260208101905061108e565b50505050905090810190601f1680156110d65780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156110f357600080fd5b50611128600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061379a565b6040518082815260200191505060405180910390f35b34801561114a57600080fd5b5061117360048036038101908080359060200190929190803590602001909291905050506137b2565b005b34801561118157600080fd5b506111fe600480360381019080803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293905050506139ec565b005b34801561120c57600080fd5b50611215613b89565b6040518082815260200191505060405180910390f35b34801561123757600080fd5b50611264600480360381019080803590602001908201803590602001919091929391929390505050613b8f565b005b34801561127257600080fd5b506112c7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c1b565b604051808215151515815260200191505060405180910390f35b3480156112ed57600080fd5b50611322600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613caf565b005b34801561133057600080fd5b50611365600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e07565b005b606060138054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113ff5780601f106113d4576101008083540402835291602001916113ff565b820191906000526020600020905b8154815290600101906020018083116113e257829003601f168201915b5050505050905090565b60006010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a54905090565b600061145b826125b4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561149857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114d857506114d78133613c1b565b5b15156114e357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff1661150483611409565b73ffffffffffffffffffffffffffffffffffffffff161415806115545750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561161157826010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b6000601780549050905090565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116bb5780601f10611690576101008083540402835291602001916116bb565b820191906000526020600020905b81548152906001019060200180831161169e57829003601f168201915b5050505050905090565b6000816116d23382613e7c565b15156116dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415151561171957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561175557600080fd5b61175f8584613f11565b611769858461407a565b6117738484614292565b60058381548110151561178257fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663b5106add856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a35050505050565b600660149054906101000a900460ff161515156118f157600080fd5b6119243460058381548110151561190457fe5b90600052602060002090600702016005015461436990919063ffffffff16565b60058281548110151561193357fe5b90600052602060002090600702016005018190555061197b3460058381548110151561195b57fe5b90600052602060002090600702016006015461436990919063ffffffff16565b60058281548110151561198a57fe5b9060005260206000209060070201600601819055507f6d44c7fc406a93af487f7a19d84cfda6be594ac4cc18c18b87045d6ccafe4679813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611a7a573d6000803e3d6000fd5b5050565b6000611a898361265c565b82101515611a9657600080fd5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481101515611ae257fe5b9060005260206000200154905092915050565b60608060008060606000806000600589815481101515611b1157fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611ba957600080fd5b505af1158015611bbd573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611be757600080fd5b810190808051640100000000811115611bff57600080fd5b82810190506020810184811115611c1557600080fd5b8151856001820283011164010000000082111715611c3257600080fd5b50509291905050508173ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611c9e57600080fd5b505af1158015611cb2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611cdc57600080fd5b810190808051640100000000811115611cf457600080fd5b82810190506020810184811115611d0a57600080fd5b8151856001820283011164010000000082111715611d2757600080fd5b50509291905050508260058c815481101515611d3f57fe5b906000526020600020906007020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660058d815481101515611d8057fe5b906000526020600020906007020160020160058e815481101515611da057fe5b9060005260206000209060070201600401548673ffffffffffffffffffffffffffffffffffffffff16636e9960c36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015611e1657600080fd5b505af1158015611e2a573d6000803e3d6000fd5b505050506040513d6020811015611e4057600080fd5b8101908080519060200190929190505050828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ee65780601f10611ebb57610100808354040283529160200191611ee6565b820191906000526020600020905b815481529060010190602001808311611ec957829003601f168201915b50505050509250975097509750975097509750975050919395979092949650565b60005481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f6957600080fd5b600660149054906101000a900460ff161515611f8457600080fd5b6000600660146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b80611fd83382613e7c565b1515611fe357600080fd5b611fff84848460206040519081016040528060008152506134b8565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561205b57600080fd5b6120876001543073ffffffffffffffffffffffffffffffffffffffff163161436990919063ffffffff16565b9150612140600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612132600054612124600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548761438590919063ffffffff16565b6143bd90919063ffffffff16565b6143d390919063ffffffff16565b90506000811415151561215257600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561217857600080fd5b6121ca81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461436990919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122228160015461436990919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561226e573d6000803e3d6000fd5b50505050565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b60006122f0611616565b821015156122fd57600080fd5b60178281548110151561230c57fe5b90600052602060002001549050919050565b600080600660149054906101000a900460ff1615151561233d57600080fd5b6000600c8d8d60405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515156123a857600080fd5b34600a541415156123b857600080fd5b600015156007878760405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff1615151415156123fd57600080fd5b600015156008858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff16151514151561244257600080fd5b6125438c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050508b8b808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050508a8a8080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505089898080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505088888080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506143ec565b915091509a509a98505050505050505050565b6000600580549050905090565b600660149054906101000a900460ff1681565b60048181548110151561258557fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561262957600080fd5b80915050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561269957600080fd5b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561277f57600080fd5b60048381548110151561278e57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816004848154811015156128d157fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a9f57600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612b3657600080fd5b600660149054906101000a900460ff16151515612b5257600080fd5b6001600660146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060148054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612c595780601f10612c2e57610100808354040283529160200191612c59565b820191906000526020600020905b815481529060010190602001808311612c3c57829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612cb657600080fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000806000806060853373ffffffffffffffffffffffffffffffffffffffff16612de0826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515612e0257600080fd5b600660149054906101000a900460ff16151515612e1e57600080fd5b600587815481101515612e2d57fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16955060008673ffffffffffffffffffffffffffffffffffffffff1663791b4d4e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612ec757600080fd5b505af1158015612edb573d6000803e3d6000fd5b505050506040513d6020811015612ef157600080fd5b8101908080519060200190929190505050141515612f0e57600080fd5b60186000888152602001908152602001600020549450612f3d60016005805490506143d390919063ffffffff16565b9350600584815481101515612f4e57fe5b9060005260206000209060070201925082600586815481101515612f6e57fe5b90600052602060002090600702016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028201816002019080546001816001161561010002031660029004613071929190615343565b5060038201816003019080546001816001161561010002031660029004613099929190615343565b506004820154816004015560058201548160050155600682015481600601559050506005848154811015156130ca57fe5b9060005260206000209060070201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061313791906153ca565b60038201600061314791906153ca565b600482016000905560058201600090556006820160009055505060058054809190600190036131769190615412565b506131813388614bfc565b8573ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1580156131e557600080fd5b505af11580156131f9573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561322357600080fd5b81019080805164010000000081111561323b57600080fd5b8281019050602081018481111561325157600080fd5b815185600182028301116401000000008211171561326e57600080fd5b505092919050505091507fc87efb95ac06ce4ec97503af7cd49444f98c4100d49236dcd550a365f45153433383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561330d5780820151818401526020810190506132f2565b50505050905090810190601f16801561333a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a18573ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156133e357600080fd5b505af11580156133f7573d6000803e3d6000fd5b5050505050505050505050565b60008060058381548110151561341657fe5b90600052602060002090600702016005015460058481548110151561343757fe5b90600052602060002090600702016006015491509150915091565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156134ae57600080fd5b80600a8190555050565b816134c33382613e7c565b15156134ce57600080fd5b6134d98585856116c5565b6134e585858585614d34565b15156134f057600080fd5b5050505050565b606061350282612274565b151561350d57600080fd5b601960008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135b45780601f10613589576101008083540402835291602001916135b4565b820191906000526020600020905b81548152906001019060200180831161359757829003601f168201915b50505050509050919050565b6000606080600c858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d8686604051808383808284378201915050925050509081526020016040518091039020600e8787604051808383808284378201915050925050509081526020016040518091039020818054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156136ea5780601f106136bf576101008083540402835291602001916136ea565b820191906000526020600020905b8154815290600101906020018083116136cd57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156137865780601f1061375b57610100808354040283529160200191613786565b820191906000526020600020905b81548152906001019060200180831161376957829003601f168201915b505050505090509250925092509250925092565b60026020528060005260406000206000915090505481565b813373ffffffffffffffffffffffffffffffffffffffff166137d3826125b4565b73ffffffffffffffffffffffffffffffffffffffff161415156137f557600080fd5b600660149054906101000a900460ff1615151561381157600080fd5b60058381548110151561382057fe5b906000526020600020906007020160050154821115151561384057600080fd5b6138738260058581548110151561385357fe5b9060005260206000209060070201600501546143d390919063ffffffff16565b60058481548110151561388257fe5b9060005260206000209060070201600501819055507fcd195521b5866a88c295a8f1d2b7e034e0d0761acf72511922f81a85c8ae9f85833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156139cf57600080fd5b505af11580156139e3573d6000803e3d6000fd5b50505050505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613a4857600080fd5b6000600c888860405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613ab257600080fd5b84600c888860405180838380828437820191505092505050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508383600d89896040518083838082843782019150509250505090815260200160405180910390209190613b4a929190615444565b508181600e89896040518083838082843782019150509250505090815260200160405180910390209190613b7f929190615444565b5050505050505050565b60015481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613bed57600080fd5b8282905090506101008111151515613c0457600080fd5b828260099190613c15929190615444565b50505050565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613d0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613d4757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613e6357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16ff5b600080613e88836125b4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613ef757508373ffffffffffffffffffffffffffffffffffffffff16613edf84611409565b73ffffffffffffffffffffffffffffffffffffffff16145b80613f085750613f078185613c1b565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16613f31826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515613f5357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156140765760006010600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b60008060006140898585614f22565b601660008581526020019081526020016000205492506140f56001601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506143d390919063ffffffff16565b9150601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561414357fe5b9060005260206000200154905080601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561419d57fe5b90600052602060002001819055506000601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811015156141f957fe5b9060005260206000200181905550601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548091906001900361425991906154c4565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b600061429e8383615051565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806016600084815260200190815260200160002081905550505050565b6000818301905082811015151561437c57fe5b80905092915050565b60008083141561439857600090506143b7565b81830290508183828115156143a957fe5b041415156143b357fe5b8090505b92915050565b600081838115156143ca57fe5b04905092915050565b60008282111515156143e157fe5b818303905092915050565b60008060006143f96154f0565b6000600c8a6040518082805190602001908083835b602083101515614433578051825260208201915060208101905060208303925061440e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663920d00868a8a8a8a6040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b83811015614520578082015181840152602081019050614505565b50505050905001858103845288818151815260200191508051906020019060200280838360005b83811015614562578082015181840152602081019050614547565b50505050905001858103835287818151815260200191508051906020019080838360005b838110156145a1578082015181840152602081019050614586565b50505050905090810190601f1680156145ce5780820380516001836020036101000a031916815260200191505b50858103825286818151815260200191508051906020019080838360005b838110156146075780820151818401526020810190506145ec565b50505050905090810190601f1680156146345780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561465957600080fd5b505af115801561466d573d6000803e3d6000fd5b505050506040513d602081101561468357600080fd5b8101908080519060200190929190505050925060e0604051908101604052808473ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018b8152602001600d8c6040518082805190602001908083835b60208310151561471857805182526020820191506020810190506020830392506146f3565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156147df5780601f106147b4576101008083540402835291602001916147df565b820191906000526020600020905b8154815290600101906020018083116147c257829003601f168201915b50505050508152602001428152602001600081526020016000815250915060016005839080600181540180825580915050906001820390600052602060002090600702016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190805190602001906148d792919061555a565b5060608201518160030190805190602001906148f492919061555a565b506080820151816004015560a0820151816005015560c08201518160060155505003905061492233826151ab565b60016007886040518082805190602001908083835b60208310151561495c5780518252602082019150602081019050602083039250614937565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555060016008876040518082805190602001908083835b6020831015156149e057805182526020820191506020810190506020830392506149bb565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055507fd98034e5da8b5718635c8cce4df2965d7cbeeb60f90d84a427442fc79497cb838784338460405180806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825286818151815260200191508051906020019080838360005b83811015614af9578082015181840152602081019050614ade565b50505050905090810190601f168015614b265780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a18273ffffffffffffffffffffffffffffffffffffffff1663b5106add336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015614bd157600080fd5b505af1158015614be5573d6000803e3d6000fd5b505050508281945094505050509550959350505050565b6000806000614c0b8585615202565b600060196000868152602001908152602001600020805460018160011615610100020316600290049050141515614c5c57601960008581526020019081526020016000206000614c5b91906153ca565b5b60186000858152602001908152602001600020549250614c8b60016017805490506143d390919063ffffffff16565b9150601782815481101515614c9c57fe5b9060005260206000200154905080601784815481101515614cb957fe5b90600052602060002001819055506000601783815481101515614cd857fe5b90600052602060002001819055506017805480919060019003614cfb91906154c4565b50600060186000868152602001908152602001600020819055508260186000838152602001908152602001600020819055505050505050565b600080614d568573ffffffffffffffffffffffffffffffffffffffff16615280565b1515614d655760019150614f19565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614e27578082015181840152602081019050614e0c565b50505050905090810190601f168015614e545780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015614e7557600080fd5b505af1158015614e89573d6000803e3d6000fd5b505050506040513d6020811015614e9f57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b8173ffffffffffffffffffffffffffffffffffffffff16614f42826125b4565b73ffffffffffffffffffffffffffffffffffffffff16141515614f6457600080fd5b614fb76001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143d390919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156150bf57600080fd5b81600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506151646001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461436990919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6151b58282615293565b601780549050601860008381526020019081526020016000208190555060178190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b61520c8282613f11565b615216828261407a565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156152cf57600080fd5b6152d98282614292565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061537c57805485556153b9565b828001600101855582156153b957600052602060002091601f016020900482015b828111156153b857825482559160010191906001019061539d565b5b5090506153c691906155da565b5090565b50805460018160011615610100020316600290046000825580601f106153f0575061540f565b601f01602090049060005260206000209081019061540e91906155da565b5b50565b81548183558181111561543f5760070281600702836000526020600020918201910161543e91906155ff565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061548557803560ff19168380011785556154b3565b828001600101855582156154b3579182015b828111156154b2578235825591602001919060010190615497565b5b5090506154c091906155da565b5090565b8154818355818111156154eb578183600052602060002091820191016154ea91906155da565b5b505050565b60e060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061559b57805160ff19168380011785556155c9565b828001600101855582156155c9579182015b828111156155c85782518255916020019190600101906155ad565b5b5090506155d691906155da565b5090565b6155fc91905b808211156155f85760008160009055506001016155e0565b5090565b90565b6156a191905b8082111561569d57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061566c91906153ca565b60038201600061567c91906153ca565b60048201600090556005820160009055600682016000905550600701615605565b5090565b905600a165627a7a723058204d532ad0fc1a725e68701a65065ff42407f75e86d23ede3172f667d5650a1c620029",sourceMap:"670:7904:0:-;;;306:1:17;277:30;;342:1;311:32;;268:5:14;247:26;;;;;;;;;;;;;;;;;;;;1279:548:0;8:9:-1;5:2;;;30:1;27;20:12;5:2;1279:548:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1558:14;1574:16;1513:14;1529:7;467::7;476;636:9:17;609:7;:14;591:7;:14;:32;583:41;;;;;;;;648:1;636:13;;631:92;655:7;:14;651:1;:18;631:92;;;684:32;693:7;701:1;693:10;;;;;;;;;;;;;;;;;;705:7;713:1;705:10;;;;;;;;;;;;;;;;;;684:8;;;:32;;;:::i;:::-;671:3;;;;;;;631:92;;;502:225;;;509:10:16;501:5;;:18;;;;;;;;;;;;;;;;;;343:149:7;;1147:5:22;1139;:13;;;;;;;;;;;;:::i;:::-;;1168:7;1158;:17;;;;;;;;;;;;:::i;:::-;;1075:105;;1647:16:0;1621:23;:42;;;;1696:12;1673:20;:35;;;;;;;;;;;;:::i;:::-;;1810:10;;:::i;:::-;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1810:10:0;1794:13;;:26;;;;;;;;;;;;;;;;;;1279:548;;;;;;670:7904;;1495:260:17;1587:1;1569:20;;:6;:20;;;;1561:29;;;;;;;;1614:1;1604:7;:11;1596:20;;;;;;;;1648:1;1630:6;:14;1637:6;1630:14;;;;;;;;;;;;;;;;:19;1622:28;;;;;;;;1657:6;1669;1657:19;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1657:19:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1699:7;1682:6;:14;1689:6;1682:14;;;;;;;;;;;;;;;:24;;;;1726;1742:7;1726:11;;:15;;;;;;:24;;;;;:::i;:::-;1712:11;:38;;;;1495:260;;:::o;1008:123:15:-;1066:9;1091:1;1087;:5;1083:9;;1110:1;1105;:6;;1098:14;;;;;;1125:1;1118:8;;1008:123;;;;:::o;670:7904:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;",deployedSourceMap:"670:7904:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:68:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1274:68:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1274:68:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3605:111:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3605:111:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4936:134:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4936:134:1;;;;;;;;;;;;;;;;;;;;;;;3021:355:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3021:355:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2518:87:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2518:87:22;;;;;;;;;;;;;;;;;;;;;;;4701:129:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4701:129:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4701:129:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3395:544:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3395:544:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5343:487;;;;;;;;;;;;;;;;;;;;;;;;;;2199:177:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2199:177:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2087:726:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2087:726:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2087:726:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2087:726:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2087:726:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;277:30:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;277:30:17;;;;;;;;;;;;;;;;;;;;;;;838:92:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:14;;;;;;6017:225:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6017:225:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;858:465:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;858:465:17;;;;;;2461:140:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2461:140:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2934::22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2934:140:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2634:751:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3480:129:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3480:129:2;;;;;;;;;;;;;;;;;;;;;;;247:26:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:14;;;;;;;;;;;;;;;;;;;;;;;;;;;440:23:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;440:23:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2119:164:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2119:164:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5408:116:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5408:116:1;;;;;;;;;;;;;;;;;;;;;;;;;;;1764:142:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1764:142:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5166:137:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5166:137:1;;;;;;;;;;;;;;;;;;;;;;;498:479:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:479:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;376:66:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;376:66:13;;;;;;666:90:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:14;;;;;;238:20:16;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:16;;;;;;;;;;;;;;;;;;;;;;;;;;;1440:72:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1440:72:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1440:72:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;393:43:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;393:43:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4001:205:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4001:205:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4223:969:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4223:969:0;;;;;;;;;;;;;;;;;;;;;;;;;;3055:325:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3055:325:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3107:148:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3107:148:1;;;;;;;;;;;;;;;;;;;;;;;;;;6929:302:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6929:302:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1705:133:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1705:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1705:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4182:412:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4182:412:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4182:412:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4182:412:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;348:41:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;348:41:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6032:506:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6032:506:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2428:451:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2428:451:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;311:32:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;311:32:17;;;;;;;;;;;;;;;;;;;;;;;3510:230:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3510:230:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4515:142:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4515:142:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:174:16;;8:9:-1;5:2;;;30:1;27;20:12;5:2;832:174:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;446:96:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;446:96:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:68:22;1311:6;1332:5;1325:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:68;:::o;3605:111:20:-;3665:7;3687:14;:24;3702:8;3687:24;;;;;;;;;;;;;;;;;;;;;3680:31;;3605:111;;;:::o;4936:134:1:-;5013:4;5040:23;;5033:30;;4936:134;:::o;3021:355:20:-;3082:13;3098:17;3106:8;3098:7;:17::i;:::-;3082:33;;3136:5;3129:12;;:3;:12;;;;3121:21;;;;;;;;3170:5;3156:19;;:10;:19;;;:58;;;;3179:35;3196:5;3203:10;3179:16;:35::i;:::-;3156:58;3148:67;;;;;;;;3259:1;3226:35;;:21;3238:8;3226:11;:21::i;:::-;:35;;;;:56;;;;3280:1;3265:17;;:3;:17;;;;3226:56;3222:150;;;3319:3;3292:14;:24;3307:8;3292:24;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;3351:3;3335:30;;3344:5;3335:30;;;3356:8;3335:30;;;;;;;;;;;;;;;;;;3222:150;3021:355;;;:::o;2518:87:22:-;2562:7;2584:9;:16;;;;2577:23;;2518:87;:::o;4701:129:1:-;4774:6;4803:20;4796:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4701:129;:::o;3395:544:0:-;3755:23;3530:8;1520:39:20;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;3579:1:0;3562:19;;:5;:19;;;;3554:28;;;;;;;;3615:1;3600:17;;:3;:17;;;;3592:26;;;;;;;;3629:30;3643:5;3650:8;3629:13;:30::i;:::-;3669:32;3685:5;3692:8;3669:15;:32::i;:::-;3711:25;3722:3;3727:8;3711:10;:25::i;:::-;3781:10;3792:8;3781:20;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;3755:62;;3845:15;3827:54;;;3882:3;3827:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3827:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3827:59:0;;;;3918:3;3902:30;;3911:5;3902:30;;;3923:8;3902:30;;;;;;;;;;;;;;;;;;3395:544;;;;;:::o;5343:487::-;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;5521:64:0;5575:9;5521:10;5532:11;5521:23;;;;;;;;;;;;;;;;;;;;:49;;;:53;;:64;;;;:::i;:::-;5469:10;5480:11;5469:23;;;;;;;;;;;;;;;;;;;;:49;;:116;;;;5644:61;5695:9;5644:10;5655:11;5644:23;;;;;;;;;;;;;;;;;;;;:46;;;:50;;:61;;;;:::i;:::-;5595:10;5606:11;5595:23;;;;;;;;;;;;;;;;;;;;:46;;:110;;;;5721:50;5736:11;5749:10;5761:9;5721:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5790:13;;;;;;;;;;;:22;;:33;5813:9;5790:33;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5790:33:0;5343:487;:::o;2199:177:22:-;2281:7;2313:17;2323:6;2313:9;:17::i;:::-;2304:6;:26;2296:35;;;;;;;;2344:11;:19;2356:6;2344:19;;;;;;;;;;;;;;;2364:6;2344:27;;;;;;;;;;;;;;;;;;2337:34;;2199:177;;;;:::o;2087:726:2:-;2204:6;2224;2244:7;2265;2286:6;2306:4;2324:7;2356:23;2382:10;2393:11;2382:23;;;;;;;;;;;;;;;;;;;;:39;;;;;;;;;;;;2356:65;;2479:15;2461:39;;;:41;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2461:41:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2461:41:2;;;;;;39:16:-1;36:1;17:17;2:54;2461:41:2;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:2;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2461:41:2;;;;;;20:11:-1;15:3;12:20;9:2;;;45:1;42;35:12;9:2;73:11;68:3;64:21;57:28;;126:4;121:3;117:14;163:9;145:16;142:31;139:2;;;186:1;183;176:12;139:2;224:3;218:10;338:9;333:1;319:12;315:20;297:16;293:43;290:58;268:11;254:12;251:29;239:118;236:2;;;370:1;367;360:12;236:2;0:382;;2461:41:2;;;;;;2534:15;2516:41;;;:43;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2516:43:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2516:43:2;;;;;;39:16:-1;36:1;17:17;2:54;2516:43:2;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:2;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2516:43:2;;;;;;20:11:-1;15:3;12:20;9:2;;;45:1;42;35:12;9:2;73:11;68:3;64:21;57:28;;126:4;121:3;117:14;163:9;145:16;142:31;139:2;;;186:1;183;176:12;139:2;224:3;218:10;338:9;333:1;319:12;315:20;297:16;293:43;290:58;268:11;254:12;251:29;239:118;236:2;;;370:1;367;360:12;236:2;0:382;;2516:43:2;;;;;;2573:15;2602:10;2613:11;2602:23;;;;;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;2647:10;2658:11;2647:23;;;;;;;;;;;;;;;;;;;;:31;;2692:10;2703:11;2692:23;;;;;;;;;;;;;;;;;;;;:45;;;2769:15;2751:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2751:45:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2751:45:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2751:45:2;;;;;;;;;;;;;;;;2440:366;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2087:726;;;;;;;;;;:::o;277:30:17:-;;;;:::o;838:92:14:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;568:6:14;;;;;;;;;;;560:15;;;;;;;;900:5;891:6;;:14;;;;;;;;;;;;;;;;;;916:9;;;;;;;;;;838:92::o;6017:225:20:-;6132:8;1520:39;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;6195:42;6212:5;6219:3;6224:8;6195:42;;;;;;;;;;;;;:16;:42::i;:::-;6017:225;;;;:::o;858:465:17:-;888:13;954:21;1024:15;904:10;888:26;;945:1;929:6;:13;936:5;929:13;;;;;;;;;;;;;;;;:17;921:26;;;;;;;;978:40;1004:13;;986:4;978:21;;;:25;;:40;;;;:::i;:::-;954:64;;1042:70;1096:8;:15;1105:5;1096:15;;;;;;;;;;;;;;;;1042:49;1079:11;;1042:32;1060:6;:13;1067:5;1060:13;;;;;;;;;;;;;;;;1042;:17;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;1024:88;;1138:1;1127:7;:12;;1119:21;;;;;;;;1179:7;1162:4;1154:21;;;:32;;1146:41;;;;;;;;1212:28;1232:7;1212:8;:15;1221:5;1212:15;;;;;;;;;;;;;;;;:19;;:28;;;;:::i;:::-;1194:8;:15;1203:5;1194:15;;;;;;;;;;;;;;;:46;;;;1262:26;1280:7;1262:13;;:17;;:26;;;;:::i;:::-;1246:13;:42;;;;1295:5;:14;;:23;1310:7;1295:23;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1295:23:17;858:465;;;:::o;2461:140:20:-;2516:4;2528:13;2544:10;:20;2555:8;2544:20;;;;;;;;;;;;;;;;;;;;;2528:36;;2594:1;2577:19;;:5;:19;;;;2570:26;;2461:140;;;;:::o;2934::22:-;2993:7;3025:13;:11;:13::i;:::-;3016:6;:22;3008:31;;;;;;;;3052:9;3062:6;3052:17;;;;;;;;;;;;;;;;;;3045:24;;2934:140;;;:::o;2634:751:0:-;2883:7;2904;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;2975:3:0;2944:17;2962:8;;2944:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:34;;;;2936:43;;;;;;;;3024:9;2997:23;;:36;2989:45;;;;;;;;3162:5;3133:34;;:18;3152:5;;3133:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:34;;;3125:43;;;;;;;;3219:5;3186:38;;:20;3207:7;;3186:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:38;;;3178:47;;;;;;;;3243:135;3271:8;;3243:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3293:14;;3243:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3321:7;;3243:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3342:5;;3243:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3361:7;;3243:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:14;:135::i;:::-;3236:142;;;;2634:751;;;;;;;;;;;;;:::o;3480:129:2:-;3555:7;3585:10;:17;;;;3578:24;;3480:129;:::o;247:26:14:-;;;;;;;;;;;;;:::o;440:23:17:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2119:164:20:-;2175:7;2190:13;2206:10;:20;2217:8;2206:20;;;;;;;;;;;;;;;;;;;;;2190:36;;2257:1;2240:19;;:5;:19;;;;2232:28;;;;;;;;2273:5;2266:12;;2119:164;;;;:::o;5408:116:1:-;5474:7;5504:13;;;;;;;;;;;5497:20;;5408:116;:::o;1764:142:20:-;1820:7;1861:1;1843:20;;:6;:20;;;;1835:29;;;;;;;;1877:16;:24;1894:6;1877:24;;;;;;;;;;;;;;;;1870:31;;1764:142;;;:::o;5166:137:1:-;5239:4;5274:13;;;;;;;;;;;5266:30;;;5259:37;;5166:137;:::o;498:479:7:-;636:18;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;657:6:7;664:11;657:19;;;;;;;;;;;;;;;;;;;;;;;;;;;636:40;;709:6;:18;716:10;709:18;;;;;;;;;;;;;;;;687:6;:19;694:11;687:19;;;;;;;;;;;;;;;:40;;;;761:8;:20;770:10;761:20;;;;;;;;;;;;;;;;737:8;:21;746:11;737:21;;;;;;;;;;;;;;;:44;;;;813:11;791:6;798:11;791:19;;;;;;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;842:6;:18;849:10;842:18;;;;;;;;;;;;;;;835:25;;;877:8;:20;886:10;877:20;;;;;;;;;;;;;;;870:27;;;913:57;933:11;946:10;958:11;913:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:479;;;:::o;376:66:13:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;431:5:13;;;;;;;;;;;418:19;;;666:90:14;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;729:4;720:6;;:13;;;;;;;;;;;;;;;;;;744:7;;;;;;;;;;666:90::o;238:20:16:-;;;;;;;;;;;;;:::o;1440:72:22:-;1479:6;1500:7;1493:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1440:72;:::o;393:43:17:-;;;;;;;;;;;;;;;;;:::o;4001:205:20:-;4085:10;4078:17;;:3;:17;;;;4070:26;;;;;;;;4139:9;4102:17;:29;4120:10;4102:29;;;;;;;;;;;;;;;:34;4132:3;4102:34;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;4186:3;4159:42;;4174:10;4159:42;;;4191:9;4159:42;;;;;;;;;;;;;;;;;;;;;;4001:205;;:::o;4223:969:0:-;4380:23;4531:21;4592:25;4654:33;4897:26;4323:11;1283:10:20;1262:31;;:17;1270:8;1262:7;:17::i;:::-;:31;;;1254:40;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;4406:10:0;4417:11;4406:23;;;;;;;;;;;;;;;;;;;;:39;;;;;;;;;;;;4380:65;;4518:1;4481:15;4463:49;;;:51;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4463:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4463:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4463:51:0;;;;;;;;;;;;;;;;:56;4455:65;;;;;;;;4555:14;:27;4570:11;4555:27;;;;;;;;;;;;4531:51;;4620:24;4642:1;4620:10;:17;;;;:21;;:24;;;;:::i;:::-;4592:52;;4690:10;4701:17;4690:29;;;;;;;;;;;;;;;;;;;;4654:65;;4758:12;4730:10;4741:13;4730:25;;;;;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4787:10;4798:17;4787:29;;;;;;;;;;;;;;;;;;;;;4780:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;4826:10;:19;;;;;;;;;;;;:::i;:::-;;4856:30;4862:10;4874:11;4856:5;:30::i;:::-;4944:15;4926:39;;;:41;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4926:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4926:41:0;;;;;;39:16:-1;36:1;17:17;2:54;4926:41:0;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:2;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4926:41:0;;;;;;20:11:-1;15:3;12:20;9:2;;;45:1;42;35:12;9:2;73:11;68:3;64:21;57:28;;126:4;121:3;117:14;163:9;145:16;142:31;139:2;;;186:1;183;176:12;139:2;224:3;218:10;338:9;333:1;319:12;315:20;297:16;293:43;290:58;268:11;254:12;251:29;239:118;236:2;;;370:1;367;360:12;236:2;0:382;;4926:41:0;;;;;;4897:70;;4982:46;5003:10;5015:12;4982:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4982:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5139:15;5121:52;;;5174:10;5121:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5121:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5121:64:0;;;;4223:969;;;;;;;:::o;3055:325:2:-;3179:7;3200;3254:10;3265:11;3254:23;;;;;;;;;;;;;;;;;;;;:49;;;3317:10;3328:11;3317:23;;;;;;;;;;;;;;;;;;;;:46;;;3233:140;;;;3055:325;;;:::o;3107:148:1:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;3241:7:1;3215:23;:33;;;;3107:148;:::o;6929:302:20:-;7061:8;1520:39;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;7079:34;7092:5;7099:3;7104:8;7079:12;:34::i;:::-;7172:53;7197:5;7204:3;7209:8;7219:5;7172:24;:53::i;:::-;7164:62;;;;;;;;6929:302;;;;;:::o;1705:133:22:-;1762:6;1784:16;1791:8;1784:6;:16::i;:::-;1776:25;;;;;;;;1814:9;:19;1824:8;1814:19;;;;;;;;;;;1807:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1705:133;;;:::o;4182:412:1:-;4312:31;4357:12;4383:19;4447:17;4465:14;;4447:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4494:17;4512:14;;4494:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4541:20;4562:14;;4541:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4427:160;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4182:412;;;;;:::o;348:41:17:-;;;;;;;;;;;;;;;;;:::o;6032:506:0:-;6154:11;1283:10:20;1262:31;;:17;1270:8;1262:7;:17::i;:::-;:31;;;1254:40;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;6222:10:0;6233:11;6222:23;;;;;;;;;;;;;;;;;;;;:49;;;6211:7;:60;;6203:69;;;;;;;;6334:62;6388:7;6334:10;6345:11;6334:23;;;;;;;;;;;;;;;;;;;;:49;;;:53;;:62;;;;:::i;:::-;6282:10;6293:11;6282:23;;;;;;;;;;;;;;;;;;;;:49;;:114;;;;6412:54;6433:11;6446:10;6458:7;6412:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6490:13;;;;;;;;;;;6485:25;;;6511:10;6523:7;6485:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6485:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6485:46:0;;;;6032:506;;;:::o;2428:451:1:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;2687:3:1;2650:17;2668:14;;2650:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:40;;;2642:49;;;;;;;;2737:23;2701:17;2719:14;;2701:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:59;;;;;;;;;;;;;;;;;;2806:5;;2770:17;2788:14;;2770:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:41;;;;;;;:::i;:::-;;2860:12;;2821:20;2842:14;;2821:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:51;;;;;;;:::i;:::-;;2428:451;;;;;;;:::o;311:32:17:-;;;;:::o;3510:230:1:-;3621:8;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;3638:12:1;;3632:26;;3621:37;;3683:3;3676;:10;;3668:19;;;;;;;;3721:12;;3698:20;:35;;;;;;;:::i;:::-;;3510:230;;;:::o;4515:142:20:-;4597:4;4616:17;:25;4634:6;4616:25;;;;;;;;;;;;;;;:36;4642:9;4616:36;;;;;;;;;;;;;;;;;;;;;;;;;4609:43;;4515:142;;;;:::o;832:174:16:-;653:5;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;928:1;908:22;;:8;:22;;;;900:31;;;;;;;;970:8;942:37;;963:5;;;;;;;;;;;942:37;;;;;;;;;;;;993:8;985:5;;:16;;;;;;;;;;;;;;;;;;832:174;:::o;446:96:13:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;526:10:13;513:24;;;7578:240:20;7664:4;7676:13;7692:17;7700:8;7692:7;:17::i;:::-;7676:33;;7734:5;7722:17;;:8;:17;;;:54;;;;7768:8;7743:33;;:21;7755:8;7743:11;:21::i;:::-;:33;;;7722:54;:91;;;;7780:33;7797:5;7804:8;7780:16;:33::i;:::-;7722:91;7715:98;;7578:240;;;;;:::o;8887:265::-;8988:6;8967:27;;:17;8975:8;8967:7;:17::i;:::-;:27;;;8959:36;;;;;;;;9041:1;9005:38;;:14;:24;9020:8;9005:24;;;;;;;;;;;;;;;;;;;;;:38;;;;9001:147;;;9088:1;9053:14;:24;9068:8;9053:24;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;9128:1;9103:38;;9112:6;9103:38;;;9132:8;9103:38;;;;;;;;;;;;;;;;;;9001:147;8887:265;;:::o;4202:856:22:-;4320:18;4373:22;4436:17;4275:38;4297:5;4304:8;4275:21;:38::i;:::-;4341:16;:26;4358:8;4341:26;;;;;;;;;;;;4320:47;;4398:32;4428:1;4398:11;:18;4410:5;4398:18;;;;;;;;;;;;;;;:25;;;;:29;;:32;;;;:::i;:::-;4373:57;;4456:11;:18;4468:5;4456:18;;;;;;;;;;;;;;;4475:14;4456:34;;;;;;;;;;;;;;;;;;4436:54;;4530:9;4497:11;:18;4509:5;4497:18;;;;;;;;;;;;;;;4516:10;4497:30;;;;;;;;;;;;;;;;;:42;;;;4582:1;4545:11;:18;4557:5;4545:18;;;;;;;;;;;;;;;4564:14;4545:34;;;;;;;;;;;;;;;;;:38;;;;4944:11;:18;4956:5;4944:18;;;;;;;;;;;;;;;:27;;;;;;;;;;;;:::i;:::-;;5006:1;4977:16;:26;4994:8;4977:26;;;;;;;;;;;:30;;;;5043:10;5013:16;:27;5030:9;5013:27;;;;;;;;;;;:40;;;;4202:856;;;;;:::o;3697:226::-;3800:14;3763:31;3780:3;3785:8;3763:16;:31::i;:::-;3817:11;:16;3829:3;3817:16;;;;;;;;;;;;;;;:23;;;;3800:40;;3846:11;:16;3858:3;3846:16;;;;;;;;;;;;;;;3868:8;3846:31;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;3846:31:22;;;;;;;;;;;;;;;;;;;;;;3912:6;3883:16;:26;3900:8;3883:26;;;;;;;;;;;:35;;;;3697:226;;;:::o;1008:123:15:-;1066:9;1091:1;1087;:5;1083:9;;1110:1;1105;:6;;1098:14;;;;;;1125:1;1118:8;;1008:123;;;;:::o;203:167::-;261:9;287:1;282;:6;278:35;;;305:1;298:8;;;;278:35;326:1;322;:5;318:9;;349:1;344;340;:5;;;;;;;;:10;333:18;;;;;;364:1;357:8;;203:167;;;;;:::o;452:272::-;510:7;718:1;714;:5;;;;;;;;707:12;;452:272;;;;:::o;836:110::-;894:7;921:1;916;:6;;909:14;;;;;;940:1;936;:5;929:12;;836:110;;;;:::o;7221:1346:0:-;7429:7;7450;7482:24;7678:28;;:::i;:::-;8049:18;7525:17;7543:8;7525:27;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;7525:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7509:51;;;7574:14;7602:7;7623:5;7642:7;7509:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7509:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7509:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7509:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7509:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7509:150:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7509:150:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;7509:150:0;;;;;;;;;;;;;;;;7482:177;;7710:327;;;;;;;;;7763:16;7710:327;;;;;;7802:10;7710:327;;;;;;7835:8;7710:327;;;;7866:17;7884:8;7866:27;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;7866:27:0;;;;;;;;;;;;;;;;;;;;;7710:327;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7930:15;7710:327;;;;7986:1;7710:327;;;;8025:1;7710:327;;;7678:360;;8098:1;8070:10;8086:8;8070:25;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;8070:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:29;8049:50;;8109:29;8115:10;8127;8109:5;:29::i;:::-;8185:4;8157:18;8176:5;8157:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;8157:25:0;;;;;;;;;;;;;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;8231:4;8199:20;8220:7;8199:29;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;8199:29:0;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;8259:67;8278:5;8285:16;8303:10;8315;8259:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;8259:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8429:16;8411:55;;;8467:10;8411:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8411:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8411:67:0;;;;8510:16;8540:10;8489:71;;;;7221:1346;;;;;;;;;;;:::o;5733:585:22:-;5985:18;6036:22;6090:17;5797:29;5809:6;5817:8;5797:11;:29::i;:::-;5905:1;5874:9;:19;5884:8;5874:19;;;;;;;;;;;5868:33;;;;;;;;;;;;;;;;:38;;5864:85;;;5923:9;:19;5933:8;5923:19;;;;;;;;;;;;5916:26;;;;:::i;:::-;5864:85;6006:14;:24;6021:8;6006:24;;;;;;;;;;;;5985:45;;6061:23;6082:1;6061:9;:16;;;;:20;;:23;;;;:::i;:::-;6036:48;;6110:9;6120:14;6110:25;;;;;;;;;;;;;;;;;;6090:45;;6166:9;6142;6152:10;6142:21;;;;;;;;;;;;;;;;;:33;;;;6209:1;6181:9;6191:14;6181:25;;;;;;;;;;;;;;;;;:29;;;;6217:9;:18;;;;;;;;;;;;:::i;:::-;;6268:1;6241:14;:24;6256:8;6241:24;;;;;;;;;;;:28;;;;6303:10;6275:14;:25;6290:9;6275:25;;;;;;;;;;;:38;;;;5733:585;;;;;:::o;10623:328:20:-;10762:4;10830:13;10781:16;:3;:14;;;:16::i;:::-;10780:17;10776:49;;;10814:4;10807:11;;;;10776:49;10861:3;10846:36;;;10883:5;10890:8;10900:5;10846:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;10846:60:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10846:60:20;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10846:60:20;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10846:60:20;;;;;;;;;;;;;;;;10830:76;;604:10;10930:15;;10920:25;;;:6;:25;;;;10912:34;;10623:328;;;;;;;;:::o;9898:214::-;10000:5;9979:26;;:17;9987:8;9979:7;:17::i;:::-;:26;;;9971:35;;;;;;;;10038:30;10066:1;10038:16;:23;10055:5;10038:23;;;;;;;;;;;;;;;;:27;;:30;;;;:::i;:::-;10012:16;:23;10029:5;10012:23;;;;;;;;;;;;;;;:56;;;;10105:1;10074:10;:20;10085:8;10074:20;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;9898:214;;:::o;9415:204::-;9521:1;9489:34;;:10;:20;9500:8;9489:20;;;;;;;;;;;;;;;;;;;;;:34;;;9481:43;;;;;;;;9553:3;9530:10;:20;9541:8;9530:20;;;;;;;;;;;;:26;;;;;;;;;;;;;;;;;;9586:28;9612:1;9586:16;:21;9603:3;9586:21;;;;;;;;;;;;;;;;:25;;:28;;;;:::i;:::-;9562:16;:21;9579:3;9562:21;;;;;;;;;;;;;;;:52;;;;9415:204;;:::o;5324:172:22:-;5385:26;5397:3;5402:8;5385:11;:26::i;:::-;5445:9;:16;;;;5418:14;:24;5433:8;5418:24;;;;;;;;;;;:43;;;;5467:9;5482:8;5467:24;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;5467:24:22;;;;;;;;;;;;;;;;;;;;;;5324:172;;:::o;8432:188:20:-;8496:31;8510:6;8518:8;8496:13;:31::i;:::-;8533:33;8549:6;8557:8;8533:15;:33::i;:::-;8602:1;8577:38;;8586:6;8577:38;;;8606:8;8577:38;;;;;;;;;;;;;;;;;;8432:188;;:::o;438:568:12:-;495:4;507:12;922:4;910:17;902:25;;1000:1;993:4;:8;986:15;;438:568;;;;:::o;8072:169:20:-;8156:1;8141:17;;:3;:17;;;;8133:26;;;;;;;;8165:25;8176:3;8181:8;8165:10;:25::i;:::-;8222:3;8201:35;;8218:1;8201:35;;;8227:8;8201:35;;;;;;;;;;;;;;;;;;8072:169;;:::o;670:7904:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",source:'pragma solidity 0.4.24;\n\nimport "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";\nimport "openzeppelin-solidity/contracts/math/SafeMath.sol";\nimport "../common/SplitPaymentChangeable.sol";\nimport "../common/RegistryInterface.sol";\nimport "../common/Safe.sol";\nimport "./ChaingearCore.sol";\nimport "./RegistryCreator.sol";\n\n\n/**\n* @title Chaingear - the most expensive database\n* @author cyber•Congress, Valery litvin (@litvintech)\n* @dev Main metaregistry contract \n* @notice Proof-of-Concept. Chaingear it\'s a metaregistry/fabric for Creator Curated Registries\n* @notice where each registry are ERC721.\n* @notice not recommend to use before release!\n*/\ncontract Chaingear is SplitPaymentChangeable, ChaingearCore, ERC721Token {\n\n using SafeMath for uint256;\n\n /*\n * Constructor\n */\n\n\t/**\n\t* @dev Chaingear constructor\n\t* @param _benefitiaries address[] addresses of Chaingear benefitiaries\n\t* @param _shares uint256[] array with amount of shares by benefitiary\n\t* @param _description string description of Chaingear\n\t* @param _registrationFee uint Fee for registry creation, wei\n\t* @param _chaingearName string Chaingear\'s name, use for chaingear\'s ERC721\n\t* @param _chaingearSymbol string Chaingear\'s NFT symbol, use for chaingear\'s ERC721\n\t*/\n constructor(\n address[] _benefitiaries,\n uint256[] _shares,\n string _description,\n uint _registrationFee,\n string _chaingearName,\n string _chaingearSymbol\n )\n SplitPaymentChangeable(_benefitiaries, _shares)\n ERC721Token(_chaingearName, _chaingearSymbol)\n public\n {\n registryRegistrationFee = _registrationFee;\n chaingearDescription = _description;\n // Only chaingear as owner can transfer either to and out from Safe\n chaingearSafe = new Safe();\n }\n \n function() public payable {}\n \n /*\n * External functions\n */\n\n /**\n * @dev Add and tokenize registry with specified parameters.\n\t* @dev Registration fee is required to send with tx.\n\t* @dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry\n * @param _version version of registry from which Registry will be boostrapped\n * @param _benefitiaries address[] addresses of Chaingear benefitiaries\n * @param _shares uint256[] array with amount of shares by benefitiary\n * @param _name string, Registry name, use for registry ERC721\n * @param _symbol string, Registry NFT symbol, use for registry ERC721\n * @return address new Registry contract address\n * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID\n */\n function registerRegistry(\n string _version,\n address[] _benefitiaries,\n uint256[] _shares,\n string _name,\n string _symbol\n )\n external\n payable\n whenNotPaused\n returns (\n address,\n uint256\n )\n {\n require(registryAddresses[_version] != 0x0);\n require(registryRegistrationFee == msg.value);\n \n //checking uniqueness of name AND symbol of NFT in metaregistry\n require(registryNamesIndex[_name] == false);\n require(registrySymbolsIndex[_symbol] == false);\n\n return createRegistry(\n _version,\n _benefitiaries,\n _shares,\n _name,\n _symbol\n );\n }\n \n function transferFrom(\n address _from,\n address _to,\n uint256 _tokenId\n ) \n public \n canTransfer(_tokenId)\n {\n require(_from != address(0));\n require(_to != address(0));\n\n clearApproval(_from, _tokenId);\n removeTokenFrom(_from, _tokenId);\n addTokenTo(_to, _tokenId);\n \n address registryAddress = registries[_tokenId].contractAddress;\n RegistryInterface(registryAddress).transferAdminRights(_to);\n\n emit Transfer(_from, _to, _tokenId);\n } \n\n /**\n * @dev Allows to unregister Registry from Chaingear\n * @dev Only possible when safe of Registry is empty\n * @dev Burns associated registry token and transfer Registry adminship to current token owner\n * @param _registryID uint256 Registry-token ID\n */\n function unregisterRegistry(\n uint256 _registryID\n )\n external\n onlyOwnerOf(_registryID)\n whenNotPaused\n { \n address registryAddress = registries[_registryID].contractAddress;\n require(RegistryInterface(registryAddress).getSafeBalance() == 0);\n\n uint256 registryIndex = allTokensIndex[_registryID];\n uint256 lastRegistryIndex = registries.length.sub(1);\n RegistryMeta storage lastRegistry = registries[lastRegistryIndex];\n\n registries[registryIndex] = lastRegistry;\n delete registries[lastRegistryIndex];\n registries.length--;\n\n _burn(msg.sender, _registryID);\n\n string memory registryName = RegistryInterface(registryAddress).name();\n emit RegistryUnregistered(msg.sender, registryName);\n \n //Sets current admin as owner of registry, transfers full control\n RegistryInterface(registryAddress).transferOwnership(msg.sender);\n }\n \n /**\n * @dev Gets funding and allocate funds of Registry to Chaingear\'s Safe\n * @param _registryID uint256 Registry-token ID\n */\n function fundRegistry(\n uint256 _registryID\n )\n external\n whenNotPaused\n payable\n {\n registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.add(msg.value);\n registries[_registryID].accumulatedRegistryETH = registries[_registryID].accumulatedRegistryETH.add(msg.value);\n\n emit RegistryFunded(_registryID, msg.sender, msg.value);\n \n chaingearSafe.transfer(msg.value);\n }\n\n /**\n * @dev Gets funding and allocate funds of Registry to Safe\n * @param _registryID uint256 Registry-token ID\n * @param _amount uint256 Amount which admin of registry claims\n */\n function claimEntryFunds(\n uint256 _registryID,\n uint256 _amount\n )\n external\n onlyOwnerOf(_registryID)\n whenNotPaused\n {\n require(_amount <= registries[_registryID].currentRegistryBalanceETH);\n registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.sub(_amount);\n\n emit RegistryFundsClaimed(_registryID, msg.sender, _amount);\n \n Safe(chaingearSafe).claim(msg.sender, _amount);\n }\n\n /*\n * Private functions\n */\n\n /**\n * @dev Private function for registry creation\n * @dev Pass Registry params and bytecode to RegistryCreator to current builder\n * @param _version version of registry code which added to chaingear\n * @param _benefitiaries address[] addresses of Registry benefitiaries\n * @param _shares uint256[] array with amount of shares to benefitiaries\n * @param _name string, Registry name, use for registry ERC721\n * @param _symbol string, Registry NFT symbol, use for registry ERC721\n * @return address new Registry contract address\n * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID\n */\n function createRegistry(\n string _version,\n address[] _benefitiaries,\n uint256[] _shares,\n string _name,\n string _symbol\n )\n private\n returns (\n address,\n uint256\n )\n {\n address registryContract = RegistryCreator(registryAddresses[_version]).create(\n _benefitiaries,\n _shares,\n _name,\n _symbol\n );\n \n RegistryMeta memory registry = (RegistryMeta(\n {\n contractAddress: registryContract,\n creator: msg.sender,\n version: _version,\n linkABI: registryABIsLinks[_version],\n registrationTimestamp: block.timestamp,\n currentRegistryBalanceETH: 0,\n accumulatedRegistryETH: 0\n }));\n\n uint256 registryID = registries.push(registry) - 1;\n _mint(msg.sender, registryID);\n \n registryNamesIndex[_name] = true;\n registrySymbolsIndex[_symbol] = true;\n \n emit RegistryRegistered(_name, registryContract, msg.sender, registryID);\n \n //Metaregistry as owner sets creator as admin of Registry\n RegistryInterface(registryContract).transferAdminRights(msg.sender);\n\n return (\n registryContract,\n registryID\n );\n }\n \n}\n',sourcePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/Chaingear.sol",ast:{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/Chaingear.sol",exportedSymbols:{Chaingear:[479]},id:480,nodeType:"SourceUnit",nodes:[{id:1,literals:["solidity","0.4",".24"],nodeType:"PragmaDirective",src:"0:23:0"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",file:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",id:2,nodeType:"ImportDirective",scope:480,sourceUnit:3828,src:"25:70:0",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/math/SafeMath.sol",file:"openzeppelin-solidity/contracts/math/SafeMath.sol",id:3,nodeType:"ImportDirective",scope:480,sourceUnit:2441,src:"96:59:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/SplitPaymentChangeable.sol",file:"../common/SplitPaymentChangeable.sol",id:4,nodeType:"ImportDirective",scope:480,sourceUnit:1109,src:"156:46:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/RegistryInterface.sol",file:"../common/RegistryInterface.sol",id:5,nodeType:"ImportDirective",scope:480,sourceUnit:963,src:"203:41:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/Safe.sol",file:"../common/Safe.sol",id:6,nodeType:"ImportDirective",scope:480,sourceUnit:1024,src:"245:28:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/ChaingearCore.sol",file:"./ChaingearCore.sol",id:7,nodeType:"ImportDirective",scope:480,sourceUnit:669,src:"274:29:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/RegistryCreator.sol",file:"./RegistryCreator.sol",id:8,nodeType:"ImportDirective",scope:480,sourceUnit:890,src:"304:31:0",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:9,name:"SplitPaymentChangeable",nodeType:"UserDefinedTypeName",referencedDeclaration:1108,src:"692:22:0",typeDescriptions:{typeIdentifier:"t_contract$_SplitPaymentChangeable_$1108",typeString:"contract SplitPaymentChangeable"}},id:10,nodeType:"InheritanceSpecifier",src:"692:22:0"},{arguments:null,baseName:{contractScope:null,id:11,name:"ChaingearCore",nodeType:"UserDefinedTypeName",referencedDeclaration:668,src:"716:13:0",typeDescriptions:{typeIdentifier:"t_contract$_ChaingearCore_$668",typeString:"contract ChaingearCore"}},id:12,nodeType:"InheritanceSpecifier",src:"716:13:0"},{arguments:null,baseName:{contractScope:null,id:13,name:"ERC721Token",nodeType:"UserDefinedTypeName",referencedDeclaration:3827,src:"731:11:0",typeDescriptions:{typeIdentifier:"t_contract$_ERC721Token_$3827",typeString:"contract ERC721Token"}},id:14,nodeType:"InheritanceSpecifier",src:"731:11:0"}],contractDependencies:[668,800,1023,1108,2286,2346,2496,2696,2723,2743,2750,2857,3440,3827],contractKind:"contract",documentation:"@title Chaingear - the most expensive database\n@author cyber•Congress, Valery litvin (@litvintech)\n@dev Main metaregistry contract \n@notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries\n@notice where each registry are ERC721.\n@notice not recommend to use before release!",fullyImplemented:!0,id:479,linearizedBaseContracts:[479,3827,3440,2750,2743,2723,2857,668,2346,2286,1108,2496,800,2696],name:"Chaingear",nodeType:"ContractDefinition",nodes:[{id:17,libraryName:{contractScope:null,id:15,name:"SafeMath",nodeType:"UserDefinedTypeName",referencedDeclaration:2440,src:"756:8:0",typeDescriptions:{typeIdentifier:"t_contract$_SafeMath_$2440",typeString:"library SafeMath"}},nodeType:"UsingForDirective",src:"750:27:0",typeName:{id:16,name:"uint256",nodeType:"ElementaryTypeName",src:"769:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}},{body:{id:56,nodeType:"Block",src:"1611:216:0",statements:[{expression:{argumentTypes:null,id:44,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:42,name:"registryRegistrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:502,src:"1621:23:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:43,name:"_registrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:27,src:"1647:16:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1621:42:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:45,nodeType:"ExpressionStatement",src:"1621:42:0"},{expression:{argumentTypes:null,id:48,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:46,name:"chaingearDescription",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:500,src:"1673:20:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:47,name:"_description",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1696:12:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},src:"1673:35:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:49,nodeType:"ExpressionStatement",src:"1673:35:0"},{expression:{argumentTypes:null,id:54,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:50,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"1794:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:52,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"NewExpression",src:"1810:8:0",typeDescriptions:{typeIdentifier:"t_function_creation_payable$__$returns$_t_contract$_Safe_$1023_$",typeString:"function () payable returns (contract Safe)"},typeName:{contractScope:null,id:51,name:"Safe",nodeType:"UserDefinedTypeName",referencedDeclaration:1023,src:"1814:4:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}}},id:53,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1810:10:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},src:"1794:26:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:55,nodeType:"ExpressionStatement",src:"1794:26:0"}]},documentation:"@dev Chaingear constructor\n@param _benefitiaries address[] addresses of Chaingear benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _description string description of Chaingear\n@param _registrationFee uint Fee for registry creation, wei\n@param _chaingearName string Chaingear's name, use for chaingear's ERC721\n@param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721",id:57,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:34,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:20,src:"1513:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:35,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:23,src:"1529:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}}],id:36,modifierName:{argumentTypes:null,id:33,name:"SplitPaymentChangeable",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1108,src:"1490:22:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_SplitPaymentChangeable_$1108_$",typeString:"type(contract SplitPaymentChangeable)"}},nodeType:"ModifierInvocation",src:"1490:47:0"},{arguments:[{argumentTypes:null,id:38,name:"_chaingearName",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:29,src:"1558:14:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:39,name:"_chaingearSymbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:31,src:"1574:16:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],id:40,modifierName:{argumentTypes:null,id:37,name:"ERC721Token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3827,src:"1546:11:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_ERC721Token_$3827_$",typeString:"type(contract ERC721Token)"}},nodeType:"ModifierInvocation",src:"1546:45:0"}],name:"",nodeType:"FunctionDefinition",parameters:{id:32,nodeType:"ParameterList",parameters:[{constant:!1,id:20,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:57,src:"1300:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:18,name:"address",nodeType:"ElementaryTypeName",src:"1300:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:19,length:null,nodeType:"ArrayTypeName",src:"1300:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:23,name:"_shares",nodeType:"VariableDeclaration",scope:57,src:"1334:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:21,name:"uint256",nodeType:"ElementaryTypeName",src:"1334:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:22,length:null,nodeType:"ArrayTypeName",src:"1334:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:25,name:"_description",nodeType:"VariableDeclaration",scope:57,src:"1361:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:24,name:"string",nodeType:"ElementaryTypeName",src:"1361:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:27,name:"_registrationFee",nodeType:"VariableDeclaration",scope:57,src:"1390:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:26,name:"uint",nodeType:"ElementaryTypeName",src:"1390:4:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:29,name:"_chaingearName",nodeType:"VariableDeclaration",scope:57,src:"1421:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:28,name:"string",nodeType:"ElementaryTypeName",src:"1421:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:31,name:"_chaingearSymbol",nodeType:"VariableDeclaration",scope:57,src:"1452:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:30,name:"string",nodeType:"ElementaryTypeName",src:"1452:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"1290:191:0"},payable:!1,returnParameters:{id:41,nodeType:"ParameterList",parameters:[],src:"1611:0:0"},scope:479,src:"1279:548:0",stateMutability:"nonpayable",superFunction:null,visibility:"public"},{body:{id:60,nodeType:"Block",src:"1863:2:0",statements:[]},documentation:null,id:61,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:58,nodeType:"ParameterList",parameters:[],src:"1845:2:0"},payable:!0,returnParameters:{id:59,nodeType:"ParameterList",parameters:[],src:"1863:0:0"},scope:479,src:"1837:28:0",stateMutability:"payable",superFunction:2563,visibility:"public"},{body:{id:121,nodeType:"Block",src:"2926:459:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:87,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:83,name:"registryAddresses",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:508,src:"2944:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_address_$",typeString:"mapping(string memory => address)"}},id:85,indexExpression:{argumentTypes:null,id:84,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:63,src:"2962:8:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"2944:27:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,hexValue:"307830",id:86,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"2975:3:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0x0"},src:"2944:34:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:82,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"2936:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:88,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2936:43:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:89,nodeType:"ExpressionStatement",src:"2936:43:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:94,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:91,name:"registryRegistrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:502,src:"2997:23:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,id:92,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3024:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:93,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"3024:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"2997:36:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:90,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"2989:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:95,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2989:45:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:96,nodeType:"ExpressionStatement",src:"2989:45:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_bool",typeString:"bool"},id:102,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:98,name:"registryNamesIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:494,src:"3133:18:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:100,indexExpression:{argumentTypes:null,id:99,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"3152:5:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3133:25:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"66616c7365",id:101,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"3162:5:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"3133:34:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:97,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3125:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:103,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3125:43:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:104,nodeType:"ExpressionStatement",src:"3125:43:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_bool",typeString:"bool"},id:110,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:106,name:"registrySymbolsIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:498,src:"3186:20:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:108,indexExpression:{argumentTypes:null,id:107,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"3207:7:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3186:29:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"66616c7365",id:109,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"3219:5:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"3186:38:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:105,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3178:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:111,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3178:47:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:112,nodeType:"ExpressionStatement",src:"3178:47:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:114,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:63,src:"3271:8:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},{argumentTypes:null,id:115,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:66,src:"3293:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[] calldata"}},{argumentTypes:null,id:116,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"3321:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[] calldata"}},{argumentTypes:null,id:117,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"3342:5:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},{argumentTypes:null,id:118,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"3361:7:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}}],expression:{argumentTypes:[{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"},{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[] calldata"},{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[] calldata"},{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"},{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}],id:113,name:"createRegistry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:478,src:"3243:14:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_string_memory_ptr_$_t_array$_t_address_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_address_$_t_uint256_$",typeString:"function (string memory,address[] memory,uint256[] memory,string memory,string memory) returns (address,uint256)"}},id:119,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3243:135:0",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_uint256_$",typeString:"tuple(address,uint256)"}},functionReturnParameters:81,id:120,nodeType:"Return",src:"3236:142:0"}]},documentation:"@dev Add and tokenize registry with specified parameters.\n@dev Registration fee is required to send with tx.\n@dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry\n@param _version version of registry from which Registry will be boostrapped\n@param _benefitiaries address[] addresses of Chaingear benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _name string, Registry name, use for registry ERC721\n@param _symbol string, Registry NFT symbol, use for registry ERC721\n@return address new Registry contract address\n@return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID",id:122,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:76,modifierName:{argumentTypes:null,id:75,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"2839:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2839:13:0"}],name:"registerRegistry",nodeType:"FunctionDefinition",parameters:{id:74,nodeType:"ParameterList",parameters:[{constant:!1,id:63,name:"_version",nodeType:"VariableDeclaration",scope:122,src:"2669:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:62,name:"string",nodeType:"ElementaryTypeName",src:"2669:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:66,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:122,src:"2694:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[]"},typeName:{baseType:{id:64,name:"address",nodeType:"ElementaryTypeName",src:"2694:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:65,length:null,nodeType:"ArrayTypeName",src:"2694:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:69,name:"_shares",nodeType:"VariableDeclaration",scope:122,src:"2728:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[]"},typeName:{baseType:{id:67,name:"uint256",nodeType:"ElementaryTypeName",src:"2728:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:68,length:null,nodeType:"ArrayTypeName",src:"2728:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:71,name:"_name",nodeType:"VariableDeclaration",scope:122,src:"2755:12:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:70,name:"string",nodeType:"ElementaryTypeName",src:"2755:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:73,name:"_symbol",nodeType:"VariableDeclaration",scope:122,src:"2777:14:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:72,name:"string",nodeType:"ElementaryTypeName",src:"2777:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"2659:138:0"},payable:!0,returnParameters:{id:81,nodeType:"ParameterList",parameters:[{constant:!1,id:78,name:"",nodeType:"VariableDeclaration",scope:122,src:"2883:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:77,name:"address",nodeType:"ElementaryTypeName",src:"2883:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:80,name:"",nodeType:"VariableDeclaration",scope:122,src:"2904:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:79,name:"uint256",nodeType:"ElementaryTypeName",src:"2904:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"2869:52:0"},scope:479,src:"2634:751:0",stateMutability:"payable",superFunction:null,visibility:"external"},{body:{id:185,nodeType:"Block",src:"3544:395:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:139,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:135,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3562:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:137,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3579:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:136,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"3571:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:138,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3571:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"3562:19:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:134,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3554:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:140,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3554:28:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:141,nodeType:"ExpressionStatement",src:"3554:28:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:147,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:143,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3600:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:145,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3615:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:144,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"3607:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:146,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3607:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"3600:17:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:142,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3592:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:148,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3592:26:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:149,nodeType:"ExpressionStatement",src:"3592:26:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:151,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3643:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:152,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3650:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:150,name:"clearApproval",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3331,src:"3629:13:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:153,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3629:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:154,nodeType:"ExpressionStatement",src:"3629:30:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:156,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3685:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:157,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3692:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:155,name:"removeTokenFrom",nodeType:"Identifier",overloadedDeclarations:[3719],referencedDeclaration:3719,src:"3669:15:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:158,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3669:32:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:159,nodeType:"ExpressionStatement",src:"3669:32:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:161,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3722:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:162,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3727:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:160,name:"addTokenTo",nodeType:"Identifier",overloadedDeclarations:[3646],referencedDeclaration:3646,src:"3711:10:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:163,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3711:25:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:164,nodeType:"ExpressionStatement",src:"3711:25:0"},{assignments:[166],declarations:[{constant:!1,id:166,name:"registryAddress",nodeType:"VariableDeclaration",scope:186,src:"3755:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:165,name:"address",nodeType:"ElementaryTypeName",src:"3755:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:171,initialValue:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:167,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"3781:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:169,indexExpression:{argumentTypes:null,id:168,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3792:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3781:20:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:170,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"contractAddress",nodeType:"MemberAccess",referencedDeclaration:673,src:"3781:36:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"3755:62:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:176,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3882:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:173,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:166,src:"3845:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:172,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"3827:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:174,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3827:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:175,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferAdminRights",nodeType:"MemberAccess",referencedDeclaration:946,src:"3827:54:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:177,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3827:59:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:178,nodeType:"ExpressionStatement",src:"3827:59:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:180,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3911:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:181,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3918:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:182,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3923:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:179,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2760,src:"3902:8:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:183,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3902:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:184,nodeType:"EmitStatement",src:"3897:35:0"}]},documentation:null,id:186,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:131,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3530:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:132,modifierName:{argumentTypes:null,id:130,name:"canTransfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2921,src:"3518:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"3518:21:0"}],name:"transferFrom",nodeType:"FunctionDefinition",parameters:{id:129,nodeType:"ParameterList",parameters:[{constant:!1,id:124,name:"_from",nodeType:"VariableDeclaration",scope:186,src:"3426:13:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:123,name:"address",nodeType:"ElementaryTypeName",src:"3426:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:126,name:"_to",nodeType:"VariableDeclaration",scope:186,src:"3449:11:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:125,name:"address",nodeType:"ElementaryTypeName",src:"3449:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:128,name:"_tokenId",nodeType:"VariableDeclaration",scope:186,src:"3470:16:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:127,name:"uint256",nodeType:"ElementaryTypeName",src:"3470:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"3416:76:0"},payable:!1,returnParameters:{id:133,nodeType:"ParameterList",parameters:[],src:"3544:0:0"},scope:479,src:"3395:544:0",stateMutability:"nonpayable",superFunction:3154,visibility:"public"},{body:{id:277,nodeType:"Block",src:"4362:830:0",statements:[{assignments:[197],declarations:[{constant:!1,id:197,name:"registryAddress",nodeType:"VariableDeclaration",scope:278,src:"4380:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:196,name:"address",nodeType:"ElementaryTypeName",src:"4380:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:202,initialValue:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:198,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4406:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:200,indexExpression:{argumentTypes:null,id:199,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4417:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4406:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:201,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"contractAddress",nodeType:"MemberAccess",referencedDeclaration:673,src:"4406:39:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"4380:65:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:210,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:205,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"4481:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:204,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"4463:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:206,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4463:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:207,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"getSafeBalance",nodeType:"MemberAccess",referencedDeclaration:914,src:"4463:49:0",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_uint256_$",typeString:"function () view external returns (uint256)"}},id:208,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4463:51:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"30",id:209,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4518:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"4463:56:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:203,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4455:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:211,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4455:65:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:212,nodeType:"ExpressionStatement",src:"4455:65:0"},{assignments:[214],declarations:[{constant:!1,id:214,name:"registryIndex",nodeType:"VariableDeclaration",scope:278,src:"4531:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:213,name:"uint256",nodeType:"ElementaryTypeName",src:"4531:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:218,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:215,name:"allTokensIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3485,src:"4555:14:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_uint256_$_t_uint256_$",typeString:"mapping(uint256 => uint256)"}},id:217,indexExpression:{argumentTypes:null,id:216,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4570:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4555:27:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4531:51:0"},{assignments:[220],declarations:[{constant:!1,id:220,name:"lastRegistryIndex",nodeType:"VariableDeclaration",scope:278,src:"4592:25:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:219,name:"uint256",nodeType:"ElementaryTypeName",src:"4592:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:226,initialValue:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"31",id:224,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4642:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"}],expression:{argumentTypes:null,expression:{argumentTypes:null,id:221,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4620:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:222,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4620:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:223,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"4620:21:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:225,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4620:24:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4592:52:0"},{assignments:[228],declarations:[{constant:!1,id:228,name:"lastRegistry",nodeType:"VariableDeclaration",scope:278,src:"4654:33:0",stateVariable:!1,storageLocation:"storage",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"},typeName:{contractScope:null,id:227,name:"RegistryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:686,src:"4654:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"}},value:null,visibility:"internal"}],id:232,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:229,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4690:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:231,indexExpression:{argumentTypes:null,id:230,name:"lastRegistryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:220,src:"4701:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4690:29:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},nodeType:"VariableDeclarationStatement",src:"4654:65:0"},{expression:{argumentTypes:null,id:237,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:233,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4730:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:235,indexExpression:{argumentTypes:null,id:234,name:"registryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:214,src:"4741:13:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4730:25:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:236,name:"lastRegistry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:228,src:"4758:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta storage pointer"}},src:"4730:40:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:238,nodeType:"ExpressionStatement",src:"4730:40:0"},{expression:{argumentTypes:null,id:242,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"delete",prefix:!0,src:"4780:36:0",subExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:239,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4787:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:241,indexExpression:{argumentTypes:null,id:240,name:"lastRegistryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:220,src:"4798:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4787:29:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:243,nodeType:"ExpressionStatement",src:"4780:36:0"},{expression:{argumentTypes:null,id:247,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"--",prefix:!1,src:"4826:19:0",subExpression:{argumentTypes:null,expression:{argumentTypes:null,id:244,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4826:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:246,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4826:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:248,nodeType:"ExpressionStatement",src:"4826:19:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:250,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4862:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:251,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4862:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:252,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4874:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:249,name:"_burn",nodeType:"Identifier",overloadedDeclarations:[3826],referencedDeclaration:3826,src:"4856:5:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:253,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4856:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:254,nodeType:"ExpressionStatement",src:"4856:30:0"},{assignments:[256],declarations:[{constant:!1,id:256,name:"registryName",nodeType:"VariableDeclaration",scope:278,src:"4897:26:0",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:255,name:"string",nodeType:"ElementaryTypeName",src:"4897:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],id:262,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:258,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"4944:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:257,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"4926:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:259,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4926:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:260,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"name",nodeType:"MemberAccess",referencedDeclaration:956,src:"4926:39:0",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_string_memory_ptr_$",typeString:"function () view external returns (string memory)"}},id:261,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4926:41:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},nodeType:"VariableDeclarationStatement",src:"4897:70:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:264,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5003:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:265,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5003:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:266,name:"registryName",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:256,src:"5015:12:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}],id:263,name:"RegistryUnregistered",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:713,src:"4982:20:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_string_memory_ptr_$returns$__$",typeString:"function (address,string memory)"}},id:267,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4982:46:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:268,nodeType:"EmitStatement",src:"4977:51:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:273,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5174:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:274,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5174:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:270,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"5139:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:269,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"5121:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:271,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5121:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:272,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferOwnership",nodeType:"MemberAccess",referencedDeclaration:951,src:"5121:52:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:275,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5121:64:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:276,nodeType:"ExpressionStatement",src:"5121:64:0"}]},documentation:"@dev Allows to unregister Registry from Chaingear\n@dev Only possible when safe of Registry is empty\n@dev Burns associated registry token and transfer Registry adminship to current token owner\n@param _registryID uint256 Registry-token ID",id:278,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:191,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4323:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:192,modifierName:{argumentTypes:null,id:190,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"4311:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4311:24:0"},{arguments:null,id:194,modifierName:{argumentTypes:null,id:193,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"4344:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4344:13:0"}],name:"unregisterRegistry",nodeType:"FunctionDefinition",parameters:{id:189,nodeType:"ParameterList",parameters:[{constant:!1,id:188,name:"_registryID",nodeType:"VariableDeclaration",scope:278,src:"4260:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:187,name:"uint256",nodeType:"ElementaryTypeName",src:"4260:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4250:35:0"},payable:!1,returnParameters:{id:195,nodeType:"ParameterList",parameters:[],src:"4362:0:0"},scope:479,src:"4223:969:0",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:328,nodeType:"Block",src:"5459:371:0",statements:[{expression:{argumentTypes:null,id:297,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:285,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5469:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:287,indexExpression:{argumentTypes:null,id:286,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5480:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5469:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:288,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"5469:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:294,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5575:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:295,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5575:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:289,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5521:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:291,indexExpression:{argumentTypes:null,id:290,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5532:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5521:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:292,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"5521:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:293,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5521:53:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:296,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5521:64:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5469:116:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:298,nodeType:"ExpressionStatement",src:"5469:116:0"},{expression:{argumentTypes:null,id:311,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:299,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5595:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:301,indexExpression:{argumentTypes:null,id:300,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5606:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5595:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:302,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"accumulatedRegistryETH",nodeType:"MemberAccess",referencedDeclaration:685,src:"5595:46:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:308,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5695:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:309,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5695:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:303,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5644:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:305,indexExpression:{argumentTypes:null,id:304,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5655:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5644:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:306,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedRegistryETH",nodeType:"MemberAccess",referencedDeclaration:685,src:"5644:46:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:307,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5644:50:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:310,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5644:61:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5595:110:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:312,nodeType:"ExpressionStatement",src:"5595:110:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:314,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5736:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:315,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5749:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:316,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5749:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:317,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5761:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:318,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5761:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:313,name:"RegistryFunded",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:524,src:"5721:14:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:319,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5721:50:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:320,nodeType:"EmitStatement",src:"5716:55:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:324,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5813:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:325,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5813:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,id:321,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"5790:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:323,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transfer",nodeType:"MemberAccess",referencedDeclaration:null,src:"5790:22:0",typeDescriptions:{typeIdentifier:"t_function_transfer_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:326,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5790:33:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:327,nodeType:"ExpressionStatement",src:"5790:33:0"}]},documentation:"@dev Gets funding and allocate funds of Registry to Chaingear's Safe\n@param _registryID uint256 Registry-token ID",id:329,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:283,modifierName:{argumentTypes:null,id:282,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"5425:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5425:13:0"}],name:"fundRegistry",nodeType:"FunctionDefinition",parameters:{id:281,nodeType:"ParameterList",parameters:[{constant:!1,id:280,name:"_registryID",nodeType:"VariableDeclaration",scope:329,src:"5374:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:279,name:"uint256",nodeType:"ElementaryTypeName",src:"5374:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"5364:35:0"},payable:!0,returnParameters:{id:284,nodeType:"ParameterList",parameters:[],src:"5459:0:0"},scope:479,src:"5343:487:0",stateMutability:"payable",superFunction:null,visibility:"external"},{body:{id:379,nodeType:"Block",src:"6193:345:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:347,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:342,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6211:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"<=",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:343,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6222:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:345,indexExpression:{argumentTypes:null,id:344,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6233:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6222:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:346,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6222:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6211:60:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:341,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6203:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:348,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6203:69:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:349,nodeType:"ExpressionStatement",src:"6203:69:0"},{expression:{argumentTypes:null,id:361,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:350,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6282:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:352,indexExpression:{argumentTypes:null,id:351,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6293:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6282:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:353,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6282:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,id:359,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6388:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:354,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6334:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:356,indexExpression:{argumentTypes:null,id:355,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6345:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6334:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:357,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6334:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:358,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"6334:53:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:360,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6334:62:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6282:114:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:362,nodeType:"ExpressionStatement",src:"6282:114:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:364,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6433:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:365,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6446:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:366,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6446:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:367,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6458:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:363,name:"RegistryFundsClaimed",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:532,src:"6412:20:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:368,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6412:54:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:369,nodeType:"EmitStatement",src:"6407:59:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:374,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6511:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:375,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6511:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:376,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6523:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:371,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"6490:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:370,name:"Safe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1023,src:"6485:4:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Safe_$1023_$",typeString:"type(contract Safe)"}},id:372,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6485:19:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},id:373,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"claim",nodeType:"MemberAccess",referencedDeclaration:1022,src:"6485:25:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256) external"}},id:377,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6485:46:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:378,nodeType:"ExpressionStatement",src:"6485:46:0"}]},documentation:"@dev Gets funding and allocate funds of Registry to Safe\n@param _registryID uint256 Registry-token ID\n@param _amount uint256 Amount which admin of registry claims",id:380,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:336,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6154:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:337,modifierName:{argumentTypes:null,id:335,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"6142:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"6142:24:0"},{arguments:null,id:339,modifierName:{argumentTypes:null,id:338,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"6175:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6175:13:0"}],name:"claimEntryFunds",nodeType:"FunctionDefinition",parameters:{id:334,nodeType:"ParameterList",parameters:[{constant:!1,id:331,name:"_registryID",nodeType:"VariableDeclaration",scope:380,src:"6066:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:330,name:"uint256",nodeType:"ElementaryTypeName",src:"6066:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:333,name:"_amount",nodeType:"VariableDeclaration",scope:380,src:"6095:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:332,name:"uint256",nodeType:"ElementaryTypeName",src:"6095:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6056:60:0"},payable:!1,returnParameters:{id:340,nodeType:"ParameterList",parameters:[],src:"6193:0:0"},scope:479,src:"6032:506:0",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:477,nodeType:"Block",src:"7472:1095:0",statements:[{assignments:[400],declarations:[{constant:!1,id:400,name:"registryContract",nodeType:"VariableDeclaration",scope:478,src:"7482:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:399,name:"address",nodeType:"ElementaryTypeName",src:"7482:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:412,initialValue:{argumentTypes:null,arguments:[{argumentTypes:null,id:407,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:385,src:"7574:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:408,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:388,src:"7602:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}},{argumentTypes:null,id:409,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"7623:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:410,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:392,src:"7642:7:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"},{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,baseExpression:{argumentTypes:null,id:402,name:"registryAddresses",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:508,src:"7525:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_address_$",typeString:"mapping(string memory => address)"}},id:404,indexExpression:{argumentTypes:null,id:403,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7543:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7525:27:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:401,name:"RegistryCreator",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:889,src:"7509:15:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryCreator_$889_$",typeString:"type(contract RegistryCreator)"}},id:405,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7509:44:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryCreator_$889",typeString:"contract RegistryCreator"}},id:406,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"create",nodeType:"MemberAccess",referencedDeclaration:862,src:"7509:51:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_array$_t_address_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_address_$",typeString:"function (address[] memory,uint256[] memory,string memory,string memory) external returns (address)"}},id:411,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7509:150:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"7482:177:0"},{assignments:[414],declarations:[{constant:!1,id:414,name:"registry",nodeType:"VariableDeclaration",scope:478,src:"7678:28:0",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta"},typeName:{contractScope:null,id:413,name:"RegistryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:686,src:"7678:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"}},value:null,visibility:"internal"}],id:429,initialValue:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,id:416,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"7763:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:417,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"7802:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:418,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"7802:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:419,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7835:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,baseExpression:{argumentTypes:null,id:420,name:"registryABIsLinks",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:512,src:"7866:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_string_storage_$",typeString:"mapping(string memory => string storage ref)"}},id:422,indexExpression:{argumentTypes:null,id:421,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7884:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7866:27:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},{argumentTypes:null,expression:{argumentTypes:null,id:423,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"7930:5:0",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:424,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"7930:15:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,hexValue:"30",id:425,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"7986:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},{argumentTypes:null,hexValue:"30",id:426,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"8025:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:null,id:415,name:"RegistryMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:686,src:"7710:12:0",typeDescriptions:{typeIdentifier:"t_type$_t_struct$_RegistryMeta_$686_storage_ptr_$",typeString:"type(struct RegistryBase.RegistryMeta storage pointer)"}},id:427,isConstant:!1,isLValue:!1,isPure:!1,kind:"structConstructorCall",lValueRequested:!1,names:["contractAddress","creator","version","linkABI","registrationTimestamp","currentRegistryBalanceETH","accumulatedRegistryETH"],nodeType:"FunctionCall",src:"7710:327:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory",typeString:"struct RegistryBase.RegistryMeta memory"}}],id:428,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"7709:329:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory",typeString:"struct RegistryBase.RegistryMeta memory"}},nodeType:"VariableDeclarationStatement",src:"7678:360:0"},{assignments:[431],declarations:[{constant:!1,id:431,name:"registryID",nodeType:"VariableDeclaration",scope:478,src:"8049:18:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:430,name:"uint256",nodeType:"ElementaryTypeName",src:"8049:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:438,initialValue:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:437,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:434,name:"registry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:414,src:"8086:8:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta memory"}],expression:{argumentTypes:null,id:432,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"8070:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:433,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"push",nodeType:"MemberAccess",referencedDeclaration:null,src:"8070:15:0",typeDescriptions:{typeIdentifier:"t_function_arraypush_nonpayable$_t_struct$_RegistryMeta_$686_storage_$returns$_t_uint256_$",typeString:"function (struct RegistryBase.RegistryMeta storage ref) returns (uint256)"}},id:435,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8070:25:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"-",rightExpression:{argumentTypes:null,hexValue:"31",id:436,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"8098:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"},src:"8070:29:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"8049:50:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:440,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8115:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:441,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8115:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:442,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8127:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:439,name:"_mint",nodeType:"Identifier",overloadedDeclarations:[3747],referencedDeclaration:3747,src:"8109:5:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:443,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8109:29:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:444,nodeType:"ExpressionStatement",src:"8109:29:0"},{expression:{argumentTypes:null,id:449,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:445,name:"registryNamesIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:494,src:"8157:18:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:447,indexExpression:{argumentTypes:null,id:446,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"8176:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"8157:25:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:448,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"8185:4:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"8157:32:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:450,nodeType:"ExpressionStatement",src:"8157:32:0"},{expression:{argumentTypes:null,id:455,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:451,name:"registrySymbolsIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:498,src:"8199:20:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:453,indexExpression:{argumentTypes:null,id:452,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:392,src:"8220:7:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"8199:29:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:454,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"8231:4:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"8199:36:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:456,nodeType:"ExpressionStatement",src:"8199:36:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:458,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"8278:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:459,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8285:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:460,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8303:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:461,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8303:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:462,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8315:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:457,name:"RegistryRegistered",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:699,src:"8259:18:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (string memory,address,address,uint256)"}},id:463,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8259:67:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:464,nodeType:"EmitStatement",src:"8254:72:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:469,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8467:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:470,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8467:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:466,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8429:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:465,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"8411:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:467,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8411:35:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:468,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferAdminRights",nodeType:"MemberAccess",referencedDeclaration:946,src:"8411:55:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:471,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8411:67:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:472,nodeType:"ExpressionStatement",src:"8411:67:0"},{expression:{argumentTypes:null,components:[{argumentTypes:null,id:473,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8510:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:474,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8540:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:475,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"8496:64:0",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_uint256_$",typeString:"tuple(address,uint256)"}},functionReturnParameters:398,id:476,nodeType:"Return",src:"8489:71:0"}]},documentation:"@dev Private function for registry creation\n@dev Pass Registry params and bytecode to RegistryCreator to current builder\n@param _version version of registry code which added to chaingear\n@param _benefitiaries address[] addresses of Registry benefitiaries\n@param _shares uint256[] array with amount of shares to benefitiaries\n@param _name string, Registry name, use for registry ERC721\n@param _symbol string, Registry NFT symbol, use for registry ERC721\n@return address new Registry contract address\n@return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID",id:478,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"createRegistry",nodeType:"FunctionDefinition",parameters:{id:393,nodeType:"ParameterList",parameters:[{constant:!1,id:382,name:"_version",nodeType:"VariableDeclaration",scope:478,src:"7254:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:381,name:"string",nodeType:"ElementaryTypeName",src:"7254:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:385,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:478,src:"7279:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:383,name:"address",nodeType:"ElementaryTypeName",src:"7279:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:384,length:null,nodeType:"ArrayTypeName",src:"7279:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:388,name:"_shares",nodeType:"VariableDeclaration",scope:478,src:"7313:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:386,name:"uint256",nodeType:"ElementaryTypeName",src:"7313:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:387,length:null,nodeType:"ArrayTypeName",src:"7313:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:390,name:"_name",nodeType:"VariableDeclaration",scope:478,src:"7340:12:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:389,name:"string",nodeType:"ElementaryTypeName",src:"7340:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:392,name:"_symbol",nodeType:"VariableDeclaration",scope:478,src:"7362:14:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:391,name:"string",nodeType:"ElementaryTypeName",src:"7362:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"7244:138:0"},payable:!1,returnParameters:{id:398,nodeType:"ParameterList",parameters:[{constant:!1,id:395,name:"",nodeType:"VariableDeclaration",scope:478,src:"7429:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:394,name:"address",nodeType:"ElementaryTypeName",src:"7429:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:397,name:"",nodeType:"VariableDeclaration",scope:478,src:"7450:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:396,name:"uint256",nodeType:"ElementaryTypeName",src:"7450:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7415:52:0"},scope:479,src:"7221:1346:0",stateMutability:"nonpayable",superFunction:null,visibility:"private"}],scope:480,src:"670:7904:0"}],src:"0:8575:0"},legacyAST:{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/Chaingear.sol",exportedSymbols:{Chaingear:[479]},id:480,nodeType:"SourceUnit",nodes:[{id:1,literals:["solidity","0.4",".24"],nodeType:"PragmaDirective",src:"0:23:0"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",file:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",id:2,nodeType:"ImportDirective",scope:480,sourceUnit:3828,src:"25:70:0",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/math/SafeMath.sol",file:"openzeppelin-solidity/contracts/math/SafeMath.sol",id:3,nodeType:"ImportDirective",scope:480,sourceUnit:2441,src:"96:59:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/SplitPaymentChangeable.sol",file:"../common/SplitPaymentChangeable.sol",id:4,nodeType:"ImportDirective",scope:480,sourceUnit:1109,src:"156:46:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/RegistryInterface.sol",file:"../common/RegistryInterface.sol",id:5,nodeType:"ImportDirective",scope:480,sourceUnit:963,src:"203:41:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/Safe.sol",file:"../common/Safe.sol",id:6,nodeType:"ImportDirective",scope:480,sourceUnit:1024,src:"245:28:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/ChaingearCore.sol",file:"./ChaingearCore.sol",id:7,nodeType:"ImportDirective",scope:480,sourceUnit:669,src:"274:29:0",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/chaingear/RegistryCreator.sol",file:"./RegistryCreator.sol",id:8,nodeType:"ImportDirective",scope:480,sourceUnit:890,src:"304:31:0",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:9,name:"SplitPaymentChangeable",nodeType:"UserDefinedTypeName",referencedDeclaration:1108,src:"692:22:0",typeDescriptions:{typeIdentifier:"t_contract$_SplitPaymentChangeable_$1108",typeString:"contract SplitPaymentChangeable"}},id:10,nodeType:"InheritanceSpecifier",src:"692:22:0"},{arguments:null,baseName:{contractScope:null,id:11,name:"ChaingearCore",nodeType:"UserDefinedTypeName",referencedDeclaration:668,src:"716:13:0",typeDescriptions:{typeIdentifier:"t_contract$_ChaingearCore_$668",typeString:"contract ChaingearCore"}},id:12,nodeType:"InheritanceSpecifier",src:"716:13:0"},{arguments:null,baseName:{contractScope:null,id:13,name:"ERC721Token",nodeType:"UserDefinedTypeName",referencedDeclaration:3827,src:"731:11:0",typeDescriptions:{typeIdentifier:"t_contract$_ERC721Token_$3827",typeString:"contract ERC721Token"}},id:14,nodeType:"InheritanceSpecifier",src:"731:11:0"}],contractDependencies:[668,800,1023,1108,2286,2346,2496,2696,2723,2743,2750,2857,3440,3827],contractKind:"contract",documentation:"@title Chaingear - the most expensive database\n@author cyber•Congress, Valery litvin (@litvintech)\n@dev Main metaregistry contract \n@notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries\n@notice where each registry are ERC721.\n@notice not recommend to use before release!",fullyImplemented:!0,id:479,linearizedBaseContracts:[479,3827,3440,2750,2743,2723,2857,668,2346,2286,1108,2496,800,2696],name:"Chaingear",nodeType:"ContractDefinition",nodes:[{id:17,libraryName:{contractScope:null,id:15,name:"SafeMath",nodeType:"UserDefinedTypeName",referencedDeclaration:2440,src:"756:8:0",typeDescriptions:{typeIdentifier:"t_contract$_SafeMath_$2440",typeString:"library SafeMath"}},nodeType:"UsingForDirective",src:"750:27:0",typeName:{id:16,name:"uint256",nodeType:"ElementaryTypeName",src:"769:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}},{body:{id:56,nodeType:"Block",src:"1611:216:0",statements:[{expression:{argumentTypes:null,id:44,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:42,name:"registryRegistrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:502,src:"1621:23:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:43,name:"_registrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:27,src:"1647:16:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1621:42:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:45,nodeType:"ExpressionStatement",src:"1621:42:0"},{expression:{argumentTypes:null,id:48,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:46,name:"chaingearDescription",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:500,src:"1673:20:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:47,name:"_description",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1696:12:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},src:"1673:35:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:49,nodeType:"ExpressionStatement",src:"1673:35:0"},{expression:{argumentTypes:null,id:54,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:50,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"1794:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:52,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"NewExpression",src:"1810:8:0",typeDescriptions:{typeIdentifier:"t_function_creation_payable$__$returns$_t_contract$_Safe_$1023_$",typeString:"function () payable returns (contract Safe)"},typeName:{contractScope:null,id:51,name:"Safe",nodeType:"UserDefinedTypeName",referencedDeclaration:1023,src:"1814:4:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}}},id:53,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1810:10:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},src:"1794:26:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:55,nodeType:"ExpressionStatement",src:"1794:26:0"}]},documentation:"@dev Chaingear constructor\n@param _benefitiaries address[] addresses of Chaingear benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _description string description of Chaingear\n@param _registrationFee uint Fee for registry creation, wei\n@param _chaingearName string Chaingear's name, use for chaingear's ERC721\n@param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721",id:57,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:34,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:20,src:"1513:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:35,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:23,src:"1529:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}}],id:36,modifierName:{argumentTypes:null,id:33,name:"SplitPaymentChangeable",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1108,src:"1490:22:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_SplitPaymentChangeable_$1108_$",typeString:"type(contract SplitPaymentChangeable)"}},nodeType:"ModifierInvocation",src:"1490:47:0"},{arguments:[{argumentTypes:null,id:38,name:"_chaingearName",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:29,src:"1558:14:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:39,name:"_chaingearSymbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:31,src:"1574:16:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],id:40,modifierName:{argumentTypes:null,id:37,name:"ERC721Token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3827,src:"1546:11:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_ERC721Token_$3827_$",typeString:"type(contract ERC721Token)"}},nodeType:"ModifierInvocation",src:"1546:45:0"}],name:"",nodeType:"FunctionDefinition",parameters:{id:32,nodeType:"ParameterList",parameters:[{constant:!1,id:20,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:57,src:"1300:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:18,name:"address",nodeType:"ElementaryTypeName",src:"1300:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:19,length:null,nodeType:"ArrayTypeName",src:"1300:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:23,name:"_shares",nodeType:"VariableDeclaration",scope:57,src:"1334:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:21,name:"uint256",nodeType:"ElementaryTypeName",src:"1334:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:22,length:null,nodeType:"ArrayTypeName",src:"1334:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:25,name:"_description",nodeType:"VariableDeclaration",scope:57,src:"1361:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:24,name:"string",nodeType:"ElementaryTypeName",src:"1361:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:27,name:"_registrationFee",nodeType:"VariableDeclaration",scope:57,src:"1390:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:26,name:"uint",nodeType:"ElementaryTypeName",src:"1390:4:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:29,name:"_chaingearName",nodeType:"VariableDeclaration",scope:57,src:"1421:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:28,name:"string",nodeType:"ElementaryTypeName",src:"1421:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:31,name:"_chaingearSymbol",nodeType:"VariableDeclaration",scope:57,src:"1452:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:30,name:"string",nodeType:"ElementaryTypeName",src:"1452:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"1290:191:0"},payable:!1,returnParameters:{id:41,nodeType:"ParameterList",parameters:[],src:"1611:0:0"},scope:479,src:"1279:548:0",stateMutability:"nonpayable",superFunction:null,visibility:"public"},{body:{id:60,nodeType:"Block",src:"1863:2:0",statements:[]},documentation:null,id:61,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:58,nodeType:"ParameterList",parameters:[],src:"1845:2:0"},payable:!0,returnParameters:{id:59,nodeType:"ParameterList",parameters:[],src:"1863:0:0"},scope:479,src:"1837:28:0",stateMutability:"payable",superFunction:2563,visibility:"public"},{body:{id:121,nodeType:"Block",src:"2926:459:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:87,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:83,name:"registryAddresses",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:508,src:"2944:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_address_$",typeString:"mapping(string memory => address)"}},id:85,indexExpression:{argumentTypes:null,id:84,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:63,src:"2962:8:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"2944:27:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,hexValue:"307830",id:86,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"2975:3:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0x0"},src:"2944:34:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:82,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"2936:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:88,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2936:43:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:89,nodeType:"ExpressionStatement",src:"2936:43:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:94,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:91,name:"registryRegistrationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:502,src:"2997:23:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,id:92,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3024:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:93,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"3024:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"2997:36:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:90,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"2989:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:95,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2989:45:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:96,nodeType:"ExpressionStatement",src:"2989:45:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_bool",typeString:"bool"},id:102,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:98,name:"registryNamesIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:494,src:"3133:18:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:100,indexExpression:{argumentTypes:null,id:99,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"3152:5:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3133:25:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"66616c7365",id:101,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"3162:5:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"3133:34:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:97,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3125:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:103,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3125:43:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:104,nodeType:"ExpressionStatement",src:"3125:43:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_bool",typeString:"bool"},id:110,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:106,name:"registrySymbolsIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:498,src:"3186:20:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:108,indexExpression:{argumentTypes:null,id:107,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"3207:7:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3186:29:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"66616c7365",id:109,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"3219:5:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"3186:38:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:105,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3178:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:111,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3178:47:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:112,nodeType:"ExpressionStatement",src:"3178:47:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:114,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:63,src:"3271:8:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},{argumentTypes:null,id:115,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:66,src:"3293:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[] calldata"}},{argumentTypes:null,id:116,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"3321:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[] calldata"}},{argumentTypes:null,id:117,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"3342:5:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},{argumentTypes:null,id:118,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"3361:7:0",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}}],expression:{argumentTypes:[{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"},{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[] calldata"},{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[] calldata"},{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"},{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}],id:113,name:"createRegistry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:478,src:"3243:14:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_string_memory_ptr_$_t_array$_t_address_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_address_$_t_uint256_$",typeString:"function (string memory,address[] memory,uint256[] memory,string memory,string memory) returns (address,uint256)"}},id:119,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3243:135:0",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_uint256_$",typeString:"tuple(address,uint256)"}},functionReturnParameters:81,id:120,nodeType:"Return",src:"3236:142:0"}]},documentation:"@dev Add and tokenize registry with specified parameters.\n@dev Registration fee is required to send with tx.\n@dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry\n@param _version version of registry from which Registry will be boostrapped\n@param _benefitiaries address[] addresses of Chaingear benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _name string, Registry name, use for registry ERC721\n@param _symbol string, Registry NFT symbol, use for registry ERC721\n@return address new Registry contract address\n@return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID",id:122,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:76,modifierName:{argumentTypes:null,id:75,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"2839:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2839:13:0"}],name:"registerRegistry",nodeType:"FunctionDefinition",parameters:{id:74,nodeType:"ParameterList",parameters:[{constant:!1,id:63,name:"_version",nodeType:"VariableDeclaration",scope:122,src:"2669:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:62,name:"string",nodeType:"ElementaryTypeName",src:"2669:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:66,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:122,src:"2694:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_calldata_ptr",typeString:"address[]"},typeName:{baseType:{id:64,name:"address",nodeType:"ElementaryTypeName",src:"2694:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:65,length:null,nodeType:"ArrayTypeName",src:"2694:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:69,name:"_shares",nodeType:"VariableDeclaration",scope:122,src:"2728:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_calldata_ptr",typeString:"uint256[]"},typeName:{baseType:{id:67,name:"uint256",nodeType:"ElementaryTypeName",src:"2728:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:68,length:null,nodeType:"ArrayTypeName",src:"2728:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:71,name:"_name",nodeType:"VariableDeclaration",scope:122,src:"2755:12:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:70,name:"string",nodeType:"ElementaryTypeName",src:"2755:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:73,name:"_symbol",nodeType:"VariableDeclaration",scope:122,src:"2777:14:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:72,name:"string",nodeType:"ElementaryTypeName",src:"2777:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"2659:138:0"},payable:!0,returnParameters:{id:81,nodeType:"ParameterList",parameters:[{constant:!1,id:78,name:"",nodeType:"VariableDeclaration",scope:122,src:"2883:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:77,name:"address",nodeType:"ElementaryTypeName",src:"2883:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:80,name:"",nodeType:"VariableDeclaration",scope:122,src:"2904:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:79,name:"uint256",nodeType:"ElementaryTypeName",src:"2904:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"2869:52:0"},scope:479,src:"2634:751:0",stateMutability:"payable",superFunction:null,visibility:"external"},{body:{id:185,nodeType:"Block",src:"3544:395:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:139,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:135,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3562:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:137,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3579:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:136,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"3571:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:138,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3571:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"3562:19:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:134,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3554:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:140,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3554:28:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:141,nodeType:"ExpressionStatement",src:"3554:28:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:147,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:143,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3600:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:145,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3615:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:144,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"3607:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:146,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3607:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"3600:17:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:142,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3592:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:148,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3592:26:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:149,nodeType:"ExpressionStatement",src:"3592:26:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:151,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3643:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:152,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3650:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:150,name:"clearApproval",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3331,src:"3629:13:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:153,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3629:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:154,nodeType:"ExpressionStatement",src:"3629:30:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:156,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3685:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:157,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3692:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:155,name:"removeTokenFrom",nodeType:"Identifier",overloadedDeclarations:[3719],referencedDeclaration:3719,src:"3669:15:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:158,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3669:32:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:159,nodeType:"ExpressionStatement",src:"3669:32:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:161,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3722:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:162,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3727:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:160,name:"addTokenTo",nodeType:"Identifier",overloadedDeclarations:[3646],referencedDeclaration:3646,src:"3711:10:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:163,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3711:25:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:164,nodeType:"ExpressionStatement",src:"3711:25:0"},{assignments:[166],declarations:[{constant:!1,id:166,name:"registryAddress",nodeType:"VariableDeclaration",scope:186,src:"3755:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:165,name:"address",nodeType:"ElementaryTypeName",src:"3755:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:171,initialValue:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:167,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"3781:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:169,indexExpression:{argumentTypes:null,id:168,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3792:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"3781:20:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:170,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"contractAddress",nodeType:"MemberAccess",referencedDeclaration:673,src:"3781:36:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"3755:62:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:176,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3882:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:173,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:166,src:"3845:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:172,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"3827:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:174,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3827:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:175,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferAdminRights",nodeType:"MemberAccess",referencedDeclaration:946,src:"3827:54:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:177,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3827:59:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:178,nodeType:"ExpressionStatement",src:"3827:59:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:180,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:124,src:"3911:5:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:181,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:126,src:"3918:3:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:182,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3923:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:179,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2760,src:"3902:8:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:183,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3902:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:184,nodeType:"EmitStatement",src:"3897:35:0"}]},documentation:null,id:186,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:131,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:128,src:"3530:8:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:132,modifierName:{argumentTypes:null,id:130,name:"canTransfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2921,src:"3518:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"3518:21:0"}],name:"transferFrom",nodeType:"FunctionDefinition",parameters:{id:129,nodeType:"ParameterList",parameters:[{constant:!1,id:124,name:"_from",nodeType:"VariableDeclaration",scope:186,src:"3426:13:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:123,name:"address",nodeType:"ElementaryTypeName",src:"3426:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:126,name:"_to",nodeType:"VariableDeclaration",scope:186,src:"3449:11:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:125,name:"address",nodeType:"ElementaryTypeName",src:"3449:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:128,name:"_tokenId",nodeType:"VariableDeclaration",scope:186,src:"3470:16:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:127,name:"uint256",nodeType:"ElementaryTypeName",src:"3470:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"3416:76:0"},payable:!1,returnParameters:{id:133,nodeType:"ParameterList",parameters:[],src:"3544:0:0"},scope:479,src:"3395:544:0",stateMutability:"nonpayable",superFunction:3154,visibility:"public"},{body:{id:277,nodeType:"Block",src:"4362:830:0",statements:[{assignments:[197],declarations:[{constant:!1,id:197,name:"registryAddress",nodeType:"VariableDeclaration",scope:278,src:"4380:23:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:196,name:"address",nodeType:"ElementaryTypeName",src:"4380:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:202,initialValue:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:198,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4406:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:200,indexExpression:{argumentTypes:null,id:199,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4417:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4406:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:201,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"contractAddress",nodeType:"MemberAccess",referencedDeclaration:673,src:"4406:39:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"4380:65:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:210,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:205,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"4481:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:204,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"4463:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:206,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4463:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:207,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"getSafeBalance",nodeType:"MemberAccess",referencedDeclaration:914,src:"4463:49:0",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_uint256_$",typeString:"function () view external returns (uint256)"}},id:208,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4463:51:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"30",id:209,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4518:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"4463:56:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:203,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4455:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:211,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4455:65:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:212,nodeType:"ExpressionStatement",src:"4455:65:0"},{assignments:[214],declarations:[{constant:!1,id:214,name:"registryIndex",nodeType:"VariableDeclaration",scope:278,src:"4531:21:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:213,name:"uint256",nodeType:"ElementaryTypeName",src:"4531:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:218,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:215,name:"allTokensIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3485,src:"4555:14:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_uint256_$_t_uint256_$",typeString:"mapping(uint256 => uint256)"}},id:217,indexExpression:{argumentTypes:null,id:216,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4570:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4555:27:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4531:51:0"},{assignments:[220],declarations:[{constant:!1,id:220,name:"lastRegistryIndex",nodeType:"VariableDeclaration",scope:278,src:"4592:25:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:219,name:"uint256",nodeType:"ElementaryTypeName",src:"4592:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:226,initialValue:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"31",id:224,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4642:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"}],expression:{argumentTypes:null,expression:{argumentTypes:null,id:221,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4620:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:222,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4620:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:223,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"4620:21:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:225,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4620:24:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4592:52:0"},{assignments:[228],declarations:[{constant:!1,id:228,name:"lastRegistry",nodeType:"VariableDeclaration",scope:278,src:"4654:33:0",stateVariable:!1,storageLocation:"storage",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"},typeName:{contractScope:null,id:227,name:"RegistryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:686,src:"4654:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"}},value:null,visibility:"internal"}],id:232,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:229,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4690:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:231,indexExpression:{argumentTypes:null,id:230,name:"lastRegistryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:220,src:"4701:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4690:29:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},nodeType:"VariableDeclarationStatement",src:"4654:65:0"},{expression:{argumentTypes:null,id:237,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:233,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4730:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:235,indexExpression:{argumentTypes:null,id:234,name:"registryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:214,src:"4741:13:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4730:25:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:236,name:"lastRegistry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:228,src:"4758:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta storage pointer"}},src:"4730:40:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:238,nodeType:"ExpressionStatement",src:"4730:40:0"},{expression:{argumentTypes:null,id:242,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"delete",prefix:!0,src:"4780:36:0",subExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:239,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4787:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:241,indexExpression:{argumentTypes:null,id:240,name:"lastRegistryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:220,src:"4798:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4787:29:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:243,nodeType:"ExpressionStatement",src:"4780:36:0"},{expression:{argumentTypes:null,id:247,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"--",prefix:!1,src:"4826:19:0",subExpression:{argumentTypes:null,expression:{argumentTypes:null,id:244,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"4826:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:246,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4826:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:248,nodeType:"ExpressionStatement",src:"4826:19:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:250,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4862:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:251,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4862:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:252,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4874:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:249,name:"_burn",nodeType:"Identifier",overloadedDeclarations:[3826],referencedDeclaration:3826,src:"4856:5:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:253,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4856:30:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:254,nodeType:"ExpressionStatement",src:"4856:30:0"},{assignments:[256],declarations:[{constant:!1,id:256,name:"registryName",nodeType:"VariableDeclaration",scope:278,src:"4897:26:0",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:255,name:"string",nodeType:"ElementaryTypeName",src:"4897:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],id:262,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:258,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"4944:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:257,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"4926:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:259,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4926:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:260,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"name",nodeType:"MemberAccess",referencedDeclaration:956,src:"4926:39:0",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_string_memory_ptr_$",typeString:"function () view external returns (string memory)"}},id:261,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4926:41:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},nodeType:"VariableDeclarationStatement",src:"4897:70:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:264,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5003:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:265,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5003:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:266,name:"registryName",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:256,src:"5015:12:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}],id:263,name:"RegistryUnregistered",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:713,src:"4982:20:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_string_memory_ptr_$returns$__$",typeString:"function (address,string memory)"}},id:267,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4982:46:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:268,nodeType:"EmitStatement",src:"4977:51:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:273,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5174:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:274,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5174:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:270,name:"registryAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:197,src:"5139:15:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:269,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"5121:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:271,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5121:34:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:272,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferOwnership",nodeType:"MemberAccess",referencedDeclaration:951,src:"5121:52:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:275,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5121:64:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:276,nodeType:"ExpressionStatement",src:"5121:64:0"}]},documentation:"@dev Allows to unregister Registry from Chaingear\n@dev Only possible when safe of Registry is empty\n@dev Burns associated registry token and transfer Registry adminship to current token owner\n@param _registryID uint256 Registry-token ID",id:278,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:191,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:188,src:"4323:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:192,modifierName:{argumentTypes:null,id:190,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"4311:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4311:24:0"},{arguments:null,id:194,modifierName:{argumentTypes:null,id:193,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"4344:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4344:13:0"}],name:"unregisterRegistry",nodeType:"FunctionDefinition",parameters:{id:189,nodeType:"ParameterList",parameters:[{constant:!1,id:188,name:"_registryID",nodeType:"VariableDeclaration",scope:278,src:"4260:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:187,name:"uint256",nodeType:"ElementaryTypeName",src:"4260:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4250:35:0"},payable:!1,returnParameters:{id:195,nodeType:"ParameterList",parameters:[],src:"4362:0:0"},scope:479,src:"4223:969:0",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:328,nodeType:"Block",src:"5459:371:0",statements:[{expression:{argumentTypes:null,id:297,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:285,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5469:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:287,indexExpression:{argumentTypes:null,id:286,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5480:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5469:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:288,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"5469:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:294,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5575:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:295,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5575:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:289,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5521:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:291,indexExpression:{argumentTypes:null,id:290,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5532:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5521:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:292,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"5521:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:293,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5521:53:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:296,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5521:64:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5469:116:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:298,nodeType:"ExpressionStatement",src:"5469:116:0"},{expression:{argumentTypes:null,id:311,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:299,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5595:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:301,indexExpression:{argumentTypes:null,id:300,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5606:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5595:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:302,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"accumulatedRegistryETH",nodeType:"MemberAccess",referencedDeclaration:685,src:"5595:46:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:308,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5695:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:309,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5695:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:303,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"5644:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:305,indexExpression:{argumentTypes:null,id:304,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5655:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5644:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:306,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedRegistryETH",nodeType:"MemberAccess",referencedDeclaration:685,src:"5644:46:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:307,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5644:50:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:310,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5644:61:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5595:110:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:312,nodeType:"ExpressionStatement",src:"5595:110:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:314,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:280,src:"5736:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:315,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5749:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:316,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5749:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:317,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5761:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:318,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5761:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:313,name:"RegistryFunded",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:524,src:"5721:14:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:319,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5721:50:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:320,nodeType:"EmitStatement",src:"5716:55:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:324,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5813:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:325,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5813:9:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,id:321,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"5790:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:323,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transfer",nodeType:"MemberAccess",referencedDeclaration:null,src:"5790:22:0",typeDescriptions:{typeIdentifier:"t_function_transfer_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:326,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5790:33:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:327,nodeType:"ExpressionStatement",src:"5790:33:0"}]},documentation:"@dev Gets funding and allocate funds of Registry to Chaingear's Safe\n@param _registryID uint256 Registry-token ID",id:329,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:283,modifierName:{argumentTypes:null,id:282,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"5425:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5425:13:0"}],name:"fundRegistry",nodeType:"FunctionDefinition",parameters:{id:281,nodeType:"ParameterList",parameters:[{constant:!1,id:280,name:"_registryID",nodeType:"VariableDeclaration",scope:329,src:"5374:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:279,name:"uint256",nodeType:"ElementaryTypeName",src:"5374:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"5364:35:0"},payable:!0,returnParameters:{id:284,nodeType:"ParameterList",parameters:[],src:"5459:0:0"},scope:479,src:"5343:487:0",stateMutability:"payable",superFunction:null,visibility:"external"},{body:{id:379,nodeType:"Block",src:"6193:345:0",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:347,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:342,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6211:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"<=",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:343,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6222:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:345,indexExpression:{argumentTypes:null,id:344,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6233:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6222:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:346,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6222:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6211:60:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:341,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6203:7:0",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:348,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6203:69:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:349,nodeType:"ExpressionStatement",src:"6203:69:0"},{expression:{argumentTypes:null,id:361,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:350,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6282:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:352,indexExpression:{argumentTypes:null,id:351,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6293:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6282:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:353,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6282:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,id:359,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6388:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:354,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"6334:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:356,indexExpression:{argumentTypes:null,id:355,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6345:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6334:23:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage",typeString:"struct RegistryBase.RegistryMeta storage ref"}},id:357,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentRegistryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:683,src:"6334:49:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:358,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"6334:53:0",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:360,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6334:62:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6282:114:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:362,nodeType:"ExpressionStatement",src:"6282:114:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:364,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6433:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:365,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6446:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:366,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6446:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:367,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6458:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:363,name:"RegistryFundsClaimed",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:532,src:"6412:20:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:368,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6412:54:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:369,nodeType:"EmitStatement",src:"6407:59:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:374,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6511:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:375,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6511:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:376,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:333,src:"6523:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:371,name:"chaingearSafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:504,src:"6490:13:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:370,name:"Safe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1023,src:"6485:4:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Safe_$1023_$",typeString:"type(contract Safe)"}},id:372,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6485:19:0",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},id:373,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"claim",nodeType:"MemberAccess",referencedDeclaration:1022,src:"6485:25:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256) external"}},id:377,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6485:46:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:378,nodeType:"ExpressionStatement",src:"6485:46:0"}]},documentation:"@dev Gets funding and allocate funds of Registry to Safe\n@param _registryID uint256 Registry-token ID\n@param _amount uint256 Amount which admin of registry claims",id:380,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:336,name:"_registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:331,src:"6154:11:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:337,modifierName:{argumentTypes:null,id:335,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"6142:11:0",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"6142:24:0"},{arguments:null,id:339,modifierName:{argumentTypes:null,id:338,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"6175:13:0",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6175:13:0"}],name:"claimEntryFunds",nodeType:"FunctionDefinition",parameters:{id:334,nodeType:"ParameterList",parameters:[{constant:!1,id:331,name:"_registryID",nodeType:"VariableDeclaration",scope:380,src:"6066:19:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:330,name:"uint256",nodeType:"ElementaryTypeName",src:"6066:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:333,name:"_amount",nodeType:"VariableDeclaration",scope:380,src:"6095:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:332,name:"uint256",nodeType:"ElementaryTypeName",src:"6095:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6056:60:0"},payable:!1,returnParameters:{id:340,nodeType:"ParameterList",parameters:[],src:"6193:0:0"},scope:479,src:"6032:506:0",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:477,nodeType:"Block",src:"7472:1095:0",statements:[{assignments:[400],declarations:[{constant:!1,id:400,name:"registryContract",nodeType:"VariableDeclaration",scope:478,src:"7482:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:399,name:"address",nodeType:"ElementaryTypeName",src:"7482:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:412,initialValue:{argumentTypes:null,arguments:[{argumentTypes:null,id:407,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:385,src:"7574:14:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:408,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:388,src:"7602:7:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}},{argumentTypes:null,id:409,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"7623:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:410,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:392,src:"7642:7:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"},{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"},{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,baseExpression:{argumentTypes:null,id:402,name:"registryAddresses",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:508,src:"7525:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_address_$",typeString:"mapping(string memory => address)"}},id:404,indexExpression:{argumentTypes:null,id:403,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7543:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7525:27:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:401,name:"RegistryCreator",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:889,src:"7509:15:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryCreator_$889_$",typeString:"type(contract RegistryCreator)"}},id:405,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7509:44:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryCreator_$889",typeString:"contract RegistryCreator"}},id:406,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"create",nodeType:"MemberAccess",referencedDeclaration:862,src:"7509:51:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_array$_t_address_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_address_$",typeString:"function (address[] memory,uint256[] memory,string memory,string memory) external returns (address)"}},id:411,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7509:150:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"VariableDeclarationStatement",src:"7482:177:0"},{assignments:[414],declarations:[{constant:!1,id:414,name:"registry",nodeType:"VariableDeclaration",scope:478,src:"7678:28:0",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta"},typeName:{contractScope:null,id:413,name:"RegistryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:686,src:"7678:12:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_storage_ptr",typeString:"struct RegistryBase.RegistryMeta"}},value:null,visibility:"internal"}],id:429,initialValue:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,id:416,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"7763:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:417,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"7802:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:418,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"7802:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:419,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7835:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,baseExpression:{argumentTypes:null,id:420,name:"registryABIsLinks",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:512,src:"7866:17:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_string_storage_$",typeString:"mapping(string memory => string storage ref)"}},id:422,indexExpression:{argumentTypes:null,id:421,name:"_version",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:382,src:"7884:8:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7866:27:0",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},{argumentTypes:null,expression:{argumentTypes:null,id:423,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"7930:5:0",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:424,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"7930:15:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,hexValue:"30",id:425,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"7986:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},{argumentTypes:null,hexValue:"30",id:426,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"8025:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:null,id:415,name:"RegistryMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:686,src:"7710:12:0",typeDescriptions:{typeIdentifier:"t_type$_t_struct$_RegistryMeta_$686_storage_ptr_$",typeString:"type(struct RegistryBase.RegistryMeta storage pointer)"}},id:427,isConstant:!1,isLValue:!1,isPure:!1,kind:"structConstructorCall",lValueRequested:!1,names:["contractAddress","creator","version","linkABI","registrationTimestamp","currentRegistryBalanceETH","accumulatedRegistryETH"],nodeType:"FunctionCall",src:"7710:327:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory",typeString:"struct RegistryBase.RegistryMeta memory"}}],id:428,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"7709:329:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory",typeString:"struct RegistryBase.RegistryMeta memory"}},nodeType:"VariableDeclarationStatement",src:"7678:360:0"},{assignments:[431],declarations:[{constant:!1,id:431,name:"registryID",nodeType:"VariableDeclaration",scope:478,src:"8049:18:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:430,name:"uint256",nodeType:"ElementaryTypeName",src:"8049:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:438,initialValue:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:437,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:434,name:"registry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:414,src:"8086:8:0",typeDescriptions:{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_struct$_RegistryMeta_$686_memory_ptr",typeString:"struct RegistryBase.RegistryMeta memory"}],expression:{argumentTypes:null,id:432,name:"registries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:689,src:"8070:10:0",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_RegistryMeta_$686_storage_$dyn_storage",typeString:"struct RegistryBase.RegistryMeta storage ref[] storage ref"}},id:433,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"push",nodeType:"MemberAccess",referencedDeclaration:null,src:"8070:15:0",typeDescriptions:{typeIdentifier:"t_function_arraypush_nonpayable$_t_struct$_RegistryMeta_$686_storage_$returns$_t_uint256_$",typeString:"function (struct RegistryBase.RegistryMeta storage ref) returns (uint256)"}},id:435,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8070:25:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"-",rightExpression:{argumentTypes:null,hexValue:"31",id:436,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"8098:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"},src:"8070:29:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"8049:50:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:440,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8115:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:441,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8115:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:442,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8127:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:439,name:"_mint",nodeType:"Identifier",overloadedDeclarations:[3747],referencedDeclaration:3747,src:"8109:5:0",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:443,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8109:29:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:444,nodeType:"ExpressionStatement",src:"8109:29:0"},{expression:{argumentTypes:null,id:449,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:445,name:"registryNamesIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:494,src:"8157:18:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:447,indexExpression:{argumentTypes:null,id:446,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"8176:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"8157:25:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:448,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"8185:4:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"8157:32:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:450,nodeType:"ExpressionStatement",src:"8157:32:0"},{expression:{argumentTypes:null,id:455,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:451,name:"registrySymbolsIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:498,src:"8199:20:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_string_memory_$_t_bool_$",typeString:"mapping(string memory => bool)"}},id:453,indexExpression:{argumentTypes:null,id:452,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:392,src:"8220:7:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"8199:29:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:454,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"8231:4:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"8199:36:0",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:456,nodeType:"ExpressionStatement",src:"8199:36:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:458,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:390,src:"8278:5:0",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:459,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8285:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:460,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8303:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:461,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8303:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:462,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8315:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:457,name:"RegistryRegistered",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:699,src:"8259:18:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_string_memory_ptr_$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (string memory,address,address,uint256)"}},id:463,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8259:67:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:464,nodeType:"EmitStatement",src:"8254:72:0"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:469,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"8467:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:470,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"8467:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:466,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8429:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:465,name:"RegistryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:962,src:"8411:17:0",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_RegistryInterface_$962_$",typeString:"type(contract RegistryInterface)"}},id:467,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8411:35:0",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:468,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transferAdminRights",nodeType:"MemberAccess",referencedDeclaration:946,src:"8411:55:0",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$returns$__$",typeString:"function (address) external"}},id:471,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8411:67:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:472,nodeType:"ExpressionStatement",src:"8411:67:0"},{expression:{argumentTypes:null,components:[{argumentTypes:null,id:473,name:"registryContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:400,src:"8510:16:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:474,name:"registryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:431,src:"8540:10:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:475,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"8496:64:0",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_uint256_$",typeString:"tuple(address,uint256)"}},functionReturnParameters:398,id:476,nodeType:"Return",src:"8489:71:0"}]},documentation:"@dev Private function for registry creation\n@dev Pass Registry params and bytecode to RegistryCreator to current builder\n@param _version version of registry code which added to chaingear\n@param _benefitiaries address[] addresses of Registry benefitiaries\n@param _shares uint256[] array with amount of shares to benefitiaries\n@param _name string, Registry name, use for registry ERC721\n@param _symbol string, Registry NFT symbol, use for registry ERC721\n@return address new Registry contract address\n@return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID",id:478,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"createRegistry",nodeType:"FunctionDefinition",parameters:{id:393,nodeType:"ParameterList",parameters:[{constant:!1,id:382,name:"_version",nodeType:"VariableDeclaration",scope:478,src:"7254:15:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:381,name:"string",nodeType:"ElementaryTypeName",src:"7254:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:385,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:478,src:"7279:24:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:383,name:"address",nodeType:"ElementaryTypeName",src:"7279:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:384,length:null,nodeType:"ArrayTypeName",src:"7279:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:388,name:"_shares",nodeType:"VariableDeclaration",scope:478,src:"7313:17:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:386,name:"uint256",nodeType:"ElementaryTypeName",src:"7313:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:387,length:null,nodeType:"ArrayTypeName",src:"7313:9:0",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:390,name:"_name",nodeType:"VariableDeclaration",scope:478,src:"7340:12:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:389,name:"string",nodeType:"ElementaryTypeName",src:"7340:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:392,name:"_symbol",nodeType:"VariableDeclaration",scope:478,src:"7362:14:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:391,name:"string",nodeType:"ElementaryTypeName",src:"7362:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"7244:138:0"},payable:!1,returnParameters:{id:398,nodeType:"ParameterList",parameters:[{constant:!1,id:395,name:"",nodeType:"VariableDeclaration",scope:478,src:"7429:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:394,name:"address",nodeType:"ElementaryTypeName",src:"7429:7:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:397,name:"",nodeType:"VariableDeclaration",scope:478,src:"7450:7:0",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:396,name:"uint256",nodeType:"ElementaryTypeName",src:"7450:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7415:52:0"},scope:479,src:"7221:1346:0",stateMutability:"nonpayable",superFunction:null,visibility:"private"}],scope:480,src:"670:7904:0"}],src:"0:8575:0"},compiler:{name:"solc",version:"0.4.24+commit.e67f0147.Emscripten.clang"},networks:{42:{events:{},links:{},address:"0xa04f4761a014b3fac8e69b4de6e9ba214646ec10",transactionHash:"0xbfb0e13de172ee28d57242aa09ab10541b381dfc7a635c083b71c0be18f3b7e2"},5777:{events:{},links:{},address:"0x36b1fb1086bc0d6f289ac243990485889185b73b",transactionHash:"0xa3337047ab48928c6593da63688d34b25107fde73149fc1f81e289086fcfcc75"}},schemaVersion:"2.0.1",updatedAt:"2018-09-17T15:22:16.553Z"}},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.map(function(e){return e.type+" "+e.name+";"}).join("\n"),r=t.map(function(e){return e.type+" _"+e.name}).join(", ");return"\n\nimport 'EntryInterface.sol';\n\ncontract "+e+" is EntryInterface, Ownable {\n\n\n struct "+e+"Entry {\n "+n+"\n\n }\n\n "+e+"Entry[] public entries;\n\n\n function createEntry()\n public\n onlyOwner\n returns (\n uint256\n )\n {\n "+e+"Entry memory entry = ("+e+"Entry(\n {\n\n "+t.map(function(e){return e.name+": "+function(e){return"address"===e?"address(0)":"uint256"===e?"uint256(0)":"int256"===e?"int256(0)":"bool"===e?"true":"uint"===e?"uint(0)":"int"===e?"int(0)":'""'}(e.type)+" "}).join(",")+" \n }));\n\n uint256 newEntryID = entries.push(entry) - 1;\n\n return newEntryID;\n }\n\n\n function updateEntry(\n uint256 _entryID, \n "+r+'\n )\n public\n {\n bool status = owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender);\n require(status == true);\n \n '+t.map(function(e){return"entries[_entryID]."+e.name+"= _"+e.name+";"}).join("\n")+'\n \n require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID));\n }\n\n\n function deleteEntry(\n uint256 _entryIndex\n )\n public\n onlyOwner\n {\n uint256 lastEntryIndex = entries.length - 1;\n '+e+"Entry storage lastEntry = entries[lastEntryIndex];\n\n entries[_entryIndex] = lastEntry;\n delete entries[lastEntryIndex];\n entries.length--;\n }\n\n\n function entriesAmount()\n public\n view\n returns (\n uint256 entryID\n )\n {\n return entries.length;\n }\n\n "+t.map(function(e){return function(e,t){return"\n\n function "+e+"Of(uint256 _entryId)\n public\n view\n returns ("+t+")\n {\n return entries[_entryId]."+e+";\n }\n \n "}(e.name,e.type)}).join(" \n ")+"\n\n\n function entryInfo(uint256 _entryId)\n public\n view\n returns ("+t.map(function(e){return e.name,e.type}).join(", ")+")\n {\n return (\n "+t.map(function(e){var t=e.name;return e.type,t+"Of(_entryId)"}).join(",\n")+"\n );\n }\n\n}\n\n"}},function(e,t,n){var r=n(930);"undefined"!=typeof window&&void 0===window.Web3&&(window.Web3=r),e.exports=r},function(e,t,n){var r=n(931),i=n(177),a=n(956),f=n(975),s=n(976),o=n(977),l=n(978),c=n(979),u=n(980),d=n(981),p=n(28),m=n(136),y=n(982),g=n(983),h=n(116),_=n(984),b=n(987),v=n(135);function T(e){this._requestManager=new r(e),this.currentProvider=e,this.eth=new a(this),this.db=new f(this),this.shh=new s(this),this.net=new o(this),this.personal=new l(this),this.bzz=new c(this),this.settings=new u,this.version={api:d.version},this.providers={HttpProvider:_,IpcProvider:b},this._extend=y(this),this._extend({properties:I()})}T.providers={HttpProvider:_,IpcProvider:b},T.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},T.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new u},T.prototype.BigNumber=v,T.prototype.toHex=p.toHex,T.prototype.toAscii=p.toAscii,T.prototype.toUtf8=p.toUtf8,T.prototype.fromAscii=p.fromAscii,T.prototype.fromUtf8=p.fromUtf8,T.prototype.toDecimal=p.toDecimal,T.prototype.fromDecimal=p.fromDecimal,T.prototype.toBigNumber=p.toBigNumber,T.prototype.toWei=p.toWei,T.prototype.fromWei=p.fromWei,T.prototype.isAddress=p.isAddress,T.prototype.isChecksumAddress=p.isChecksumAddress,T.prototype.toChecksumAddress=p.toChecksumAddress,T.prototype.isIBAN=p.isIBAN,T.prototype.padLeft=p.padLeft,T.prototype.padRight=p.padRight,T.prototype.sha3=function(e,t){return"0x"+m(e,t)},T.prototype.fromICAP=function(e){return new i(e).address()};var I=function(){return[new h({name:"version.node",getter:"web3_clientVersion"}),new h({name:"version.network",getter:"net_version",inputFormatter:p.toDecimal}),new h({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:p.toDecimal}),new h({name:"version.whisper",getter:"shh_version",inputFormatter:p.toDecimal})]};T.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},T.prototype.createBatch=function(){return new g(this)},e.exports=T},function(e,t,n){var r=n(372),i=n(28),a=n(176),f=n(115),s=function(e){this.provider=e,this.polls={},this.timeout=null};s.prototype.send=function(e){if(!this.provider)return console.error(f.InvalidProvider()),null;var t=r.toPayload(e.method,e.params),n=this.provider.send(t);if(!r.isValidResponse(n))throw f.InvalidResponse(n);return n.result},s.prototype.sendAsync=function(e,t){if(!this.provider)return t(f.InvalidProvider());var n=r.toPayload(e.method,e.params);this.provider.sendAsync(n,function(e,n){return e?t(e):r.isValidResponse(n)?void t(null,n.result):t(f.InvalidResponse(n))})},s.prototype.sendBatch=function(e,t){if(!this.provider)return t(f.InvalidProvider());var n=r.toBatchPayload(e);this.provider.sendAsync(n,function(e,n){return e?t(e):i.isArray(n)?void t(e,n):t(f.InvalidResponse(n))})},s.prototype.setProvider=function(e){this.provider=e},s.prototype.startPolling=function(e,t,n,r){this.polls[t]={data:e,id:t,callback:n,uninstall:r},this.timeout||this.poll()},s.prototype.stopPolling=function(e){delete this.polls[e],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.reset=function(e){for(var t in this.polls)e&&-1!==t.indexOf("syncPoll_")||(this.polls[t].uninstall(),delete this.polls[t]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),a.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length)if(this.provider){var e=[],t=[];for(var n in this.polls)e.push(this.polls[n].data),t.push(n);if(0!==e.length){var s=r.toBatchPayload(e),o={};s.forEach(function(e,n){o[e.id]=t[n]});var l=this;this.provider.sendAsync(s,function(e,t){if(!e){if(!i.isArray(t))throw f.InvalidResponse(t);t.map(function(e){var t=o[e.id];return!!l.polls[t]&&(e.callback=l.polls[t].callback,e)}).filter(function(e){return!!e}).filter(function(e){var t=r.isValidResponse(e);return t||e.callback(f.InvalidResponse(e)),t}).forEach(function(e){e.callback(null,e.result)})}})}}else console.error(f.InvalidProvider())},e.exports=s},function(e,t,n){var r;r=function(e){return e},e.exports=r(n(10),n(175),n(933),n(934),n(112),n(113),n(254),n(373),n(935),n(374),n(936),n(375),n(937),n(255),n(938),n(114),n(29),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954))},function(e,t,n){var r;r=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}};function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(f))}return r.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>1]|=i(e.charCodeAt(a)<<16-a%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){var t,n,r,i,a;return n=(t=e).lib.WordArray,r=t.algo,i=r.SHA256,a=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a),e.SHA224},e.exports=r(n(10),n(373))},function(e,t,n){var r;r=function(e){var t,n,r,i,a,f,s;return n=(t=e).x64,r=n.Word,i=n.WordArray,a=t.algo,f=a.SHA512,s=a.SHA384=f.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=f._doFinalize.call(this);return e.sigBytes-=16,e}}),t.SHA384=f._createHelper(s),t.HmacSHA384=f._createHmacHelper(s),e.SHA384},e.exports=r(n(10),n(175),n(374))},function(e,t,n){var r;r=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,f=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=f.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,f,p,v,T,I,S,M,E,D,C,w=this._hash.words,x=u.words,A=d.words,L=s.words,k=o.words,N=l.words,R=c.words;I=a=w[0],S=f=w[1],M=p=w[2],E=v=w[3],D=T=w[4];for(n=0;n<80;n+=1)C=a+e[t+L[n]]|0,C+=n<16?m(f,p,v)+x[0]:n<32?y(f,p,v)+x[1]:n<48?g(f,p,v)+x[2]:n<64?h(f,p,v)+x[3]:_(f,p,v)+x[4],C=(C=b(C|=0,N[n]))+T|0,a=T,T=v,v=b(p,10),p=f,f=C,C=I+e[t+k[n]]|0,C+=n<16?_(S,M,E)+A[0]:n<32?h(S,M,E)+A[1]:n<48?g(S,M,E)+A[2]:n<64?y(S,M,E)+A[3]:m(S,M,E)+A[4],C=(C=b(C|=0,R[n]))+D|0,I=D,D=E,E=b(M,10),M=S,S=C;C=w[1]+p+E|0,w[1]=w[2]+v+D|0,w[2]=w[3]+T+I|0,w[3]=w[4]+a+S|0,w[4]=w[0]+f+M|0,w[0]=C},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,a=i.words,f=0;f<5;f++){var s=a[f];a[f]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function y(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function h(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function b(e,t){return e<>>32-t}n.RIPEMD160=a._createHelper(p),n.HmacRIPEMD160=a._createHmacHelper(p)}(Math),e.RIPEMD160},e.exports=r(n(10))},function(e,t,n){var r;r=function(e){var t,n,r,i,a,f,s,o;return n=(t=e).lib,r=n.Base,i=n.WordArray,a=t.algo,f=a.SHA1,s=a.HMAC,o=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),f=i.create([1]),o=a.words,l=f.words,c=n.keySize,u=n.iterations;o.length>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=this._iv,f=this._counter;a&&(f=this._counter=a.slice(0),this._iv=void 0),function(e){0===(e[0]=n(e[0]))&&(e[1]=n(e[1]))}(f);var s=f.slice(0);r.encryptBlock(s,0);for(var o=0;o>>2]|=i<<24-a%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){var t,n,r;return n=(t=e).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}},e.format.Hex},e.exports=r(n(10),n(29))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],a=[],f=[],s=[],o=[],l=[],c=[],u=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var m=r^r<<1^r<<2^r<<3^r<<4;m=m>>>8^255&m^99,i[n]=m,a[m]=n;var y=e[n],g=e[y],h=e[g],_=257*e[m]^16843008*m;f[n]=_<<24|_>>>8,s[n]=_<<16|_>>>16,o[n]=_<<8|_>>>24,l[n]=_;_=16843009*h^65537*g^257*y^16843008*n;c[m]=_<<24|_>>>8,u[m]=_<<16|_>>>16,d[m]=_<<8|_>>>24,p[m]=_,n?(n=y^e[e[e[h^y]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],f=0;f6&&f%n==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=m[f/n|0]<<24),a[f]=a[f-n]^s}for(var o=this._invKeySchedule=[],l=0;l>>24]]^u[i[s>>>16&255]]^d[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,f,s,o,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,u,d,p,a);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,f,s){for(var o=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],u=e[t+2]^n[2],d=e[t+3]^n[3],p=4,m=1;m>>24]^i[c>>>16&255]^a[u>>>8&255]^f[255&d]^n[p++],g=r[c>>>24]^i[u>>>16&255]^a[d>>>8&255]^f[255&l]^n[p++],h=r[u>>>24]^i[d>>>16&255]^a[l>>>8&255]^f[255&c]^n[p++],_=r[d>>>24]^i[l>>>16&255]^a[c>>>8&255]^f[255&u]^n[p++];l=y,c=g,u=h,d=_}y=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],h=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[p++],_=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++];e[t]=y,e[t+1]=g,e[t+2]=h,e[t+3]=_},keySize:8});t.AES=n._createHelper(y)}(),e.AES},e.exports=r(n(10),n(112),n(113),n(114),n(29))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,a=t.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=a.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=f[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],c=o[a];for(n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+c)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,f=this._rBlock,s=0,o=0;o<8;o++)s|=l[o][((f^i[o])&c[o])>>>0];this._lBlock=f,this._rBlock=a^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<>>2]>>>24-f%4*8&255;a=(a+r[i]+s)%256;var o=r[i];r[i]=r[a],r[a]=o}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var f=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(f)}(),e.RC4},e.exports=r(n(10),n(112),n(113),n(114),n(29))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=[],i=[],a=[],f=t.algo.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)s.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,f=a[0],o=a[1],l=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=l>>>16|4294901760&c,d=c<<16|65535&l;i[0]^=l,i[1]^=u,i[2]^=c,i[3]^=d,i[4]^=l,i[5]^=u,i[6]^=c,i[7]^=d;for(n=0;n<4;n++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],f=65535&r,s=r>>>16,o=((f*f>>>17)+f*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=o^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(f)}(),e.Rabbit},e.exports=r(n(10),n(112),n(113),n(114),n(29))},function(e,t,n){var r;r=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=[],i=[],a=[],f=t.algo.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,f=a[0],o=a[1],l=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=l>>>16|4294901760&c,d=c<<16|65535&l;r[0]^=l,r[1]^=u,r[2]^=c,r[3]^=d,r[4]^=l,r[5]^=u,r[6]^=c,r[7]^=d;for(i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],f=65535&r,s=r>>>16,o=((f*f>>>17)+f*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=o^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(f)}(),e.RabbitLegacy},e.exports=r(n(10),n(112),n(113),n(114),n(29))},function(e,t,n){(function(e,r){var i;!function(a){var f="object"==typeof t&&t,s=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var o,l,c,u=String.fromCharCode;function d(e){for(var t,n,r=[],i=0,a=e.length;i=55296&&t<=56319&&i=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function m(e,t){return u(e>>t&63|128)}function y(e){if(0==(4294967168&e))return u(e);var t="";return 0==(4294965248&e)?t=u(e>>6&31|192):0==(4294901760&e)?(p(e),t=u(e>>12&15|224),t+=m(e,6)):0==(4292870144&e)&&(t=u(e>>18&7|240),t+=m(e,12),t+=m(e,6)),t+=u(63&e|128)}function g(){if(c>=l)throw Error("Invalid byte index");var e=255&o[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function h(){var e,t;if(c>l)throw Error("Invalid byte index");if(c==l)return!1;if(e=255&o[c],c++,0==(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|g())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|g()<<6|g())>=2048)return p(t),t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(7&e)<<18|g()<<12|g()<<6|g())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}var _={version:"2.1.2",encode:function(e){for(var t=d(e),n=t.length,r=-1,i="";++r65535&&(i+=u((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=u(t);return i}(n)}};void 0===(i=function(){return _}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n(62)(e),n(20))},function(e,t,n){"use strict";var r=n(77),i=n(28),a=n(90),f=n(116),s=n(176),o=n(957),l=n(179),c=n(178),u=n(969),d=n(970),p=n(177),m=n(973),y=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},g=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},h=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},_=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},b=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};function v(e){this._requestManager=e._requestManager;var t=this;T().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),I().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.iban=p,this.sendIBANTransaction=m.bind(null,this)}Object.defineProperty(v.prototype,"defaultBlock",{get:function(){return s.defaultBlock},set:function(e){return s.defaultBlock=e,e}}),Object.defineProperty(v.prototype,"defaultAccount",{get:function(){return s.defaultAccount},set:function(e){return s.defaultAccount=e,e}});var T=function(){var e=new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[r.inputAddressFormatter,r.inputDefaultBlockNumberFormatter],outputFormatter:r.outputBigNumberFormatter}),t=new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,i.toHex,r.inputDefaultBlockNumberFormatter]}),n=new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[r.inputAddressFormatter,r.inputDefaultBlockNumberFormatter]}),f=new a({name:"getBlock",call:y,params:2,inputFormatter:[r.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:r.outputBlockFormatter}),s=new a({name:"getUncle",call:h,params:2,inputFormatter:[r.inputBlockNumberFormatter,i.toHex],outputFormatter:r.outputBlockFormatter}),o=new a({name:"getCompilers",call:"eth_getCompilers",params:0}),l=new a({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[r.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),c=new a({name:"getBlockUncleCount",call:b,params:1,inputFormatter:[r.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),u=new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:r.outputTransactionFormatter}),d=new a({name:"getTransactionFromBlock",call:g,params:2,inputFormatter:[r.inputBlockNumberFormatter,i.toHex],outputFormatter:r.outputTransactionFormatter}),p=new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:r.outputTransactionReceiptFormatter}),m=new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,r.inputDefaultBlockNumberFormatter],outputFormatter:i.toDecimal}),v=new a({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),T=new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[r.inputTransactionFormatter]}),I=new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[r.inputTransactionFormatter]}),S=new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[r.inputAddressFormatter,null]});return[e,t,n,f,s,o,l,c,u,d,p,m,new a({name:"call",call:"eth_call",params:2,inputFormatter:[r.inputCallFormatter,r.inputDefaultBlockNumberFormatter]}),new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[r.inputCallFormatter],outputFormatter:i.toDecimal}),v,I,T,S,new a({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new a({name:"compile.lll",call:"eth_compileLLL",params:1}),new a({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new a({name:"submitWork",call:"eth_submitWork",params:3}),new a({name:"getWork",call:"eth_getWork",params:0})]},I=function(){return[new f({name:"coinbase",getter:"eth_coinbase"}),new f({name:"mining",getter:"eth_mining"}),new f({name:"hashrate",getter:"eth_hashrate",outputFormatter:i.toDecimal}),new f({name:"syncing",getter:"eth_syncing",outputFormatter:r.outputSyncingFormatter}),new f({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:r.outputBigNumberFormatter}),new f({name:"accounts",getter:"eth_accounts"}),new f({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:i.toDecimal}),new f({name:"protocolVersion",getter:"eth_protocolVersion"})]};v.prototype.contract=function(e){return new o(this,e)},v.prototype.filter=function(e,t,n){return new c(e,"eth",this._requestManager,l.eth(),r.outputLogFormatter,t,n)},v.prototype.namereg=function(){return this.contract(d.global.abi).at(d.global.address)},v.prototype.icapNamereg=function(){return this.contract(d.icap.abi).at(d.icap.address)},v.prototype.isSyncing=function(e){return new u(this._requestManager,e)},e.exports=v},function(e,t,n){var r=n(28),i=n(256),a=n(377),f=n(967),s=n(968),o=function(e,t){return e.filter(function(e){return"constructor"===e.type&&e.inputs.length===t.length}).map(function(e){return e.inputs.map(function(e){return e.type})}).map(function(e){return i.encodeParams(e,t)})[0]||""},l=function(e){e.abi.filter(function(e){return"function"===e.type}).map(function(t){return new f(e._eth,t,e.address)}).forEach(function(t){t.attachToContract(e)})},c=function(e){var t=e.abi.filter(function(e){return"event"===e.type});new s(e._eth._requestManager,t,e.address).attachToContract(e),t.map(function(t){return new a(e._eth._requestManager,t,e.address)}).forEach(function(t){t.attachToContract(e)})},u=function(e,t){var n=0,r=!1,i=e._eth.filter("latest",function(a){if(!a&&!r)if(++n>50){if(i.stopWatching(function(){}),r=!0,!t)throw new Error("Contract transaction couldn't be found after 50 blocks");t(new Error("Contract transaction couldn't be found after 50 blocks"))}else e._eth.getTransactionReceipt(e.transactionHash,function(n,a){a&&!r&&e._eth.getCode(a.contractAddress,function(n,f){if(!r&&f)if(i.stopWatching(function(){}),r=!0,f.length>3)e.address=a.contractAddress,l(e),c(e),t&&t(null,e);else{if(!t)throw new Error("The contract code couldn't be stored, please check your gas amount.");t(new Error("The contract code couldn't be stored, please check your gas amount."))}})})})},d=function(e,t){this.eth=e,this.abi=t,this.new=function(){var e,n=new p(this.eth,this.abi),i={},a=Array.prototype.slice.call(arguments);r.isFunction(a[a.length-1])&&(e=a.pop());var f=a[a.length-1];if((r.isObject(f)&&!r.isArray(f)&&(i=a.pop()),i.value>0)&&!(t.filter(function(e){return"constructor"===e.type&&e.inputs.length===a.length})[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");var s=o(this.abi,a);if(i.data+=s,e)this.eth.sendTransaction(i,function(t,r){t?e(t):(n.transactionHash=r,e(null,n),u(n,e))});else{var l=this.eth.sendTransaction(i);n.transactionHash=l,u(n)}return n},this.new.getData=this.getData.bind(this)};d.prototype.at=function(e,t){var n=new p(this.eth,this.abi,e);return l(n),c(n),t&&t(null,n),n},d.prototype.getData=function(){var e={},t=Array.prototype.slice.call(arguments),n=t[t.length-1];r.isObject(n)&&!r.isArray(n)&&(e=t.pop());var i=o(this.abi,t);return e.data+=i,e.data};var p=function(e,t,n){this._eth=e,this.transactionHash=null,this.address=n,this.abi=t};e.exports=d},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputAddress};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/address(\[([0-9]*)\])?/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputBool,this._outputFormatter=r.formatOutputBool};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^bool(\[([0-9]*)\])*$/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputInt};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputUInt};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputDynamicBytes,this._outputFormatter=r.formatOutputDynamicBytes};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^bytes(\[([0-9]*)\])*$/)},a.prototype.isDynamicType=function(){return!0},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputString,this._outputFormatter=r.formatOutputString};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^string(\[([0-9]*)\])*$/)},a.prototype.isDynamicType=function(){return!0},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputReal,this._outputFormatter=r.formatOutputReal};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/real([0-9]*)?(\[([0-9]*)\])?/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputReal,this._outputFormatter=r.formatOutputUReal};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=a},function(e,t,n){var r=n(49),i=n(68),a=function(){this._inputFormatter=r.formatInputBytes,this._outputFormatter=r.formatOutputBytes};(a.prototype=new i({})).constructor=a,a.prototype.isType=function(e){return!!e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},e.exports=a},function(e,t,n){var r=n(256),i=n(28),a=n(115),f=n(77),s=n(136),o=function(e,t,n){this._eth=e,this._inputTypes=t.inputs.map(function(e){return e.type}),this._outputTypes=t.outputs.map(function(e){return e.type}),this._constant=t.constant,this._payable=t.payable,this._name=i.transformToFullName(t),this._address=n};o.prototype.extractCallback=function(e){if(i.isFunction(e[e.length-1]))return e.pop()},o.prototype.extractDefaultBlock=function(e){if(e.length>this._inputTypes.length&&!i.isObject(e[e.length-1]))return f.inputDefaultBlockNumberFormatter(e.pop())},o.prototype.validateArgs=function(e){if(e.filter(function(e){return!(!0===i.isObject(e)&&!1===i.isArray(e)&&!1===i.isBigNumber(e))}).length!==this._inputTypes.length)throw a.InvalidNumberOfSolidityArgs()},o.prototype.toPayload=function(e){var t={};return e.length>this._inputTypes.length&&i.isObject(e[e.length-1])&&(t=e[e.length-1]),this.validateArgs(e),t.to=this._address,t.data="0x"+this.signature()+r.encodeParams(this._inputTypes,e),t},o.prototype.signature=function(){return s(this._name).slice(0,8)},o.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var t=r.decodeParams(this._outputTypes,e);return 1===t.length?t[0]:t}},o.prototype.call=function(){var e=Array.prototype.slice.call(arguments).filter(function(e){return void 0!==e}),t=this.extractCallback(e),n=this.extractDefaultBlock(e),r=this.toPayload(e);if(!t){var i=this._eth.call(r,n);return this.unpackOutput(i)}var a=this;this._eth.call(r,n,function(e,n){if(e)return t(e,null);var r=null;try{r=a.unpackOutput(n)}catch(t){e=t}t(e,r)})},o.prototype.sendTransaction=function(){var e=Array.prototype.slice.call(arguments).filter(function(e){return void 0!==e}),t=this.extractCallback(e),n=this.toPayload(e);if(n.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!t)return this._eth.sendTransaction(n);this._eth.sendTransaction(n,t)},o.prototype.estimateGas=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),n=this.toPayload(e);if(!t)return this._eth.estimateGas(n);this._eth.estimateGas(n,t)},o.prototype.getData=function(){var e=Array.prototype.slice.call(arguments);return this.toPayload(e).data},o.prototype.displayName=function(){return i.extractDisplayName(this._name)},o.prototype.typeName=function(){return i.extractTypeName(this._name)},o.prototype.request=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),n=this.toPayload(e),r=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:t,params:[n],format:r}},o.prototype.execute=function(){return!this._constant?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},o.prototype.attachToContract=function(e){var t=this.execute.bind(this);t.request=this.request.bind(this),t.call=this.call.bind(this),t.sendTransaction=this.sendTransaction.bind(this),t.estimateGas=this.estimateGas.bind(this),t.getData=this.getData.bind(this);var n=this.displayName();e[n]||(e[n]=t),e[n][this.typeName()]=t},e.exports=o},function(e,t,n){var r=n(136),i=n(377),a=n(77),f=n(28),s=n(178),o=n(179),l=function(e,t,n){this._requestManager=e,this._json=t,this._address=n};l.prototype.encode=function(e){e=e||{};var t={};return["fromBlock","toBlock"].filter(function(t){return void 0!==e[t]}).forEach(function(n){t[n]=a.inputBlockNumberFormatter(e[n])}),t.address=this._address,t},l.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=e.topics[0].slice(2),n=this._json.filter(function(e){return t===r(f.transformToFullName(e))})[0];return n?new i(this._requestManager,n,this._address).decode(e):(console.warn("cannot find event for log"),e)},l.prototype.execute=function(e,t){f.isFunction(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],1===arguments.length&&(e=null));var n=this.encode(e),r=this.decode.bind(this);return new s(n,"eth",this._requestManager,o.eth(),r,t)},l.prototype.attachToContract=function(e){var t=this.execute.bind(this);e.allEvents=t},e.exports=l},function(e,t,n){var r=n(77),i=n(28),a=1,f=function(e,t){var n;return this.requestManager=e,this.pollId="syncPoll_"+a++,this.callbacks=[],this.addCallback(t),this.lastSyncState=!1,(n=this).requestManager.startPolling({method:"eth_syncing",params:[]},n.pollId,function(e,t){if(e)return n.callbacks.forEach(function(t){t(e)});i.isObject(t)&&t.startingBlock&&(t=r.outputSyncingFormatter(t)),n.callbacks.forEach(function(e){n.lastSyncState!==t&&(!n.lastSyncState&&i.isObject(t)&&e(null,!0),setTimeout(function(){e(null,t)},0),n.lastSyncState=t)})},n.stopWatching.bind(n)),this};f.prototype.addCallback=function(e){return e&&this.callbacks.push(e),this},f.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},e.exports=f},function(e,t,n){var r=n(971),i=n(972);e.exports={global:{abi:r,address:"0xc6d9d2cd449a754c494264e1809c50e34d64562b"},icap:{abi:i,address:"0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00"}}},function(e,t){e.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},function(e,t){e.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},function(e,t,n){var r=n(177),i=n(974),a=function(e,t,n,r,i){return e.sendTransaction({address:n,from:t,value:r},i)},f=function(e,t,n,r,a,f){var s=i;return e.contract(s).at(n).deposit(a,{from:t,value:r},f)};e.exports=function(e,t,n,i,s){var o=new r(n);if(!o.isValid())throw new Error("invalid iban address");if(o.isDirect())return a(e,t,o.address(),i,s);if(!s){var l=e.icapNamereg().addr(o.institution());return f(e,t,l,i,o.client())}e.icapNamereg().addr(o.institution(),function(n,r){return f(e,t,r,i,o.client(),s)})}},function(e,t){e.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],payable:!0,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}]},function(e,t,n){var r=n(90),i=function(){return[new r({name:"putString",call:"db_putString",params:3}),new r({name:"getString",call:"db_getString",params:2}),new r({name:"putHex",call:"db_putHex",params:3}),new r({name:"getHex",call:"db_getHex",params:2})]};e.exports=function(e){this._requestManager=e._requestManager;var t=this;i().forEach(function(n){n.attachToObject(t),n.setRequestManager(e._requestManager)})}},function(e,t,n){var r=n(90),i=n(178),a=n(179),f=function(e){this._requestManager=e._requestManager;var t=this;s().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};f.prototype.newMessageFilter=function(e,t,n){return new i(e,"shh",this._requestManager,a.shh(),null,t,n)};var s=function(){return[new r({name:"version",call:"shh_version",params:0}),new r({name:"info",call:"shh_info",params:0}),new r({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new r({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new r({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new r({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new r({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new r({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new r({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new r({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new r({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new r({name:"newSymKey",call:"shh_newSymKey",params:0}),new r({name:"addSymKey",call:"shh_addSymKey",params:1}),new r({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new r({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new r({name:"getSymKey",call:"shh_getSymKey",params:1}),new r({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new r({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};e.exports=f},function(e,t,n){var r=n(28),i=n(116),a=function(){return[new i({name:"listening",getter:"net_listening"}),new i({name:"peerCount",getter:"net_peerCount",outputFormatter:r.toDecimal})]};e.exports=function(e){this._requestManager=e._requestManager;var t=this;a().forEach(function(n){n.attachToObject(t),n.setRequestManager(e._requestManager)})}},function(e,t,n){"use strict";var r=n(90),i=n(116),a=n(77);var f=function(){var e=new r({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),t=new r({name:"importRawKey",call:"personal_importRawKey",params:2}),n=new r({name:"sign",call:"personal_sign",params:3,inputFormatter:[null,a.inputAddressFormatter,null]}),i=new r({name:"ecRecover",call:"personal_ecRecover",params:2});return[e,t,new r({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),i,n,new r({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new r({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]})]},s=function(){return[new i({name:"listAccounts",getter:"personal_listAccounts"})]};e.exports=function(e){this._requestManager=e._requestManager;var t=this;f().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),s().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})}},function(e,t,n){"use strict";var r=n(90),i=n(116);var a=function(){return[new r({name:"blockNetworkRead",call:"bzz_blockNetworkRead",params:1,inputFormatter:[null]}),new r({name:"syncEnabled",call:"bzz_syncEnabled",params:1,inputFormatter:[null]}),new r({name:"swapEnabled",call:"bzz_swapEnabled",params:1,inputFormatter:[null]}),new r({name:"download",call:"bzz_download",params:2,inputFormatter:[null,null]}),new r({name:"upload",call:"bzz_upload",params:2,inputFormatter:[null,null]}),new r({name:"retrieve",call:"bzz_retrieve",params:1,inputFormatter:[null]}),new r({name:"store",call:"bzz_store",params:2,inputFormatter:[null,null]}),new r({name:"get",call:"bzz_get",params:1,inputFormatter:[null]}),new r({name:"put",call:"bzz_put",params:2,inputFormatter:[null,null]}),new r({name:"modify",call:"bzz_modify",params:4,inputFormatter:[null,null,null,null]})]},f=function(){return[new i({name:"hive",getter:"bzz_hive"}),new i({name:"info",getter:"bzz_info"})]};e.exports=function(e){this._requestManager=e._requestManager;var t=this;a().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),f().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})}},function(e,t){e.exports=function(){this.defaultBlock="latest",this.defaultAccount=void 0}},function(e,t){e.exports={version:"0.20.3"}},function(e,t,n){var r=n(77),i=n(28),a=n(90),f=n(116);e.exports=function(e){var t=function(t){var n;t.property?(e[t.property]||(e[t.property]={}),n=e[t.property]):n=e,t.methods&&t.methods.forEach(function(t){t.attachToObject(n),t.setRequestManager(e._requestManager)}),t.properties&&t.properties.forEach(function(t){t.attachToObject(n),t.setRequestManager(e._requestManager)})};return t.formatters=r,t.utils=i,t.Method=a,t.Property=f,t}},function(e,t,n){var r=n(372),i=n(115),a=function(e){this.requestManager=e._requestManager,this.requests=[]};a.prototype.add=function(e){this.requests.push(e)},a.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,function(t,n){n=n||[],e.map(function(e,t){return n[t]||{}}).forEach(function(t,n){if(e[n].callback){if(!r.isValidResponse(t))return e[n].callback(i.InvalidResponse(t));e[n].callback(null,e[n].format?e[n].format(t.result):t.result)}})})},e.exports=a},function(e,t,n){(function(t){var r=n(115);"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=n(985).XMLHttpRequest;var i=n(986),a=function(e,t,n,r,i){this.host=e||"http://localhost:8545",this.timeout=t||0,this.user=n,this.password=r,this.headers=i};a.prototype.prepareRequest=function(e){var n;if(e?(n=new i).timeout=this.timeout:n=new XMLHttpRequest,n.open("POST",this.host,e),this.user&&this.password){var r="Basic "+new t(this.user+":"+this.password).toString("base64");n.setRequestHeader("Authorization",r)}return n.setRequestHeader("Content-Type","application/json"),this.headers&&this.headers.forEach(function(e){n.setRequestHeader(e.name,e.value)}),n},a.prototype.send=function(e){var t=this.prepareRequest(!1);try{t.send(JSON.stringify(e))}catch(e){throw r.InvalidConnection(this.host)}var n=t.responseText;try{n=JSON.parse(n)}catch(e){throw r.InvalidResponse(t.responseText)}return n},a.prototype.sendAsync=function(e,t){var n=this.prepareRequest(!0);n.onreadystatechange=function(){if(4===n.readyState&&1!==n.timeout){var e=n.responseText,i=null;try{e=JSON.parse(e)}catch(e){i=r.InvalidResponse(n.responseText)}t(i,e)}},n.ontimeout=function(){t(r.ConnectionTimeout(this.timeout))};try{n.send(JSON.stringify(e))}catch(e){t(r.InvalidConnection(this.host))}},a.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(e){return!1}},e.exports=a}).call(t,n(2).Buffer)},function(e,t,n){"use strict";"undefined"==typeof XMLHttpRequest?t.XMLHttpRequest={}:t.XMLHttpRequest=XMLHttpRequest},function(e,t){e.exports=XMLHttpRequest},function(e,t,n){"use strict";var r=n(28),i=n(115),a=function(e,t){var n=this;this.responseCallbacks={},this.path=e,this.connection=t.connect({path:this.path}),this.connection.on("error",function(e){console.error("IPC Connection Error",e),n._timeout()}),this.connection.on("end",function(){n._timeout()}),this.connection.on("data",function(e){n._parseResponse(e.toString()).forEach(function(e){var t=null;r.isArray(e)?e.forEach(function(e){n.responseCallbacks[e.id]&&(t=e.id)}):t=e.id,n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t])})})};a.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout(function(){throw t._timeout(),i.InvalidResponse(e)},15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)}),n},a.prototype._addResponseCallback=function(e,t){var n=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[n]=t,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](i.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},a.prototype.isConnected=function(){return this.connection.writable||this.connection.connect({path:this.path}),!!this.connection.writable},a.prototype.send=function(e){if(this.connection.writeSync){var t;this.connection.writable||this.connection.connect({path:this.path});var n=this.connection.writeSync(JSON.stringify(e));try{t=JSON.parse(n)}catch(e){throw i.InvalidResponse(n)}return t}throw new Error('You tried to send "'+e.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},a.prototype.sendAsync=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},e.exports=a},function(e,t){e.exports={contractName:"Registry",abi:[{constant:!1,inputs:[{name:"_createEntryPermissionGroup",type:"uint8"}],name:"updateCreateEntryPermissionGroup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"getApproved",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getRegistryBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_tag",type:"bytes32"}],name:"addRegistryTag",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_index",type:"uint16"},{name:"_tag",type:"bytes32"}],name:"updateRegistryTag",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalShares",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_index",type:"uint16"}],name:"removeRegistryTag",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"claim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"payees",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"ownerOf",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRegistryDescription",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getAdmin",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getSafeBalance",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_payeeIndex",type:"uint256"},{name:"_newAddress",type:"address"}],name:"changePayeeAddress",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"released",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRegistryInitStatus",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRegistryTags",outputs:[{name:"",type:"bytes32[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_registryDescription",type:"string"}],name:"updateRegistryDescription",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getRegistrySafe",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_newAdmin",type:"address"}],name:"transferAdminRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"},{name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"shares",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_fee",type:"uint256"}],name:"updateEntryCreationFee",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getRegistryPermissions",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInterfaceEntriesContract",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEntryCreationFee",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEntriesStorage",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalReleased",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_benefitiaries",type:"address[]"},{name:"_shares",type:"uint256[]"},{name:"_name",type:"string"},{name:"_symbol",type:"string"}],payable:!0,stateMutability:"payable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"_from",type:"address"},{indexed:!0,name:"_to",type:"address"},{indexed:!1,name:"_tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_approved",type:"address"},{indexed:!1,name:"_tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_operator",type:"address"},{indexed:!1,name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"payeeIndex",type:"uint256"},{indexed:!1,name:"oldAddress",type:"address"},{indexed:!1,name:"newAddress",type:"address"}],name:"PayeeAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"entryID",type:"uint256"},{indexed:!1,name:"creator",type:"address"}],name:"EntryCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"entryID",type:"uint256"},{indexed:!1,name:"newOwner",type:"address"}],name:"EntryChangedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"entryID",type:"uint256"},{indexed:!1,name:"owner",type:"address"}],name:"EntryDeleted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"entryID",type:"uint256"},{indexed:!1,name:"funder",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"EntryFunded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"entryID",type:"uint256"},{indexed:!1,name:"owner",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"EntryFundsClaimed",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{constant:!1,inputs:[],name:"createEntry",outputs:[{name:"",type:"uint256"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"_entryID",type:"uint256"}],name:"deleteEntry",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"transferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entryID",type:"uint256"}],name:"fundEntry",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"_entryID",type:"uint256"},{name:"_amount",type:"uint256"}],name:"claimEntryFunds",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entryID",type:"uint256"}],name:"updateEntryTimestamp",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_entryID",type:"uint256"}],name:"getEntryMeta",outputs:[{name:"",type:"address"},{name:"",type:"address"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_entryID",type:"uint256"},{name:"_caller",type:"address"}],name:"checkAuth",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_name",type:"string"}],name:"updateName",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_linkToABIOfEntriesContract",type:"string"},{name:"_entryCore",type:"bytes"}],name:"initializeRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}],bytecode:"0x60806040526000805560006001556000600560146101000a81548160ff0219169083151502179055506040516200546038038062005460833981018060405281019080805182019291906020018051820192919060200180518201929190602001805182019291905050508181858581816000815183511415156200008357600080fd5b600090505b8251811015620000eb57620000dd8382815181101515620000a557fe5b906020019060200201518383815181101515620000be57fe5b906020019060200201516200021f640100000000026401000000009004565b808060010191505062000088565b50505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050816011908051906020019062000149929190620003b1565b50806012908051906020019062000162929190620003b1565b5050506000600660146101000a81548160ff021916908360018111156200018557fe5b021790555060006007819055506200019c62000438565b604051809103906000f080158015620001b9573d6000803e3d6000fd5b50600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600c60146101000a81548160ff0219169083151502179055505050505062000471565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200025c57600080fd5b6000811115156200026c57600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141515620002bb57600080fd5b60048290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506200038a816000546200039464010000000002620043cd179091906401000000009004565b6000819055505050565b60008183019050828110151515620003a857fe5b80905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003f457805160ff191683800117855562000425565b8280016001018555821562000425579182015b828111156200042457825182559160200191906001019062000407565b5b50905062000434919062000449565b5090565b6040516102e3806200517d83390190565b6200046e91905b808211156200046a57600081600090555060010162000450565b5090565b90565b614cfc80620004816000396000f300608060405260043610610293576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301acad421461029557806304c43781146102c557806306fdde03146102e3578063081812fc1461037357806308ca5f90146103e0578063095ea7b31461040d57806311f7516c1461045a578063158b64281461048757806318160ddd146104b2578063189efc7c146104dd5780631c5c1d971461050e57806323b872dd1461054d5780632494bc16146105ba5780632f745c59146106a95780633a98ef391461070a5780633f10be99146107355780633f4ba83a1461076657806342842e0e1461077d5780634e71d92d146107ea5780634f558e79146108015780634f6ccce7146108465780635a3233af146108875780635c975abb1461094357806363037b0c146109725780636352211e146109df57806365e12b3214610a4c5780636e9960c314610adc57806370a0823114610b33578063791b4d4e14610b8a5780637b49376814610bb55780638456cb5914610c0257806384da92a714610c195780638da5cb5b14610c5457806395d89b4114610cab5780639852595c14610d3b5780639a40842414610d92578063a192c1fb14610dc1578063a1f14b2714610e2d578063a22cb46514610e68578063afe6504414610eb7578063b5106add14610f0e578063b88d4fde14610f51578063bd03e11a14611004578063c87b56dd14611069578063ce7c2ac21461110f578063d24f707614611166578063d4af2ab814611193578063dc6b6a5f146111ca578063dc6dcec9146111fb578063dcee80731461128b578063e24ee6ba146112b6578063e33b7de31461130d578063e540944014611338578063e985e9c514611358578063f2fde38b146113d3575b005b3480156102a157600080fd5b506102c3600480360381019080803560ff169060200190929190505050611416565b005b6102cd6114e2565b6040518082815260200191505060405180910390f35b3480156102ef57600080fd5b506102f86118d1565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561033857808201518184015260208101905061031d565b50505050905090810190601f1680156103655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561037f57600080fd5b5061039e60048036038101908080359060200190929190505050611973565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103ec57600080fd5b5061040b600480360381019080803590602001909291905050506119b0565b005b34801561041957600080fd5b50610458600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a34565b005b34801561046657600080fd5b5061048560048036038101908080359060200190929190505050611bfa565b005b34801561049357600080fd5b5061049c611f41565b6040518082815260200191505060405180910390f35b3480156104be57600080fd5b506104c7611f60565b6040518082815260200191505060405180910390f35b3480156104e957600080fd5b5061050c6004803603810190808035600019169060200190929190505050611f6d565b005b34801561051a57600080fd5b5061054b600480360381019080803561ffff1690602001909291908035600019169060200190929190505050612012565b005b34801561055957600080fd5b506105b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506120c7565b005b3480156105c657600080fd5b50610667600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050612200565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106b557600080fd5b506106f4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612330565b6040518082815260200191505060405180910390f35b34801561071657600080fd5b5061071f6123a7565b6040518082815260200191505060405180910390f35b34801561074157600080fd5b50610764600480360381019080803561ffff1690602001909291905050506123ad565b005b34801561077257600080fd5b5061077b612497565b005b34801561078957600080fd5b506107e8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612557565b005b3480156107f657600080fd5b506107ff61258f565b005b34801561080d57600080fd5b5061082c600480360381019080803590602001909291905050506127fe565b604051808215151515815260200191505060405180910390f35b34801561085257600080fd5b5061087160048036038101908080359060200190929190505050612870565b6040518082815260200191505060405180910390f35b34801561089357600080fd5b506108b2600480360381019080803590602001909291905050506128a8565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001828152602001965050505050505060405180910390f35b34801561094f57600080fd5b50610958612994565b604051808215151515815260200191505060405180910390f35b34801561097e57600080fd5b5061099d600480360381019080803590602001909291905050506129a7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109eb57600080fd5b50610a0a600480360381019080803590602001909291905050506129e5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a5857600080fd5b50610a61612a63565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610aa1578082015181840152602081019050610a86565b50505050905090810190601f168015610ace5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610ae857600080fd5b50610af1612b05565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b3f57600080fd5b50610b74600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b2f565b6040518082815260200191505060405180910390f35b348015610b9657600080fd5b50610b9f612bb3565b6040518082815260200191505060405180910390f35b348015610bc157600080fd5b50610c0060048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612bf4565b005b348015610c0e57600080fd5b50610c17612f16565b005b348015610c2557600080fd5b50610c52600480360381019080803590602001908201803590602001919091929391929390505050612fd7565b005b348015610c6057600080fd5b50610c69613049565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cb757600080fd5b50610cc061306f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d00578082015181840152602081019050610ce5565b50505050905090810190601f168015610d2d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d4757600080fd5b50610d7c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613111565b6040518082815260200191505060405180910390f35b348015610d9e57600080fd5b50610da7613129565b604051808215151515815260200191505060405180910390f35b348015610dcd57600080fd5b50610dd6613140565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610e19578082015181840152602081019050610dfe565b505050509050019250505060405180910390f35b348015610e3957600080fd5b50610e6660048036038101908080359060200190820180359060200191909192939192939050505061319c565b005b348015610e7457600080fd5b50610eb5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613228565b005b348015610ec357600080fd5b50610ecc613364565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f1a57600080fd5b50610f4f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061338e565b005b348015610f5d57600080fd5b50611002600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050613470565b005b34801561101057600080fd5b5061104f60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506134af565b604051808215151515815260200191505060405180910390f35b34801561107557600080fd5b50611094600480360381019080803590602001909291905050506134f9565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156110d45780820151818401526020810190506110b9565b50505050905090810190601f1680156111015780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561111b57600080fd5b50611150600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506135c2565b6040518082815260200191505060405180910390f35b34801561117257600080fd5b50611191600480360381019080803590602001909291905050506135da565b005b34801561119f57600080fd5b506111c86004803603810190808035906020019092919080359060200190929190505050613640565b005b3480156111d657600080fd5b506111df61389c565b604051808260ff1660ff16815260200191505060405180910390f35b34801561120757600080fd5b506112106138be565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015611250578082015181840152602081019050611235565b50505050905090810190601f16801561127d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561129757600080fd5b506112a0613960565b6040518082815260200191505060405180910390f35b3480156112c257600080fd5b506112cb61396a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561131957600080fd5b50611322613994565b6040518082815260200191505060405180910390f35b6113566004803603810190808035906020019092919050505061399a565b005b34801561136457600080fd5b506113b9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b65565b604051808215151515815260200191505060405180910390f35b3480156113df57600080fd5b50611414600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613bf9565b005b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561147257600080fd5b600560149054906101000a900460ff1615151561148e57600080fd5b8060ff1660018081111561149e57fe5b60ff16101515156114ae57600080fd5b8060ff1660018111156114bd57fe5b600660146101000a81548160ff021916908360018111156114da57fe5b021790555050565b60006114ec614a08565b60008060011515600c60149054906101000a900460ff16151514151561151157600080fd5b6000600181111561151e57fe5b600660149054906101000a900460ff16600181111561153957fe5b141561159c57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561159b57600080fd5b5b600560149054906101000a900460ff161515156115b857600080fd5b600754341415156115c857600080fd5b60a0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff16815260200142815260200142815260200160008152602001600081525092506018839080600181540180825580915050906001820390600052602060002090600502016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040155505050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637899b9f36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561173057600080fd5b505af1158015611744573d6000803e3d6000fd5b505050506040513d602081101561175a57600080fd5b81019080805190602001909291905050509150611775611f60565b8214151561178257600080fd5b61178c3383613d51565b7facb3b3e38034857e82db5b66f66ba2dcaa615a3e197a0f2ad7643c030659d1a38233604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166304c437816040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561187d57600080fd5b505af1158015611891573d6000803e3d6000fd5b505050506040513d60208110156118a757600080fd5b8101908080519060200190929190505050905080821415156118c857600080fd5b81935050505090565b606060118054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119695780601f1061193e57610100808354040283529160200191611969565b820191906000526020600020905b81548152906001019060200180831161194c57829003601f168201915b5050505050905090565b6000600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b426018828154811015156119c057fe5b9060005260206000209060050201600201819055503373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a3157600080fd5b50565b6000611a3f826129e5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611a7c57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611abc5750611abb8133613b65565b5b1515611ac757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16611ae883611973565b73ffffffffffffffffffffffffffffffffffffffff16141580611b385750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611bf55782600e600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b600080600060011515600c60149054906101000a900460ff161515141515611c2157600080fd5b833373ffffffffffffffffffffffffffffffffffffffff16611c42826129e5565b73ffffffffffffffffffffffffffffffffffffffff16141515611c6457600080fd5b600560149054906101000a900460ff16151515611c8057600080fd5b6000601886815481101515611c9157fe5b906000526020600020906005020160030154141515611caf57600080fd5b601660008681526020019081526020016000205493506001601880549050039250601883815481101515611cdf57fe5b9060005260206000209060050201915081601886815481101515611cff57fe5b90600052602060002090600502016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018201548160010155600282015481600201556003820154816003015560048201548160040155905050601883815481101515611dae57fe5b9060005260206000209060050201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550506018805480919060019003611e1b9190614a4e565b50611e263386613da8565b7f29e038c505f950916f19dd7a5c3fb55c74715b22bac390335e5c84151ae3121c8533604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166311f7516c856040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b158015611f2257600080fd5b505af1158015611f36573d6000803e3d6000fd5b505050505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b6000601580549050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611fc957600080fd5b6010602060ff1611151515611fdd57600080fd5b600981908060018154018082558091505090600182039060005260206000200160009091929091909150906000191690555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561206e57600080fd5b6010602060ff161115151561208257600080fd5b6001600980549050038261ffff161115151561209d57600080fd5b8060098361ffff168154811015156120b157fe5b9060005260206000200181600019169055505050565b806120d23382613ee0565b15156120dd57600080fd5b60011515600c60149054906101000a900460ff1615151415156120ff57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561213b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561217757600080fd5b6121818483613f75565b61218b84836140de565b61219583836142f6565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561225f57600080fd5b82516020840181816000f09250505060008173ffffffffffffffffffffffffffffffffffffffff161415151561229157fe5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60146101000a81548160ff02191690831515021790555083600b9080519060200190612303929190614a80565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505092915050565b600061233b83612b2f565b8210151561234857600080fd5b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561239457fe5b9060005260206000200154905092915050565b60005481565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561240c57600080fd5b600160098054905003915060098281548110151561242657fe5b906000526020600020015490508060098461ffff1681548110151561244757fe5b906000526020600020018160001916905550600060098381548110151561246a57fe5b90600052602060002001816000191690555060098054809190600190036124919190614b00565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156124f357600080fd5b600560149054906101000a900460ff16151561250e57600080fd5b6000600560146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b806125623382613ee0565b151561256d57600080fd5b6125898484846020604051908101604052806000815250613470565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115156125e557600080fd5b6126116001543073ffffffffffffffffffffffffffffffffffffffff16316143cd90919063ffffffff16565b91506126ca600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126bc6000546126ae600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876143e990919063ffffffff16565b61442190919063ffffffff16565b61443790919063ffffffff16565b9050600081141515156126dc57600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561270257600080fd5b61275481600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143cd90919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127ac816001546143cd90919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156127f8573d6000803e3d6000fd5b50505050565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600061287a611f60565b8210151561288757600080fd5b60158281548110151561289657fe5b90600052602060002001549050919050565b6000806000806000806128ba876129e5565b6018888154811015156128c957fe5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660188981548110151561290a57fe5b90600052602060002090600502016001015460188a81548110151561292b57fe5b90600052602060002090600502016002015460188b81548110151561294c57fe5b90600052602060002090600502016003015460188c81548110151561296d57fe5b90600052602060002090600502016004015495509550955095509550955091939550919395565b600560149054906101000a900460ff1681565b6004818154811015156129b657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612a5a57600080fd5b80915050919050565b606060088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612afb5780601f10612ad057610100808354040283529160200191612afb565b820191906000526020600020905b815481529060010190602001808311612ade57829003601f168201915b5050505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612b6c57600080fd5b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612c5257600080fd5b600483815481101515612c6157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600484815481101515612da457fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612f7257600080fd5b600560149054906101000a900460ff16151515612f8e57600080fd5b6001600560146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561303357600080fd5b818160119190613044929190614b2c565b505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060128054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131075780601f106130dc57610100808354040283529160200191613107565b820191906000526020600020905b8154815290600101906020018083116130ea57829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b6000600c60149054906101000a900460ff16905090565b6060600980548060200260200160405190810160405280929190818152602001828054801561319257602002820191906000526020600020905b8154600019168152602001906001019080831161317a575b5050505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156131fa57600080fd5b828290509050610100811115151561321157600080fd5b828260089190613222929190614b2c565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561326357600080fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156133ea57600080fd5b600560149054906101000a900460ff1615151561340657600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561342c57600080fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8161347b3382613ee0565b151561348657600080fd5b6134918585856120c7565b61349d85858585614450565b15156134a857600080fd5b5050505050565b60008173ffffffffffffffffffffffffffffffffffffffff166134d1846129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156134f357600080fd5b92915050565b6060613504826127fe565b151561350f57600080fd5b601760008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135b65780601f1061358b576101008083540402835291602001916135b6565b820191906000526020600020905b81548152906001019060200180831161359957829003601f168201915b50505050509050919050565b60026020528060005260406000206000915090505481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561363657600080fd5b8060078190555050565b60011515600c60149054906101000a900460ff16151514151561366257600080fd5b813373ffffffffffffffffffffffffffffffffffffffff16613683826129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156136a557600080fd5b600560149054906101000a900460ff161515156136c157600080fd5b6018838154811015156136d057fe5b90600052602060002090600502016003015482111515156136f057600080fd5b6137238260188581548110151561370357fe5b90600052602060002090600502016003015461443790919063ffffffff16565b60188481548110151561373257fe5b9060005260206000209060050201600301819055507f4f04130f46dd1e00a82dae1ffa48c13a8cabe468b42b9cc102a766711bd63353833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561387f57600080fd5b505af1158015613893573d6000803e3d6000fd5b50505050505050565b6000600660149054906101000a900460ff1660018111156138b957fe5b905090565b6060600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156139565780601f1061392b57610100808354040283529160200191613956565b820191906000526020600020905b81548152906001019060200180831161393957829003601f168201915b5050505050905090565b6000600754905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60015481565b60011515600c60149054906101000a900460ff1615151415156139bc57600080fd5b600560149054906101000a900460ff161515156139d857600080fd5b613a0b346018838154811015156139eb57fe5b9060005260206000209060050201600301546143cd90919063ffffffff16565b601882815481101515613a1a57fe5b906000526020600020906005020160030181905550613a6234601883815481101515613a4257fe5b9060005260206000209060050201600401546143cd90919063ffffffff16565b601882815481101515613a7157fe5b9060005260206000209060050201600401819055507f8224f1b739ab2f6fc47774cc8025858fee7ca386f44cb0c7657c36037f707d71813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015613b61573d6000803e3d6000fd5b5050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613c5557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613c9157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613d5b828261463e565b601580549050601660008381526020019081526020016000208190555060158190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6000806000613db785856146ee565b600060176000868152602001908152602001600020805460018160011615610100020316600290049050141515613e0857601760008581526020019081526020016000206000613e079190614bac565b5b60166000858152602001908152602001600020549250613e37600160158054905061443790919063ffffffff16565b9150601582815481101515613e4857fe5b9060005260206000200154905080601584815481101515613e6557fe5b90600052602060002001819055506000601583815481101515613e8457fe5b90600052602060002001819055506015805480919060019003613ea79190614bf4565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b600080613eec836129e5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613f5b57508373ffffffffffffffffffffffffffffffffffffffff16613f4384611973565b73ffffffffffffffffffffffffffffffffffffffff16145b80613f6c5750613f6b8185613b65565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16613f95826129e5565b73ffffffffffffffffffffffffffffffffffffffff16141515613fb757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156140da576000600e600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b60008060006140ed858561476c565b601460008581526020019081526020016000205492506141596001601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061443790919063ffffffff16565b9150601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156141a757fe5b9060005260206000200154905080601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561420157fe5b90600052602060002001819055506000601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110151561425d57fe5b9060005260206000200181905550601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036142bd9190614bf4565b50600060146000868152602001908152602001600020819055508260146000838152602001908152602001600020819055505050505050565b6000614302838361489b565b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806014600084815260200190815260200160002081905550505050565b600081830190508281101515156143e057fe5b80905092915050565b6000808314156143fc576000905061441b565b818302905081838281151561440d57fe5b0414151561441757fe5b8090505b92915050565b6000818381151561442e57fe5b04905092915050565b600082821115151561444557fe5b818303905092915050565b6000806144728573ffffffffffffffffffffffffffffffffffffffff166149f5565b15156144815760019150614635565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614543578082015181840152602081019050614528565b50505050905090810190601f1680156145705780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561459157600080fd5b505af11580156145a5573d6000803e3d6000fd5b505050506040513d60208110156145bb57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561467a57600080fd5b61468482826142f6565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b6146f88282613f75565b61470282826140de565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff1661478c826129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156147ae57600080fd5b6148016001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461443790919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561490957600080fd5b81600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506149ae6001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143cd90919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600080823b905060008111915050919050565b60a060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b815481835581811115614a7b57600502816005028360005260206000209182019101614a7a9190614c20565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614ac157805160ff1916838001178555614aef565b82800160010185558215614aef579182015b82811115614aee578251825591602001919060010190614ad3565b5b509050614afc9190614c86565b5090565b815481835581811115614b2757818360005260206000209182019101614b269190614cab565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614b6d57803560ff1916838001178555614b9b565b82800160010185558215614b9b579182015b82811115614b9a578235825591602001919060010190614b7f565b5b509050614ba89190614c86565b5090565b50805460018160011615610100020316600290046000825580601f10614bd25750614bf1565b601f016020900490600052602060002090810190614bf09190614c86565b5b50565b815481835581811115614c1b57818360005260206000209182019101614c1a9190614c86565b5b505050565b614c8391905b80821115614c7f57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550600501614c26565b5090565b90565b614ca891905b80821115614ca4576000816000905550600101614c8c565b5090565b90565b614ccd91905b80821115614cc9576000816000905550600101614cb1565b5090565b905600a165627a7a7230582091947cce8e6aadf4627e3c331e0ca6b1b45cc52e5c5bf84dc6730cd55fefa50e00296080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610290806100536000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b146100a9578063aad3ec9614610100575b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100a757600080fd5b005b3480156100b557600080fd5b506100be61014d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010c57600080fd5b5061014b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610172565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cd57600080fd5b3073ffffffffffffffffffffffffffffffffffffffff163181111515156101f357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff161415151561021957600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561025f573d6000803e3d6000fd5b5050505600a165627a7a723058208d505abd7652ab7c2708e3e1539e0555c9cd63c0d3ba520cde7653a6362f3b490029",deployedBytecode:"0x608060405260043610610293576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301acad421461029557806304c43781146102c557806306fdde03146102e3578063081812fc1461037357806308ca5f90146103e0578063095ea7b31461040d57806311f7516c1461045a578063158b64281461048757806318160ddd146104b2578063189efc7c146104dd5780631c5c1d971461050e57806323b872dd1461054d5780632494bc16146105ba5780632f745c59146106a95780633a98ef391461070a5780633f10be99146107355780633f4ba83a1461076657806342842e0e1461077d5780634e71d92d146107ea5780634f558e79146108015780634f6ccce7146108465780635a3233af146108875780635c975abb1461094357806363037b0c146109725780636352211e146109df57806365e12b3214610a4c5780636e9960c314610adc57806370a0823114610b33578063791b4d4e14610b8a5780637b49376814610bb55780638456cb5914610c0257806384da92a714610c195780638da5cb5b14610c5457806395d89b4114610cab5780639852595c14610d3b5780639a40842414610d92578063a192c1fb14610dc1578063a1f14b2714610e2d578063a22cb46514610e68578063afe6504414610eb7578063b5106add14610f0e578063b88d4fde14610f51578063bd03e11a14611004578063c87b56dd14611069578063ce7c2ac21461110f578063d24f707614611166578063d4af2ab814611193578063dc6b6a5f146111ca578063dc6dcec9146111fb578063dcee80731461128b578063e24ee6ba146112b6578063e33b7de31461130d578063e540944014611338578063e985e9c514611358578063f2fde38b146113d3575b005b3480156102a157600080fd5b506102c3600480360381019080803560ff169060200190929190505050611416565b005b6102cd6114e2565b6040518082815260200191505060405180910390f35b3480156102ef57600080fd5b506102f86118d1565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561033857808201518184015260208101905061031d565b50505050905090810190601f1680156103655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561037f57600080fd5b5061039e60048036038101908080359060200190929190505050611973565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103ec57600080fd5b5061040b600480360381019080803590602001909291905050506119b0565b005b34801561041957600080fd5b50610458600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a34565b005b34801561046657600080fd5b5061048560048036038101908080359060200190929190505050611bfa565b005b34801561049357600080fd5b5061049c611f41565b6040518082815260200191505060405180910390f35b3480156104be57600080fd5b506104c7611f60565b6040518082815260200191505060405180910390f35b3480156104e957600080fd5b5061050c6004803603810190808035600019169060200190929190505050611f6d565b005b34801561051a57600080fd5b5061054b600480360381019080803561ffff1690602001909291908035600019169060200190929190505050612012565b005b34801561055957600080fd5b506105b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506120c7565b005b3480156105c657600080fd5b50610667600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050612200565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106b557600080fd5b506106f4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612330565b6040518082815260200191505060405180910390f35b34801561071657600080fd5b5061071f6123a7565b6040518082815260200191505060405180910390f35b34801561074157600080fd5b50610764600480360381019080803561ffff1690602001909291905050506123ad565b005b34801561077257600080fd5b5061077b612497565b005b34801561078957600080fd5b506107e8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612557565b005b3480156107f657600080fd5b506107ff61258f565b005b34801561080d57600080fd5b5061082c600480360381019080803590602001909291905050506127fe565b604051808215151515815260200191505060405180910390f35b34801561085257600080fd5b5061087160048036038101908080359060200190929190505050612870565b6040518082815260200191505060405180910390f35b34801561089357600080fd5b506108b2600480360381019080803590602001909291905050506128a8565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001828152602001965050505050505060405180910390f35b34801561094f57600080fd5b50610958612994565b604051808215151515815260200191505060405180910390f35b34801561097e57600080fd5b5061099d600480360381019080803590602001909291905050506129a7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109eb57600080fd5b50610a0a600480360381019080803590602001909291905050506129e5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a5857600080fd5b50610a61612a63565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610aa1578082015181840152602081019050610a86565b50505050905090810190601f168015610ace5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610ae857600080fd5b50610af1612b05565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b3f57600080fd5b50610b74600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b2f565b6040518082815260200191505060405180910390f35b348015610b9657600080fd5b50610b9f612bb3565b6040518082815260200191505060405180910390f35b348015610bc157600080fd5b50610c0060048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612bf4565b005b348015610c0e57600080fd5b50610c17612f16565b005b348015610c2557600080fd5b50610c52600480360381019080803590602001908201803590602001919091929391929390505050612fd7565b005b348015610c6057600080fd5b50610c69613049565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cb757600080fd5b50610cc061306f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d00578082015181840152602081019050610ce5565b50505050905090810190601f168015610d2d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d4757600080fd5b50610d7c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613111565b6040518082815260200191505060405180910390f35b348015610d9e57600080fd5b50610da7613129565b604051808215151515815260200191505060405180910390f35b348015610dcd57600080fd5b50610dd6613140565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610e19578082015181840152602081019050610dfe565b505050509050019250505060405180910390f35b348015610e3957600080fd5b50610e6660048036038101908080359060200190820180359060200191909192939192939050505061319c565b005b348015610e7457600080fd5b50610eb5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613228565b005b348015610ec357600080fd5b50610ecc613364565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f1a57600080fd5b50610f4f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061338e565b005b348015610f5d57600080fd5b50611002600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050613470565b005b34801561101057600080fd5b5061104f60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506134af565b604051808215151515815260200191505060405180910390f35b34801561107557600080fd5b50611094600480360381019080803590602001909291905050506134f9565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156110d45780820151818401526020810190506110b9565b50505050905090810190601f1680156111015780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561111b57600080fd5b50611150600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506135c2565b6040518082815260200191505060405180910390f35b34801561117257600080fd5b50611191600480360381019080803590602001909291905050506135da565b005b34801561119f57600080fd5b506111c86004803603810190808035906020019092919080359060200190929190505050613640565b005b3480156111d657600080fd5b506111df61389c565b604051808260ff1660ff16815260200191505060405180910390f35b34801561120757600080fd5b506112106138be565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015611250578082015181840152602081019050611235565b50505050905090810190601f16801561127d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561129757600080fd5b506112a0613960565b6040518082815260200191505060405180910390f35b3480156112c257600080fd5b506112cb61396a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561131957600080fd5b50611322613994565b6040518082815260200191505060405180910390f35b6113566004803603810190808035906020019092919050505061399a565b005b34801561136457600080fd5b506113b9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b65565b604051808215151515815260200191505060405180910390f35b3480156113df57600080fd5b50611414600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613bf9565b005b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561147257600080fd5b600560149054906101000a900460ff1615151561148e57600080fd5b8060ff1660018081111561149e57fe5b60ff16101515156114ae57600080fd5b8060ff1660018111156114bd57fe5b600660146101000a81548160ff021916908360018111156114da57fe5b021790555050565b60006114ec614a08565b60008060011515600c60149054906101000a900460ff16151514151561151157600080fd5b6000600181111561151e57fe5b600660149054906101000a900460ff16600181111561153957fe5b141561159c57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561159b57600080fd5b5b600560149054906101000a900460ff161515156115b857600080fd5b600754341415156115c857600080fd5b60a0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff16815260200142815260200142815260200160008152602001600081525092506018839080600181540180825580915050906001820390600052602060002090600502016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040155505050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637899b9f36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561173057600080fd5b505af1158015611744573d6000803e3d6000fd5b505050506040513d602081101561175a57600080fd5b81019080805190602001909291905050509150611775611f60565b8214151561178257600080fd5b61178c3383613d51565b7facb3b3e38034857e82db5b66f66ba2dcaa615a3e197a0f2ad7643c030659d1a38233604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166304c437816040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561187d57600080fd5b505af1158015611891573d6000803e3d6000fd5b505050506040513d60208110156118a757600080fd5b8101908080519060200190929190505050905080821415156118c857600080fd5b81935050505090565b606060118054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119695780601f1061193e57610100808354040283529160200191611969565b820191906000526020600020905b81548152906001019060200180831161194c57829003601f168201915b5050505050905090565b6000600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b426018828154811015156119c057fe5b9060005260206000209060050201600201819055503373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a3157600080fd5b50565b6000611a3f826129e5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611a7c57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611abc5750611abb8133613b65565b5b1515611ac757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16611ae883611973565b73ffffffffffffffffffffffffffffffffffffffff16141580611b385750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611bf55782600e600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b600080600060011515600c60149054906101000a900460ff161515141515611c2157600080fd5b833373ffffffffffffffffffffffffffffffffffffffff16611c42826129e5565b73ffffffffffffffffffffffffffffffffffffffff16141515611c6457600080fd5b600560149054906101000a900460ff16151515611c8057600080fd5b6000601886815481101515611c9157fe5b906000526020600020906005020160030154141515611caf57600080fd5b601660008681526020019081526020016000205493506001601880549050039250601883815481101515611cdf57fe5b9060005260206000209060050201915081601886815481101515611cff57fe5b90600052602060002090600502016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018201548160010155600282015481600201556003820154816003015560048201548160040155905050601883815481101515611dae57fe5b9060005260206000209060050201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550506018805480919060019003611e1b9190614a4e565b50611e263386613da8565b7f29e038c505f950916f19dd7a5c3fb55c74715b22bac390335e5c84151ae3121c8533604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166311f7516c856040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b158015611f2257600080fd5b505af1158015611f36573d6000803e3d6000fd5b505050505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b6000601580549050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611fc957600080fd5b6010602060ff1611151515611fdd57600080fd5b600981908060018154018082558091505090600182039060005260206000200160009091929091909150906000191690555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561206e57600080fd5b6010602060ff161115151561208257600080fd5b6001600980549050038261ffff161115151561209d57600080fd5b8060098361ffff168154811015156120b157fe5b9060005260206000200181600019169055505050565b806120d23382613ee0565b15156120dd57600080fd5b60011515600c60149054906101000a900460ff1615151415156120ff57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561213b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561217757600080fd5b6121818483613f75565b61218b84836140de565b61219583836142f6565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561225f57600080fd5b82516020840181816000f09250505060008173ffffffffffffffffffffffffffffffffffffffff161415151561229157fe5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60146101000a81548160ff02191690831515021790555083600b9080519060200190612303929190614a80565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505092915050565b600061233b83612b2f565b8210151561234857600080fd5b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561239457fe5b9060005260206000200154905092915050565b60005481565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561240c57600080fd5b600160098054905003915060098281548110151561242657fe5b906000526020600020015490508060098461ffff1681548110151561244757fe5b906000526020600020018160001916905550600060098381548110151561246a57fe5b90600052602060002001816000191690555060098054809190600190036124919190614b00565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156124f357600080fd5b600560149054906101000a900460ff16151561250e57600080fd5b6000600560146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b806125623382613ee0565b151561256d57600080fd5b6125898484846020604051908101604052806000815250613470565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115156125e557600080fd5b6126116001543073ffffffffffffffffffffffffffffffffffffffff16316143cd90919063ffffffff16565b91506126ca600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126bc6000546126ae600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876143e990919063ffffffff16565b61442190919063ffffffff16565b61443790919063ffffffff16565b9050600081141515156126dc57600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561270257600080fd5b61275481600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143cd90919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127ac816001546143cd90919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156127f8573d6000803e3d6000fd5b50505050565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600061287a611f60565b8210151561288757600080fd5b60158281548110151561289657fe5b90600052602060002001549050919050565b6000806000806000806128ba876129e5565b6018888154811015156128c957fe5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660188981548110151561290a57fe5b90600052602060002090600502016001015460188a81548110151561292b57fe5b90600052602060002090600502016002015460188b81548110151561294c57fe5b90600052602060002090600502016003015460188c81548110151561296d57fe5b90600052602060002090600502016004015495509550955095509550955091939550919395565b600560149054906101000a900460ff1681565b6004818154811015156129b657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612a5a57600080fd5b80915050919050565b606060088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612afb5780601f10612ad057610100808354040283529160200191612afb565b820191906000526020600020905b815481529060010190602001808311612ade57829003601f168201915b5050505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612b6c57600080fd5b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612c5257600080fd5b600483815481101515612c6157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600484815481101515612da457fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612f7257600080fd5b600560149054906101000a900460ff16151515612f8e57600080fd5b6001600560146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561303357600080fd5b818160119190613044929190614b2c565b505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060128054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131075780601f106130dc57610100808354040283529160200191613107565b820191906000526020600020905b8154815290600101906020018083116130ea57829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b6000600c60149054906101000a900460ff16905090565b6060600980548060200260200160405190810160405280929190818152602001828054801561319257602002820191906000526020600020905b8154600019168152602001906001019080831161317a575b5050505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156131fa57600080fd5b828290509050610100811115151561321157600080fd5b828260089190613222929190614b2c565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561326357600080fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156133ea57600080fd5b600560149054906101000a900460ff1615151561340657600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561342c57600080fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8161347b3382613ee0565b151561348657600080fd5b6134918585856120c7565b61349d85858585614450565b15156134a857600080fd5b5050505050565b60008173ffffffffffffffffffffffffffffffffffffffff166134d1846129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156134f357600080fd5b92915050565b6060613504826127fe565b151561350f57600080fd5b601760008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135b65780601f1061358b576101008083540402835291602001916135b6565b820191906000526020600020905b81548152906001019060200180831161359957829003601f168201915b50505050509050919050565b60026020528060005260406000206000915090505481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561363657600080fd5b8060078190555050565b60011515600c60149054906101000a900460ff16151514151561366257600080fd5b813373ffffffffffffffffffffffffffffffffffffffff16613683826129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156136a557600080fd5b600560149054906101000a900460ff161515156136c157600080fd5b6018838154811015156136d057fe5b90600052602060002090600502016003015482111515156136f057600080fd5b6137238260188581548110151561370357fe5b90600052602060002090600502016003015461443790919063ffffffff16565b60188481548110151561373257fe5b9060005260206000209060050201600301819055507f4f04130f46dd1e00a82dae1ffa48c13a8cabe468b42b9cc102a766711bd63353833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561387f57600080fd5b505af1158015613893573d6000803e3d6000fd5b50505050505050565b6000600660149054906101000a900460ff1660018111156138b957fe5b905090565b6060600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156139565780601f1061392b57610100808354040283529160200191613956565b820191906000526020600020905b81548152906001019060200180831161393957829003601f168201915b5050505050905090565b6000600754905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60015481565b60011515600c60149054906101000a900460ff1615151415156139bc57600080fd5b600560149054906101000a900460ff161515156139d857600080fd5b613a0b346018838154811015156139eb57fe5b9060005260206000209060050201600301546143cd90919063ffffffff16565b601882815481101515613a1a57fe5b906000526020600020906005020160030181905550613a6234601883815481101515613a4257fe5b9060005260206000209060050201600401546143cd90919063ffffffff16565b601882815481101515613a7157fe5b9060005260206000209060050201600401819055507f8224f1b739ab2f6fc47774cc8025858fee7ca386f44cb0c7657c36037f707d71813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015613b61573d6000803e3d6000fd5b5050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613c5557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613c9157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613d5b828261463e565b601580549050601660008381526020019081526020016000208190555060158190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6000806000613db785856146ee565b600060176000868152602001908152602001600020805460018160011615610100020316600290049050141515613e0857601760008581526020019081526020016000206000613e079190614bac565b5b60166000858152602001908152602001600020549250613e37600160158054905061443790919063ffffffff16565b9150601582815481101515613e4857fe5b9060005260206000200154905080601584815481101515613e6557fe5b90600052602060002001819055506000601583815481101515613e8457fe5b90600052602060002001819055506015805480919060019003613ea79190614bf4565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b600080613eec836129e5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613f5b57508373ffffffffffffffffffffffffffffffffffffffff16613f4384611973565b73ffffffffffffffffffffffffffffffffffffffff16145b80613f6c5750613f6b8185613b65565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16613f95826129e5565b73ffffffffffffffffffffffffffffffffffffffff16141515613fb757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156140da576000600e600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b60008060006140ed858561476c565b601460008581526020019081526020016000205492506141596001601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061443790919063ffffffff16565b9150601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156141a757fe5b9060005260206000200154905080601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561420157fe5b90600052602060002001819055506000601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110151561425d57fe5b9060005260206000200181905550601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036142bd9190614bf4565b50600060146000868152602001908152602001600020819055508260146000838152602001908152602001600020819055505050505050565b6000614302838361489b565b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806014600084815260200190815260200160002081905550505050565b600081830190508281101515156143e057fe5b80905092915050565b6000808314156143fc576000905061441b565b818302905081838281151561440d57fe5b0414151561441757fe5b8090505b92915050565b6000818381151561442e57fe5b04905092915050565b600082821115151561444557fe5b818303905092915050565b6000806144728573ffffffffffffffffffffffffffffffffffffffff166149f5565b15156144815760019150614635565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614543578082015181840152602081019050614528565b50505050905090810190601f1680156145705780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561459157600080fd5b505af11580156145a5573d6000803e3d6000fd5b505050506040513d60208110156145bb57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561467a57600080fd5b61468482826142f6565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b6146f88282613f75565b61470282826140de565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff1661478c826129e5565b73ffffffffffffffffffffffffffffffffffffffff161415156147ae57600080fd5b6148016001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461443790919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561490957600080fd5b81600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506149ae6001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143cd90919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600080823b905060008111915050919050565b60a060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b815481835581811115614a7b57600502816005028360005260206000209182019101614a7a9190614c20565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614ac157805160ff1916838001178555614aef565b82800160010185558215614aef579182015b82811115614aee578251825591602001919060010190614ad3565b5b509050614afc9190614c86565b5090565b815481835581811115614b2757818360005260206000209182019101614b269190614cab565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614b6d57803560ff1916838001178555614b9b565b82800160010185558215614b9b579182015b82811115614b9a578235825591602001919060010190614b7f565b5b509050614ba89190614c86565b5090565b50805460018160011615610100020316600290046000825580601f10614bd25750614bf1565b601f016020900490600052602060002090810190614bf09190614c86565b5b50565b815481835581811115614c1b57818360005260206000209182019101614c1a9190614c86565b5b505050565b614c8391905b80821115614c7f57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550600501614c26565b5090565b90565b614ca891905b80821115614ca4576000816000905550600101614c8c565b5090565b90565b614ccd91905b80821115614cc9576000816000905550600101614cb1565b5090565b905600a165627a7a7230582091947cce8e6aadf4627e3c331e0ca6b1b45cc52e5c5bf84dc6730cd55fefa50e0029",sourceMap:"797:8578:10:-;;;306:1:17;277:30;;342:1;311:32;;268:5:14;247:26;;;;;;;;;;;;;;;;;;;;1931:435:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2132:5;2139:7;2087:14;2103:7;467::7;476;636:9:17;609:7;:14;591:7;:14;:32;583:41;;;;;;;;648:1;636:13;;631:92;655:7;:14;651:1;:18;631:92;;;684:32;693:7;701:1;693:10;;;;;;;;;;;;;;;;;;705:7;713:1;705:10;;;;;;;;;;;;;;;;;;684:8;;;:32;;;:::i;:::-;671:3;;;;;;;631:92;;;502:225;;;509:10:16;501:5;;:18;;;;;;;;;;;;;;;;;;343:149:7;;1147:5:22;1139;:13;;;;;;;;;;;;:::i;:::-;;1168:7;1158;:17;;;;;;;;;;;;:::i;:::-;;1075:105;;2222:36:10;2193:26;;:65;;;;;;;;;;;;;;;;;;;;;;;;2287:1;2268:16;:20;;;;2313:10;;:::i;:::-;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2313:10:10;2298:12;;:25;;;;;;;;;;;;;;;;;;2354:5;2333:18;;:26;;;;;;;;;;;;;;;;;;1931:435;;;;797:8578;;1495:260:17;1587:1;1569:20;;:6;:20;;;;1561:29;;;;;;;;1614:1;1604:7;:11;1596:20;;;;;;;;1648:1;1630:6;:14;1637:6;1630:14;;;;;;;;;;;;;;;;:19;1622:28;;;;;;;;1657:6;1669;1657:19;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1657:19:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1699:7;1682:6;:14;1689:6;1682:14;;;;;;;;;;;;;;;:24;;;;1726;1742:7;1726:11;;:15;;;;;;:24;;;;;:::i;:::-;1712:11;:38;;;;1495:260;;:::o;1008:123:15:-;1066:9;1091:1;1087;:5;1083:9;;1110:1;1105;:6;;1098:14;;;;;;1125:1;1118:8;;1008:123;;;;:::o;797:8578:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;",deployedSourceMap:"797:8578:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2478:343:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2478:343:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;2858:1031:10;;;;;;;;;;;;;;;;;;;;;;;1274:68:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1274:68:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1274:68:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3605:111:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3605:111:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6837:202:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6837:202:10;;;;;;;;;;;;;;;;;;;;;;;;;;3021:355:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3021:355:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4036:712:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4036:712:10;;;;;;;;;;;;;;;;;;;;;;;;;;4752:132:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4752:132:8;;;;;;;;;;;;;;;;;;;;;;;2518:87:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2518:87:22;;;;;;;;;;;;;;;;;;;;;;;2960:167:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2960:167:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3293:248;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3293:248:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4754:422:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4754:422:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8779:589;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8779:589:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2199:177:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2199:177:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;277:30:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;277:30:17;;;;;;;;;;;;;;;;;;;;;;;3643:325:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3643:325:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:92:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:14;;;;;;6017:225:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6017:225:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;858:465:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;858:465:17;;;;;;2461:140:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2461:140:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2934::22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2934:140:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7090:557:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7090:557:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;247:26:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:14;;;;;;;;;;;;;;;;;;;;;;;;;;;440:23:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;440:23:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2119:164:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2119:164:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5302:136:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5302:136:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;5302:136:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1378:109:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1378:109:11;;;;;;;;;;;;;;;;;;;;;;;;;;;1764:142:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1764:142:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6042:144:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6042:144:8;;;;;;;;;;;;;;;;;;;;;;;498:479:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:479:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;666:90:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:14;;;;;;8232:117:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8232:117:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:16;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:16;;;;;;;;;;;;;;;;;;;;;;;;;;;1440:72:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1440:72:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1440:72:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;393:43:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;393:43:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6302:132:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6302:132:8;;;;;;;;;;;;;;;;;;;;;;;;;;;5536:125;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5536:125:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;5536:125:8;;;;;;;;;;;;;;;;;2552:261;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2552:261:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4001:205:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4001:205:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5792:123:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5792:123:8;;;;;;;;;;;;;;;;;;;;;;;;;;;2120:190:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2120:190:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;6929:302:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6929:302:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7913:187:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7913:187:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1705:133:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1705:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1705:133:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;348:41:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;348:41:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2207:136:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2207:136:8;;;;;;;;;;;;;;;;;;;;;;;;;;6115:512:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6115:512:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1605:149:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1605:149:11;;;;;;;;;;;;;;;;;;;;;;;;;;;4421:148:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4421:148:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4421:148:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5053:128;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5053:128:8;;;;;;;;;;;;;;;;;;;;;;;4158:127;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4158:127:8;;;;;;;;;;;;;;;;;;;;;;;;;;;311:32:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;311:32:17;;;;;;;;;;;;;;;;;;;;;;;5355:495:10;;;;;;;;;;;;;;;;;;;;;;;;;;4515:142:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4515:142:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:174:16;;8:9:-1;5:2;;;30:1;27;20:12;5:2;832:174:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;2478:343:11;920:5;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;2692:27:11;2646:73;;2652:35;2646:42;;;;;;;;:73;;;;2638:82;;;;;;;;2786:27;2759:55;;;;;;;;;;2730:26;;:84;;;;;;;;;;;;;;;;;;;;;;;;2478:343;:::o;2858:1031:10:-;3021:7;3101:21;;:::i;:::-;3507:18;3738:22;1194:4:8;1172:26;;:18;;;;;;;;;;;:26;;;1164:35;;;;;;;;1118:36:11;1088:66;;;;;;;;:26;;;;;;;;;;;:66;;;;;;;;;1084:125;;;1192:5;;;;;;;;;;;1178:19;;:10;:19;;;1170:28;;;;;;;;1084:125;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;3065::10;;3052:9;:29;3044:38;;;;;;;;3126:230;;;;;;;;;3253:10;3126:230;;;;;;3215:15;3126:230;;;;3175:15;3126:230;;;;3301:1;3126:230;;;;3344:1;3126:230;;;3101:256;;3376:11;3393:4;3376:22;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;3376:22:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3543:14;;;;;;;;;;;3528:44;;;:46;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3528:46:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3528:46:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3528:46:10;;;;;;;;;;;;;;;;3507:67;;3606:13;:11;:13::i;:::-;3592:10;:27;3584:36;;;;;;;;3639:29;3645:10;3657;3639:5;:29::i;:::-;3683:36;3696:10;3708;3683:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;3778:14;;;;;;;;;;;3763:42;;;:44;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3763:44:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3763:44:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3763:44:10;;;;;;;;;;;;;;;;3738:69;;3839:14;3825:10;:28;3817:37;;;;;;;;3872:10;3865:17;;2858:1031;;;;:::o;1274:68:22:-;1311:6;1332:5;1325:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:68;:::o;3605:111:20:-;3665:7;3687:14;:24;3702:8;3687:24;;;;;;;;;;;;;;;;;;;;;3680:31;;3605:111;;;:::o;6837:202:10:-;6970:15;6931:11;6943:8;6931:21;;;;;;;;;;;;;;;;;;;;:36;;:54;;;;7021:10;7003:28;;:14;;;;;;;;;;;:28;;;6995:37;;;;;;;;6837:202;:::o;3021:355:20:-;3082:13;3098:17;3106:8;3098:7;:17::i;:::-;3082:33;;3136:5;3129:12;;:3;:12;;;;3121:21;;;;;;;;3170:5;3156:19;;:10;:19;;;:58;;;;3179:35;3196:5;3203:10;3179:16;:35::i;:::-;3156:58;3148:67;;;;;;;;3259:1;3226:35;;:21;3238:8;3226:11;:21::i;:::-;:35;;;;:56;;;;3280:1;3265:17;;:3;:17;;;;3226:56;3222:150;;;3319:3;3292:14;:24;3307:8;3292:24;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;3351:3;3335:30;;3344:5;3335:30;;;3356:8;3335:30;;;;;;;;;;;;;;;;;;3222:150;3021:355;;;:::o;4036:712:10:-;4277:18;4341:22;4398:27;1194:4:8;1172:26;;:18;;;;;;;;;;;:26;;;1164:35;;;;;;;;4154:8:10;1283:10:20;1262:31;;:17;1270:8;1262:7;:17::i;:::-;:31;;;1254:40;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;4256:1:10;4208:11;4220:8;4208:21;;;;;;;;;;;;;;;;;;;;:44;;;:49;4200:58;;;;;;;;4298:14;:24;4313:8;4298:24;;;;;;;;;;;;4277:45;;4387:1;4366:11;:18;;;;:22;4341:47;;4428:11;4440:14;4428:27;;;;;;;;;;;;;;;;;;;;4398:57;;4490:9;4466:11;4478:8;4466:21;;;;;;;;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4516:11;4528:14;4516:27;;;;;;;;;;;;;;;;;;;;;4509:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4553:11;:20;;;;;;;;;;;;:::i;:::-;;4592:27;4598:10;4610:8;4592:5;:27::i;:::-;4634:34;4647:8;4657:10;4634:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;4702:14;;;;;;;;;;;4687:42;;;4730:10;4687:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4687:54:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4687:54:10;;;;1209:1:8;4036:712:10;;;;:::o;4752:132:8:-;4829:4;4864;4856:21;;;4849:28;;4752:132;:::o;2518:87:22:-;2562:7;2584:9;:16;;;;2577:23;;2518:87;:::o;2960:167:8:-;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;3084:2:8;3069:11;:17;;;;3061:26;;;;;;;;3097:12;3115:4;3097:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;3097:23:8;;;;;;;;;;;;;;;;;;;;;;;;;;;2960:167;:::o;3293:248::-;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;3443:2:8;3428:11;:17;;;;3420:26;;;;;;;;3494:1;3474:12;:19;;;;:21;3464:6;:31;;;;3456:40;;;;;;;;3530:4;3507:12;3520:6;3507:20;;;;;;;;;;;;;;;;;;;:27;;;;;;;3293:248;;:::o;4754:422:10:-;4889:8;1520:39:20;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;1194:4:8;1172:26;;:18;;;;;;;;;;;:26;;;1164:35;;;;;;;;4966:1:10;4949:19;;:5;:19;;;;4941:28;;;;;;;;5002:1;4987:17;;:3;:17;;;;4979:26;;;;;;;;5016:30;5030:5;5037:8;5016:13;:30::i;:::-;5056:32;5072:5;5079:8;5056:15;:32::i;:::-;5098:25;5109:3;5114:8;5098:10;:25::i;:::-;5155:3;5139:30;;5148:5;5139:30;;;5160:8;5139:30;;;;;;;;;;;;;;;;;;4754:422;;;;:::o;8779:589::-;8933:7;8956:23;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;9027:10:10;9021:17;9076:4;9064:10;9060:21;9126:1;9123;9120;9113:15;9094:34;;8998:140;;9174:3;9155:15;:22;;;;9148:30;;;;;;9205:15;9188:14;;:32;;;;;;;;;;;;;;;;;;9251:4;9230:18;;:25;;;;;;;;;;;;;;;;;;9294:27;9265:26;:56;;;;;;;;;;;;:::i;:::-;;9347:14;;;;;;;;;;;9340:21;;8779:589;;;;;:::o;2199:177:22:-;2281:7;2313:17;2323:6;2313:9;:17::i;:::-;2304:6;:26;2296:35;;;;;;;;2344:11;:19;2356:6;2344:19;;;;;;;;;;;;;;;2364:6;2344:27;;;;;;;;;;;;;;;;;;2337:34;;2199:177;;;;:::o;277:30:17:-;;;;:::o;3643:325:8:-;3748:20;3804:15;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;3793:1:8;3771:12;:19;;;;:23;3748:46;;3822:12;3835;3822:26;;;;;;;;;;;;;;;;;;3804:44;;3882:7;3859:12;3872:6;3859:20;;;;;;;;;;;;;;;;;;;:30;;;;;;;3899:31;:12;3912;3899:26;;;;;;;;;;;;;;;;;:31;;;;;;;3940:12;:21;;;;;;;;;;;;:::i;:::-;;3643:325;;;:::o;838:92:14:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;568:6:14;;;;;;;;;;;560:15;;;;;;;;900:5;891:6;;:14;;;;;;;;;;;;;;;;;;916:9;;;;;;;;;;838:92::o;6017:225:20:-;6132:8;1520:39;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;6195:42;6212:5;6219:3;6224:8;6195:42;;;;;;;;;;;;;:16;:42::i;:::-;6017:225;;;;:::o;858:465:17:-;888:13;954:21;1024:15;904:10;888:26;;945:1;929:6;:13;936:5;929:13;;;;;;;;;;;;;;;;:17;921:26;;;;;;;;978:40;1004:13;;986:4;978:21;;;:25;;:40;;;;:::i;:::-;954:64;;1042:70;1096:8;:15;1105:5;1096:15;;;;;;;;;;;;;;;;1042:49;1079:11;;1042:32;1060:6;:13;1067:5;1060:13;;;;;;;;;;;;;;;;1042;:17;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;1024:88;;1138:1;1127:7;:12;;1119:21;;;;;;;;1179:7;1162:4;1154:21;;;:32;;1146:41;;;;;;;;1212:28;1232:7;1212:8;:15;1221:5;1212:15;;;;;;;;;;;;;;;;:19;;:28;;;;:::i;:::-;1194:8;:15;1203:5;1194:15;;;;;;;;;;;;;;;:46;;;;1262:26;1280:7;1262:13;;:17;;:26;;;;:::i;:::-;1246:13;:42;;;;1295:5;:14;;:23;1310:7;1295:23;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1295:23:17;858:465;;;:::o;2461:140:20:-;2516:4;2528:13;2544:10;:20;2555:8;2544:20;;;;;;;;;;;;;;;;;;;;;2528:36;;2594:1;2577:19;;:5;:19;;;;2570:26;;2461:140;;;;:::o;2934::22:-;2993:7;3025:13;:11;:13::i;:::-;3016:6;:22;3008:31;;;;;;;;3052:9;3062:6;3052:17;;;;;;;;;;;;;;;;;;3045:24;;2934:140;;;:::o;7090:557:10:-;7204:7;7225;7246:4;7264;7282:7;7303;7355:17;7363:8;7355:7;:17::i;:::-;7386:11;7398:8;7386:21;;;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;7429:11;7441:8;7429:21;;;;;;;;;;;;;;;;;;;;:31;;;7474:11;7486:8;7474:21;;;;;;;;;;;;;;;;;;;;:36;;;7524:11;7536:8;7524:21;;;;;;;;;;;;;;;;;;;;:44;;;7582:11;7594:8;7582:21;;;;;;;;;;;;;;;;;;;;:48;;;7335:305;;;;;;;;;;;;7090:557;;;;;;;:::o;247:26:14:-;;;;;;;;;;;;;:::o;440:23:17:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2119:164:20:-;2175:7;2190:13;2206:10;:20;2217:8;2206:20;;;;;;;;;;;;;;;;;;;;;2190:36;;2257:1;2240:19;;:5;:19;;;;2232:28;;;;;;;;2273:5;2266:12;;2119:164;;;;:::o;5302:136:8:-;5383:6;5412:19;5405:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5302:136;:::o;1378:109:11:-;1445:7;1475:5;;;;;;;;;;;1468:12;;1378:109;:::o;1764:142:20:-;1820:7;1861:1;1843:20;;:6;:20;;;;1835:29;;;;;;;;1877:16;:24;1894:6;1877:24;;;;;;;;;;;;;;;;1870:31;;1764:142;;;:::o;6042:144:8:-;6115:12;6158;;;;;;;;;;;6150:29;;;6143:36;;6042:144;:::o;498:479:7:-;636:18;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;657:6:7;664:11;657:19;;;;;;;;;;;;;;;;;;;;;;;;;;;636:40;;709:6;:18;716:10;709:18;;;;;;;;;;;;;;;;687:6;:19;694:11;687:19;;;;;;;;;;;;;;;:40;;;;761:8;:20;770:10;761:20;;;;;;;;;;;;;;;;737:8;:21;746:11;737:21;;;;;;;;;;;;;;;:44;;;;813:11;791:6;798:11;791:19;;;;;;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;842:6;:18;849:10;842:18;;;;;;;;;;;;;;;835:25;;;877:8;:20;886:10;877:20;;;;;;;;;;;;;;;870:27;;;913:57;933:11;946:10;958:11;913:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:479;;;:::o;666:90:14:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;729:4;720:6;;:13;;;;;;;;;;;;;;;;;;744:7;;;;;;;;;;666:90::o;8232:117:10:-;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;8337:5:10;;8329;:13;;;;;;;:::i;:::-;;8232:117;;:::o;238:20:16:-;;;;;;;;;;;;;:::o;1440:72:22:-;1479:6;1500:7;1493:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1440:72;:::o;393:43:17:-;;;;;;;;;;;;;;;;;:::o;6302:132:8:-;6382:4;6409:18;;;;;;;;;;;6402:25;;6302:132;:::o;5536:125::-;5610:9;5642:12;5635:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5536:125;:::o;2552:261::-;2679:8;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;2696:20:8;;2690:34;;2679:45;;2749:3;2742;:10;;2734:19;;;;;;;;2786:20;;2764:19;:42;;;;;;;:::i;:::-;;2552:261;;;:::o;4001:205:20:-;4085:10;4078:17;;:3;:17;;;;4070:26;;;;;;;;4139:9;4102:17;:29;4120:10;4102:29;;;;;;;;;;;;;;;:34;4132:3;4102:34;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;4186:3;4159:42;;4174:10;4159:42;;;4191:9;4159:42;;;;;;;;;;;;;;;;;;;;;;4001:205;;:::o;5792:123:8:-;5866:7;5896:12;;;;;;;;;;;5889:19;;5792:123;:::o;2120:190:11:-;653:5:16;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;2272:3:11;2259:9;:16;;;;2251:25;;;;;;;;2294:9;2286:5;;:17;;;;;;;;;;;;;;;;;;2120:190;:::o;6929:302:20:-;7061:8;1520:39;1538:10;1550:8;1520:17;:39::i;:::-;1512:48;;;;;;;;7079:34;7092:5;7099:3;7104:8;7079:12;:34::i;:::-;7172:53;7197:5;7204:3;7209:8;7219:5;7172:24;:53::i;:::-;7164:62;;;;;;;;6929:302;;;;;:::o;7913:187:10:-;8036:4;8085:7;8064:28;;:17;8072:8;8064:7;:17::i;:::-;:28;;;8056:37;;;;;;;;7913:187;;;;:::o;1705:133:22:-;1762:6;1784:16;1791:8;1784:6;:16::i;:::-;1776:25;;;;;;;;1814:9;:19;1824:8;1814:19;;;;;;;;;;;1807:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1705:133;;;:::o;348:41:17:-;;;;;;;;;;;;;;;;;:::o;2207:136:8:-;920:5:11;;;;;;;;;;;906:19;;:10;:19;;;898:28;;;;;;;;2332:4:8;2313:16;:23;;;;2207:136;:::o;6115:512:10:-;1194:4:8;1172:26;;:18;;;;;;;;;;;:26;;;1164:35;;;;;;;;6260:8:10;1283:10:20;1262:31;;:17;1270:8;1262:7;:17::i;:::-;:31;;;1254:40;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;6325:11:10;6337:8;6325:21;;;;;;;;;;;;;;;;;;;;:44;;;6314:7;:55;;6306:64;;;;;;;;6427:57;6476:7;6427:11;6439:8;6427:21;;;;;;;;;;;;;;;;;;;;:44;;;:48;;:57;;;;:::i;:::-;6380:11;6392:8;6380:21;;;;;;;;;;;;;;;;;;;;:44;;:104;;;;6508:48;6526:8;6536:10;6548:7;6508:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6580:12;;;;;;;;;;;6575:24;;;6600:10;6612:7;6575:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6575:45:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6575:45:10;;;;1209:1:8;6115:512:10;;:::o;1605:149:11:-;1686:5;1720:26;;;;;;;;;;;1714:33;;;;;;;;1707:40;;1605:149;:::o;4421:148:8:-;4507:6;4536:26;4529:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4421:148;:::o;5053:128::-;5131:4;5158:16;;5151:23;;5053:128;:::o;4158:127::-;4234:7;4264:14;;;;;;;;;;;4257:21;;4158:127;:::o;311:32:17:-;;;;:::o;5355:495:10:-;1194:4:8;1172:26;;:18;;;;;;;;;;;:26;;;1164:35;;;;;;;;416:6:14;;;;;;;;;;;415:7;407:16;;;;;;;;5550:59:10;5599:9;5550:11;5562:8;5550:21;;;;;;;;;;;;;;;;;;;;:44;;;:48;;:59;;;;:::i;:::-;5503:11;5515:8;5503:21;;;;;;;;;;;;;;;;;;;;:44;;:106;;;;5670:63;5723:9;5670:11;5682:8;5670:21;;;;;;;;;;;;;;;;;;;;:48;;;:52;;:63;;;;:::i;:::-;5619:11;5631:8;5619:21;;;;;;;;;;;;;;;;;;;;:48;;:114;;;;5748:44;5760:8;5770:10;5782:9;5748:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5811:12;;;;;;;;;;;:21;;:32;5833:9;5811:32;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5811:32:10;5355:495;:::o;4515:142:20:-;4597:4;4616:17;:25;4634:6;4616:25;;;;;;;;;;;;;;;:36;4642:9;4616:36;;;;;;;;;;;;;;;;;;;;;;;;;4609:43;;4515:142;;;;:::o;832:174:16:-;653:5;;;;;;;;;;;639:19;;:10;:19;;;631:28;;;;;;;;928:1;908:22;;:8;:22;;;;900:31;;;;;;;;970:8;942:37;;963:5;;;;;;;;;;;942:37;;;;;;;;;;;;993:8;985:5;;:16;;;;;;;;;;;;;;;;;;832:174;:::o;5324:172:22:-;5385:26;5397:3;5402:8;5385:11;:26::i;:::-;5445:9;:16;;;;5418:14;:24;5433:8;5418:24;;;;;;;;;;;:43;;;;5467:9;5482:8;5467:24;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;5467:24:22;;;;;;;;;;;;;;;;;;;;;;5324:172;;:::o;5733:585::-;5985:18;6036:22;6090:17;5797:29;5809:6;5817:8;5797:11;:29::i;:::-;5905:1;5874:9;:19;5884:8;5874:19;;;;;;;;;;;5868:33;;;;;;;;;;;;;;;;:38;;5864:85;;;5923:9;:19;5933:8;5923:19;;;;;;;;;;;;5916:26;;;;:::i;:::-;5864:85;6006:14;:24;6021:8;6006:24;;;;;;;;;;;;5985:45;;6061:23;6082:1;6061:9;:16;;;;:20;;:23;;;;:::i;:::-;6036:48;;6110:9;6120:14;6110:25;;;;;;;;;;;;;;;;;;6090:45;;6166:9;6142;6152:10;6142:21;;;;;;;;;;;;;;;;;:33;;;;6209:1;6181:9;6191:14;6181:25;;;;;;;;;;;;;;;;;:29;;;;6217:9;:18;;;;;;;;;;;;:::i;:::-;;6268:1;6241:14;:24;6256:8;6241:24;;;;;;;;;;;:28;;;;6303:10;6275:14;:25;6290:9;6275:25;;;;;;;;;;;:38;;;;5733:585;;;;;:::o;7578:240:20:-;7664:4;7676:13;7692:17;7700:8;7692:7;:17::i;:::-;7676:33;;7734:5;7722:17;;:8;:17;;;:54;;;;7768:8;7743:33;;:21;7755:8;7743:11;:21::i;:::-;:33;;;7722:54;:91;;;;7780:33;7797:5;7804:8;7780:16;:33::i;:::-;7722:91;7715:98;;7578:240;;;;;:::o;8887:265::-;8988:6;8967:27;;:17;8975:8;8967:7;:17::i;:::-;:27;;;8959:36;;;;;;;;9041:1;9005:38;;:14;:24;9020:8;9005:24;;;;;;;;;;;;;;;;;;;;;:38;;;;9001:147;;;9088:1;9053:14;:24;9068:8;9053:24;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;9128:1;9103:38;;9112:6;9103:38;;;9132:8;9103:38;;;;;;;;;;;;;;;;;;9001:147;8887:265;;:::o;4202:856:22:-;4320:18;4373:22;4436:17;4275:38;4297:5;4304:8;4275:21;:38::i;:::-;4341:16;:26;4358:8;4341:26;;;;;;;;;;;;4320:47;;4398:32;4428:1;4398:11;:18;4410:5;4398:18;;;;;;;;;;;;;;;:25;;;;:29;;:32;;;;:::i;:::-;4373:57;;4456:11;:18;4468:5;4456:18;;;;;;;;;;;;;;;4475:14;4456:34;;;;;;;;;;;;;;;;;;4436:54;;4530:9;4497:11;:18;4509:5;4497:18;;;;;;;;;;;;;;;4516:10;4497:30;;;;;;;;;;;;;;;;;:42;;;;4582:1;4545:11;:18;4557:5;4545:18;;;;;;;;;;;;;;;4564:14;4545:34;;;;;;;;;;;;;;;;;:38;;;;4944:11;:18;4956:5;4944:18;;;;;;;;;;;;;;;:27;;;;;;;;;;;;:::i;:::-;;5006:1;4977:16;:26;4994:8;4977:26;;;;;;;;;;;:30;;;;5043:10;5013:16;:27;5030:9;5013:27;;;;;;;;;;;:40;;;;4202:856;;;;;:::o;3697:226::-;3800:14;3763:31;3780:3;3785:8;3763:16;:31::i;:::-;3817:11;:16;3829:3;3817:16;;;;;;;;;;;;;;;:23;;;;3800:40;;3846:11;:16;3858:3;3846:16;;;;;;;;;;;;;;;3868:8;3846:31;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;3846:31:22;;;;;;;;;;;;;;;;;;;;;;3912:6;3883:16;:26;3900:8;3883:26;;;;;;;;;;;:35;;;;3697:226;;;:::o;1008:123:15:-;1066:9;1091:1;1087;:5;1083:9;;1110:1;1105;:6;;1098:14;;;;;;1125:1;1118:8;;1008:123;;;;:::o;203:167::-;261:9;287:1;282;:6;278:35;;;305:1;298:8;;;;278:35;326:1;322;:5;318:9;;349:1;344;340;:5;;;;;;;;:10;333:18;;;;;;364:1;357:8;;203:167;;;;;:::o;452:272::-;510:7;718:1;714;:5;;;;;;;;707:12;;452:272;;;;:::o;836:110::-;894:7;921:1;916;:6;;909:14;;;;;;940:1;936;:5;929:12;;836:110;;;;:::o;10623:328:20:-;10762:4;10830:13;10781:16;:3;:14;;;:16::i;:::-;10780:17;10776:49;;;10814:4;10807:11;;;;10776:49;10861:3;10846:36;;;10883:5;10890:8;10900:5;10846:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;10846:60:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10846:60:20;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10846:60:20;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10846:60:20;;;;;;;;;;;;;;;;10830:76;;604:10;10930:15;;10920:25;;;:6;:25;;;;10912:34;;10623:328;;;;;;;;:::o;8072:169::-;8156:1;8141:17;;:3;:17;;;;8133:26;;;;;;;;8165:25;8176:3;8181:8;8165:10;:25::i;:::-;8222:3;8201:35;;8218:1;8201:35;;;8227:8;8201:35;;;;;;;;;;;;;;;;;;8072:169;;:::o;8432:188::-;8496:31;8510:6;8518:8;8496:13;:31::i;:::-;8533:33;8549:6;8557:8;8533:15;:33::i;:::-;8602:1;8577:38;;8586:6;8577:38;;;8606:8;8577:38;;;;;;;;;;;;;;;;;;8432:188;;:::o;9898:214::-;10000:5;9979:26;;:17;9987:8;9979:7;:17::i;:::-;:26;;;9971:35;;;;;;;;10038:30;10066:1;10038:16;:23;10055:5;10038:23;;;;;;;;;;;;;;;;:27;;:30;;;;:::i;:::-;10012:16;:23;10029:5;10012:23;;;;;;;;;;;;;;;:56;;;;10105:1;10074:10;:20;10085:8;10074:20;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;9898:214;;:::o;9415:204::-;9521:1;9489:34;;:10;:20;9500:8;9489:20;;;;;;;;;;;;;;;;;;;;;:34;;;9481:43;;;;;;;;9553:3;9530:10;:20;9541:8;9530:20;;;;;;;;;;;;:26;;;;;;;;;;;;;;;;;;9586:28;9612:1;9586:16;:21;9603:3;9586:21;;;;;;;;;;;;;;;;:25;;:28;;;;:::i;:::-;9562:16;:21;9579:3;9562:21;;;;;;;;;;;;;;;:52;;;;9415:204;;:::o;438:568:12:-;495:4;507:12;922:4;910:17;902:25;;1000:1;993:4;:8;986:15;;438:568;;;;:::o;797:8578:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",source:'pragma solidity 0.4.24;\n\nimport "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";\nimport "openzeppelin-solidity/contracts/math/SafeMath.sol";\nimport "../common/SplitPaymentChangeable.sol";\nimport "./Chaingeareable.sol";\nimport "../common/EntryInterface.sol";\nimport "../common/RegistryInterface.sol";\nimport "../common/Safe.sol";\n\n\n/**\n* @title Registry First Type Contract\n* @author cyber•Congress, Valery litvin (@litvintech)\n* @dev This contract in current flow used for Registry creation throught fabric in Chaingear\n* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed\n* @dev Admin sets contracts (EntrCore) which defines entry schema\n* @dev Entry creation/deletion/update permission are tokenized\n* @notice not recommend to use before release!\n*/\ncontract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token {\n\n using SafeMath for uint256;\n \n /*\n * Storage\n */\n\n // @dev Metadata of entry, holds ownership data and funding info\n struct EntryMeta {\n address creator;\n uint createdAt;\n uint lastUpdateTime;\n uint256 currentEntryBalanceETH;\n uint256 accumulatedOverallEntryETH;\n }\n \n // @dev Array of associated to entry/token metadata\n EntryMeta[] internal entriesMeta;\n\n /*\n * Constructor\n */\n\n /** \n * @dev Constructor of Registry, creates from fabric which triggers by chaingear\n * @param _benefitiaries address[] addresses of Registry benefitiaries\n\t* @param _shares uint256[] array with amount of shares by benefitiary\n\t* @param _name string Registry name, use for Registry ERC721\n\t* @param _symbol string Registry NFT symbol, use for Registry ERC721\n * @notice sets default entry creation policy to onlyAdmin\n * @notice sets default creation fee to zero\n * @notice Registry are inactive till he is not initialized with schema (EntryCore)\n */\n constructor(\n address[] _benefitiaries,\n uint256[] _shares,\n string _name,\n string _symbol\n )\n SplitPaymentChangeable(_benefitiaries, _shares)\n ERC721Token(_name, _symbol)\n public\n payable\n {\n createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin;\n entryCreationFee = 0;\n registrySafe = new Safe();\n registryInitStatus = false;\n }\n \n function() public payable {}\n \n /*\n * External functions\n */\n \n /**\n * @dev Creates ERC721 and init asscociated epmty entry in EntryCore\n * @return uint256 ID of ERC721 token\n * @notice Entry owner should to after token creation and entry init set\n * @notice entry data throught EntryCore updateEntry() \n * @notice This (and deletion) would work if EntryCore correctly written\n * @notice otherwise nothing should happen with Registry\n */\n function createEntry()\n external\n registryInitialized\n onlyPermissionedToCreateEntries\n whenNotPaused\n payable\n returns (uint256)\n {\n require(msg.value == entryCreationFee);\n \n EntryMeta memory meta = (EntryMeta(\n {\n lastUpdateTime: block.timestamp,\n createdAt: block.timestamp,\n creator: msg.sender,\n currentEntryBalanceETH: 0,\n accumulatedOverallEntryETH: 0\n }));\n \n entriesMeta.push(meta);\n \n //newEntryID equals current entriesAmount number, because token IDs starts from 0\n uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount();\n require(newEntryID == totalSupply());\n \n _mint(msg.sender, newEntryID);\n emit EntryCreated(newEntryID, msg.sender);\n \n uint256 createdEntryID = EntryInterface(entriesStorage).createEntry();\n require(newEntryID == createdEntryID);\n\n return newEntryID;\n }\n\n /**\n * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore\n * @param _entryID uint256 Entry-token ID\n */\n function deleteEntry(\n uint256 _entryID\n )\n external\n registryInitialized\n onlyOwnerOf(_entryID)\n whenNotPaused\n {\n require(entriesMeta[_entryID].currentEntryBalanceETH == 0);\n \n uint256 entryIndex = allTokensIndex[_entryID];\n \n uint256 lastEntryIndex = entriesMeta.length - 1;\n EntryMeta storage lastEntry = entriesMeta[lastEntryIndex];\n\n entriesMeta[_entryID] = lastEntry;\n delete entriesMeta[lastEntryIndex];\n entriesMeta.length--;\n \n _burn(msg.sender, _entryID);\n emit EntryDeleted(_entryID, msg.sender);\n \n EntryInterface(entriesStorage).deleteEntry(entryIndex);\n }\n\n function transferFrom(\n address _from,\n address _to,\n uint256 _tokenId\n ) \n public \n canTransfer(_tokenId)\n registryInitialized\n {\n require(_from != address(0));\n require(_to != address(0));\n\n clearApproval(_from, _tokenId);\n removeTokenFrom(_from, _tokenId);\n addTokenTo(_to, _tokenId);\n\n emit Transfer(_from, _to, _tokenId);\n } \n\n /**\n * @dev Allows anyone fund specified entry\n * @param _entryID uint256 Entry-token ID\n * @notice Funds tracks in EntryMeta, stores in Registry Safe\n */\n function fundEntry(\n uint256 _entryID\n )\n external\n registryInitialized\n whenNotPaused\n payable\n {\n entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value);\n entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value);\n emit EntryFunded(_entryID, msg.sender, msg.value);\n \n registrySafe.transfer(msg.value);\n }\n\n /**\n * @dev Allows entry token owner claim entry funds\n * @param _entryID uint256 Entry-token ID\n * @param _amount uint Amount in wei which token owner claims\n * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner)\n */\n function claimEntryFunds(\n uint256 _entryID, \n uint _amount\n )\n external\n registryInitialized\n onlyOwnerOf(_entryID)\n whenNotPaused\n {\n require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH);\n entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount);\n \n emit EntryFundsClaimed(_entryID, msg.sender, _amount);\n \n Safe(registrySafe).claim(msg.sender, _amount);\n }\n \n /**\n * @dev Allow to set last entry data update for entry-token meta\n * @param _entryID uint256 Entry-token ID\n * @notice Can be (should be) called only by EntryCore (updateEntry)\n */\n function updateEntryTimestamp(\n uint256 _entryID\n ) \n external\n {\n entriesMeta[_entryID].lastUpdateTime = block.timestamp;\n require(entriesStorage == msg.sender);\n }\n \n /*\n * View functions\n */\n \n function getEntryMeta(\n uint256 _entryID\n )\n external\n view\n returns (\n address,\n address,\n uint,\n uint,\n uint256,\n uint256\n )\n {\n return(\n ownerOf(_entryID),\n entriesMeta[_entryID].creator,\n entriesMeta[_entryID].createdAt,\n entriesMeta[_entryID].lastUpdateTime,\n entriesMeta[_entryID].currentEntryBalanceETH,\n entriesMeta[_entryID].accumulatedOverallEntryETH\n );\n }\n \n /**\n * @dev Verification function which auth user to update specified entry data in EntryCore\n * @param _entryID uint256 Entry-token ID\n * @param _caller address of caller which trying to update entry throught EntryCore\n * @return \n */\n function checkAuth(\n uint256 _entryID,\n address _caller\n )\n external\n view\n returns (bool)\n {\n require(ownerOf(_entryID) == _caller);\n }\n \n /**\n * @dev Allows update ERC721 token name (Registry Name)\n * @param _name string which represents name\n */\n function updateName(\n string _name\n )\n external\n onlyAdmin\n {\n name_ = _name;\n }\n \n /*\n * Public functions\n */\n\n /**\n * @dev Registry admin sets generated by them EntryCore contrats with thier schema and \n * @dev needed supported entry-token logic\n * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore\'s ABI\n * @param _entryCore bytes of contract which holds schema and accociated CRUD functions\n * @return address of deployed EntryCore\n */\n function initializeRegistry(\n string _linkToABIOfEntriesContract,\n bytes _entryCore\n )\n public\n onlyAdmin\n returns (address)\n {\n address deployedAddress;\n assembly {\n let s := mload(_entryCore)\n let p := add(_entryCore, 0x20)\n deployedAddress := create(0, p, s)\n }\n\n assert(deployedAddress != 0x0);\n entriesStorage = deployedAddress;\n registryInitStatus = true;\n linkToABIOfEntriesContract = _linkToABIOfEntriesContract;\n \n return entriesStorage;\n }\n \n}\n',sourcePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/registry/Registry.sol",ast:{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/registry/Registry.sol",exportedSymbols:{Registry:[2131]},id:2132,nodeType:"SourceUnit",nodes:[{id:1607,literals:["solidity","0.4",".24"],nodeType:"PragmaDirective",src:"0:23:10"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",file:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",id:1608,nodeType:"ImportDirective",scope:2132,sourceUnit:3828,src:"25:70:10",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/math/SafeMath.sol",file:"openzeppelin-solidity/contracts/math/SafeMath.sol",id:1609,nodeType:"ImportDirective",scope:2132,sourceUnit:2441,src:"96:59:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/SplitPaymentChangeable.sol",file:"../common/SplitPaymentChangeable.sol",id:1610,nodeType:"ImportDirective",scope:2132,sourceUnit:1109,src:"156:46:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/registry/Chaingeareable.sol",file:"./Chaingeareable.sol",id:1611,nodeType:"ImportDirective",scope:2132,sourceUnit:1381,src:"203:30:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/EntryInterface.sol",file:"../common/EntryInterface.sol",id:1612,nodeType:"ImportDirective",scope:2132,sourceUnit:908,src:"234:38:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/RegistryInterface.sol",file:"../common/RegistryInterface.sol",id:1613,nodeType:"ImportDirective",scope:2132,sourceUnit:963,src:"273:41:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/Safe.sol",file:"../common/Safe.sol",id:1614,nodeType:"ImportDirective",scope:2132,sourceUnit:1024,src:"315:28:10",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:1615,name:"RegistryInterface",nodeType:"UserDefinedTypeName",referencedDeclaration:962,src:"818:17:10",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:1616,nodeType:"InheritanceSpecifier",src:"818:17:10"},{arguments:null,baseName:{contractScope:null,id:1617,name:"Chaingeareable",nodeType:"UserDefinedTypeName",referencedDeclaration:1380,src:"837:14:10",typeDescriptions:{typeIdentifier:"t_contract$_Chaingeareable_$1380",typeString:"contract Chaingeareable"}},id:1618,nodeType:"InheritanceSpecifier",src:"837:14:10"},{arguments:null,baseName:{contractScope:null,id:1619,name:"SplitPaymentChangeable",nodeType:"UserDefinedTypeName",referencedDeclaration:1108,src:"853:22:10",typeDescriptions:{typeIdentifier:"t_contract$_SplitPaymentChangeable_$1108",typeString:"contract SplitPaymentChangeable"}},id:1620,nodeType:"InheritanceSpecifier",src:"853:22:10"},{arguments:null,baseName:{contractScope:null,id:1621,name:"ERC721Token",nodeType:"UserDefinedTypeName",referencedDeclaration:3827,src:"877:11:10",typeDescriptions:{typeIdentifier:"t_contract$_ERC721Token_$3827",typeString:"contract ERC721Token"}},id:1622,nodeType:"InheritanceSpecifier",src:"877:11:10"}],contractDependencies:[962,1023,1108,1380,2235,2346,2496,2696,2723,2743,2750,2857,3440,3827],contractKind:"contract",documentation:"@title Registry First Type Contract\n@author cyber•Congress, Valery litvin (@litvintech)\n@dev This contract in current flow used for Registry creation throught fabric in Chaingear\n@dev Registry creates ERC721 for each entry, entry may be funded/funds claimed\n@dev Admin sets contracts (EntrCore) which defines entry schema\n@dev Entry creation/deletion/update permission are tokenized\n@notice not recommend to use before release!",fullyImplemented:!0,id:2131,linearizedBaseContracts:[2131,3827,3440,2750,2743,2723,2857,1108,1380,2235,2346,2496,2696,962],name:"Registry",nodeType:"ContractDefinition",nodes:[{id:1625,libraryName:{contractScope:null,id:1623,name:"SafeMath",nodeType:"UserDefinedTypeName",referencedDeclaration:2440,src:"902:8:10",typeDescriptions:{typeIdentifier:"t_contract$_SafeMath_$2440",typeString:"library SafeMath"}},nodeType:"UsingForDirective",src:"896:27:10",typeName:{id:1624,name:"uint256",nodeType:"ElementaryTypeName",src:"915:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}},{canonicalName:"Registry.EntryMeta",id:1636,members:[{constant:!1,id:1627,name:"creator",nodeType:"VariableDeclaration",scope:1636,src:"1059:15:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1626,name:"address",nodeType:"ElementaryTypeName",src:"1059:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1629,name:"createdAt",nodeType:"VariableDeclaration",scope:1636,src:"1084:14:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1628,name:"uint",nodeType:"ElementaryTypeName",src:"1084:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1631,name:"lastUpdateTime",nodeType:"VariableDeclaration",scope:1636,src:"1108:19:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1630,name:"uint",nodeType:"ElementaryTypeName",src:"1108:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1633,name:"currentEntryBalanceETH",nodeType:"VariableDeclaration",scope:1636,src:"1137:30:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1632,name:"uint256",nodeType:"ElementaryTypeName",src:"1137:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1635,name:"accumulatedOverallEntryETH",nodeType:"VariableDeclaration",scope:1636,src:"1177:34:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1634,name:"uint256",nodeType:"ElementaryTypeName",src:"1177:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],name:"EntryMeta",nodeType:"StructDefinition",scope:2131,src:"1032:186:10",visibility:"public"},{constant:!1,id:1639,name:"entriesMeta",nodeType:"VariableDeclaration",scope:2131,src:"1284:32:10",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta[]"},typeName:{baseType:{contractScope:null,id:1637,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"1284:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},id:1638,length:null,nodeType:"ArrayTypeName",src:"1284:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage_ptr",typeString:"struct Registry.EntryMeta[]"}},value:null,visibility:"internal"},{body:{id:1679,nodeType:"Block",src:"2183:183:10",statements:[{expression:{argumentTypes:null,id:1663,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1660,name:"createEntryPermissionGroup",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2143,src:"2193:26:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,expression:{argumentTypes:null,id:1661,name:"CreateEntryPermissionGroup",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2141,src:"2222:26:10",typeDescriptions:{typeIdentifier:"t_type$_t_enum$_CreateEntryPermissionGroup_$2141_$",typeString:"type(enum RegistryPermissionControl.CreateEntryPermissionGroup)"}},id:1662,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,memberName:"OnlyAdmin",nodeType:"MemberAccess",referencedDeclaration:null,src:"2222:36:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},src:"2193:65:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},id:1664,nodeType:"ExpressionStatement",src:"2193:65:10"},{expression:{argumentTypes:null,id:1667,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1665,name:"entryCreationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1115,src:"2268:16:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"30",id:1666,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"2287:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"2268:20:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1668,nodeType:"ExpressionStatement",src:"2268:20:10"},{expression:{argumentTypes:null,id:1673,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1669,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"2298:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:1671,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"NewExpression",src:"2313:8:10",typeDescriptions:{typeIdentifier:"t_function_creation_payable$__$returns$_t_contract$_Safe_$1023_$",typeString:"function () payable returns (contract Safe)"},typeName:{contractScope:null,id:1670,name:"Safe",nodeType:"UserDefinedTypeName",referencedDeclaration:1023,src:"2317:4:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}}},id:1672,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2313:10:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},src:"2298:25:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1674,nodeType:"ExpressionStatement",src:"2298:25:10"},{expression:{argumentTypes:null,id:1677,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1675,name:"registryInitStatus",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1128,src:"2333:18:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"66616c7365",id:1676,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"2354:5:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"2333:26:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:1678,nodeType:"ExpressionStatement",src:"2333:26:10"}]},documentation:"@dev Constructor of Registry, creates from fabric which triggers by chaingear\n@param _benefitiaries address[] addresses of Registry benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _name string Registry name, use for Registry ERC721\n@param _symbol string Registry NFT symbol, use for Registry ERC721\n@notice sets default entry creation policy to onlyAdmin\n@notice sets default creation fee to zero\n@notice Registry are inactive till he is not initialized with schema (EntryCore)",id:1680,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:1652,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1642,src:"2087:14:10",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:1653,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1645,src:"2103:7:10",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}}],id:1654,modifierName:{argumentTypes:null,id:1651,name:"SplitPaymentChangeable",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1108,src:"2064:22:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_SplitPaymentChangeable_$1108_$",typeString:"type(contract SplitPaymentChangeable)"}},nodeType:"ModifierInvocation",src:"2064:47:10"},{arguments:[{argumentTypes:null,id:1656,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1647,src:"2132:5:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:1657,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1649,src:"2139:7:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],id:1658,modifierName:{argumentTypes:null,id:1655,name:"ERC721Token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3827,src:"2120:11:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_ERC721Token_$3827_$",typeString:"type(contract ERC721Token)"}},nodeType:"ModifierInvocation",src:"2120:27:10"}],name:"",nodeType:"FunctionDefinition",parameters:{id:1650,nodeType:"ParameterList",parameters:[{constant:!1,id:1642,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:1680,src:"1952:24:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:1640,name:"address",nodeType:"ElementaryTypeName",src:"1952:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1641,length:null,nodeType:"ArrayTypeName",src:"1952:9:10",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:1645,name:"_shares",nodeType:"VariableDeclaration",scope:1680,src:"1986:17:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:1643,name:"uint256",nodeType:"ElementaryTypeName",src:"1986:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1644,length:null,nodeType:"ArrayTypeName",src:"1986:9:10",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:1647,name:"_name",nodeType:"VariableDeclaration",scope:1680,src:"2013:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:1646,name:"string",nodeType:"ElementaryTypeName",src:"2013:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:1649,name:"_symbol",nodeType:"VariableDeclaration",scope:1680,src:"2035:14:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:1648,name:"string",nodeType:"ElementaryTypeName",src:"2035:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"1942:113:10"},payable:!0,returnParameters:{id:1659,nodeType:"ParameterList",parameters:[],src:"2183:0:10"},scope:2131,src:"1931:435:10",stateMutability:"payable",superFunction:null,visibility:"public"},{body:{id:1683,nodeType:"Block",src:"2402:2:10",statements:[]},documentation:null,id:1684,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:1681,nodeType:"ParameterList",parameters:[],src:"2384:2:10"},payable:!0,returnParameters:{id:1682,nodeType:"ParameterList",parameters:[],src:"2402:0:10"},scope:2131,src:"2376:28:10",stateMutability:"payable",superFunction:2563,visibility:"public"},{body:{id:1765,nodeType:"Block",src:"3034:855:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1699,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1696,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3052:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1697,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"3052:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:1698,name:"entryCreationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1115,src:"3065:16:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3052:29:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1695,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3044:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1700,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3044:38:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1701,nodeType:"ExpressionStatement",src:"3044:38:10"},{assignments:[1703],declarations:[{constant:!1,id:1703,name:"meta",nodeType:"VariableDeclaration",scope:1766,src:"3101:21:10",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta"},typeName:{contractScope:null,id:1702,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"3101:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},value:null,visibility:"internal"}],id:1715,initialValue:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1705,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"3175:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:1706,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"3175:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1707,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"3215:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:1708,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"3215:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1709,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3253:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1710,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3253:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,hexValue:"30",id:1711,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3301:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},{argumentTypes:null,hexValue:"30",id:1712,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3344:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:null,id:1704,name:"EntryMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1636,src:"3126:9:10",typeDescriptions:{typeIdentifier:"t_type$_t_struct$_EntryMeta_$1636_storage_ptr_$",typeString:"type(struct Registry.EntryMeta storage pointer)"}},id:1713,isConstant:!1,isLValue:!1,isPure:!1,kind:"structConstructorCall",lValueRequested:!1,names:["lastUpdateTime","createdAt","creator","currentEntryBalanceETH","accumulatedOverallEntryETH"],nodeType:"FunctionCall",src:"3126:230:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory",typeString:"struct Registry.EntryMeta memory"}}],id:1714,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"3125:232:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory",typeString:"struct Registry.EntryMeta memory"}},nodeType:"VariableDeclarationStatement",src:"3101:256:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1719,name:"meta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1703,src:"3393:4:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta memory"}],expression:{argumentTypes:null,id:1716,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"3376:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1718,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"push",nodeType:"MemberAccess",referencedDeclaration:null,src:"3376:16:10",typeDescriptions:{typeIdentifier:"t_function_arraypush_nonpayable$_t_struct$_EntryMeta_$1636_storage_$returns$_t_uint256_$",typeString:"function (struct Registry.EntryMeta storage ref) returns (uint256)"}},id:1720,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3376:22:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1721,nodeType:"ExpressionStatement",src:"3376:22:10"},{assignments:[1723],declarations:[{constant:!1,id:1723,name:"newEntryID",nodeType:"VariableDeclaration",scope:1766,src:"3507:18:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1722,name:"uint256",nodeType:"ElementaryTypeName",src:"3507:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1729,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1725,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"3543:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1724,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"3528:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1726,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3528:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1727,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"entriesAmount",nodeType:"MemberAccess",referencedDeclaration:896,src:"3528:44:10",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_uint256_$",typeString:"function () view external returns (uint256)"}},id:1728,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3528:46:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"3507:67:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1734,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1731,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3592:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:1732,name:"totalSupply",nodeType:"Identifier",overloadedDeclarations:[3572],referencedDeclaration:3572,src:"3606:11:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$__$returns$_t_uint256_$",typeString:"function () view returns (uint256)"}},id:1733,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3606:13:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3592:27:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1730,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3584:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1735,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3584:36:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1736,nodeType:"ExpressionStatement",src:"3584:36:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1738,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3645:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1739,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3645:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1740,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3657:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1737,name:"_mint",nodeType:"Identifier",overloadedDeclarations:[3747],referencedDeclaration:3747,src:"3639:5:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1741,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3639:29:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1742,nodeType:"ExpressionStatement",src:"3639:29:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1744,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3696:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1745,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3708:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1746,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3708:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"}],id:1743,name:"EntryCreated",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1144,src:"3683:12:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$",typeString:"function (uint256,address)"}},id:1747,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3683:36:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1748,nodeType:"EmitStatement",src:"3678:41:10"},{assignments:[1750],declarations:[{constant:!1,id:1750,name:"createdEntryID",nodeType:"VariableDeclaration",scope:1766,src:"3738:22:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1749,name:"uint256",nodeType:"ElementaryTypeName",src:"3738:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1756,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1752,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"3778:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1751,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"3763:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1753,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3763:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1754,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"createEntry",nodeType:"MemberAccess",referencedDeclaration:901,src:"3763:42:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$__$returns$_t_uint256_$",typeString:"function () external returns (uint256)"}},id:1755,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3763:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"3738:69:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1760,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1758,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3825:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:1759,name:"createdEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1750,src:"3839:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3825:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1757,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3817:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1761,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3817:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1762,nodeType:"ExpressionStatement",src:"3817:37:10"},{expression:{argumentTypes:null,id:1763,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3872:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},functionReturnParameters:1694,id:1764,nodeType:"Return",src:"3865:17:10"}]},documentation:"@dev Creates ERC721 and init asscociated epmty entry in EntryCore\n@return uint256 ID of ERC721 token\n@notice Entry owner should to after token creation and entry init set\n@notice entry data throught EntryCore updateEntry() \n@notice This (and deletion) would work if EntryCore correctly written\n@notice otherwise nothing should happen with Registry",id:1766,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1687,modifierName:{argumentTypes:null,id:1686,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"2906:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2906:19:10"},{arguments:null,id:1689,modifierName:{argumentTypes:null,id:1688,name:"onlyPermissionedToCreateEntries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2171,src:"2934:31:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2934:31:10"},{arguments:null,id:1691,modifierName:{argumentTypes:null,id:1690,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"2974:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2974:13:10"}],name:"createEntry",nodeType:"FunctionDefinition",parameters:{id:1685,nodeType:"ParameterList",parameters:[],src:"2878:2:10"},payable:!0,returnParameters:{id:1694,nodeType:"ParameterList",parameters:[{constant:!1,id:1693,name:"",nodeType:"VariableDeclaration",scope:1766,src:"3021:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1692,name:"uint256",nodeType:"ElementaryTypeName",src:"3021:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"3020:9:10"},scope:2131,src:"2858:1031:10",stateMutability:"payable",superFunction:924,visibility:"external"},{body:{id:1841,nodeType:"Block",src:"4190:558:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1784,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1779,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4208:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1781,indexExpression:{argumentTypes:null,id:1780,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4220:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4208:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1782,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"4208:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"30",id:1783,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4256:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"4208:49:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1778,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4200:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1785,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4200:58:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1786,nodeType:"ExpressionStatement",src:"4200:58:10"},{assignments:[1788],declarations:[{constant:!1,id:1788,name:"entryIndex",nodeType:"VariableDeclaration",scope:1842,src:"4277:18:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1787,name:"uint256",nodeType:"ElementaryTypeName",src:"4277:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1792,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1789,name:"allTokensIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3485,src:"4298:14:10",typeDescriptions:{typeIdentifier:"t_mapping$_t_uint256_$_t_uint256_$",typeString:"mapping(uint256 => uint256)"}},id:1791,indexExpression:{argumentTypes:null,id:1790,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4313:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4298:24:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4277:45:10"},{assignments:[1794],declarations:[{constant:!1,id:1794,name:"lastEntryIndex",nodeType:"VariableDeclaration",scope:1842,src:"4341:22:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1793,name:"uint256",nodeType:"ElementaryTypeName",src:"4341:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1799,initialValue:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1798,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1795,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4366:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1796,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4366:18:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"-",rightExpression:{argumentTypes:null,hexValue:"31",id:1797,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4387:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"},src:"4366:22:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4341:47:10"},{assignments:[1801],declarations:[{constant:!1,id:1801,name:"lastEntry",nodeType:"VariableDeclaration",scope:1842,src:"4398:27:10",stateVariable:!1,storageLocation:"storage",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"},typeName:{contractScope:null,id:1800,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"4398:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},value:null,visibility:"internal"}],id:1805,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1802,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4428:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1804,indexExpression:{argumentTypes:null,id:1803,name:"lastEntryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1794,src:"4440:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4428:27:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},nodeType:"VariableDeclarationStatement",src:"4398:57:10"},{expression:{argumentTypes:null,id:1810,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1806,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4466:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1808,indexExpression:{argumentTypes:null,id:1807,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4478:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4466:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:1809,name:"lastEntry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1801,src:"4490:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta storage pointer"}},src:"4466:33:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1811,nodeType:"ExpressionStatement",src:"4466:33:10"},{expression:{argumentTypes:null,id:1815,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"delete",prefix:!0,src:"4509:34:10",subExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1812,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4516:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1814,indexExpression:{argumentTypes:null,id:1813,name:"lastEntryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1794,src:"4528:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4516:27:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1816,nodeType:"ExpressionStatement",src:"4509:34:10"},{expression:{argumentTypes:null,id:1820,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"--",prefix:!1,src:"4553:20:10",subExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1817,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4553:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1819,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4553:18:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1821,nodeType:"ExpressionStatement",src:"4553:20:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1823,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4598:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1824,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4598:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1825,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4610:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1822,name:"_burn",nodeType:"Identifier",overloadedDeclarations:[3826],referencedDeclaration:3826,src:"4592:5:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1826,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4592:27:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1827,nodeType:"ExpressionStatement",src:"4592:27:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1829,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4647:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1830,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4657:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1831,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4657:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"}],id:1828,name:"EntryDeleted",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1156,src:"4634:12:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$",typeString:"function (uint256,address)"}},id:1832,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4634:34:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1833,nodeType:"EmitStatement",src:"4629:39:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1838,name:"entryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1788,src:"4730:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1835,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"4702:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1834,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"4687:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1836,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4687:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1837,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"deleteEntry",nodeType:"MemberAccess",referencedDeclaration:906,src:"4687:42:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256) external"}},id:1839,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4687:54:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1840,nodeType:"ExpressionStatement",src:"4687:54:10"}]},documentation:"@dev Allow entry owner delete Entry-token and also Entry-data in EntryCore\n@param _entryID uint256 Entry-token ID",id:1842,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1771,modifierName:{argumentTypes:null,id:1770,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"4114:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4114:19:10"},{arguments:[{argumentTypes:null,id:1773,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4154:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1774,modifierName:{argumentTypes:null,id:1772,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"4142:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4142:21:10"},{arguments:null,id:1776,modifierName:{argumentTypes:null,id:1775,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"4172:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4172:13:10"}],name:"deleteEntry",nodeType:"FunctionDefinition",parameters:{id:1769,nodeType:"ParameterList",parameters:[{constant:!1,id:1768,name:"_entryID",nodeType:"VariableDeclaration",scope:1842,src:"4066:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1767,name:"uint256",nodeType:"ElementaryTypeName",src:"4066:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4056:32:10"},payable:!1,returnParameters:{id:1777,nodeType:"ParameterList",parameters:[],src:"4190:0:10"},scope:2131,src:"4036:712:10",stateMutability:"nonpayable",superFunction:929,visibility:"external"},{body:{id:1893,nodeType:"Block",src:"4931:245:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:1861,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1857,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"4949:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:1859,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4966:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:1858,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"4958:7:10",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:1860,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4958:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"4949:19:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1856,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4941:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1862,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4941:28:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1863,nodeType:"ExpressionStatement",src:"4941:28:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:1869,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1865,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"4987:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:1867,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"5002:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:1866,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"4994:7:10",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:1868,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4994:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"4987:17:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1864,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4979:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1870,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4979:26:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1871,nodeType:"ExpressionStatement",src:"4979:26:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1873,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5030:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1874,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5037:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1872,name:"clearApproval",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3331,src:"5016:13:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1875,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5016:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1876,nodeType:"ExpressionStatement",src:"5016:30:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1878,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5072:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1879,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5079:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1877,name:"removeTokenFrom",nodeType:"Identifier",overloadedDeclarations:[3719],referencedDeclaration:3719,src:"5056:15:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1880,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5056:32:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1881,nodeType:"ExpressionStatement",src:"5056:32:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1883,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"5109:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1884,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5114:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1882,name:"addTokenTo",nodeType:"Identifier",overloadedDeclarations:[3646],referencedDeclaration:3646,src:"5098:10:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1885,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5098:25:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1886,nodeType:"ExpressionStatement",src:"5098:25:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1888,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5148:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1889,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"5155:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1890,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5160:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1887,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2760,src:"5139:8:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:1891,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5139:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1892,nodeType:"EmitStatement",src:"5134:35:10"}]},documentation:null,id:1894,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:1851,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"4889:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1852,modifierName:{argumentTypes:null,id:1850,name:"canTransfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2921,src:"4877:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4877:21:10"},{arguments:null,id:1854,modifierName:{argumentTypes:null,id:1853,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"4907:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4907:19:10"}],name:"transferFrom",nodeType:"FunctionDefinition",parameters:{id:1849,nodeType:"ParameterList",parameters:[{constant:!1,id:1844,name:"_from",nodeType:"VariableDeclaration",scope:1894,src:"4785:13:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1843,name:"address",nodeType:"ElementaryTypeName",src:"4785:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1846,name:"_to",nodeType:"VariableDeclaration",scope:1894,src:"4808:11:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1845,name:"address",nodeType:"ElementaryTypeName",src:"4808:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1848,name:"_tokenId",nodeType:"VariableDeclaration",scope:1894,src:"4829:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1847,name:"uint256",nodeType:"ElementaryTypeName",src:"4829:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4775:76:10"},payable:!1,returnParameters:{id:1855,nodeType:"ParameterList",parameters:[],src:"4931:0:10"},scope:2131,src:"4754:422:10",stateMutability:"nonpayable",superFunction:3154,visibility:"public"},{body:{id:1946,nodeType:"Block",src:"5493:357:10",statements:[{expression:{argumentTypes:null,id:1915,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1903,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5503:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1905,indexExpression:{argumentTypes:null,id:1904,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5515:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5503:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1906,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"5503:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1912,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5599:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1913,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5599:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1907,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5550:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1909,indexExpression:{argumentTypes:null,id:1908,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5562:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5550:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1910,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"5550:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1911,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5550:48:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1914,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5550:59:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5503:106:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1916,nodeType:"ExpressionStatement",src:"5503:106:10"},{expression:{argumentTypes:null,id:1929,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1917,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5619:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1919,indexExpression:{argumentTypes:null,id:1918,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5631:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5619:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1920,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"5619:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1926,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5723:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1927,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5723:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1921,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5670:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1923,indexExpression:{argumentTypes:null,id:1922,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5682:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5670:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1924,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"5670:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1925,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5670:52:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1928,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5670:63:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5619:114:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1930,nodeType:"ExpressionStatement",src:"5619:114:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1932,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5760:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1933,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5770:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1934,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5770:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:1935,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5782:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1936,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5782:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1931,name:"EntryFunded",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1164,src:"5748:11:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:1937,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5748:44:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1938,nodeType:"EmitStatement",src:"5743:49:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1942,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5833:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1943,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5833:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,id:1939,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"5811:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1941,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transfer",nodeType:"MemberAccess",referencedDeclaration:null,src:"5811:21:10",typeDescriptions:{typeIdentifier:"t_function_transfer_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:1944,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5811:32:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1945,nodeType:"ExpressionStatement",src:"5811:32:10"}]},documentation:"@dev Allows anyone fund specified entry\n@param _entryID uint256 Entry-token ID\n@notice Funds tracks in EntryMeta, stores in Registry Safe",id:1947,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1899,modifierName:{argumentTypes:null,id:1898,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"5431:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5431:19:10"},{arguments:null,id:1901,modifierName:{argumentTypes:null,id:1900,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"5459:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5459:13:10"}],name:"fundEntry",nodeType:"FunctionDefinition",parameters:{id:1897,nodeType:"ParameterList",parameters:[{constant:!1,id:1896,name:"_entryID",nodeType:"VariableDeclaration",scope:1947,src:"5383:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1895,name:"uint256",nodeType:"ElementaryTypeName",src:"5383:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"5373:32:10"},payable:!0,returnParameters:{id:1902,nodeType:"ParameterList",parameters:[],src:"5493:0:10"},scope:2131,src:"5355:495:10",stateMutability:"payable",superFunction:934,visibility:"external"},{body:{id:1999,nodeType:"Block",src:"6296:331:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1967,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1962,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6314:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"<=",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1963,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6325:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1965,indexExpression:{argumentTypes:null,id:1964,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6337:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6325:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1966,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6325:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6314:55:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1961,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6306:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1968,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6306:64:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1969,nodeType:"ExpressionStatement",src:"6306:64:10"},{expression:{argumentTypes:null,id:1981,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1970,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6380:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1972,indexExpression:{argumentTypes:null,id:1971,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6392:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6380:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1973,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6380:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,id:1979,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6476:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1974,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6427:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1976,indexExpression:{argumentTypes:null,id:1975,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6439:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6427:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1977,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6427:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1978,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"6427:48:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1980,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6427:57:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6380:104:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1982,nodeType:"ExpressionStatement",src:"6380:104:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1984,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6526:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1985,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6536:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1986,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6536:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1987,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6548:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1983,name:"EntryFundsClaimed",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1172,src:"6508:17:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:1988,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6508:48:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1989,nodeType:"EmitStatement",src:"6503:53:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1994,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6600:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1995,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6600:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1996,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6612:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1991,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"6580:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1990,name:"Safe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1023,src:"6575:4:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Safe_$1023_$",typeString:"type(contract Safe)"}},id:1992,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6575:18:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},id:1993,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"claim",nodeType:"MemberAccess",referencedDeclaration:1022,src:"6575:24:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256) external"}},id:1997,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6575:45:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1998,nodeType:"ExpressionStatement",src:"6575:45:10"}]},documentation:"@dev Allows entry token owner claim entry funds\n@param _entryID uint256 Entry-token ID\n@param _amount uint Amount in wei which token owner claims\n@notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner)",id:2e3,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1954,modifierName:{argumentTypes:null,id:1953,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"6220:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6220:19:10"},{arguments:[{argumentTypes:null,id:1956,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6260:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1957,modifierName:{argumentTypes:null,id:1955,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"6248:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"6248:21:10"},{arguments:null,id:1959,modifierName:{argumentTypes:null,id:1958,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"6278:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6278:13:10"}],name:"claimEntryFunds",nodeType:"FunctionDefinition",parameters:{id:1952,nodeType:"ParameterList",parameters:[{constant:!1,id:1949,name:"_entryID",nodeType:"VariableDeclaration",scope:2e3,src:"6149:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1948,name:"uint256",nodeType:"ElementaryTypeName",src:"6149:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1951,name:"_amount",nodeType:"VariableDeclaration",scope:2e3,src:"6176:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1950,name:"uint",nodeType:"ElementaryTypeName",src:"6176:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6139:55:10"},payable:!1,returnParameters:{id:1960,nodeType:"ParameterList",parameters:[],src:"6296:0:10"},scope:2131,src:"6115:512:10",stateMutability:"nonpayable",superFunction:941,visibility:"external"},{body:{id:2020,nodeType:"Block",src:"6921:118:10",statements:[{expression:{argumentTypes:null,id:2011,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2005,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6931:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2007,indexExpression:{argumentTypes:null,id:2006,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2002,src:"6943:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6931:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2008,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"lastUpdateTime",nodeType:"MemberAccess",referencedDeclaration:1631,src:"6931:36:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,expression:{argumentTypes:null,id:2009,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"6970:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:2010,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"6970:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6931:54:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:2012,nodeType:"ExpressionStatement",src:"6931:54:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2017,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:2014,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"7003:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,id:2015,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"7021:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:2016,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"7021:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"7003:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2013,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6995:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2018,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6995:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2019,nodeType:"ExpressionStatement",src:"6995:37:10"}]},documentation:"@dev Allow to set last entry data update for entry-token meta\n@param _entryID uint256 Entry-token ID\n@notice Can be (should be) called only by EntryCore (updateEntry)",id:2021,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"updateEntryTimestamp",nodeType:"FunctionDefinition",parameters:{id:2003,nodeType:"ParameterList",parameters:[{constant:!1,id:2002,name:"_entryID",nodeType:"VariableDeclaration",scope:2021,src:"6876:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2001,name:"uint256",nodeType:"ElementaryTypeName",src:"6876:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6866:32:10"},payable:!1,returnParameters:{id:2004,nodeType:"ParameterList",parameters:[],src:"6921:0:10"},scope:2131,src:"6837:202:10",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:2063,nodeType:"Block",src:"7325:322:10",statements:[{expression:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,id:2039,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7363:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:2038,name:"ownerOf",nodeType:"Identifier",overloadedDeclarations:[2965],referencedDeclaration:2965,src:"7355:7:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$_t_uint256_$returns$_t_address_$",typeString:"function (uint256) view returns (address)"}},id:2040,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7355:17:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2041,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7386:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2043,indexExpression:{argumentTypes:null,id:2042,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7398:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7386:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2044,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"creator",nodeType:"MemberAccess",referencedDeclaration:1627,src:"7386:29:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2045,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7429:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2047,indexExpression:{argumentTypes:null,id:2046,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7441:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7429:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2048,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"createdAt",nodeType:"MemberAccess",referencedDeclaration:1629,src:"7429:31:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2049,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7474:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2051,indexExpression:{argumentTypes:null,id:2050,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7486:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7474:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2052,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"lastUpdateTime",nodeType:"MemberAccess",referencedDeclaration:1631,src:"7474:36:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2053,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7524:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2055,indexExpression:{argumentTypes:null,id:2054,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7536:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7524:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2056,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"7524:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2057,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7582:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2059,indexExpression:{argumentTypes:null,id:2058,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7594:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7582:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2060,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"7582:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:2061,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"7341:299:10",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",typeString:"tuple(address,address,uint256,uint256,uint256,uint256)"}},functionReturnParameters:2037,id:2062,nodeType:"Return",src:"7335:305:10"}]},documentation:null,id:2064,implemented:!0,isConstructor:!1,isDeclaredConst:!0,modifiers:[],name:"getEntryMeta",nodeType:"FunctionDefinition",parameters:{id:2024,nodeType:"ParameterList",parameters:[{constant:!1,id:2023,name:"_entryID",nodeType:"VariableDeclaration",scope:2064,src:"7121:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2022,name:"uint256",nodeType:"ElementaryTypeName",src:"7121:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7111:32:10"},payable:!1,returnParameters:{id:2037,nodeType:"ParameterList",parameters:[{constant:!1,id:2026,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7204:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2025,name:"address",nodeType:"ElementaryTypeName",src:"7204:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:2028,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7225:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2027,name:"address",nodeType:"ElementaryTypeName",src:"7225:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:2030,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7246:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2029,name:"uint",nodeType:"ElementaryTypeName",src:"7246:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2032,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7264:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2031,name:"uint",nodeType:"ElementaryTypeName",src:"7264:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2034,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7282:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2033,name:"uint256",nodeType:"ElementaryTypeName",src:"7282:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2036,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7303:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2035,name:"uint256",nodeType:"ElementaryTypeName",src:"7303:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7190:130:10"},scope:2131,src:"7090:557:10",stateMutability:"view",superFunction:null,visibility:"external"},{body:{id:2081,nodeType:"Block",src:"8046:54:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2078,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:2075,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2066,src:"8072:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:2074,name:"ownerOf",nodeType:"Identifier",overloadedDeclarations:[2965],referencedDeclaration:2965,src:"8064:7:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$_t_uint256_$returns$_t_address_$",typeString:"function (uint256) view returns (address)"}},id:2076,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8064:17:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:2077,name:"_caller",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2068,src:"8085:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"8064:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2073,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"8056:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2079,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8056:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2080,nodeType:"ExpressionStatement",src:"8056:37:10"}]},documentation:"@dev Verification function which auth user to update specified entry data in EntryCore\n@param _entryID uint256 Entry-token ID\n@param _caller address of caller which trying to update entry throught EntryCore\n@return ",id:2082,implemented:!0,isConstructor:!1,isDeclaredConst:!0,modifiers:[],name:"checkAuth",nodeType:"FunctionDefinition",parameters:{id:2069,nodeType:"ParameterList",parameters:[{constant:!1,id:2066,name:"_entryID",nodeType:"VariableDeclaration",scope:2082,src:"7941:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2065,name:"uint256",nodeType:"ElementaryTypeName",src:"7941:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2068,name:"_caller",nodeType:"VariableDeclaration",scope:2082,src:"7967:15:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2067,name:"address",nodeType:"ElementaryTypeName",src:"7967:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],src:"7931:57:10"},payable:!1,returnParameters:{id:2072,nodeType:"ParameterList",parameters:[{constant:!1,id:2071,name:"",nodeType:"VariableDeclaration",scope:2082,src:"8036:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},typeName:{id:2070,name:"bool",nodeType:"ElementaryTypeName",src:"8036:4:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},value:null,visibility:"internal"}],src:"8035:6:10"},scope:2131,src:"7913:187:10",stateMutability:"view",superFunction:null,visibility:"external"},{body:{id:2093,nodeType:"Block",src:"8319:30:10",statements:[{expression:{argumentTypes:null,id:2091,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2089,name:"name_",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3467,src:"8329:5:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2090,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2084,src:"8337:5:10",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},src:"8329:13:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:2092,nodeType:"ExpressionStatement",src:"8329:13:10"}]},documentation:"@dev Allows update ERC721 token name (Registry Name)\n@param _name string which represents name",id:2094,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:2087,modifierName:{argumentTypes:null,id:2086,name:"onlyAdmin",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2154,src:"8305:9:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"8305:9:10"}],name:"updateName",nodeType:"FunctionDefinition",parameters:{id:2085,nodeType:"ParameterList",parameters:[{constant:!1,id:2084,name:"_name",nodeType:"VariableDeclaration",scope:2094,src:"8261:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:2083,name:"string",nodeType:"ElementaryTypeName",src:"8261:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"8251:28:10"},payable:!1,returnParameters:{id:2088,nodeType:"ParameterList",parameters:[],src:"8319:0:10"},scope:2131,src:"8232:117:10",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:2129,nodeType:"Block",src:"8946:422:10",statements:[{assignments:[],declarations:[{constant:!1,id:2106,name:"deployedAddress",nodeType:"VariableDeclaration",scope:2130,src:"8956:23:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2105,name:"address",nodeType:"ElementaryTypeName",src:"8956:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:2107,initialValue:null,nodeType:"VariableDeclarationStatement",src:"8956:23:10"},{externalReferences:[{_entryCore:{declaration:2098,isOffset:!1,isSlot:!1,src:"9027:10:10",valueSize:1}},{deployedAddress:{declaration:2106,isOffset:!1,isSlot:!1,src:"9094:15:10",valueSize:1}},{_entryCore:{declaration:2098,isOffset:!1,isSlot:!1,src:"9064:10:10",valueSize:1}}],id:2108,nodeType:"InlineAssembly",operations:"{\n let s := mload(_entryCore)\n let p := add(_entryCore, 0x20)\n deployedAddress := create(0, p, s)\n}",src:"8989:165:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2112,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:2110,name:"deployedAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2106,src:"9155:15:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,hexValue:"307830",id:2111,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"9174:3:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0x0"},src:"9155:22:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2109,name:"assert",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3831,src:"9148:6:10",typeDescriptions:{typeIdentifier:"t_function_assert_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2113,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"9148:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2114,nodeType:"ExpressionStatement",src:"9148:30:10"},{expression:{argumentTypes:null,id:2117,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2115,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"9188:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2116,name:"deployedAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2106,src:"9205:15:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"9188:32:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:2118,nodeType:"ExpressionStatement",src:"9188:32:10"},{expression:{argumentTypes:null,id:2121,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2119,name:"registryInitStatus",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1128,src:"9230:18:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:2120,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"9251:4:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"9230:25:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:2122,nodeType:"ExpressionStatement",src:"9230:25:10"},{expression:{argumentTypes:null,id:2125,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2123,name:"linkToABIOfEntriesContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1124,src:"9265:26:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2124,name:"_linkToABIOfEntriesContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2096,src:"9294:27:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},src:"9265:56:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:2126,nodeType:"ExpressionStatement",src:"9265:56:10"},{expression:{argumentTypes:null,id:2127,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"9347:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},functionReturnParameters:2104,id:2128,nodeType:"Return",src:"9340:21:10"}]},documentation:"@dev Registry admin sets generated by them EntryCore contrats with thier schema and \n@dev needed supported entry-token logic\n@param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI\n@param _entryCore bytes of contract which holds schema and accociated CRUD functions\n@return address of deployed EntryCore",id:2130,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:2101,modifierName:{argumentTypes:null,id:2100,name:"onlyAdmin",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2154,src:"8906:9:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"8906:9:10"}],name:"initializeRegistry",nodeType:"FunctionDefinition",parameters:{id:2099,nodeType:"ParameterList",parameters:[{constant:!1,id:2096,name:"_linkToABIOfEntriesContract",nodeType:"VariableDeclaration",scope:2130,src:"8816:34:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:2095,name:"string",nodeType:"ElementaryTypeName",src:"8816:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:2098,name:"_entryCore",nodeType:"VariableDeclaration",scope:2130,src:"8860:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_bytes_memory_ptr",typeString:"bytes"},typeName:{id:2097,name:"bytes",nodeType:"ElementaryTypeName",src:"8860:5:10",typeDescriptions:{typeIdentifier:"t_bytes_storage_ptr",typeString:"bytes"}},value:null,visibility:"internal"}],src:"8806:76:10"},payable:!1,returnParameters:{id:2104,nodeType:"ParameterList",parameters:[{constant:!1,id:2103,name:"",nodeType:"VariableDeclaration",scope:2130,src:"8933:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2102,name:"address",nodeType:"ElementaryTypeName",src:"8933:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],src:"8932:9:10"},scope:2131,src:"8779:589:10",stateMutability:"nonpayable",superFunction:null,visibility:"public"}],scope:2132,src:"797:8578:10"}],src:"0:9376:10"},legacyAST:{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/registry/Registry.sol",exportedSymbols:{Registry:[2131]},id:2132,nodeType:"SourceUnit",nodes:[{id:1607,literals:["solidity","0.4",".24"],nodeType:"PragmaDirective",src:"0:23:10"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",file:"openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol",id:1608,nodeType:"ImportDirective",scope:2132,sourceUnit:3828,src:"25:70:10",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/math/SafeMath.sol",file:"openzeppelin-solidity/contracts/math/SafeMath.sol",id:1609,nodeType:"ImportDirective",scope:2132,sourceUnit:2441,src:"96:59:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/SplitPaymentChangeable.sol",file:"../common/SplitPaymentChangeable.sol",id:1610,nodeType:"ImportDirective",scope:2132,sourceUnit:1109,src:"156:46:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/registry/Chaingeareable.sol",file:"./Chaingeareable.sol",id:1611,nodeType:"ImportDirective",scope:2132,sourceUnit:1381,src:"203:30:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/EntryInterface.sol",file:"../common/EntryInterface.sol",id:1612,nodeType:"ImportDirective",scope:2132,sourceUnit:908,src:"234:38:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/RegistryInterface.sol",file:"../common/RegistryInterface.sol",id:1613,nodeType:"ImportDirective",scope:2132,sourceUnit:963,src:"273:41:10",symbolAliases:[],unitAlias:""},{absolutePath:"/Users/vstavetski/IdeaProjects/chaingear/contracts/common/Safe.sol",file:"../common/Safe.sol",id:1614,nodeType:"ImportDirective",scope:2132,sourceUnit:1024,src:"315:28:10",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:1615,name:"RegistryInterface",nodeType:"UserDefinedTypeName",referencedDeclaration:962,src:"818:17:10",typeDescriptions:{typeIdentifier:"t_contract$_RegistryInterface_$962",typeString:"contract RegistryInterface"}},id:1616,nodeType:"InheritanceSpecifier",src:"818:17:10"},{arguments:null,baseName:{contractScope:null,id:1617,name:"Chaingeareable",nodeType:"UserDefinedTypeName",referencedDeclaration:1380,src:"837:14:10",typeDescriptions:{typeIdentifier:"t_contract$_Chaingeareable_$1380",typeString:"contract Chaingeareable"}},id:1618,nodeType:"InheritanceSpecifier",src:"837:14:10"},{arguments:null,baseName:{contractScope:null,id:1619,name:"SplitPaymentChangeable",nodeType:"UserDefinedTypeName",referencedDeclaration:1108,src:"853:22:10",typeDescriptions:{typeIdentifier:"t_contract$_SplitPaymentChangeable_$1108",typeString:"contract SplitPaymentChangeable"}},id:1620,nodeType:"InheritanceSpecifier",src:"853:22:10"},{arguments:null,baseName:{contractScope:null,id:1621,name:"ERC721Token",nodeType:"UserDefinedTypeName",referencedDeclaration:3827,src:"877:11:10",typeDescriptions:{typeIdentifier:"t_contract$_ERC721Token_$3827",typeString:"contract ERC721Token"}},id:1622,nodeType:"InheritanceSpecifier",src:"877:11:10"}],contractDependencies:[962,1023,1108,1380,2235,2346,2496,2696,2723,2743,2750,2857,3440,3827],contractKind:"contract",documentation:"@title Registry First Type Contract\n@author cyber•Congress, Valery litvin (@litvintech)\n@dev This contract in current flow used for Registry creation throught fabric in Chaingear\n@dev Registry creates ERC721 for each entry, entry may be funded/funds claimed\n@dev Admin sets contracts (EntrCore) which defines entry schema\n@dev Entry creation/deletion/update permission are tokenized\n@notice not recommend to use before release!",fullyImplemented:!0,id:2131,linearizedBaseContracts:[2131,3827,3440,2750,2743,2723,2857,1108,1380,2235,2346,2496,2696,962],name:"Registry",nodeType:"ContractDefinition",nodes:[{id:1625,libraryName:{contractScope:null,id:1623,name:"SafeMath",nodeType:"UserDefinedTypeName",referencedDeclaration:2440,src:"902:8:10",typeDescriptions:{typeIdentifier:"t_contract$_SafeMath_$2440",typeString:"library SafeMath"}},nodeType:"UsingForDirective",src:"896:27:10",typeName:{id:1624,name:"uint256",nodeType:"ElementaryTypeName",src:"915:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}},{canonicalName:"Registry.EntryMeta",id:1636,members:[{constant:!1,id:1627,name:"creator",nodeType:"VariableDeclaration",scope:1636,src:"1059:15:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1626,name:"address",nodeType:"ElementaryTypeName",src:"1059:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1629,name:"createdAt",nodeType:"VariableDeclaration",scope:1636,src:"1084:14:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1628,name:"uint",nodeType:"ElementaryTypeName",src:"1084:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1631,name:"lastUpdateTime",nodeType:"VariableDeclaration",scope:1636,src:"1108:19:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1630,name:"uint",nodeType:"ElementaryTypeName",src:"1108:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1633,name:"currentEntryBalanceETH",nodeType:"VariableDeclaration",scope:1636,src:"1137:30:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1632,name:"uint256",nodeType:"ElementaryTypeName",src:"1137:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1635,name:"accumulatedOverallEntryETH",nodeType:"VariableDeclaration",scope:1636,src:"1177:34:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1634,name:"uint256",nodeType:"ElementaryTypeName",src:"1177:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],name:"EntryMeta",nodeType:"StructDefinition",scope:2131,src:"1032:186:10",visibility:"public"},{constant:!1,id:1639,name:"entriesMeta",nodeType:"VariableDeclaration",scope:2131,src:"1284:32:10",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta[]"},typeName:{baseType:{contractScope:null,id:1637,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"1284:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},id:1638,length:null,nodeType:"ArrayTypeName",src:"1284:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage_ptr",typeString:"struct Registry.EntryMeta[]"}},value:null,visibility:"internal"},{body:{id:1679,nodeType:"Block",src:"2183:183:10",statements:[{expression:{argumentTypes:null,id:1663,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1660,name:"createEntryPermissionGroup",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2143,src:"2193:26:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,expression:{argumentTypes:null,id:1661,name:"CreateEntryPermissionGroup",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2141,src:"2222:26:10",typeDescriptions:{typeIdentifier:"t_type$_t_enum$_CreateEntryPermissionGroup_$2141_$",typeString:"type(enum RegistryPermissionControl.CreateEntryPermissionGroup)"}},id:1662,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,memberName:"OnlyAdmin",nodeType:"MemberAccess",referencedDeclaration:null,src:"2222:36:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},src:"2193:65:10",typeDescriptions:{typeIdentifier:"t_enum$_CreateEntryPermissionGroup_$2141",typeString:"enum RegistryPermissionControl.CreateEntryPermissionGroup"}},id:1664,nodeType:"ExpressionStatement",src:"2193:65:10"},{expression:{argumentTypes:null,id:1667,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1665,name:"entryCreationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1115,src:"2268:16:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"30",id:1666,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"2287:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"2268:20:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1668,nodeType:"ExpressionStatement",src:"2268:20:10"},{expression:{argumentTypes:null,id:1673,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1669,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"2298:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:1671,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"NewExpression",src:"2313:8:10",typeDescriptions:{typeIdentifier:"t_function_creation_payable$__$returns$_t_contract$_Safe_$1023_$",typeString:"function () payable returns (contract Safe)"},typeName:{contractScope:null,id:1670,name:"Safe",nodeType:"UserDefinedTypeName",referencedDeclaration:1023,src:"2317:4:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}}},id:1672,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"2313:10:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},src:"2298:25:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1674,nodeType:"ExpressionStatement",src:"2298:25:10"},{expression:{argumentTypes:null,id:1677,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:1675,name:"registryInitStatus",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1128,src:"2333:18:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"66616c7365",id:1676,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"2354:5:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"false"},src:"2333:26:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:1678,nodeType:"ExpressionStatement",src:"2333:26:10"}]},documentation:"@dev Constructor of Registry, creates from fabric which triggers by chaingear\n@param _benefitiaries address[] addresses of Registry benefitiaries\n@param _shares uint256[] array with amount of shares by benefitiary\n@param _name string Registry name, use for Registry ERC721\n@param _symbol string Registry NFT symbol, use for Registry ERC721\n@notice sets default entry creation policy to onlyAdmin\n@notice sets default creation fee to zero\n@notice Registry are inactive till he is not initialized with schema (EntryCore)",id:1680,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:1652,name:"_benefitiaries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1642,src:"2087:14:10",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[] memory"}},{argumentTypes:null,id:1653,name:"_shares",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1645,src:"2103:7:10",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[] memory"}}],id:1654,modifierName:{argumentTypes:null,id:1651,name:"SplitPaymentChangeable",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1108,src:"2064:22:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_SplitPaymentChangeable_$1108_$",typeString:"type(contract SplitPaymentChangeable)"}},nodeType:"ModifierInvocation",src:"2064:47:10"},{arguments:[{argumentTypes:null,id:1656,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1647,src:"2132:5:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},{argumentTypes:null,id:1657,name:"_symbol",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1649,src:"2139:7:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}}],id:1658,modifierName:{argumentTypes:null,id:1655,name:"ERC721Token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3827,src:"2120:11:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_ERC721Token_$3827_$",typeString:"type(contract ERC721Token)"}},nodeType:"ModifierInvocation",src:"2120:27:10"}],name:"",nodeType:"FunctionDefinition",parameters:{id:1650,nodeType:"ParameterList",parameters:[{constant:!1,id:1642,name:"_benefitiaries",nodeType:"VariableDeclaration",scope:1680,src:"1952:24:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_memory_ptr",typeString:"address[]"},typeName:{baseType:{id:1640,name:"address",nodeType:"ElementaryTypeName",src:"1952:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1641,length:null,nodeType:"ArrayTypeName",src:"1952:9:10",typeDescriptions:{typeIdentifier:"t_array$_t_address_$dyn_storage_ptr",typeString:"address[]"}},value:null,visibility:"internal"},{constant:!1,id:1645,name:"_shares",nodeType:"VariableDeclaration",scope:1680,src:"1986:17:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_memory_ptr",typeString:"uint256[]"},typeName:{baseType:{id:1643,name:"uint256",nodeType:"ElementaryTypeName",src:"1986:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1644,length:null,nodeType:"ArrayTypeName",src:"1986:9:10",typeDescriptions:{typeIdentifier:"t_array$_t_uint256_$dyn_storage_ptr",typeString:"uint256[]"}},value:null,visibility:"internal"},{constant:!1,id:1647,name:"_name",nodeType:"VariableDeclaration",scope:1680,src:"2013:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:1646,name:"string",nodeType:"ElementaryTypeName",src:"2013:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:1649,name:"_symbol",nodeType:"VariableDeclaration",scope:1680,src:"2035:14:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:1648,name:"string",nodeType:"ElementaryTypeName",src:"2035:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"1942:113:10"},payable:!0,returnParameters:{id:1659,nodeType:"ParameterList",parameters:[],src:"2183:0:10"},scope:2131,src:"1931:435:10",stateMutability:"payable",superFunction:null,visibility:"public"},{body:{id:1683,nodeType:"Block",src:"2402:2:10",statements:[]},documentation:null,id:1684,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:1681,nodeType:"ParameterList",parameters:[],src:"2384:2:10"},payable:!0,returnParameters:{id:1682,nodeType:"ParameterList",parameters:[],src:"2402:0:10"},scope:2131,src:"2376:28:10",stateMutability:"payable",superFunction:2563,visibility:"public"},{body:{id:1765,nodeType:"Block",src:"3034:855:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1699,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1696,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3052:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1697,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"3052:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:1698,name:"entryCreationFee",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1115,src:"3065:16:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3052:29:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1695,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3044:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1700,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3044:38:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1701,nodeType:"ExpressionStatement",src:"3044:38:10"},{assignments:[1703],declarations:[{constant:!1,id:1703,name:"meta",nodeType:"VariableDeclaration",scope:1766,src:"3101:21:10",stateVariable:!1,storageLocation:"memory",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta"},typeName:{contractScope:null,id:1702,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"3101:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},value:null,visibility:"internal"}],id:1715,initialValue:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1705,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"3175:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:1706,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"3175:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1707,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"3215:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:1708,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"3215:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1709,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3253:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1710,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3253:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,hexValue:"30",id:1711,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3301:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},{argumentTypes:null,hexValue:"30",id:1712,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"3344:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:null,id:1704,name:"EntryMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1636,src:"3126:9:10",typeDescriptions:{typeIdentifier:"t_type$_t_struct$_EntryMeta_$1636_storage_ptr_$",typeString:"type(struct Registry.EntryMeta storage pointer)"}},id:1713,isConstant:!1,isLValue:!1,isPure:!1,kind:"structConstructorCall",lValueRequested:!1,names:["lastUpdateTime","createdAt","creator","currentEntryBalanceETH","accumulatedOverallEntryETH"],nodeType:"FunctionCall",src:"3126:230:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory",typeString:"struct Registry.EntryMeta memory"}}],id:1714,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"3125:232:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory",typeString:"struct Registry.EntryMeta memory"}},nodeType:"VariableDeclarationStatement",src:"3101:256:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1719,name:"meta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1703,src:"3393:4:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta memory"}}],expression:{argumentTypes:[{typeIdentifier:"t_struct$_EntryMeta_$1636_memory_ptr",typeString:"struct Registry.EntryMeta memory"}],expression:{argumentTypes:null,id:1716,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"3376:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1718,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"push",nodeType:"MemberAccess",referencedDeclaration:null,src:"3376:16:10",typeDescriptions:{typeIdentifier:"t_function_arraypush_nonpayable$_t_struct$_EntryMeta_$1636_storage_$returns$_t_uint256_$",typeString:"function (struct Registry.EntryMeta storage ref) returns (uint256)"}},id:1720,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3376:22:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1721,nodeType:"ExpressionStatement",src:"3376:22:10"},{assignments:[1723],declarations:[{constant:!1,id:1723,name:"newEntryID",nodeType:"VariableDeclaration",scope:1766,src:"3507:18:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1722,name:"uint256",nodeType:"ElementaryTypeName",src:"3507:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1729,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1725,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"3543:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1724,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"3528:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1726,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3528:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1727,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"entriesAmount",nodeType:"MemberAccess",referencedDeclaration:896,src:"3528:44:10",typeDescriptions:{typeIdentifier:"t_function_external_view$__$returns$_t_uint256_$",typeString:"function () view external returns (uint256)"}},id:1728,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3528:46:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"3507:67:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1734,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1731,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3592:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],id:1732,name:"totalSupply",nodeType:"Identifier",overloadedDeclarations:[3572],referencedDeclaration:3572,src:"3606:11:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$__$returns$_t_uint256_$",typeString:"function () view returns (uint256)"}},id:1733,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3606:13:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3592:27:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1730,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3584:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1735,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3584:36:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1736,nodeType:"ExpressionStatement",src:"3584:36:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1738,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3645:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1739,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3645:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1740,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3657:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1737,name:"_mint",nodeType:"Identifier",overloadedDeclarations:[3747],referencedDeclaration:3747,src:"3639:5:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1741,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3639:29:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1742,nodeType:"ExpressionStatement",src:"3639:29:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1744,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3696:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1745,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"3708:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1746,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"3708:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"}],id:1743,name:"EntryCreated",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1144,src:"3683:12:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$",typeString:"function (uint256,address)"}},id:1747,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3683:36:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1748,nodeType:"EmitStatement",src:"3678:41:10"},{assignments:[1750],declarations:[{constant:!1,id:1750,name:"createdEntryID",nodeType:"VariableDeclaration",scope:1766,src:"3738:22:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1749,name:"uint256",nodeType:"ElementaryTypeName",src:"3738:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1756,initialValue:{argumentTypes:null,arguments:[],expression:{argumentTypes:[],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1752,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"3778:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1751,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"3763:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1753,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3763:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1754,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"createEntry",nodeType:"MemberAccess",referencedDeclaration:901,src:"3763:42:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$__$returns$_t_uint256_$",typeString:"function () external returns (uint256)"}},id:1755,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3763:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"3738:69:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1760,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1758,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3825:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:1759,name:"createdEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1750,src:"3839:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"3825:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1757,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"3817:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1761,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"3817:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1762,nodeType:"ExpressionStatement",src:"3817:37:10"},{expression:{argumentTypes:null,id:1763,name:"newEntryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1723,src:"3872:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},functionReturnParameters:1694,id:1764,nodeType:"Return",src:"3865:17:10"}]},documentation:"@dev Creates ERC721 and init asscociated epmty entry in EntryCore\n@return uint256 ID of ERC721 token\n@notice Entry owner should to after token creation and entry init set\n@notice entry data throught EntryCore updateEntry() \n@notice This (and deletion) would work if EntryCore correctly written\n@notice otherwise nothing should happen with Registry",id:1766,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1687,modifierName:{argumentTypes:null,id:1686,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"2906:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2906:19:10"},{arguments:null,id:1689,modifierName:{argumentTypes:null,id:1688,name:"onlyPermissionedToCreateEntries",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2171,src:"2934:31:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2934:31:10"},{arguments:null,id:1691,modifierName:{argumentTypes:null,id:1690,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"2974:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"2974:13:10"}],name:"createEntry",nodeType:"FunctionDefinition",parameters:{id:1685,nodeType:"ParameterList",parameters:[],src:"2878:2:10"},payable:!0,returnParameters:{id:1694,nodeType:"ParameterList",parameters:[{constant:!1,id:1693,name:"",nodeType:"VariableDeclaration",scope:1766,src:"3021:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1692,name:"uint256",nodeType:"ElementaryTypeName",src:"3021:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"3020:9:10"},scope:2131,src:"2858:1031:10",stateMutability:"payable",superFunction:924,visibility:"external"},{body:{id:1841,nodeType:"Block",src:"4190:558:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1784,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1779,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4208:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1781,indexExpression:{argumentTypes:null,id:1780,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4220:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4208:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1782,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"4208:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,hexValue:"30",id:1783,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4256:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"},src:"4208:49:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1778,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4200:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1785,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4200:58:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1786,nodeType:"ExpressionStatement",src:"4200:58:10"},{assignments:[1788],declarations:[{constant:!1,id:1788,name:"entryIndex",nodeType:"VariableDeclaration",scope:1842,src:"4277:18:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1787,name:"uint256",nodeType:"ElementaryTypeName",src:"4277:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1792,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1789,name:"allTokensIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3485,src:"4298:14:10",typeDescriptions:{typeIdentifier:"t_mapping$_t_uint256_$_t_uint256_$",typeString:"mapping(uint256 => uint256)"}},id:1791,indexExpression:{argumentTypes:null,id:1790,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4313:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4298:24:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4277:45:10"},{assignments:[1794],declarations:[{constant:!1,id:1794,name:"lastEntryIndex",nodeType:"VariableDeclaration",scope:1842,src:"4341:22:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1793,name:"uint256",nodeType:"ElementaryTypeName",src:"4341:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],id:1799,initialValue:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1798,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1795,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4366:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1796,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4366:18:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"-",rightExpression:{argumentTypes:null,hexValue:"31",id:1797,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4387:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_1_by_1",typeString:"int_const 1"},value:"1"},src:"4366:22:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"VariableDeclarationStatement",src:"4341:47:10"},{assignments:[1801],declarations:[{constant:!1,id:1801,name:"lastEntry",nodeType:"VariableDeclaration",scope:1842,src:"4398:27:10",stateVariable:!1,storageLocation:"storage",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"},typeName:{contractScope:null,id:1800,name:"EntryMeta",nodeType:"UserDefinedTypeName",referencedDeclaration:1636,src:"4398:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta"}},value:null,visibility:"internal"}],id:1805,initialValue:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1802,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4428:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1804,indexExpression:{argumentTypes:null,id:1803,name:"lastEntryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1794,src:"4440:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"4428:27:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},nodeType:"VariableDeclarationStatement",src:"4398:57:10"},{expression:{argumentTypes:null,id:1810,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1806,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4466:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1808,indexExpression:{argumentTypes:null,id:1807,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4478:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4466:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:1809,name:"lastEntry",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1801,src:"4490:9:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage_ptr",typeString:"struct Registry.EntryMeta storage pointer"}},src:"4466:33:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1811,nodeType:"ExpressionStatement",src:"4466:33:10"},{expression:{argumentTypes:null,id:1815,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"delete",prefix:!0,src:"4509:34:10",subExpression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1812,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4516:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1814,indexExpression:{argumentTypes:null,id:1813,name:"lastEntryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1794,src:"4528:14:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"4516:27:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1816,nodeType:"ExpressionStatement",src:"4509:34:10"},{expression:{argumentTypes:null,id:1820,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"UnaryOperation",operator:"--",prefix:!1,src:"4553:20:10",subExpression:{argumentTypes:null,expression:{argumentTypes:null,id:1817,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"4553:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1819,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"length",nodeType:"MemberAccess",referencedDeclaration:null,src:"4553:18:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1821,nodeType:"ExpressionStatement",src:"4553:20:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1823,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4598:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1824,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4598:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1825,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4610:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1822,name:"_burn",nodeType:"Identifier",overloadedDeclarations:[3826],referencedDeclaration:3826,src:"4592:5:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1826,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4592:27:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1827,nodeType:"ExpressionStatement",src:"4592:27:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1829,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4647:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1830,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"4657:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1831,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"4657:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"}],id:1828,name:"EntryDeleted",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1156,src:"4634:12:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$",typeString:"function (uint256,address)"}},id:1832,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4634:34:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1833,nodeType:"EmitStatement",src:"4629:39:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1838,name:"entryIndex",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1788,src:"4730:10:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1835,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"4702:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1834,name:"EntryInterface",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:907,src:"4687:14:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_EntryInterface_$907_$",typeString:"type(contract EntryInterface)"}},id:1836,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4687:30:10",typeDescriptions:{typeIdentifier:"t_contract$_EntryInterface_$907",typeString:"contract EntryInterface"}},id:1837,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"deleteEntry",nodeType:"MemberAccess",referencedDeclaration:906,src:"4687:42:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256) external"}},id:1839,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4687:54:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1840,nodeType:"ExpressionStatement",src:"4687:54:10"}]},documentation:"@dev Allow entry owner delete Entry-token and also Entry-data in EntryCore\n@param _entryID uint256 Entry-token ID",id:1842,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1771,modifierName:{argumentTypes:null,id:1770,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"4114:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4114:19:10"},{arguments:[{argumentTypes:null,id:1773,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1768,src:"4154:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1774,modifierName:{argumentTypes:null,id:1772,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"4142:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4142:21:10"},{arguments:null,id:1776,modifierName:{argumentTypes:null,id:1775,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"4172:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4172:13:10"}],name:"deleteEntry",nodeType:"FunctionDefinition",parameters:{id:1769,nodeType:"ParameterList",parameters:[{constant:!1,id:1768,name:"_entryID",nodeType:"VariableDeclaration",scope:1842,src:"4066:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1767,name:"uint256",nodeType:"ElementaryTypeName",src:"4066:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4056:32:10"},payable:!1,returnParameters:{id:1777,nodeType:"ParameterList",parameters:[],src:"4190:0:10"},scope:2131,src:"4036:712:10",stateMutability:"nonpayable",superFunction:929,visibility:"external"},{body:{id:1893,nodeType:"Block",src:"4931:245:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:1861,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1857,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"4949:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:1859,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"4966:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:1858,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"4958:7:10",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:1860,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4958:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"4949:19:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1856,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4941:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1862,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4941:28:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1863,nodeType:"ExpressionStatement",src:"4941:28:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:1869,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1865,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"4987:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:1867,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"5002:1:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:1866,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"4994:7:10",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:1868,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4994:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"4987:17:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1864,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"4979:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1870,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"4979:26:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1871,nodeType:"ExpressionStatement",src:"4979:26:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1873,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5030:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1874,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5037:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1872,name:"clearApproval",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3331,src:"5016:13:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1875,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5016:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1876,nodeType:"ExpressionStatement",src:"5016:30:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1878,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5072:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1879,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5079:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1877,name:"removeTokenFrom",nodeType:"Identifier",overloadedDeclarations:[3719],referencedDeclaration:3719,src:"5056:15:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1880,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5056:32:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1881,nodeType:"ExpressionStatement",src:"5056:32:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1883,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"5109:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1884,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5114:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1882,name:"addTokenTo",nodeType:"Identifier",overloadedDeclarations:[3646],referencedDeclaration:3646,src:"5098:10:10",typeDescriptions:{typeIdentifier:"t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256)"}},id:1885,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5098:25:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1886,nodeType:"ExpressionStatement",src:"5098:25:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1888,name:"_from",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1844,src:"5148:5:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1889,name:"_to",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1846,src:"5155:3:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1890,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"5160:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1887,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2760,src:"5139:8:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:1891,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5139:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1892,nodeType:"EmitStatement",src:"5134:35:10"}]},documentation:null,id:1894,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:1851,name:"_tokenId",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1848,src:"4889:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1852,modifierName:{argumentTypes:null,id:1850,name:"canTransfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2921,src:"4877:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"4877:21:10"},{arguments:null,id:1854,modifierName:{argumentTypes:null,id:1853,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"4907:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"4907:19:10"}],name:"transferFrom",nodeType:"FunctionDefinition",parameters:{id:1849,nodeType:"ParameterList",parameters:[{constant:!1,id:1844,name:"_from",nodeType:"VariableDeclaration",scope:1894,src:"4785:13:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1843,name:"address",nodeType:"ElementaryTypeName",src:"4785:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1846,name:"_to",nodeType:"VariableDeclaration",scope:1894,src:"4808:11:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:1845,name:"address",nodeType:"ElementaryTypeName",src:"4808:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:1848,name:"_tokenId",nodeType:"VariableDeclaration",scope:1894,src:"4829:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1847,name:"uint256",nodeType:"ElementaryTypeName",src:"4829:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"4775:76:10"},payable:!1,returnParameters:{id:1855,nodeType:"ParameterList",parameters:[],src:"4931:0:10"},scope:2131,src:"4754:422:10",stateMutability:"nonpayable",superFunction:3154,visibility:"public"},{body:{id:1946,nodeType:"Block",src:"5493:357:10",statements:[{expression:{argumentTypes:null,id:1915,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1903,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5503:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1905,indexExpression:{argumentTypes:null,id:1904,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5515:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5503:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1906,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"5503:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1912,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5599:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1913,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5599:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1907,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5550:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1909,indexExpression:{argumentTypes:null,id:1908,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5562:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5550:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1910,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"5550:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1911,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5550:48:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1914,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5550:59:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5503:106:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1916,nodeType:"ExpressionStatement",src:"5503:106:10"},{expression:{argumentTypes:null,id:1929,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1917,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5619:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1919,indexExpression:{argumentTypes:null,id:1918,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5631:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5619:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1920,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"5619:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1926,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5723:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1927,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5723:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1921,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"5670:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1923,indexExpression:{argumentTypes:null,id:1922,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5682:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"5670:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1924,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"5670:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1925,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"add",nodeType:"MemberAccess",referencedDeclaration:2439,src:"5670:52:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1928,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5670:63:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"5619:114:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1930,nodeType:"ExpressionStatement",src:"5619:114:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1932,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1896,src:"5760:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1933,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5770:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1934,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"5770:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:1935,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5782:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1936,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5782:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1931,name:"EntryFunded",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1164,src:"5748:11:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:1937,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5748:44:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1938,nodeType:"EmitStatement",src:"5743:49:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1942,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"5833:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1943,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"value",nodeType:"MemberAccess",referencedDeclaration:null,src:"5833:9:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,id:1939,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"5811:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:1941,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"transfer",nodeType:"MemberAccess",referencedDeclaration:null,src:"5811:21:10",typeDescriptions:{typeIdentifier:"t_function_transfer_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:1944,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"5811:32:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1945,nodeType:"ExpressionStatement",src:"5811:32:10"}]},documentation:"@dev Allows anyone fund specified entry\n@param _entryID uint256 Entry-token ID\n@notice Funds tracks in EntryMeta, stores in Registry Safe",id:1947,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1899,modifierName:{argumentTypes:null,id:1898,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"5431:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5431:19:10"},{arguments:null,id:1901,modifierName:{argumentTypes:null,id:1900,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"5459:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"5459:13:10"}],name:"fundEntry",nodeType:"FunctionDefinition",parameters:{id:1897,nodeType:"ParameterList",parameters:[{constant:!1,id:1896,name:"_entryID",nodeType:"VariableDeclaration",scope:1947,src:"5383:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1895,name:"uint256",nodeType:"ElementaryTypeName",src:"5383:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"5373:32:10"},payable:!0,returnParameters:{id:1902,nodeType:"ParameterList",parameters:[],src:"5493:0:10"},scope:2131,src:"5355:495:10",stateMutability:"payable",superFunction:934,visibility:"external"},{body:{id:1999,nodeType:"Block",src:"6296:331:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:1967,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:1962,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6314:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"BinaryOperation",operator:"<=",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1963,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6325:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1965,indexExpression:{argumentTypes:null,id:1964,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6337:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6325:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1966,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6325:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6314:55:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:1961,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6306:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:1968,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6306:64:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1969,nodeType:"ExpressionStatement",src:"6306:64:10"},{expression:{argumentTypes:null,id:1981,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1970,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6380:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1972,indexExpression:{argumentTypes:null,id:1971,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6392:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6380:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1973,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6380:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,arguments:[{argumentTypes:null,id:1979,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6476:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:1974,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6427:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:1976,indexExpression:{argumentTypes:null,id:1975,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6439:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6427:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:1977,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"6427:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1978,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sub",nodeType:"MemberAccess",referencedDeclaration:2415,src:"6427:48:10",typeDescriptions:{typeIdentifier:"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",typeString:"function (uint256,uint256) pure returns (uint256)"}},id:1980,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6427:57:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6380:104:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:1982,nodeType:"ExpressionStatement",src:"6380:104:10"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:1984,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6526:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,id:1985,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6536:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1986,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6536:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1987,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6548:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:1983,name:"EntryFundsClaimed",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1172,src:"6508:17:10",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$",typeString:"function (uint256,address,uint256)"}},id:1988,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6508:48:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1989,nodeType:"EmitStatement",src:"6503:53:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,expression:{argumentTypes:null,id:1994,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"6600:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:1995,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"6600:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:1996,name:"_amount",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1951,src:"6612:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],expression:{argumentTypes:null,arguments:[{argumentTypes:null,id:1991,name:"registrySafe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1126,src:"6580:12:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"}],id:1990,name:"Safe",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1023,src:"6575:4:10",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Safe_$1023_$",typeString:"type(contract Safe)"}},id:1992,isConstant:!1,isLValue:!1,isPure:!1,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6575:18:10",typeDescriptions:{typeIdentifier:"t_contract$_Safe_$1023",typeString:"contract Safe"}},id:1993,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"claim",nodeType:"MemberAccess",referencedDeclaration:1022,src:"6575:24:10",typeDescriptions:{typeIdentifier:"t_function_external_nonpayable$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,uint256) external"}},id:1997,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6575:45:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:1998,nodeType:"ExpressionStatement",src:"6575:45:10"}]},documentation:"@dev Allows entry token owner claim entry funds\n@param _entryID uint256 Entry-token ID\n@param _amount uint Amount in wei which token owner claims\n@notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner)",id:2e3,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:1954,modifierName:{argumentTypes:null,id:1953,name:"registryInitialized",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1138,src:"6220:19:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6220:19:10"},{arguments:[{argumentTypes:null,id:1956,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1949,src:"6260:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:1957,modifierName:{argumentTypes:null,id:1955,name:"onlyOwnerOf",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2907,src:"6248:11:10",typeDescriptions:{typeIdentifier:"t_modifier$_t_uint256_$",typeString:"modifier (uint256)"}},nodeType:"ModifierInvocation",src:"6248:21:10"},{arguments:null,id:1959,modifierName:{argumentTypes:null,id:1958,name:"whenNotPaused",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2307,src:"6278:13:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"6278:13:10"}],name:"claimEntryFunds",nodeType:"FunctionDefinition",parameters:{id:1952,nodeType:"ParameterList",parameters:[{constant:!1,id:1949,name:"_entryID",nodeType:"VariableDeclaration",scope:2e3,src:"6149:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1948,name:"uint256",nodeType:"ElementaryTypeName",src:"6149:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:1951,name:"_amount",nodeType:"VariableDeclaration",scope:2e3,src:"6176:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:1950,name:"uint",nodeType:"ElementaryTypeName",src:"6176:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6139:55:10"},payable:!1,returnParameters:{id:1960,nodeType:"ParameterList",parameters:[],src:"6296:0:10"},scope:2131,src:"6115:512:10",stateMutability:"nonpayable",superFunction:941,visibility:"external"},{body:{id:2020,nodeType:"Block",src:"6921:118:10",statements:[{expression:{argumentTypes:null,id:2011,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2005,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"6931:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2007,indexExpression:{argumentTypes:null,id:2006,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2002,src:"6943:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"6931:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2008,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,memberName:"lastUpdateTime",nodeType:"MemberAccess",referencedDeclaration:1631,src:"6931:36:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,expression:{argumentTypes:null,id:2009,name:"block",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3832,src:"6970:5:10",typeDescriptions:{typeIdentifier:"t_magic_block",typeString:"block"}},id:2010,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"timestamp",nodeType:"MemberAccess",referencedDeclaration:null,src:"6970:15:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"6931:54:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:2012,nodeType:"ExpressionStatement",src:"6931:54:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2017,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:2014,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"7003:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,expression:{argumentTypes:null,id:2015,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3842,src:"7021:3:10",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:2016,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"7021:10:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"7003:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2013,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"6995:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2018,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"6995:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2019,nodeType:"ExpressionStatement",src:"6995:37:10"}]},documentation:"@dev Allow to set last entry data update for entry-token meta\n@param _entryID uint256 Entry-token ID\n@notice Can be (should be) called only by EntryCore (updateEntry)",id:2021,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[],name:"updateEntryTimestamp",nodeType:"FunctionDefinition",parameters:{id:2003,nodeType:"ParameterList",parameters:[{constant:!1,id:2002,name:"_entryID",nodeType:"VariableDeclaration",scope:2021,src:"6876:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2001,name:"uint256",nodeType:"ElementaryTypeName",src:"6876:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"6866:32:10"},payable:!1,returnParameters:{id:2004,nodeType:"ParameterList",parameters:[],src:"6921:0:10"},scope:2131,src:"6837:202:10",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:2063,nodeType:"Block",src:"7325:322:10",statements:[{expression:{argumentTypes:null,components:[{argumentTypes:null,arguments:[{argumentTypes:null,id:2039,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7363:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:2038,name:"ownerOf",nodeType:"Identifier",overloadedDeclarations:[2965],referencedDeclaration:2965,src:"7355:7:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$_t_uint256_$returns$_t_address_$",typeString:"function (uint256) view returns (address)"}},id:2040,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"7355:17:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2041,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7386:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2043,indexExpression:{argumentTypes:null,id:2042,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7398:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7386:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2044,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"creator",nodeType:"MemberAccess",referencedDeclaration:1627,src:"7386:29:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2045,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7429:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2047,indexExpression:{argumentTypes:null,id:2046,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7441:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7429:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2048,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"createdAt",nodeType:"MemberAccess",referencedDeclaration:1629,src:"7429:31:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2049,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7474:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2051,indexExpression:{argumentTypes:null,id:2050,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7486:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7474:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2052,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"lastUpdateTime",nodeType:"MemberAccess",referencedDeclaration:1631,src:"7474:36:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2053,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7524:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2055,indexExpression:{argumentTypes:null,id:2054,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7536:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7524:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2056,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"currentEntryBalanceETH",nodeType:"MemberAccess",referencedDeclaration:1633,src:"7524:44:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,expression:{argumentTypes:null,baseExpression:{argumentTypes:null,id:2057,name:"entriesMeta",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1639,src:"7582:11:10",typeDescriptions:{typeIdentifier:"t_array$_t_struct$_EntryMeta_$1636_storage_$dyn_storage",typeString:"struct Registry.EntryMeta storage ref[] storage ref"}},id:2059,indexExpression:{argumentTypes:null,id:2058,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2023,src:"7594:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,nodeType:"IndexAccess",src:"7582:21:10",typeDescriptions:{typeIdentifier:"t_struct$_EntryMeta_$1636_storage",typeString:"struct Registry.EntryMeta storage ref"}},id:2060,isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!1,memberName:"accumulatedOverallEntryETH",nodeType:"MemberAccess",referencedDeclaration:1635,src:"7582:48:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:2061,isConstant:!1,isInlineArray:!1,isLValue:!1,isPure:!1,lValueRequested:!1,nodeType:"TupleExpression",src:"7341:299:10",typeDescriptions:{typeIdentifier:"t_tuple$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",typeString:"tuple(address,address,uint256,uint256,uint256,uint256)"}},functionReturnParameters:2037,id:2062,nodeType:"Return",src:"7335:305:10"}]},documentation:null,id:2064,implemented:!0,isConstructor:!1,isDeclaredConst:!0,modifiers:[],name:"getEntryMeta",nodeType:"FunctionDefinition",parameters:{id:2024,nodeType:"ParameterList",parameters:[{constant:!1,id:2023,name:"_entryID",nodeType:"VariableDeclaration",scope:2064,src:"7121:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2022,name:"uint256",nodeType:"ElementaryTypeName",src:"7121:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7111:32:10"},payable:!1,returnParameters:{id:2037,nodeType:"ParameterList",parameters:[{constant:!1,id:2026,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7204:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2025,name:"address",nodeType:"ElementaryTypeName",src:"7204:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:2028,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7225:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2027,name:"address",nodeType:"ElementaryTypeName",src:"7225:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:2030,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7246:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2029,name:"uint",nodeType:"ElementaryTypeName",src:"7246:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2032,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7264:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2031,name:"uint",nodeType:"ElementaryTypeName",src:"7264:4:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2034,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7282:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2033,name:"uint256",nodeType:"ElementaryTypeName",src:"7282:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2036,name:"",nodeType:"VariableDeclaration",scope:2064,src:"7303:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2035,name:"uint256",nodeType:"ElementaryTypeName",src:"7303:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"7190:130:10"},scope:2131,src:"7090:557:10",stateMutability:"view",superFunction:null,visibility:"external"},{body:{id:2081,nodeType:"Block",src:"8046:54:10",statements:[{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2078,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:2075,name:"_entryID",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2066,src:"8072:8:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:2074,name:"ownerOf",nodeType:"Identifier",overloadedDeclarations:[2965],referencedDeclaration:2965,src:"8064:7:10",typeDescriptions:{typeIdentifier:"t_function_internal_view$_t_uint256_$returns$_t_address_$",typeString:"function (uint256) view returns (address)"}},id:2076,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8064:17:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"==",rightExpression:{argumentTypes:null,id:2077,name:"_caller",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2068,src:"8085:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"8064:28:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2073,name:"require",nodeType:"Identifier",overloadedDeclarations:[3845,3846],referencedDeclaration:3845,src:"8056:7:10",typeDescriptions:{typeIdentifier:"t_function_require_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2079,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"8056:37:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2080,nodeType:"ExpressionStatement",src:"8056:37:10"}]},documentation:"@dev Verification function which auth user to update specified entry data in EntryCore\n@param _entryID uint256 Entry-token ID\n@param _caller address of caller which trying to update entry throught EntryCore\n@return ",id:2082,implemented:!0,isConstructor:!1,isDeclaredConst:!0,modifiers:[],name:"checkAuth",nodeType:"FunctionDefinition",parameters:{id:2069,nodeType:"ParameterList",parameters:[{constant:!1,id:2066,name:"_entryID",nodeType:"VariableDeclaration",scope:2082,src:"7941:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:2065,name:"uint256",nodeType:"ElementaryTypeName",src:"7941:7:10",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:2068,name:"_caller",nodeType:"VariableDeclaration",scope:2082,src:"7967:15:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2067,name:"address",nodeType:"ElementaryTypeName",src:"7967:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],src:"7931:57:10"},payable:!1,returnParameters:{id:2072,nodeType:"ParameterList",parameters:[{constant:!1,id:2071,name:"",nodeType:"VariableDeclaration",scope:2082,src:"8036:4:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},typeName:{id:2070,name:"bool",nodeType:"ElementaryTypeName",src:"8036:4:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},value:null,visibility:"internal"}],src:"8035:6:10"},scope:2131,src:"7913:187:10",stateMutability:"view",superFunction:null,visibility:"external"},{body:{id:2093,nodeType:"Block",src:"8319:30:10",statements:[{expression:{argumentTypes:null,id:2091,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2089,name:"name_",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3467,src:"8329:5:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2090,name:"_name",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2084,src:"8337:5:10",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string calldata"}},src:"8329:13:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:2092,nodeType:"ExpressionStatement",src:"8329:13:10"}]},documentation:"@dev Allows update ERC721 token name (Registry Name)\n@param _name string which represents name",id:2094,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:2087,modifierName:{argumentTypes:null,id:2086,name:"onlyAdmin",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2154,src:"8305:9:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"8305:9:10"}],name:"updateName",nodeType:"FunctionDefinition",parameters:{id:2085,nodeType:"ParameterList",parameters:[{constant:!1,id:2084,name:"_name",nodeType:"VariableDeclaration",scope:2094,src:"8261:12:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_calldata_ptr",typeString:"string"},typeName:{id:2083,name:"string",nodeType:"ElementaryTypeName",src:"8261:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"}],src:"8251:28:10"},payable:!1,returnParameters:{id:2088,nodeType:"ParameterList",parameters:[],src:"8319:0:10"},scope:2131,src:"8232:117:10",stateMutability:"nonpayable",superFunction:null,visibility:"external"},{body:{id:2129,nodeType:"Block",src:"8946:422:10",statements:[{assignments:[],declarations:[{constant:!1,id:2106,name:"deployedAddress",nodeType:"VariableDeclaration",scope:2130,src:"8956:23:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2105,name:"address",nodeType:"ElementaryTypeName",src:"8956:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],id:2107,initialValue:null,nodeType:"VariableDeclarationStatement",src:"8956:23:10"},{externalReferences:[{_entryCore:{declaration:2098,isOffset:!1,isSlot:!1,src:"9027:10:10",valueSize:1}},{deployedAddress:{declaration:2106,isOffset:!1,isSlot:!1,src:"9094:15:10",valueSize:1}},{_entryCore:{declaration:2098,isOffset:!1,isSlot:!1,src:"9064:10:10",valueSize:1}}],id:2108,nodeType:"InlineAssembly",operations:"{\n let s := mload(_entryCore)\n let p := add(_entryCore, 0x20)\n deployedAddress := create(0, p, s)\n}",src:"8989:165:10"},{expression:{argumentTypes:null,arguments:[{argumentTypes:null,commonType:{typeIdentifier:"t_address",typeString:"address"},id:2112,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftExpression:{argumentTypes:null,id:2110,name:"deployedAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2106,src:"9155:15:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"BinaryOperation",operator:"!=",rightExpression:{argumentTypes:null,hexValue:"307830",id:2111,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"9174:3:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0x0"},src:"9155:22:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}}],expression:{argumentTypes:[{typeIdentifier:"t_bool",typeString:"bool"}],id:2109,name:"assert",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:3831,src:"9148:6:10",typeDescriptions:{typeIdentifier:"t_function_assert_pure$_t_bool_$returns$__$",typeString:"function (bool) pure"}},id:2113,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"9148:30:10",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:2114,nodeType:"ExpressionStatement",src:"9148:30:10"},{expression:{argumentTypes:null,id:2117,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2115,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"9188:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2116,name:"deployedAddress",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2106,src:"9205:15:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},src:"9188:32:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},id:2118,nodeType:"ExpressionStatement",src:"9188:32:10"},{expression:{argumentTypes:null,id:2121,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2119,name:"registryInitStatus",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1128,src:"9230:18:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,hexValue:"74727565",id:2120,isConstant:!1,isLValue:!1,isPure:!0,kind:"bool",lValueRequested:!1,nodeType:"Literal",src:"9251:4:10",subdenomination:null,typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"},value:"true"},src:"9230:25:10",typeDescriptions:{typeIdentifier:"t_bool",typeString:"bool"}},id:2122,nodeType:"ExpressionStatement",src:"9230:25:10"},{expression:{argumentTypes:null,id:2125,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:2123,name:"linkToABIOfEntriesContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1124,src:"9265:26:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:2124,name:"_linkToABIOfEntriesContract",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2096,src:"9294:27:10",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string memory"}},src:"9265:56:10",typeDescriptions:{typeIdentifier:"t_string_storage",typeString:"string storage ref"}},id:2126,nodeType:"ExpressionStatement",src:"9265:56:10"},{expression:{argumentTypes:null,id:2127,name:"entriesStorage",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1122,src:"9347:14:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},functionReturnParameters:2104,id:2128,nodeType:"Return",src:"9340:21:10"}]},documentation:"@dev Registry admin sets generated by them EntryCore contrats with thier schema and \n@dev needed supported entry-token logic\n@param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI\n@param _entryCore bytes of contract which holds schema and accociated CRUD functions\n@return address of deployed EntryCore",id:2130,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:2101,modifierName:{argumentTypes:null,id:2100,name:"onlyAdmin",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:2154,src:"8906:9:10",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"8906:9:10"}],name:"initializeRegistry",nodeType:"FunctionDefinition",parameters:{id:2099,nodeType:"ParameterList",parameters:[{constant:!1,id:2096,name:"_linkToABIOfEntriesContract",nodeType:"VariableDeclaration",scope:2130,src:"8816:34:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory_ptr",typeString:"string"},typeName:{id:2095,name:"string",nodeType:"ElementaryTypeName",src:"8816:6:10",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:null,visibility:"internal"},{constant:!1,id:2098,name:"_entryCore",nodeType:"VariableDeclaration",scope:2130,src:"8860:16:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_bytes_memory_ptr",typeString:"bytes"},typeName:{id:2097,name:"bytes",nodeType:"ElementaryTypeName",src:"8860:5:10",typeDescriptions:{typeIdentifier:"t_bytes_storage_ptr",typeString:"bytes"}},value:null,visibility:"internal"}],src:"8806:76:10"},payable:!1,returnParameters:{id:2104,nodeType:"ParameterList",parameters:[{constant:!1,id:2103,name:"",nodeType:"VariableDeclaration",scope:2130,src:"8933:7:10",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:2102,name:"address",nodeType:"ElementaryTypeName",src:"8933:7:10",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"}],src:"8932:9:10"},scope:2131,src:"8779:589:10",stateMutability:"nonpayable",superFunction:null,visibility:"public"}],scope:2132,src:"797:8578:10"}],src:"0:9376:10"},compiler:{name:"solc",version:"0.4.24+commit.e67f0147.Emscripten.clang"},networks:{},schemaVersion:"2.0.1",updatedAt:"2018-09-17T15:18:28.302Z"}},function(e,t){e.exports='pragma solidity 0.4.24;\n\n// File: openzeppelin-solidity/contracts/ownership/Ownable.sol\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of "user permissions".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n constructor() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to relinquish control of the contract.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipRenounced(owner);\n owner = address(0);\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function transferOwnership(address _newOwner) public onlyOwner {\n _transferOwnership(_newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address _newOwner) internal {\n require(_newOwner != address(0));\n emit OwnershipTransferred(owner, _newOwner);\n owner = _newOwner;\n }\n}\n\n// File: contracts/common/EntryInterface.sol\n\ncontract EntryInterface {\n\n function entriesAmount() public view returns (uint256);\n function createEntry() public returns (uint256);\n function deleteEntry(uint256) public;\n}\n'},function(e,t,n){"use strict";(function(r){const i=n(117),a=n(998),f=n(417),s=n(418);t=e.exports=function(e,t,n){const o=f();try{const n=i(e).nodeAddress();o.host=n.address,o.port=n.port}catch(n){"string"==typeof e&&(o.host=e,o.port=t&&"object"!=typeof t?t:o.port)}let l=arguments.length;for(;!n&&l-- >0&&!(n=arguments[l]););if(Object.assign(o,n),!o.host&&"undefined"!=typeof self){const e=self.location.host.split(":");o.host=e[0],o.port=e[1]}const c=s(o),u=a(c);return u.send=c,u.Buffer=r,u}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){const r=n(257),i=n(992),a=n(993),f=n(258),s=n(41);function o(e){const t=[],n=e.split("/").slice(1);if(1===n.length&&""===n[0])return[];for(let r=0;r=n.length)throw b("invalid address: "+e);t.push([i,n[r]])}else t.push([i])}return t}function l(e){const t=[];return r(e,function(e){const n=v(e);t.push(n.name),e.length>1&&t.push(e[1])}),"/"+t.join("/")}function c(e){return r(e,function(e){Array.isArray(e)||(e=[e]);const t=v(e);return e.length>1?[t.code,a.toBuffer(t.code,e[1])]:[t.code]})}function u(e){return r(e,function(e){const t=v(e);return e.length>1?[t.code,a.toString(t.code,e[1])]:[t.code]})}function d(e){return g(t.concat(r(e,function(e){const n=v(e);let r=t.from(s.encode(n.code));return e.length>1&&(r=t.concat([r,e[1]])),r})))}function p(e,t){if(e.size>0)return e.size/8;if(0===e.size)return 0;return s.decode(t)+s.decode.bytes}function m(e){const t=[];let n=0;for(;ne.length)throw b("Invalid address buffer: "+e.toString("hex"));t.push([r,o])}return t}function y(e){return d(c(o(e=_(e))))}function g(e){const n=h(e);if(n)throw n;return t.from(e)}function h(e){try{m(e)}catch(e){return e}}function _(e){return"/"+i(e.trim().split("/")).join("/")}function b(e){return new Error("Error parsing address: "+e)}function v(e){return f(e[0])}e.exports={stringToStringTuples:o,stringTuplesToString:l,tuplesToStringTuples:u,stringTuplesToTuples:c,bufferToTuples:m,tuplesToBuffer:d,bufferToString:function(e){return l(u(m(e)))},stringToBuffer:y,fromString:function(e){return y(e)},fromBuffer:g,validateBuffer:h,isValidBuffer:function(e){return void 0===h(e)},cleanPath:_,ParseError:b,protoFromTuple:v,sizeForAddr:p}}).call(t,n(2).Buffer)},function(e,t,n){(function(e,n){var r=200,i="Expected a function",a="__lodash_hash_undefined__",f=1,s=2,o=1/0,l=9007199254740991,c="[object Arguments]",u="[object Array]",d="[object Boolean]",p="[object Date]",m="[object Error]",y="[object Function]",g="[object GeneratorFunction]",h="[object Map]",_="[object Number]",b="[object Object]",v="[object RegExp]",T="[object Set]",I="[object String]",S="[object Symbol]",M="[object ArrayBuffer]",E="[object DataView]",D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,w=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,L=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[c]=N[u]=N[M]=N[d]=N[E]=N[p]=N[m]=N[y]=N[h]=N[_]=N[b]=N[v]=N[T]=N[I]=N["[object WeakMap]"]=!1;var R="object"==typeof e&&e&&e.Object===Object&&e,O="object"==typeof self&&self&&self.Object===Object&&self,P=R||O||Function("return this")(),B="object"==typeof t&&t&&!t.nodeType&&t,j=B&&"object"==typeof n&&n&&!n.nodeType&&n,U=j&&j.exports===B&&R.process,Y=function(){try{return U&&U.binding("util")}catch(e){}}(),F=Y&&Y.isTypedArray;function z(e,t){for(var n=-1,r=e?e.length:0,i=0,a=[];++n-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ae(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new Me,map:new(ue||Ee),string:new Me}},De.prototype.delete=function(e){return He(this,e).delete(e)},De.prototype.get=function(e){return He(this,e).get(e)},De.prototype.has=function(e){return He(this,e).has(e)},De.prototype.set=function(e,t){return He(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,a),this},Ce.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new Ee},we.prototype.delete=function(e){return this.__data__.delete(e)},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var i=n.__data__;if(!ue||i.lengthl))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,p=!0,m=i&f?new Ce:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=l}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function lt(e){return"symbol"==typeof e||ot(e)&&re.call(e)==S}var ct=F?function(e){return function(t){return e(t)}}(F):function(e){return ot(e)&&ft(e.length)&&!!N[re.call(e)]};function ut(e){return it(e)?xe(e):Fe(e)}function dt(e){return e}n.exports=function(e,t){return(rt(e)?z:Re)(e,Ye(t))}}).call(t,n(20),n(62)(e))},function(e,t,n){"use strict";(function(t){const r=n(994),i=n(258),a=n(50),f=n(41);function s(e,n){return n instanceof t?s.toString(e,n):s.toBuffer(e,n)}e.exports=s,s.toString=function(e,t){switch((e=i(e)).code){case 4:case 41:return r.toString(t);case 6:case 17:case 33:case 132:return function(e){return e.readUInt16BE(0)}(t);case 54:case 55:case 56:return function(e){const t=f.decode(e);if((e=e.slice(f.decode.bytes)).length!==t)throw new Error("inconsistent lengths");return e.toString()}(t);case 421:return function(e){const t=f.decode(e),n=e.slice(f.decode.bytes);if(n.length!==t)throw new Error("inconsistent lengths");return a.encode(n)}(t);default:return t.toString("hex")}},s.toBuffer=function(e,n){switch((e=i(e)).code){case 4:case 41:return r.toBuffer(n);case 6:case 17:case 33:case 132:return function(e){const n=t.alloc(2);return n.writeUInt16BE(e,0),n}(parseInt(n,10));case 54:case 55:case 56:return function(e){const n=t.from(e),r=t.from(f.encode(n.length));return t.concat([r,n])}(n);case 421:return function(e){const n=t.from(a.decode(e)),r=t.from(f.encode(n.length));return t.concat([r,n])}(n);default:return t.from(n,"hex")}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";var r=t,i=n(2).Buffer,a=n(378);r.toBuffer=function(e,t,n){var r;if(n=~~n,this.isV4Format(e))r=t||new i(n+4),e.split(/\./g).map(function(e){r[n++]=255&parseInt(e,10)});else if(this.isV6Format(e)){var a,f=e.split(":",8);for(a=0;a0;a--)o.push("0");f.splice.apply(f,o)}for(r=t||new i(n+16),a=0;a>8&255,r[n++]=255&l}}if(!r)throw Error("Invalid ip address: "+e);return r},r.toString=function(e,t,n){t=~~t;var r=[];if(4===(n=n||e.length-t)){for(var i=0;i32?"ipv6":o(t))&&(n=16);for(var a=new i(n),f=0,s=a.length;f>l)}return r.toString(a)},r.mask=function(e,t){e=r.toBuffer(e),t=r.toBuffer(t);var n=new i(Math.max(e.length,t.length)),a=0;if(e.length===t.length)for(a=0;ae.length&&(i=t,a=e);var f=i.length-a.length;for(n=f;n>>0},r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(255&e)}},function(e,t){e.exports=function e(t,a,f){a=a||[];f=f||0;var s=f;for(;t>=i;)a[f++]=255&t|n,t/=128;for(;t&r;)a[f++]=255&t|n,t>>>=7;a[f]=0|t;e.bytes=f-s+1;return a};var n=128,r=-128,i=Math.pow(2,31)},function(e,t){e.exports=function e(t,i){var a,f=0,i=i||0,s=0,o=i,l=t.length;do{if(o>=l)throw e.bytes=0,new RangeError("Could not decode varint");a=t[o++],f+=s<28?(a&r)<=n);e.bytes=o-i;return f};var n=128,r=127},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),a=Math.pow(2,28),f=Math.pow(2,35),s=Math.pow(2,42),o=Math.pow(2,49),l=Math.pow(2,56),c=Math.pow(2,63);e.exports=function(e){return e{r[n]=t[n](e)}),r}},function(e,t){},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(1001);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),f=this.head,s=0;f;)t=f.data,n=a,i=s,t.copy(n,i),s+=f.data.length,f=f.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,f,s,o=1,l={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){m(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(f="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(f)&&m(+t.data.slice(f.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(f+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n>>=0;var a=e.byteLength-n;if(a<0)throw new RangeError("'offset' is out of bounds");if(void 0===i)i=a;else if((i>>>=0)>a)throw new RangeError("'length' is out of bounds");return r?t.from(e.slice(n,n+i)):new t(new Uint8Array(e.slice(n,n+i)))}(e,i,a):"string"==typeof e?function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return r?t.from(e,n):new t(e,n)}(e,i):r?t.from(e):new t(e);var f}}).call(t,n(2).Buffer)},function(e,t){var n,r,i,a=void 0,f=1e5,s=(n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,{Class:function(e){return n.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return r.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}),o=Math.LN2,l=Math.abs,c=Math.floor,u=Math.log,d=Math.min,p=Math.pow,m=Math.round;function y(e){if(g&&i){var t,n=g(e);for(t=0;t>n}function _(e,t){var n=32-t;return e<>>n}function b(e){return[255&e]}function v(e){return h(e[0],8)}function T(e){return[255&e]}function I(e){return _(e[0],8)}function S(e){return[(e=m(Number(e)))<0?0:e>255?255:255&e]}function M(e){return[e>>8&255,255&e]}function E(e){return h(e[0]<<8|e[1],16)}function D(e){return[e>>8&255,255&e]}function C(e){return _(e[0]<<8|e[1],16)}function w(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function x(e){return h(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function A(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function L(e){return _(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function k(e,t,n){var r,i,a,f,s,m,y,g=(1<.5?t+1:t%2?t+1:t}for(e!=e?(i=(1<=p(2,1-g)?(i=d(c(u(e)/o),1023),(a=h(e/p(2,i)*p(2,n)))/p(2,n)>=2&&(i+=1,a=1),i>g?(i=(1<>=1;return u.reverse(),f=u.join(""),s=(1<0?o*p(2,l-s)*(1+c/p(2,n)):0!==c?o*p(2,-(s-1))*(c/p(2,n)):o<0?-0:0}function R(e){return N(e,11,52)}function O(e){return k(e,11,52)}function P(e){return N(e,8,23)}function B(e){return k(e,8,23)}!function(){var e=function(e){if((e=s.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;tthis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=s.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(o=arguments[0],this.length=s.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;cf)throw new RangeError("Array too large for polyfill");var t;for(t=0;t=this.length)return a;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t=this.length)return a;var n,r,i=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;nthis.length)throw new RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+i*this.BYTES_PER_ELEMENT,u=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(d=[],f=0,o=n.byteOffset;fthis.length)throw new RangeError("Offset plus length of array is out of range");for(f=0;fn?n:e}e=s.ToInt32(e),t=s.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},l}var o=r(1,b,v),l=r(1,T,I),c=r(1,S,I),u=r(2,M,E),d=r(2,D,C),p=r(4,w,x),m=r(4,A,L),g=r(4,B,P),h=r(8,O,R);t.Int8Array=t.Int8Array||o,t.Uint8Array=t.Uint8Array||l,t.Uint8ClampedArray=t.Uint8ClampedArray||c,t.Int16Array=t.Int16Array||u,t.Uint16Array=t.Uint16Array||d,t.Int32Array=t.Int32Array||p,t.Uint32Array=t.Uint32Array||m,t.Float32Array=t.Float32Array||g,t.Float64Array=t.Float64Array||h}(),function(){function e(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var n,r=(n=new t.Uint16Array([4660]),18===e(new t.Uint8Array(n.buffer),0)),i=function(e,n,r){if(0===arguments.length)e=new t.ArrayBuffer(0);else if(!(e instanceof t.ArrayBuffer||"ArrayBuffer"===s.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.ArrayBuffer(0),this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=s.ToUint32(r),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");y(this)};function a(n){return function(i,a){if((i=s.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var f,o=new t.Uint8Array(this.buffer,i,n.BYTES_PER_ELEMENT),l=[];for(f=0;fthis.byteLength)throw new RangeError("Array index out of range");var o,l=new n([a]),c=new t.Uint8Array(l.buffer),u=[];for(o=0;o-1&&e%1==0&&e{if("string"==typeof e){if(!r)throw new Error("Can only add file paths in node");return function(e,t){const r=n(1039),i=n(1040),a=n(1041),f=null==e.followSymlinks||e.followSymlinks;t=r.resolve(t);const s=i.statSync(t);if(s.isDirectory()&&!e.recursive)throw new Error("Can only add directories using --recursive");if(s.isDirectory()&&e.recursive){const n=(t=t.split(r.sep).join("/"))+(t.endsWith("/")?"":"/");let s=n.split("/");s=s[s.length-2]+"/";const o=new a.sync.GlobSync("**/*",{cwd:t,follow:f,dot:e.hidden,ignore:e.ignore});return o.found.map(e=>{const t=n+e;return!0===o.symlinks[t]?{path:s+e,symlink:!0,dir:!1,content:i.readlinkSync(t)}:"FILE"===o.cache[t]?{path:s+e,symlink:!1,dir:!1,content:i.createReadStream(t)}:"DIR"===o.cache[t]||o.cache[t]instanceof Array?{path:s+e,symlink:!1,dir:!0}:void 0}).filter(Boolean)}return{path:r.basename(t),content:i.createReadStream(t)}}(t,e)}return e.path&&!e.content?(e.dir=!0,e):e.content||e.dir?e:{path:"",symlink:!1,dir:!1,content:e}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[];return Array.isArray(e)?(e.forEach(function(e,i,a){var f=t.call(n,e,i,a);Array.isArray(f)?r.push.apply(r,f):null!=f&&r.push(f)}),r):r}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var f=i>=0?arguments[i]:e.cwd();if("string"!=typeof f)throw new TypeError("Arguments to path.resolve must be strings");f&&(t=f+"/"+t,r="/"===f.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===f(e,-1);return(e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),f=Math.min(i.length,a.length),s=f,o=0;o{this._draining=!1,t?this.emit("error",t):this._maybeDrain(e)})}else this.emit("drained all files"),e()}_pushFile(e,n){const r=this._leading(e.headers||{});this.push(r);let a=e.content||t.alloc(0);if(t.isBuffer(a))return this.push(a),this.push(s),n();a.once("error",this.emit.bind(this,"error")),a.once("end",()=>{this.push(s),n()}),a.on("data",e=>{!this.push(e)&&i&&(a.pause(),this.once("drain",()=>a.resume()))})}_leading(e){var n=[a+this._boundary];Object.keys(e).forEach(t=>{n.push(t+": "+e[t])}),n.push(""),n.push("");const r=n.join(f);return t.from(r)}}}).call(t,n(2).Buffer)},function(e,t){e.exports=function(e){!function t(){var n=!0,r=!1;do{r=!0,n=!1,e.call(this,function(){r?n=!0:t()}),r=!1}while(n)}()}},function(e,t,n){"use strict";t.names=Object.freeze({sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46000:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46000:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t,n){"use strict";(function(r){const i=n(1046);(t=e.exports=f).encode=function(e,t){const n=s(e);return f(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));const n=s(t);return n.name,r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);try{const e=s(t);return e.name}catch(e){return!1}};const a=new Error("Unsupported encoding");function f(e,t){if(!t)throw new Error("requires an encoded buffer");const n=s(e),i=r.from(n.code);return function(e,t){s(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function s(e){let t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw a;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(1047),i=n(379),a=n(1048),f=n(1049),s=n(1050),o=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",a,"0123456789abcdef"],["base32","b",f,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",f,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",f,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",f,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",f,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=o.reduce((e,t)=>(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),c=o.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});e.exports={names:l,codes:c}},function(e,t,n){"use strict";e.exports=class{constructor(e,t,n,r){this.name=e,this.code=t,this.alphabet=r,n&&r&&(this.engine=n(r))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}},function(e,t,n){"use strict";(function(t){e.exports=function(e){return{encode:e=>"string"==typeof e?t.from(e).toString("hex"):e.toString("hex"),decode(n){for(let t of n)if(e.indexOf(t)<0)throw new Error("invalid base16 character");return t.from(n,"hex")}}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){function n(e,t){let n=e.byteLength,r=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-2));let a=0,f=0,s="";for(let e=0;e=5;)s+=t[f>>>a-5&31],a-=5;if(a>0&&(s+=t[f<<5-a&31]),i)for(;s.length%8!=0;)s+="=";return s}e.exports=function(e){return{encode:r=>n("string"==typeof r?t.from(r):r,e),decode(t){for(let n of t)if(e.indexOf(n)<0)throw new Error("invalid base32 character");return function(e,t){let n=(e=e.replace(new RegExp("=","g"),"")).length,r=0,i=0,a=0,f=new Uint8Array(5*n/8|0);for(let s=0;s=8&&(f[a++]=i>>>r-8&255,r-=8);return f.buffer}(t,e)}}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){e.exports=function(e){const n=e.indexOf("=")>-1,r=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode(e){let i="";i="string"==typeof e?t.from(e).toString("base64"):e.toString("base64"),r&&(i=(i=i.replace("+","-")).replace("/","_"));const a=i.indexOf("=");return a>0&&!n&&(i=i.substring(0,a)),i},decode(n){r&&(n=(n=n.replace("+","-")).replace("/","_"));for(let t of n)if(e.indexOf(t)<0)throw new Error("invalid base64 character");return t.from(n,"base64")}}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(r){const i=n(41),a=n(398),f=n(1052),s=n(399);(t=e.exports).addPrefix=((e,t)=>{let n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return r.concat([n,t])}),t.rmPrefix=(e=>(i.decode(e),e.slice(i.decode.bytes))),t.getCodec=(e=>{const t=s.varintBufferDecode(e),n=f[t.toString("hex")];if(void 0===n)throw new Error("Code `0x"+t.toString("hex")+"` not found");return n}),t.getCodeVarint=(e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t}),t.addCodec=((e,t)=>{a[e]=s.varintBufferEncode(t),f[t.toString("hex")]=e})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(266),i={};e.exports=i;for(let e in r){i[r[e].toString("hex")]=e}},function(e,t,n){"use strict";(function(t){const r=n(69);var i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(!t.isBuffer(e.multihash))return"multihash must be a Buffer";try{r.validate(e.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};e.exports=i}).call(t,n(2).Buffer)},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){},function(e,t){e.exports=function(){var e,t,n,r,i;function a(a){return i?i(a):(e=a,function(e,i){t?t(e,i):(r=e,n=i)})}return a.resolve=function(a){if(i)throw new Error("already resolved");if(!(i=a))throw new Error("resolve *must* be passed a transform stream");e&&(t=i(e),n&&t(r,n))},a}},function(e,t,n){var r=n(404),i=n(405);e.exports=function(){var e=r(),t=i();return{source:e,sink:t,resolve:function(n){e.resolve(n.source),t.resolve(n.sink)}}}},function(e,t,n){t.extract=n(1059),t.pack=n(1062)},function(e,t,n){var r=n(93),i=n(400),a=n(180),f=n(407),s=n(26).Writable,o=n(26).PassThrough,l=function(){},c=function(e){return(e&=511)&&512-e},u=function(e,t){this._parent=e,this.offset=t,o.call(this)};r.inherits(u,o),u.prototype.destroy=function(e){this._parent.destroy(e)};var d=function(e){if(!(this instanceof d))return new d(e);s.call(this,e),e=e||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=l,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,r=function(){t._continue()},o=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||r()},p=function(){t._stream=null;var e=c(t._header.size);e?t._parse(e,m):t._parse(512,b),t._locked||r()},m=function(){t._buffer.consume(c(t._header.size)),t._parse(512,b),r()},y=function(){var e=t._header.size;t._paxGlobal=f.decodePax(n.slice(0,e)),n.consume(e),p()},g=function(){var e=t._header.size;t._pax=f.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=a(t._paxGlobal,t._pax)),n.consume(e),p()},h=function(){var r=t._header.size;this._gnuLongPath=f.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),p()},_=function(){var r=t._header.size;this._gnuLongLinkPath=f.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),p()},b=function(){var i,a=t._offset;try{i=t._header=f.decode(n.slice(0,512),e.filenameEncoding)}catch(e){t.emit("error",e)}return n.consume(512),i?"gnu-long-path"===i.type?(t._parse(i.size,h),void r()):"gnu-long-link-path"===i.type?(t._parse(i.size,_),void r()):"pax-global-header"===i.type?(t._parse(i.size,y),void r()):"pax-header"===i.type?(t._parse(i.size,g),void r()):(t._gnuLongPath&&(i.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(i.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=i=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(i,t._pax),t._pax=null),t._locked=!0,i.size&&"directory"!==i.type?(t._stream=new u(t,a),t.emit("entry",i,t._stream,o),t._parse(i.size,p),void r()):(t._parse(512,b),void t.emit("entry",i,function(e,t){var n=new u(e,t);return n.end(),n}(t,a),o))):(t._parse(512,b),void r())};this._onheader=b,this._parse(512,b)};r.inherits(d,s),d.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},d.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},d.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=l,this._overflow?this._write(this._overflow,void 0,e):e()}},d.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,i=this._buffer,a=this._missing;if(e.length&&(this._partial=!0),e.lengtha&&(f=e.slice(a),e=e.slice(0,a)),r?r.end(e):i.append(e),this._overflow=f,this._onparse()}},d.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},e.exports=d},function(e,t,n){(function(t){var n=function(){try{if(!t.isEncoding("latin1"))return!1;var e=t.alloc?t.alloc(4):new t(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function r(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?e.length:r>>>0)>n&&e.fill(t,n,r),e}e.exports=function(e,i,a,f,s){if(n)return e.fill(i,a,f,s);if("number"==typeof i)return r(e,i,a,f);if("string"==typeof i){if("string"==typeof a?(s=a,a=0,f=e.length):"string"==typeof f&&(s=f,f=e.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("latin1"===s&&(s="binary"),"string"==typeof s&&!t.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(""===i)return r(e,0,a,f);if(function(e){return 1===e.length&&e.charCodeAt(0)<256}(i))return r(e,i.charCodeAt(0),a,f);i=new t(i,s)}return t.isBuffer(i)?function(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");if(r<=n)return e;n>>>=0,r=void 0===r?e.length:r>>>0;for(var i=n,a=t.length;i<=r-a;)t.copy(e,i),i+=a;return i!==r&&t.copy(e,i,0,r-i),e}(e,i,a,f):r(e,0,a,f)}}).call(t,n(2).Buffer)},function(e,t,n){(function(t){e.exports=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return t.allocUnsafe?t.allocUnsafe(e):new t(e)}}).call(t,n(2).Buffer)},function(e,t,n){(function(t,r){var i=n(1063),a=n(267),f=n(93),s=n(409),o=n(408),l=n(26).Readable,c=n(26).Writable,u=n(139).StringDecoder,d=n(407),p=parseInt("755",8),m=parseInt("644",8),y=s(1024),g=function(){},h=function(e,t){(t&=511)&&e.push(y.slice(0,512-t))};var _=function(e){c.call(this),this.written=0,this._to=e,this._destroyed=!1};f.inherits(_,c),_.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){c.call(this),this.linkname="",this._decoder=new u("utf-8"),this._destroyed=!1};f.inherits(b,c),b.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(){c.call(this),this._destroyed=!1};f.inherits(v,c),v.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var T=function(e){if(!(this instanceof T))return new T(e);l.call(this,e),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};f.inherits(T,l),T.prototype.entry=function(e,n,f){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof n&&(f=n,n=null),f||(f=g);var s=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&i.S_IFMT){case i.S_IFBLK:return"block-device";case i.S_IFCHR:return"character-device";case i.S_IFDIR:return"directory";case i.S_IFIFO:return"fifo";case i.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?p:m),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof n&&(n=o(n)),t.isBuffer(n))return e.size=n.length,this._encode(e),this.push(n),h(s,e.size),r.nextTick(f),new v;if("symlink"===e.type&&!e.linkname){var l=new b;return a(l,function(t){if(t)return s.destroy(),f(t);e.linkname=l.linkname,s._encode(e),f()}),l}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return r.nextTick(f),new v;var c=new _(this);return this._stream=c,a(c,function(t){return s._stream=null,t?(s.destroy(),f(t)):c.written!==e.size?(s.destroy(),f(new Error("size mismatch"))):(h(s,e.size),s._finalizing&&s.finalize(),void f())}),c}},T.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(y),this.push(null))},T.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},T.prototype._encode=function(e){if(!e.pax){var t=d.encode(e);if(t)return void this.push(t)}this._encodePax(e)},T.prototype._encodePax=function(e){var t=d.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(d.encode(n)),this.push(t),h(this,t.length),n.size=e.size,n.type=e.type,this.push(d.encode(n))},T.prototype._read=function(e){var t=this._drain;this._drain=g,t()},e.exports=T}).call(t,n(2).Buffer,n(25))},function(e,t,n){e.exports=n(1064)},function(e,t){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},function(e,t,n){"use strict";e.exports={keys:n(1066),once:n(414),values:n(270),count:n(1067),infinite:n(1068),empty:n(1069),error:n(1070)}},function(e,t,n){"use strict";var r=n(270);e.exports=function(e){return r(Object.keys(e))}},function(e,t,n){"use strict";e.exports=function(e){var t=0;return e=e||1/0,function(n,r){return n?r&&r(n):t>e?r(!0):void r(null,t++)}}},function(e,t,n){"use strict";e.exports=function(e){return e=e||Math.random,function(t,n){return t?n&&n(t):n(null,e())}}},function(e,t,n){"use strict";e.exports=function(){return function(e,t){t(!0)}}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){n(e)}}},function(e,t,n){"use strict";e.exports={drain:n(142),onEnd:n(1072),log:n(1073),find:n(1074),reduce:n(271),collect:n(1075),concat:n(1076)}},function(e,t,n){"use strict";var r=n(142);e.exports=function(e){return r(null,e)}},function(e,t,n){"use strict";var r=n(142);e.exports=function(e){return r(function(e){console.log(e)},e)}},function(e,t,n){"use strict";function r(e){return e}var i=n(143),a=n(142);e.exports=function(e,t){var n=!1;return t?e=i(e)||r:(t=e,e=r),a(function(r){if(e(r))return n=!0,t(null,r),!1},function(e){n||t(!0===e?null:e,null)})}},function(e,t,n){"use strict";var r=n(271);e.exports=function(e){return r(function(e,t){return e.push(t),e},[],e)}},function(e,t,n){"use strict";var r=n(271);e.exports=function(e){return r(function(e,t){return e+t},"",e)}},function(e,t,n){"use strict";e.exports={map:n(1078),asyncMap:n(1079),filter:n(272),filterNot:n(1080),through:n(1081),take:n(1082),unique:n(416),nonUnique:n(1083),flatten:n(1084)}},function(e,t,n){"use strict";function r(e){return e}var i=n(143);e.exports=function(e){return e?(e=i(e),function(t){return function(n,r){t(n,function(n,i){try{i=n?null:e(i)}catch(e){return t(e,function(){return r(e)})}r(n,i)})}}):r}},function(e,t,n){"use strict";function r(e){return e}var i=n(143);e.exports=function(e){if(!e)return r;e=i(e);var t,n,a=!1;return function(r){return function i(f,s){if(n)return s(n);f?(n=f,r(f,a?function(e){a?t=s:s(f)}:function(e){s(f)})):r(null,function(r,f){r?s(r):n?s(n):(a=!0,e(f,function(e,r){a=!1,n?(s(n),t(n)):e?i(e,s):s(null,r)}))})}}}},function(e,t,n){"use strict";var r=n(415),i=n(272);e.exports=function(e){return e=r(e),i(function(t){return!e(t)})}},function(e,t,n){"use strict";e.exports=function(e,t){var n=!1;function r(e){!n&&t&&(n=!0,t(!0===e?null:e))}return function(t){return function(n,i){return n&&r(n),t(n,function(t,n){t?r(t):e&&e(n),i(t,n)})}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=(t=t||{}).last||!1,r=!1;if("number"==typeof e){n=!0;var i=e;e=function(){return--i}}return function(t){function i(e){t(!0,function(t){n=!1,e(t||!0)})}return function(a,f){r&&!a?n?i(f):f(r):(r=a)?t(r,f):t(null,function(t,a){(r=r||t)?f(r):e(a)?f(null,a):(r=!0,n?f(null,a):i(f))})}}}},function(e,t,n){"use strict";var r=n(416);e.exports=function(e){return r(e,!0)}},function(e,t,n){"use strict";var r=n(270),i=n(414);e.exports=function(){return function(e){var t;return function(n,a){function f(){t(null,function(t,n){!0===t?s():t?e(!0,function(e){a(t)}):a(null,n)})}function s(){t=null,e(null,function(e,n){if(e)return a(e);Array.isArray(n)||n&&"object"==typeof n?n=r(n):"function"!=typeof n&&(n=i(n)),t=n,f()})}n?t?t(n,function(t){e(t||n,a)}):e(n,a):t?f():s()}}}},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r((e,n,r)=>{"function"==typeof n&&(r=n,n={}),t({path:"ls",args:e,qs:n},(t,n)=>{if(t)return r(t);let i=n.Objects;return i?(i=i[0])?(i=i.Links,Array.isArray(i)?(i=i.map(t=>({name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:function(e){switch(e.Type){case 1:case 5:return"dir";case 2:return"file";default:return"unknown"}}(t),depth:t.Depth||1})),void r(null,i)):r(new Error("expected one array in results.Objects[0].Links"))):r(new Error("expected one array in results.Objects")):r(new Error("expected .Objects in results"))})})})},function(e,t){e.exports={_args:[["ipfs-api@18.2.1","/Users/vstavetski/IdeaProjects/chaingear"]],_from:"ipfs-api@18.2.1",_id:"ipfs-api@18.2.1",_inBundle:!1,_integrity:"sha512-ffT6tO4KkACztnA3wm2R1hanQLjyeYgTaaXLtoetMvdKTuI6JeOuwg7lv7HfLpIBRKfeYU98e2wzH7Vv7bhERw==",_location:"/ipfs-api",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"ipfs-api@18.2.1",name:"ipfs-api",escapedName:"ipfs-api",rawSpec:"18.2.1",saveSpec:null,fetchSpec:"18.2.1"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/ipfs-api/-/ipfs-api-18.2.1.tgz",_spec:"18.2.1",_where:"/Users/vstavetski/IdeaProjects/chaingear",author:{name:"Matt Bell",email:"mappum@gmail.com"},browser:{glob:!1,fs:!1,stream:"readable-stream",http:"stream-http","ipfs-api":!1,ipfs:!1},bugs:{url:"https://github.com/ipfs/js-ipfs-api/issues"},contributors:[{name:"Alan Shaw",email:"alan@tableflip.io"},{name:"Alex Mingoia",email:"talk@alexmingoia.com"},{name:"Antonio Tenorio-Fornés",email:"antoniotenorio@ucm.es"},{name:"Bruno Barbieri",email:"bbarbieri@delivery.com"},{name:"Connor Keenan",email:"ckeenan89@gmail.com"},{name:"Danny",email:"dannyid@protonmail.com"},{name:"David Braun",email:"David.Braun@Toptal.com"},{name:"David Dias",email:"daviddias.p@gmail.com"},{name:"Dmitriy Ryajov",email:"dryajov@gmail.com"},{name:"Fil",email:"fil@rezo.net"},{name:"Francisco Baio Dias",email:"xicombd@gmail.com"},{name:"Friedel Ziegelmayer",email:"dignifiedquire@gmail.com"},{name:"Gavin McDermott",email:"gavinmcdermott@gmail.com"},{name:"Greenkeeper",email:"support@greenkeeper.io"},{name:"Haad",email:"haadcode@users.noreply.github.com"},{name:"Harlan T Wood",email:"harlantwood@users.noreply.github.com"},{name:"Harlan T Wood",email:"code@harlantwood.net"},{name:"Henrique Dias",email:"hacdias@gmail.com"},{name:"Holodisc",email:"holodiscent@gmail.com"},{name:"Jacob Heun",email:"jacobheun@gmail.com"},{name:"James Halliday",email:"substack@gmail.com"},{name:"Jason Carver",email:"jacarver@linkedin.com"},{name:"Jason Papakostas",email:"vith@users.noreply.github.com"},{name:"Jeff Downie",email:"JeffDownie@users.noreply.github.com"},{name:"Jeromy",email:"why@ipfs.io"},{name:"Jeromy",email:"jeromyj@gmail.com"},{name:"Joe Turgeon",email:"arithmetric@gmail.com"},{name:"Jonathan",email:"jkrone@vt.edu"},{name:"Juan Batiz-Benet",email:"juan@benet.ai"},{name:"Kevin Wang",email:"kevin@fossa.io"},{name:"Kristoffer Ström",email:"kristoffer@rymdkoloni.se"},{name:"Matt Bell",email:"mappum@gmail.com"},{name:"Maxime Lathuilière",email:"k@maxlath.eu"},{name:"Michael Muré",email:"batolettre@gmail.com"},{name:"Mitar",email:"mitar.git@tnode.com"},{name:"Mithgol",email:"getgit@mithgol.ru"},{name:"Nuno Nogueira",email:"nunofmn@gmail.com"},{name:"Pedro Teixeira",email:"i@pgte.me"},{name:"Pete Thomas",email:"pete@xminusone.net"},{name:"Richard Littauer",email:"richard.littauer@gmail.com"},{name:"Richard Schneider",email:"makaretu@gmail.com"},{name:"Stephen Whitmore",email:"stephen.whitmore@gmail.com"},{name:"Tara Vancil",email:"tbvanc@gmail.com"},{name:"Travis Person",email:"travis.person@gmail.com"},{name:"Victor Bjelkholm",email:"victor@typeform.com"},{name:"Volker Mische",email:"volker.mische@gmail.com"},{name:"dmitriy ryajov",email:"dryajov@dmitriys-MacBook-Pro.local"},{name:"elsehow",email:"yes@cosmopol.is"},{name:"ethers",email:"ethereum@outlook.com"},{name:"haad",email:"haad@headbanggames.com"},{name:"kumavis",email:"kumavis@users.noreply.github.com"},{name:"nginnever",email:"ginneversource@gmail.com"},{name:"noah the goodra",email:"peterpan0413@live.com"},{name:"priecint",email:"tp-dev@seznam.cz"},{name:"samuli",email:"samuli@nugg.ad"},{name:"victorbjelkholm",email:"victorbjelkholm@gmail.com"},{name:"Łukasz Magiera",email:"magik6k@users.noreply.github.com"}],dependencies:{async:"^2.6.0","big.js":"^5.0.3",bs58:"^4.0.1",cids:"~0.5.3","concat-stream":"^1.6.2","detect-node":"^2.0.3",flatmap:"0.0.3",glob:"^7.1.2","ipfs-block":"~0.6.1","ipfs-unixfs":"~0.1.14","ipld-dag-pb":"~0.13.1","is-ipfs":"^0.3.2","is-stream":"^1.1.0","lru-cache":"^4.1.2",multiaddr:"^3.0.2",multihashes:"~0.4.13",ndjson:"^1.5.0",once:"^1.4.0","peer-id":"~0.10.6","peer-info":"~0.11.6","promisify-es6":"^1.0.3","pull-defer":"^0.2.2","pull-pushable":"^2.2.0",pump:"^3.0.0",qs:"^6.5.1","readable-stream":"^2.3.5","stream-http":"^2.8.1","stream-to-pull-stream":"^1.7.2",streamifier:"^0.1.1","tar-stream":"^1.5.5"},description:"A client library for the IPFS HTTP API",devDependencies:{aegir:"^13.0.6","browser-process-platform":"^0.1.1",chai:"^4.1.2","dirty-chai":"^2.0.1","eslint-plugin-react":"^7.7.0","go-ipfs-dep":"^0.4.13",gulp:"^3.9.1",hapi:"^17.2.3","interface-ipfs-core":"~0.58.0",ipfs:"~0.28.2","ipfsd-ctl":"~0.30.4","pre-commit":"^1.2.2","socket.io":"^2.0.4","socket.io-client":"^2.0.4","stream-equal":"^1.1.1"},engines:{node:">=6.0.0",npm:">=3.0.0"},homepage:"https://github.com/ipfs/js-ipfs-api",keywords:["ipfs"],license:"MIT",main:"src/index.js",name:"ipfs-api","pre-commit":["lint","test"],repository:{type:"git",url:"git+https://github.com/ipfs/js-ipfs-api.git"},scripts:{build:"aegir build",coverage:"aegir coverage --timeout 100000","coverage-publish":"aegir coverage --provider coveralls --timeout 100000",lint:"aegir lint",release:"aegir release ","release-major":"aegir release --type major ","release-minor":"aegir release --type minor ",test:"aegir test","test:browser":"aegir test -t browser","test:node":"aegir test -t node","test:webworker":"aegir test -t webworker"},version:"18.2.1"}},function(e,t,n){"use strict";var r=n(1088),i=n(1089),a=n(419);e.exports={formats:a,parse:i,stringify:r}},function(e,t,n){"use strict";var r=n(273),i=n(419),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},f=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},o=function e(t,n,i,a,f,o,l,c,u,d,p,m){var y=t;if("function"==typeof l)y=l(n,y);else if(y instanceof Date)y=d(y);else if(null===y){if(a)return o&&!m?o(n,s.encoder):n;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||r.isBuffer(y))return o?[p(m?n:o(n,s.encoder))+"="+p(o(y,s.encoder))]:[p(n)+"="+p(String(y))];var g,h=[];if(void 0===y)return h;if(Array.isArray(l))g=l;else{var _=Object.keys(y);g=c?_.sort(c):_}for(var b=0;b0?C+D:""}},function(e,t,n){"use strict";var r=n(273),i=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},f=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,f=/(\[[^[\]]*])/.exec(r),s=f?r.slice(0,f.index):r,o=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;o.push(s)}for(var l=0;null!==(f=a.exec(r))&&l=0;--i){var a,f=e[i];if("[]"===f)a=(a=[]).concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,o=parseInt(s,10);!isNaN(o)&&f!==s&&String(o)===s&&o>=0&&n.parseArrays&&o<=n.arrayLimit?(a=[])[o]=r:a[s]=r}r=a}return r}(o,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,f),o=0;othis.maxLength)return n(new Error("maximum buffer reached"));var r=this._last.split(this.matcher);this._last=r.pop();for(var i=0;i0){var f=n.indexOf(this);~f?n.splice(f+1):n.push(this),~f?r.splice(f,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},function(e,t,n){"use strict";(function(t){const r=n(53);e.exports=function(e,n){r(e,(e,r)=>{if(e)return n(e);if(!r||0===r.length)return n();let i;t.isBuffer(r)&&(r=r.toString());try{i=JSON.parse(r)}catch(e){return n(e)}n(null,i)})}}).call(t,n(2).Buffer)},function(e,t,n){(function(t,r,i){var a=n(423),f=n(9),s=n(424),o=n(26),l=n(1094),c=s.IncomingMessage,u=s.readyStates;var d=e.exports=function(e){var n,r=this;o.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":a.vbArray&&e?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};f(d,o.Writable),d.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,f=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=a.arraybuffer?l(t.concat(e._body)):a.blobConstructor?new r.Blob(e._body.map(function(e){return l(e)}),{type:(f["content-type"]||{}).value||""}):t.concat(e._body).toString());var o=[];if(Object.keys(f).forEach(function(e){var t=f[e].name,n=f[e].value;Array.isArray(n)?n.forEach(function(e){o.push([t,e])}):o.push([t,n])}),"fetch"===e._mode){var c=null;if(a.abortController){var d=new AbortController;c=d.signal,e._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:o,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:c}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(e){p.setRequestHeader(e[0],e[1])}),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case u.LOADING:case u.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),o.Writable.prototype.end.call(this,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(t,n(2).Buffer,n(20),n(25))},function(e,t,n){var r=n(2).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=l-c,I=Math.floor,S=String.fromCharCode;function M(e){throw new RangeError(v[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function D(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(b,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],i=0,a=e.length;i=55296&&t<=56319&&i65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?I(e/p):e>>1,e+=I(e/t);e>T*u>>1;r+=l)e=I(e/T);return I(r+(T+1)*e/(e+d))}function L(e){var t,n,r,i,a,f,s,d,p,h,_,b=[],v=e.length,T=0,S=y,E=m;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&M("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=v&&M("invalid-input"),((d=(_=e.charCodeAt(i++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:l)>=l||d>I((o-T)/f))&&M("overflow"),T+=d*f,!(d<(p=s<=E?c:s>=E+u?u:s-E));s+=l)f>I(o/(h=l-p))&&M("overflow"),f*=h;E=A(T-a,t=b.length+1,0==a),I(T/t)>o-S&&M("overflow"),S+=I(T/t),T%=t,b.splice(T++,0,S)}return w(b)}function k(e){var t,n,r,i,a,f,s,d,p,h,_,b,v,T,E,D=[];for(b=(e=C(e)).length,t=y,n=0,a=m,f=0;f=t&&_I((o-n)/(v=r+1))&&M("overflow"),n+=(s-t)*v,t=s,f=0;fo&&M("overflow"),_==t){for(d=n,p=l;!(d<(h=p<=a?c:p>=a+u?u:p-a));p+=l)E=d-h,T=l-h,D.push(S(x(h+E%T,0))),d=I(E/T);D.push(S(x(d,0))),a=A(n,v,r==i),n=0,++r}++n,++t}return D.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:w},decode:L,encode:k,toASCII:function(e){return D(e,function(e){return _.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return D(e,function(e){return h.test(e)?L(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n(62)(e),n(20))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(1099),t.encode=t.stringify=n(1100)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var f={};if("string"!=typeof e||0===e.length)return f;var s=/\+/g;e=e.split(t);var o=1e3;a&&"number"==typeof a.maxKeys&&(o=a.maxKeys);var l=e.length;o>0&&l>o&&(l=o);for(var c=0;c=0?(u=y.substr(0,g),d=y.substr(g+1)):(u=y,d=""),p=decodeURIComponent(u),m=decodeURIComponent(d),r(f,p)?i(f[p])?f[p].push(m):f[p]=[f[p],m]:f[p]=m}return f};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(f(e),function(f){var s=encodeURIComponent(r(f))+n;return i(e[f])?a(e[f],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[f]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=r(e);return(e,n,r)=>{"function"==typeof n&&(r=n,n={});const a=new i.PassThrough({objectMode:!0});return t({path:"ls",args:e,qs:n},(t,n)=>{if(t)return r(t);let i=n.Objects;return i?(i=i[0])?(i=i.Links,Array.isArray(i)?((i=i.map(t=>({depth:1,name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:function(e){switch(e.Type){case 1:case 5:return"dir";case 2:return"file";default:return"unknown"}}(t)}))).forEach(e=>a.write(e)),void a.end()):r(new Error("expected one array in results.Objects[0].Links"))):r(new Error("expected one array in results.Objects")):r(new Error("expected .Objects in results"))}),a}})},function(e,t,n){"use strict";const r=n(17),i=n(269),a=n(186);e.exports=(e=>{const t=r(e);return(e,n,r)=>{"function"==typeof n&&(r=n,n={});const f=a.source();return t({path:"ls",args:e,qs:n},(t,n)=>{if(t)return r(t);let a=n.Objects;return a?(a=a[0])?(a=a.Links,Array.isArray(a)?(a=a.map(t=>({depth:1,name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:function(e){switch(e.Type){case 1:case 5:return"dir";case 2:return"file";default:return"unknown"}}(t)})),void f.resolve(i.values(a))):r(new Error("expected one array in results.Objects[0].Links"))):r(new Error("expected one array in results.Objects")):r(new Error("expected .Objects in results"))}),f}})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{wantlist:n(1105)(t),stat:n(1106)(t),unwant:n(1107)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r(t=>{e({path:"bitswap/wantlist"},t)}))},function(e,t,n){"use strict";const r=n(3),i=n(144),a=function(e,t){t(null,{provideBufLen:e.ProvideBufLen,wantlist:e.Wantlist||[],peers:e.Peers||[],blocksReceived:new i(e.BlocksReceived),dataReceived:new i(e.DataReceived),blocksSent:new i(e.BlocksSent),dataSent:new i(e.DataSent),dupBlksReceived:new i(e.DupBlksReceived),dupDataReceived:new i(e.DupDataReceived)})};e.exports=(e=>r(t=>{e.andTransform({path:"bitswap/stat"},a,t)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e({path:"bitswap/unwant",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{get:n(1109)(t),stat:n(1110)(t),put:n(1111)(t)}})},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(425),a=n(52),f=n(53);e.exports=(e=>r((n,r,s)=>{let o;"function"==typeof r&&(s=r,r={});try{if(a.isCID(n))n=(o=n).toBaseEncodedString();else if(t.isBuffer(n))n=(o=new a(n)).toBaseEncodedString();else{if("string"!=typeof n)return s(new Error("invalid argument"));o=new a(n)}}catch(e){return s(e)}const l={path:"block/get",args:n,qs:r};e.andTransform(l,(e,n)=>{t.isBuffer(e)?n(null,new i(e,o)):f(e,(e,t)=>{if(e)return n(e);n(null,new i(t,o))})},s)}))}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(3),i=n(52),a=n(69);e.exports=(e=>r((t,n,r)=>{t&&i.isCID(t)&&(t=a.toB58String(t.multihash)),"function"==typeof n&&(r=n,n={});const f={path:"block/stat",args:t,qs:n};e.andTransform(f,(e,t)=>{t(null,{key:e.Key,size:e.Size})},r)}))},function(e,t,n){"use strict";const r=n(3),i=n(425),a=n(52),f=n(51),s=n(145);e.exports=(e=>{const t=s(e,"block/put");return r((e,n,r)=>{"function"==typeof n&&(r=n,n={});const s=f(r);if(Array.isArray(e))return s(new Error("block.put accepts only one block"));"object"==typeof e&&e.data&&(e=e.data),t(e,{},(t,n)=>{if(t)return s(t);s(null,new i(e,new a(n.Key)))})})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{add:n(1113)(t),rm:n(1114)(t),list:n(1115)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),t&&"object"==typeof t&&(n=t,t=void 0),e({path:"bootstrap/add",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),t&&"object"==typeof t&&(n=t,t=void 0),e({path:"bootstrap/rm",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"bootstrap/list",qs:t},n)}))},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r(e=>{t({path:"commands"},e)})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{get:n(1118)(t),set:n(1119)(t),replace:n(1120)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t=void 0),t?e({path:"config",args:t,buffer:!0},(e,t)=>{if(e)return n(e);n(null,t.Value)}):e({path:"config/show",buffer:!0},n)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r,i)=>("function"==typeof r&&(i=r,r={}),"string"!=typeof t?i(new Error("Invalid key type")):"object"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n?i(new Error("Invalid value type")):("object"==typeof n&&(n=JSON.stringify(n),r={json:!0}),"boolean"==typeof n&&(n=n.toString(),r={bool:!0}),void e({path:"config",args:[t,n],qs:r,files:void 0,buffer:!0},i)))))},function(e,t,n){"use strict";(function(t){const r=n(1121),i=n(3),a=n(145);e.exports=(e=>{const n=a(e,"config/replace");return i((e,i)=>{"object"==typeof e&&(e=r.createReadStream(t.from(JSON.stringify(e)))),n(e,{},i)})})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(93),i=n(276);e.exports.createReadStream=function(e,t){return new a(e,t)};var a=function(e,n){e instanceof t||"string"==typeof e?(n=n||{},i.Readable.call(this,{highWaterMark:n.highWaterMark,encoding:n.encoding})):i.Readable.call(this,{objectMode:!0}),this._object=e};r.inherits(a,i.Readable),a.prototype._read=function(){this.push(this._object),this._object=null}}).call(t,n(2).Buffer)},function(e,t,n){e.exports=n(260)},function(e,t,n){e.exports=n(26).PassThrough},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{get:n(1125)(t),put:n(1126)(t),findprovs:n(1127)(t),findpeer:n(1128)(t),provide:n(1129)(t),query:n(1130)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),e({path:"dht/get",args:t,qs:n},function(e,t,n){if(t)return e(t);if(!n)return e(new Error("empty response"));if(0===n.length)return e(new Error("no value returned for key"));Array.isArray(n)&&(n=n[0]),5===n.Type?e(null,n.Extra):e(new Error("key was not found (type 6)"))}.bind(null,r))}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r,i)=>{"function"!=typeof r||i||(i=r,r={}),"function"==typeof r&&"function"==typeof i&&(i=r,r={}),e({path:"dht/put",args:[t,n],qs:r},i)}))},function(e,t,n){"use strict";const r=n(3),i=n(53);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),e.andTransform({path:"dht/findprovs",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=n(53);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),e.andTransform({path:"dht/findpeer",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=n(52);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),Array.isArray(t)||(t=[t]);try{t=t.map(e=>new i(e).toBaseEncodedString("base58btc"))}catch(e){return r(e)}e({path:"dht/provide",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3),i=n(53);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),e.andTransform({path:"dht/query",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{net:n(1132)(t),sys:n(1133)(t),cmds:n(1134)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"diag/net",qs:t},n)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"diag/sys",qs:t},n)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"diag/cmds",qs:t},n)}))},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r((e,n)=>{"function"==typeof e&&(n=e,e=void 0),t({path:"id",args:e},(e,t)=>{if(e)return n(e);const r={id:t.ID,publicKey:t.PublicKey,addresses:t.Addresses,agentVersion:t.AgentVersion,protocolVersion:t.ProtocolVersion};n(null,r)})})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{gen:n(1137)(t),list:n(1138)(t),rename:n(1139)(t),rm:n(1140)(t),export:n(1141)(t),import:n(1142)(t)}})},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,{id:e.Id,name:e.Name})};e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e.andTransform({path:"key/gen",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,e.Keys.map(e=>({id:e.Id,name:e.Name})))};e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"key/list",qs:t},i,n)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,{id:e.Id,was:e.Was,now:e.Now,overwrite:e.Overwrite})};e.exports=(e=>r((t,n,r)=>{e.andTransform({path:"key/rename",args:[t,n]},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,{id:e.Keys[0].Id,name:e.Keys[0].Name})};e.exports=(e=>r((t,n)=>{e.andTransform({path:"key/rm",args:t},i,n)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{e({path:"key/export",args:t,qs:{password:n}},(e,t)=>{if(e)return r(e);r(null,t.toString())})}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,{id:e.Id,name:e.Name})};e.exports=(e=>r((t,n,r,a)=>{e.andTransform({path:"key/import",args:t,qs:{pem:n,password:r}},i,a)}))},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{tail:n(1144)(t),ls:n(1145)(t),level:n(1146)(t)}})},function(e,t,n){"use strict";const r=n(3),i=n(94),a=n(420);e.exports=(e=>r(t=>e({path:"log/tail"},(e,n)=>{if(e)return t(e);const r=a.parse();i(n,r),t(null,r)})))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r(t=>{e({path:"log/ls"},(e,n)=>{if(e)return t(e);t(null,n.Strings)})}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r,i)=>("function"==typeof r&&(i=r,r={}),"string"!=typeof t?i(new Error("Invalid subsystem type")):"string"!=typeof n?i(new Error("Invalid level type")):void e({path:"log/level",args:[t,n],qs:r,files:void 0,buffer:!0},i))))},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r((e,n,r)=>{"function"==typeof e?(r=e,e=null):"function"==typeof n&&(r=n,n=null);const i={};e&&(i.f=e),n&&(i.n=n),t({path:"mount",qs:i},r)})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{publish:n(1149)(t),resolve:n(1150)(t)}})},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,{name:e.Name,value:e.Value})};e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e.andTransform({path:"name/publish",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,e.Path)};e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e.andTransform({path:"name/resolve",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{get:n(146)(t),put:n(1185)(t),data:n(1186)(t),links:n(1187)(t),stat:n(1188)(t),new:n(1189)(t),patch:{addLink:n(1192)(t),rmLink:n(1193)(t),setData:n(1194)(t),appendData:n(1195)(t)}}})},function(e,t,n){"use strict";(function(t){const r=n(1153),i=n(1155),a=n(426),f=n(1157),s=a.toCallback,o=a.toBuf,l=a.fromString,c=a.fromNumberTo32BitBuf;e.exports={sha1:f.sha1,sha2256:f.sha2256,sha2512:f.sha2512,sha3512:s(o(r.sha3_512)),sha3384:s(o(r.sha3_384)),sha3256:s(o(r.sha3_256)),sha3224:s(o(r.sha3_224)),shake128:s(o(r.shake_128,256)),shake256:s(o(r.shake_256,512)),keccak224:s(o(r.keccak_224)),keccak256:s(o(r.keccak_256)),keccak384:s(o(r.keccak_384)),keccak512:s(o(r.keccak_512)),murmur3128:s(o(l(i.x64.hash128))),murmur332:s(c(l(i.x86.hash32))),addBlake:n(1160),dblSha2256:(e,n)=>{f.sha2256(e,(e,r)=>{e&&n(e),f.sha2256(t.from(r),n)})}}}).call(t,n(2).Buffer)},function(e,t,n){(function(r,i){var a;!function(){"use strict";var f="input is invalid type",s="object"==typeof window,o=s?window:{};o.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?o=i:l&&(o=self);var c=!o.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,u=n(1154),d=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],y=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],_=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var T=function(e,t,n){return function(r){return new P(e,t,e).update(r)[n]()}},I=function(e,t,n){return function(r,i){return new P(e,t,i).update(r)[n]()}},S=function(e,t,n){return function(t,r,i,a){return w["cshake"+e].update(t,r,i,a)[n]()}},M=function(e,t,n){return function(t,r,i,a){return w["kmac"+e].update(t,r,i,a)[n]()}},E=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function B(e,t,n){P.call(this,e,t,n)}P.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw f;if(null===e)throw f;if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw f;t=!0}for(var r,i,a=this.blocks,s=this.byteCount,o=e.length,l=this.blockCount,c=0,u=this.s;c>2]|=e[c]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(a[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=a[l],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},P.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw f;if(null===e)throw f;if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw f;t=!0}var r=0,i=e.length;if(t)r=i;else for(var a=0;a=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),r+=4)}return r+=this.encode(8*r),this.update(e),r},P.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];f%t==0&&(j(n),a=0)}return i&&(e=n[a],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},P.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,f=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var o=new Uint32Array(e);f>8&255,o[e+2]=t>>16&255,o[e+3]=t>>24&255;s%n==0&&j(r)}return a&&(e=s<<2,t=r[f],o[e]=255&t,a>1&&(o[e+1]=t>>8&255),a>2&&(o[e+2]=t>>16&255)),o},B.prototype=new P,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var j=function(e){var t,n,r,i,a,f,s,o,l,c,u,d,p,m,y,h,_,b,v,T,I,S,M,E,D,C,w,x,A,L,k,N,R,O,P,B,j,U,Y,F,z,V,H,$,G,q,W,K,Q,Z,J,X,ee,te,ne,re,ie,ae,fe,se,oe,le,ce;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],f=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(f<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|f>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(o<<1|l>>>31),n=a^(l<<1|o>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=f^(c<<1|u>>>31),n=s^(u<<1|c>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=o^(d<<1|p>>>31),n=l^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=c^(i<<1|a>>>31),n=u^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],y=e[1],q=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,A=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,oe=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,O=e[2]<<1|e[3]>>>31,P=e[3]<<1|e[2]>>>31,h=e[13]<<12|e[12]>>>20,_=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,L=e[33]<<13|e[32]>>>19,k=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,N=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,D=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,Y=e[27]<<25|e[26]>>>7,T=e[36]<<21|e[37]>>>11,I=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,C=e[18]<<20|e[19]>>>12,w=e[19]<<20|e[18]>>>12,ae=e[29]<<7|e[28]>>>25,fe=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,M=e[49]<<14|e[48]>>>18,e[0]=m^~h&b,e[1]=y^~_&v,e[10]=E^~C&x,e[11]=D^~w&A,e[20]=O^~B&U,e[21]=P^~j&Y,e[30]=$^~q&K,e[31]=G^~W&Q,e[40]=te^~re&ae,e[41]=ne^~ie&fe,e[2]=h^~b&T,e[3]=_^~v&I,e[12]=C^~x&L,e[13]=w^~A&k,e[22]=B^~U&F,e[23]=j^~Y&z,e[32]=q^~K&Z,e[33]=W^~Q&J,e[42]=re^~ae&se,e[43]=ie^~fe&oe,e[4]=b^~T&S,e[5]=v^~I&M,e[14]=x^~L&N,e[15]=A^~k&R,e[24]=U^~F&V,e[25]=Y^~z&H,e[34]=K^~Z&X,e[35]=Q^~J&ee,e[44]=ae^~se&le,e[45]=fe^~oe&ce,e[6]=T^~S&m,e[7]=I^~M&y,e[16]=L^~N&E,e[17]=k^~R&D,e[26]=F^~V&O,e[27]=z^~H&P,e[36]=Z^~X&$,e[37]=J^~ee&G,e[46]=se^~le&te,e[47]=oe^~ce&ne,e[8]=S^~m&h,e[9]=M^~y&_,e[18]=N^~E&C,e[19]=R^~D&w,e[28]=V^~O&B,e[29]=H^~P&j,e[38]=X^~$&q,e[39]=ee^~G&W,e[48]=le^~te&re,e[49]=ce^~ne&ie,e[0]^=g[r],e[1]^=g[r+1]};if(c)e.exports=w;else{for(A=0;A>>16)*t&65535)<<16)}function f(e,t){return e<>>32-t}function s(e){return e=a(e^=e>>>16,2246822507),e=a(e^=e>>>13,3266489909),e^=e>>>16}function o(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function c(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function u(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),[4283543511,3981806797]),[0,e[0]>>>1]),[3301882366,444984403]),[0,e[0]>>>1])}i.x86.hash32=function(e,t){e=e||"",t=t||0;for(var n=e.length%4,r=e.length-n,i=t,o=0,l=3432918353,c=461845907,u=0;u>>0},i.x86.hash128=function(e,t){e=e||"",t=t||0;for(var n=e.length%16,r=e.length-n,i=t,o=t,l=t,c=t,u=0,d=0,p=0,m=0,y=597399067,g=2869860233,h=951274213,_=2716044179,b=0;b>>0).toString(16)).slice(-8)+("00000000"+(o>>>0).toString(16)).slice(-8)+("00000000"+(l>>>0).toString(16)).slice(-8)+("00000000"+(c>>>0).toString(16)).slice(-8)},i.x64.hash128=function(e,t){e=e||"",t=t||0;for(var n=e.length%16,r=e.length-n,i=[0,t],a=[0,t],f=[0,0],s=[0,0],m=[2277735313,289559509],y=[1291169091,658871167],g=0;g>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)},void 0!==e&&e.exports&&(t=e.exports=i),t.murmurHash3=i}()},function(e,t,n){"use strict";(function(t){const r=n(1158),i=function(){if(self.crypto)return self.crypto.subtle||self.crypto.webkitSubtle;if(self.msCrypto)return self.msCrypto.subtle}();function a(e){if(!i)throw new Error("Please use a browser with webcrypto support");return(n,a)=>{const f=i.digest({name:e},n);if("function"!=typeof f.then)return f.onerror=(()=>{a(new Error(`hashing data using ${e}`))}),void(f.oncomplete=(e=>{a(null,e.target.result)}));r(f.then(e=>t.from(new Uint8Array(e))),a)}}e.exports={sha1:function(e,t){a("SHA-1")(e,t)},sha2256:function(e,t){a("SHA-256")(e,t)},sha2512:function(e,t){a("SHA-512")(e,t)}}}).call(t,n(2).Buffer)},function(e,t,n){(function(t,r){var i,a=n(1159),f=n(427);function s(e,t){return"function"!=typeof t?e:e.then(function(e){i(function(){t(null,e)})},function(e){i(function(){t(e)})})}function o(e){return s(this,e)}function l(e){if(e&&f(e)){e.nodeify=o;var t=e.then;return e.then=function(){return l(t.apply(this,arguments))},e}"function"==typeof e?e.prototype.nodeify=o:a.prototype.nodeify=o}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),l(this)}i="function"==typeof t?t:"object"==typeof r&&r&&r.nextTick?r.nextTick:function(e){setTimeout(e,0)},e.exports=s,s.extend=l,s.Promise=c,c.prototype=Object.create(a.prototype),c.prototype.constructor=c}).call(t,n(183).setImmediate,n(25))},function(e,t,n){(function(t){var r,i=n(427);r="function"==typeof setImediate?setImediate:"object"==typeof t&&t&&t.nextTick?t.nextTick:function(e){setTimeout(e,0)};var a=[];function f(e){if(!(this instanceof f))return"function"==typeof e?new f(e):(n=new f(function(e){t=e}),{resolver:t,promise:n});var t,n,s,o=!1,l=!1,c=[],u=!1;function d(e){c.length?(u=!0,c.shift()(e||!1)):u=!1}this.then=function(e,t){return new f(function(n){c.push(function(i){var a=l?e:t;if("function"==typeof a){function f(){var e;try{e=a(s)}catch(e){return n.reject(e),d()}n.fulfill(e),d(!0)}i?f():r(f)}else l?(n.fulfill(s),d(i)):(n.reject(s),d(i))}),o&&!u&&d()})},function(){function t(e){o||(o=!0,l=!1,s=e,d())}for(var n={fulfill:function e(n){o||(i(n)?n.then(e,t):(o=l=!0,s=n,d()))},reject:t},r=0;ri(r=>{const i=n.init(e,null);return n.update(i,r),t.from(n.digest(i))});e.exports=(e=>{for(let t=0;t<64;t++)e[45569+t]=s(t+1,a);for(let t=0;t<32;t++)e[45633+t]=s(t+1,f)})}).call(t,n(2).Buffer)},function(e,t,n){var r=n(1162),i=n(1163);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},function(e,t,n){var r=n(428);function i(e,t,n){var r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function a(e,t,n,r){var i=e[t]+n;n<0&&(i+=4294967296);var a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function f(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,f,s){var o=u[f],l=u[f+1],d=u[s],p=u[s+1];i(c,e,t),a(c,e,o,l);var m=c[r]^c[e],y=c[r+1]^c[e+1];c[r]=y,c[r+1]=m,i(c,n,r),m=c[t]^c[n],y=c[t+1]^c[n+1],c[t]=m>>>24^y<<8,c[t+1]=y>>>24^m<<8,i(c,e,t),a(c,e,d,p),m=c[r]^c[e],y=c[r+1]^c[e+1],c[r]=m>>>16^y<<16,c[r+1]=y>>>16^m<<16,i(c,n,r),m=c[t]^c[n],y=c[t+1]^c[n+1],c[t]=y>>>31^m<<1,c[t+1]=m>>>31^y<<1}var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),u=new Uint32Array(32);function d(e,t){var n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=o[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)u[n]=f(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,l[16*n+0],l[16*n+1]),s(2,10,18,26,l[16*n+2],l[16*n+3]),s(4,12,20,28,l[16*n+4],l[16*n+5]),s(6,14,22,30,l[16*n+6],l[16*n+7]),s(0,10,20,30,l[16*n+8],l[16*n+9]),s(2,12,22,24,l[16*n+10],l[16*n+11]),s(4,14,16,26,l[16*n+12],l[16*n+13]),s(6,8,18,28,l[16*n+14],l[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}function p(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},r=0;r<16;r++)n.h[r]=o[r];var i=t?t.length:0;return n.h[0]^=16842752^i<<8^e,t&&(m(n,t),n.c=128),n}function m(e,t){for(var n=0;n>2]>>8*(3&n);return t}function g(e,t,n){n=n||64,e=r.normalizeInput(e);var i=p(n,t);return m(i,e),y(i)}e.exports={blake2b:g,blake2bHex:function(e,t,n){var i=g(e,t,n);return r.toHex(i)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:y}},function(e,t,n){var r=n(428);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=f(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=f(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=f(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=f(l[t]^l[n],7)}function f(e,t){return e>>>t^e<<32-t}var s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),c=new Uint32Array(16);function u(e,t){var n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=s[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++)c[n]=i(e.b,4*n);for(n=0;n<10;n++)a(0,4,8,12,c[o[16*n+0]],c[o[16*n+1]]),a(1,5,9,13,c[o[16*n+2]],c[o[16*n+3]]),a(2,6,10,14,c[o[16*n+4]],c[o[16*n+5]]),a(3,7,11,15,c[o[16*n+6]],c[o[16*n+7]]),a(0,5,10,15,c[o[16*n+8]],c[o[16*n+9]]),a(1,6,11,12,c[o[16*n+10]],c[o[16*n+11]]),a(2,7,8,13,c[o[16*n+12]],c[o[16*n+13]]),a(3,4,9,14,c[o[16*n+14]],c[o[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");var r={h:new Uint32Array(s),b:new Uint32Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(p(r,t),r.c=64),r}function p(e,t){for(var n=0;n>2]>>8*(3&n)&255;return t}function y(e,t,n){n=n||32,e=r.normalizeInput(e);var i=d(n,t);return p(i,e),m(i)}e.exports={blake2s:y,blake2sHex:function(e,t,n){var i=y(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:p,blake2sFinal:m}},function(e,t,n){var r;r=function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!=typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var i=new Array(r),a=1;al&&(a=l),f>l&&(f=l),s=i,o=a;;)if(s"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":var n=e.shift();t.required="required"===n,t.repeated="repeated"===n,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=a(e);break;case";":if(null===t.name)throw new Error("Missing field name");if(null===t.type)throw new Error("Missing type in message field: "+t.name);if(-1===t.tag)throw new Error("Missing tag number in message field: "+t.name);return e.shift(),t;default:throw new Error("Unexpected token in message field: "+e[0])}throw new Error("No ; found for message field")},s=function(e){for(var t={enums:[],messages:[],fields:[],extends:[],extensions:null};e.length;)switch(e[0]){case"map":case"repeated":case"optional":case"required":t.fields.push(f(e));break;case"enum":t.enums.push(m(e));break;case"message":t.messages.push(c(e));break;case"extensions":t.extensions=l(e);break;case"oneof":e.shift();var n=e.shift();if("{"!==e[0])throw new Error("Unexpected token in oneof: "+e[0]);for(e.shift();"}"!==e[0];){e.unshift("optional");var r=f(e);r.oneof=n,t.fields.push(r)}e.shift();break;case"extend":t.extends.push(o(e));break;case";":e.shift();break;case"reserved":case"option":for(e.shift();";"!==e[0];)e.shift();break;default:e.unshift("optional"),t.fields.push(f(e))}return t},o=function(e){return{name:e[1],message:c(e)}},l=function(e){e.shift();var t=Number(e.shift());if(isNaN(t))throw new Error("Invalid from in extensions definition");if("to"!==e.shift())throw new Error("Expected keyword 'to' in extensions definition");var n=e.shift();if("max"===n&&(n=536870911),n=Number(n),isNaN(n))throw new Error("Invalid to in extensions definition");if(";"!==e.shift())throw new Error("Missing ; in extensions definition");return{from:t,to:n}},c=function(e){e.shift();var t=1,n=[],r={name:e.shift(),enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)return e.shift(),n=s(n),r.enums=n.enums,r.messages=n.messages,r.fields=n.fields,r.extends=n.extends,r.extensions=n.extensions,r;n.push(e.shift())}if(t)throw new Error("No closing tag for message")},u=function(e){e.shift();var t=e.shift();if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},d=function(e){if(e.shift(),"="!==e[0])throw new Error("Expected = but found "+e[0]);e.shift();var t=e.shift();switch(t){case'"proto2"':t=2;break;case'"proto3"':t=3;break;default:throw new Error("Expected protobuf syntax version but found "+t)}if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},p=function(e){if(e.length<4)throw new Error("Invalid enum value: "+e.slice(0,3).join(" "));if("="!==e[1])throw new Error("Expected = but found "+e[1]);if(";"!==e[3]&&"["!==e[3])throw new Error("Expected ; or [ but found "+e[1]);var t=e.shift();e.shift();var n={value:null,options:{}};return n.value=Number(e.shift()),"["===e[0]&&(n.options=a(e)),e.shift(),{name:t,val:n}},m=function(e){e.shift();var t={},n={name:e.shift(),values:{},options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),n;if("option"!==e[0]){var r=p(e);n.values[r.name]=r.val}else t=y(e),n.options[t.name]=t.value}throw new Error("No closing tag for enum")},y=function(e){for(var t=null,n=null,r=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")};e.length;){if(";"===e[0])return e.shift(),{name:t,value:n};switch(e[0]){case"option":e.shift();var i="("===e[0];if(i&&e.shift(),t=e.shift(),i){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}"."===e[0][0]&&(t+=e.shift());break;case"=":if(e.shift(),null===t)throw new Error("Expected key for option with value: "+e[0]);if(n=r(e.shift()),"optimize_for"===t&&!/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(n))throw new Error("Unexpected value for option optimize_for: "+n);"{"===n&&(n=g(e));break;default:throw new Error("Unexpected token in option: "+e[0])}}},g=function(e){for(var t=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")},n={};e.length;){if("}"===e[0])return e.shift(),n;var r="("===e[0];r&&e.shift();var i=e.shift();if(r){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}var a=null;switch(e[0]){case":":if(void 0!==n[i])throw new Error("Duplicate option map key "+i);e.shift(),"{"===(a=t(e.shift()))&&(a=g(e)),n[i]=a,";"===e[0]&&e.shift();break;case"{":if(e.shift(),a=g(e),void 0===n[i]&&(n[i]=[]),!Array.isArray(n[i]))throw new Error("Duplicate option map key "+i);n[i].push(a);break;default:throw new Error("Unexpected token in option map: "+e[0])}}throw new Error("No closing tag for option map")},h=function(e){e.shift();var t=e.shift().replace(/^"+|"+$/gm,"");if(";"!==e[0])throw new Error("Unexpected token: "+e[0]+'. Expected ";"');return e.shift(),t},_=function(e){e.shift();var t={name:e.shift(),methods:[],options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;switch(e[0]){case"option":var n=y(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value;break;case"rpc":t.methods.push(b(e));break;default:throw new Error("Unexpected token in service: "+e[0])}}throw new Error("No closing tag for service")},b=function(e){e.shift();var t={name:e.shift(),input_type:null,output_type:null,client_streaming:!1,server_streaming:!1,options:{}};if("("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.client_streaming=!0),t.input_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),"returns"!==e[0])throw new Error("Expected returns but found "+e[0]);if(e.shift(),"("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.server_streaming=!0),t.output_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),";"===e[0])return e.shift(),t;if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;if("option"!==e[0])throw new Error("Unexpected token in rpc options: "+e[0]);var n=y(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value}throw new Error("No closing tag for rpc")};e.exports=function(e){for(var t=r(e.toString()),n=0;nt.extensions.to)throw new Error(t.name+" does not declare "+e.tag+" as an extension number");t.fields.push(e)})})}),f.messages.forEach(function(e){e.fields.forEach(function(t){var n,r,a,s;if(t.options&&"true"===t.options.packed&&-1===i.indexOf(t.type)){if(-1===t.type.indexOf(".")){if(e.enums&&e.enums.some(function(e){return e.name===t.type}))return}else{if((n=t.type.split(".")).length>2)throw new Error("what is this?");if(r=n[0],a=n[1],f.messages.some(function(e){if(e.name===r)return s=e,e}),s&&s.enums&&s.enums.some(function(e){return e.name===a}))return}throw new Error("Fields of type "+t.type+' cannot be declared [packed=true]. Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed". See https://developers.google.com/protocol-buffers/docs/encoding#optional')}})}),f}},function(e,t){e.exports=function(e){var t,n=function(e){return e.trim()};return e.replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g," $1 ").split(/\n/).map(n).filter(Boolean).map(function(e){var t=e.indexOf("//");return t>-1?e.slice(0,t):e}).map(n).filter(Boolean).join("\n").split(/\s+|\n+/gm).filter((t=!1,function(e){return"/*"===e?(t=!0,!1):"*/"===e?(t=!1,!1):!t}))}},function(e,t){var n=function(e,t){var n=e.repeated?"repeated":e.required?"required":"optional";"map"===e.type&&(n="map<"+e.map.from+","+e.map.to+">"),e.oneof&&(n="");var r=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(",");return r&&(r=" ["+r+"]"),t.push((n?n+" ":"")+("map"===e.map?"":e.type+" ")+e.name+" = "+e.tag+r+";"),t},r=function(e,t){t.push("message "+e.name+" {"),e.enums||(e.enums=[]),e.enums.forEach(function(e){t.push(i(e,[]))}),e.messages||(e.messages=[]),e.messages.forEach(function(e){t.push(r(e,[]))});var a={};return e.fields||(e.fields=[]),e.fields.forEach(function(e){e.oneof?(a[e.oneof]||(a[e.oneof]=[]),a[e.oneof].push(n(e,[]))):t.push(n(e,[]))}),Object.keys(a).forEach(function(e){a[e].unshift("oneof "+e+" {"),a[e].push("}"),t.push(a[e])}),t.push("}",""),t},i=function(e,t){t.push("enum "+e.name+" {"),e.options||(e.options={});var n=f(e.options,[]);return n.length>1&&t.push(n.slice(0,-1)),Object.keys(e.values).map(function(n){var r=a(e.values[n]);t.push([n+" = "+r+";"])}),t.push("}",""),t},a=function(e,t){var n=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(",");return n&&(n=" ["+n+"]"),e.value+n},f=function(e,t){var n=Object.keys(e);return n.forEach(function(n){var r=e[n];~n.indexOf(".")&&(n="("+n+")");var i=typeof r;"object"===i?(r=s(r,[])).length&&t.push("option "+n+" = {",r,"};"):("string"===i&&"optimize_for"!==n&&(r='"'+r+'"'),t.push("option "+n+" = "+r+";"))}),n.length>0&&t.push(""),t},s=function(e,t){return Object.keys(e).forEach(function(n){var r=e[n],i=typeof r;"object"===i?Array.isArray(r)?r.forEach(function(e){(e=s(e,[])).length&&t.push(n+" {",e,"}")}):(r=s(r,[])).length&&t.push(n+" {",r,"}"):("string"===i&&(r='"'+r+'"'),t.push(n+": "+r))}),t},o=function(e,t){var n="rpc "+e.name+"(";e.client_streaming&&(n+="stream "),n+=e.input_type+") returns (",e.server_streaming&&(n+="stream "),n+=e.output_type+")",e.options||(e.options={});var r=f(e.options,[]);return r.length>1?t.push(n+" {",r.slice(0,-1),"}"):t.push(n+";"),t},l=function(e){return function(t){return Array.isArray(t)?t.map(l(e+" ")).join("\n"):e+t}};e.exports=function(e){var t=[];return t.push('syntax = "proto'+e.syntax+'";',""),e.package&&t.push("package "+e.package+";",""),e.options||(e.options={}),f(e.options,t),e.enums||(e.enums=[]),e.enums.forEach(function(e){i(e,t)}),e.messages||(e.messages=[]),e.messages.forEach(function(e){r(e,t)}),e.services&&e.services.forEach(function(e){!function(e,t){t.push("service "+e.name+" {"),e.options||(e.options={}),f(e.options,t),e.methods||(e.methods=[]),e.methods.forEach(function(e){t.push(o(e,[]))}),t.push("}","")}(e,t)}),t.map(l("")).join("\n")}},function(e,t,n){"use strict";var r=n(1170),i=n(1172),a=n(1173),f=n(1174),s=n(41);e.exports=function(e,t){var n={},o={},l={},c=function(e,t){e.enums&&e.enums.forEach(function(e){e.id=t+(t?".":"")+e.name,o[e.id]=e,c(e,e.id)}),e.messages&&e.messages.forEach(function(r){r.id=t+(t?".":"")+r.name,n[r.id]=r,r.fields.forEach(function(r){if(r.map){var i="Map_"+r.map.from+"_"+r.map.to,a={name:i,enums:[],messages:[],fields:[{name:"key",type:r.map.from,tag:1,repeated:!1,required:!0},{name:"value",type:r.map.to,tag:2,repeated:!1,required:!1}],extensions:null,id:t+(t?".":"")+i};n[a.id]||(n[a.id]=a,e.messages.push(a)),r.type=i,r.repeated=!0}}),c(r,r.id)})};c(e,"");var u=function(e,t){e.messages.forEach(function(n){t[n.name]=d(n.name,e.id)}),e.enums.forEach(function(e){t[e.name]=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t}(e.values)}),t.type=2,t.message=!0,t.name=e.name;var n={};e.fields.forEach(function(e){e.oneof&&(n[e.oneof]||(n[e.oneof]=[]),n[e.oneof].push(e.name))});var r=e.fields.map(function(t){return d(t.type,e.id)}),s=f(e,r,n),o=a(e,d,r,n,s),l=i(e,d,r);return o.bytes=l.bytes=0,t.buffer=!0,t.encode=o,t.decode=l,t.encodingLength=s,t},d=function(e,i,a){if(t&&t[e])return t[e];if(r[e])return r[e];var f,c,d=(i?i+"."+e:e).split(".").map(function(t,n,r){return r.slice(0,n).concat(e).join(".")}).reverse().reduce(function(e,t){return e||n[t]||o[t]},null);if(!1===a)return d;if(!d)throw new Error("Could not resolve "+e);return d.values?(f=d,c=Object.keys(f.values||[]).map(function(e){return parseInt(f.values[e].value,10)}),r.make(0,function e(t,n,r){if(!c.length||-1===c.indexOf(t))throw new Error("Invalid enum value: "+t);return s.encode(t,n,r),e.bytes=s.encode.bytes,n},function e(t,n){var r=s.decode(t,n);if(!c.length||-1===c.indexOf(r))throw new Error("Invalid enum value: "+r);return e.bytes=s.decode.bytes,r},s.encodingLength)):l[d.id]||u(d,l[d.id]={})};return(e.enums||[]).concat((e.messages||[]).map(function(e){return d(e.id)}))}},function(e,t,n){"use strict";var r,i,a,f=n(41),s=n(1171),o=n(7).Buffer,l=function(e,t,n,r){return t.bytes=n.bytes=0,{type:e,encode:t,decode:n,encodingLength:r}};t.make=l,t.bytes=(r=function(e){return o.isBuffer(e)?e.length:o.byteLength(e)},l(2,i=function(e,t,n){var a=n,s=r(e);return f.encode(s,t,n),n+=f.encode.bytes,o.isBuffer(e)?e.copy(t,n):t.write(e,n,s),n+=s,i.bytes=n-a,t},a=function(e,t){var n=t,r=f.decode(e,t);t+=f.decode.bytes;var i=e.slice(t,t+r);return t+=i.length,a.bytes=t-n,i},function(e){var t=r(e);return f.encodingLength(t)+t})),t.string=function(){var e=function(t,n,r){var i=r,a=o.byteLength(t);return f.encode(a,n,r,"utf-8"),r+=f.encode.bytes,n.write(t,r,a),r+=a,e.bytes=r-i,n},t=function(e,n){var r=n,i=f.decode(e,n);n+=f.decode.bytes;var a=e.toString("utf-8",n,n+i);return n+=i,t.bytes=n-r,a};return l(2,e,t,function(e){var t=o.byteLength(e);return f.encodingLength(t)+t})}(),t.bool=function(){var e=function(t,n,r){return n[r]=t?1:0,e.bytes=1,n},t=function(e,n){var r=e[n]>0;return t.bytes=1,r};return l(0,e,t,function(e){return 1})}(),t.int32=function(){var e=function(t,n){var r=f.decode(t,n);return e.bytes=f.decode.bytes,r>2147483647?r-4294967296:r};return l(0,f.encode,e,function(e){return f.encodingLength(e<0?e+4294967296:e)})}(),t.int64=function(){var e=function(t,n){var r=f.decode(t,n);if(r>=Math.pow(2,63)){for(var i=9;255===t[n+i-1];)i--;i=i||9;var a=o.allocUnsafe(i);t.copy(a,0,n,n+i),a[i-1]=127&a[i-1],r=-1*f.decode(a,0),e.bytes=10}else e.bytes=f.decode.bytes;return r},t=function(e,n,r){if(e<0){var i=r+9;for(f.encode(-1*e,n,r),n[r+=f.encode.bytes-1]=128|n[r];r=0?2*t:-2*t-1;var a=r.encode(t,n,i);return e.bytes=r.encode.bytes,a},t.decode=function e(t,n){var i=r.decode(t,n);return e.bytes=r.decode.bytes,1&i?(i+1)/-2:i/2},t.encodingLength=function(e){return r.encodingLength(e>=0?2*e:-2*e-1)}},function(e,t,n){"use strict";var r=n(41),i=n(279).defined;var a=function(e,t,n){switch(e){case 0:return r.decode(t,n),n+r.decode.bytes;case 1:return n+8;case 2:var i=r.decode(t,n);return n+r.decode.bytes+i;case 3:case 4:throw new Error("Groups are not supported");case 5:return n+4;default:throw new Error("Unknown wire type: "+e)}},f=function(e,t){if(e.map)return{};if(e.repeated)return[];switch(e.type){case"string":return null!=t?t:"";case"bool":return"true"===t;case"float":case"double":case"sfixed32":case"fixed32":case"varint":case"enum":case"uint64":case"uint32":case"int64":case"int32":case"sint64":case"sint32":return parseInt(t||0,10);default:return null}};e.exports=function(e,t,n){for(var s=[],o={},l=[],c=[],u=0;u-1&&delete n[o[c]];if(e.message){var u=r.decode(i,a);a+=r.decode.bytes;var d=e.decode(i,a,a+u);t.map?(n[s]=n[s]||{},n[s][d.key]=d.value):t.repeated?(n[s]=n[s]||[],n[s].push(d)):n[s]=d}else t.repeated?(n[s]=n[s]||[],n[s].push(e.decode(i,a))):n[s]=e.decode(i,a);return a+=e.decode.bytes}return function t(u,d,p){if(null==d&&(d=0),null==p&&(p=u.length),!(p<=u.length&&d<=u.length))throw new Error("Decoded message is not valid");for(var m,g=d,h={};;){if(p<=d){var _,b,v="",T=0;for(T=0;T-1){I=!0;break}I||(_?m.repeated?h[v]=[]:(b=b&&_[b]?_[b].value:_[Object.keys(_)[0]].value,h[v]=parseInt(b||0,10)):h[v]=f(m,b))}return t.bytes=d-g,h}var E=r.decode(u,d);d+=r.decode.bytes;var D=o[E>>3];if(null!=D){var C=n[D];if((m=e.fields[D]).packed){var w=r.decode(u,d);for(w+=d+=r.decode.bytes;d-1){if(_)throw new Error("only one of the properties defined in oneof "+b+" can be set");_=!0}}for(h=0;he.name!==n);else{if(!t.isBuffer(n))return r(new Error("second arg needs to be a name or multihash"),null);o=o.filter(e=>!e.multihash.equals(n))}f(s,o,r)}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(429),i=n(52),a=n(278);(t=e.exports).multicodec="dag-pb",t.resolve=((e,t,n)=>{r([t=>a.deserialize(e,t),(e,r)=>{if(!t)return n(null,{value:e,remainderPath:""});const i=t.split("/");if("Links"===i[0]){let t="";if(!i[1])return r(null,{value:e.links.map(e=>e.toJSON()),remainderPath:""});const n={};e.links.forEach((e,t)=>{const r=e.toJSON();n[t]={hash:r.multihash,name:r.name,size:r.size},n[r.name]=r.multihash});let a=n[i[1]];"Hash"===i[2]?a={"/":a.hash}:"Tsize"===i[2]?a={"/":a.size}:"Name"===i[2]&&(a={"/":a.name}),r(null,{value:a,remainderPath:t=i.slice(3).join("/")})}else"Data"===i[0]?r(null,{value:e.data,remainderPath:""}):r(new Error("path not available"))}],n)}),t.tree=((e,t,n)=>{"function"==typeof t&&(n=t,t={}),t=t||{},a.deserialize(e,(e,t)=>{if(e)return n(e);const r=[];r.push("Links"),t.links.forEach((e,t)=>{r.push(`Links/${t}/Name`),r.push(`Links/${t}/Tsize`),r.push(`Links/${t}/Hash`)}),r.push("Data"),n(null,r)})}),t.isLink=((e,n,r)=>{t.resolve(e,n,(e,t)=>{if(e)return r(e);if(t.remainderPath.length>0)return r(new Error("path out of scope"));if("object"==typeof t.value&&t.value["/"]){let n;try{n=i.isCID(new i(t.value["/"]))}catch(e){n=!1}if(n)return r(null,t.value)}r(null,!1)})})},function(e,t,n){"pseudomap"===Object({NODE_ENV:"production"}).npm_package_name&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_script&&(Object({NODE_ENV:"production"}).TEST_PSEUDOMAP="true"),"function"!=typeof Map||Object({NODE_ENV:"production"}).TEST_PSEUDOMAP?e.exports=n(1183):e.exports=Map},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof r||"function"==typeof Map&&e instanceof Map)e.forEach(function(e,t){this.set(t,e)},this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach(function(e){this.set(e[0],e[1])},this)}}function i(e,t){return e===t||e!=e&&t!=t}function a(e,t){for(var r=0,a="_"+t,f=a;n.call(e,f);f=a+r++)if(i(e[f].key,t))return e[f]}e.exports=r,r.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach(function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)},this)},r.prototype.has=function(e){return!!a(this._data,e)},r.prototype.get=function(e){var t=a(this._data,e);return t&&t.value},r.prototype.set=function(e,t){!function(e,t,r){for(var a=0,f="_"+t,s=f;n.call(e,s);s=f+a++)if(i(e[s].key,t))return void(e[s].value=r);e.size++,e[s]=new function(e,t,n){this.key=e,this.value=t,this._index=n}(t,r,s)}(this._data,e,t)},r.prototype.delete=function(e){var t=a(this._data,e);t&&(delete this._data[t._index],this._data.size--)},r.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},function(e,t){function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,a=this.head;null!==a&&ithis.length&&(t=this.length);for(var i=this.length,a=this.tail;null!==a&&i>t;i--)a=a.prev;for(;null!==a&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(188),a=i.DAGNode,f=n(193)({max:128}),s=n(145),o=n(51);e.exports=(e=>{const n=s(e,"object/put");return r((e,r,s)=>{"function"==typeof r&&(s=r,r={});const l=o(s);r||(r={});let c,u={Data:null,Links:[]};if(t.isBuffer(e))r.enc||(u={Data:e.toString(),Links:[]});else if(e.multihash)u={Data:e.data.toString(),Links:e.links.map(e=>{const t=e.toJSON();return t.hash=t.multihash,t})};else{if("object"!=typeof e)return l(new Error("obj not recognized"));u.Data=e.Data.toString(),u.Links=e.Links}c=t.isBuffer(e)&&r.enc?e:t.from(JSON.stringify(u));const d=r.enc||"json";n(c,{qs:{inputenc:d}},(n,s)=>{if(n)return l(n);let o;if(t.isBuffer(e)&&(r.enc?"json"===r.enc&&(e=JSON.parse(e.toString())):e={Data:e,Links:[]}),!e.multihash)return"protobuf"===r.enc?void i.util.deserialize(e,(e,t)=>{if(e)return l(e);o=t,c()}):void a.create(t.from(e.Data),e.Links,(e,t)=>{if(e)return l(e);o=t,c()});function c(){if(o.toJSON().multihash!==s.Hash){const e=new Error("multihashes do not match");return l(e)}f.set(s.Hash,o),l(null,o)}o=e,c()})})})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(3),i=n(53),a=n(52),f=n(193)({max:128});e.exports=(e=>r((t,n,r)=>{let s;"function"==typeof n&&(r=n,n={}),n||(n={});try{s=(t=new a(t)).toBaseEncodedString()}catch(e){return r(e)}const o=f.get(s);if(o)return r(null,o.data);e({path:"object/data",args:s},(e,t)=>{if(e)return r(e);"function"==typeof t.pipe?i(t,r):r(null,t)})}))},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(188).DAGLink,a=n(120),f=n(50),s=n(193)({max:128});e.exports=(e=>r((n,r,o)=>{"function"==typeof r&&(o=r,r={}),r||(r={});try{n=a(n,r)}catch(e){return o(e)}const l=s.get(n);if(l)return o(null,l.links);e({path:"object/links",args:n},(e,n)=>{if(e)return o(e);let r=[];n.Links&&(r=n.Links.map(e=>new i(e.Name,e.Size,t.from(f.decode(e.Hash))))),o(null,r)})}))}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(3),i=n(120);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),n||(n={});try{t=i(t,n)}catch(e){return r(e)}e({path:"object/stat",args:t},r)}))},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(188).DAGNode,a=n(1190);e.exports=(e=>r((n,r)=>{"function"==typeof n&&(r=n,n=void 0),e({path:"object/new",args:n},(e,f)=>{if(e)return r(e);let s;if(n){if("unixfs-dir"!==n)return r(new Error("unkown template: "+n));s=new a("directory").marshal()}else s=t.alloc(0);i.create(s,(e,t)=>e?r(e):t.toJSON().multihash!==f.Hash?r(new Error("multihashes do not match")):void r(null,t))})}))}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(148)(n(1191)).Data,i=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],a=["directory","hamt-sharded-directory"];function f(e,t){if(!(this instanceof f))return new f(e,t);if(-1===i.indexOf(e))throw new Error("Type: "+e+" is not valid");this.type=e,this.data=t,this.blockSizes=[],this.addBlockSize=(e=>{this.blockSizes.push(e)}),this.removeBlockSize=(e=>{this.blockSizes.splice(e,1)}),this.fileSize=(()=>{if(a.indexOf(this.type)>=0)return;let e=0;return this.blockSizes.forEach(t=>{e+=t}),t&&(e+=t.length),e}),this.marshal=(()=>{let e;switch(this.type){case"raw":e=r.DataType.Raw;break;case"directory":e=r.DataType.Directory;break;case"file":e=r.DataType.File;break;case"metadata":e=r.DataType.Metadata;break;case"symlink":e=r.DataType.Symlink;break;case"hamt-sharded-directory":e=r.DataType.HAMTShard;break;default:throw new Error(`Unkown type: "${this.type}"`)}let t=this.fileSize(),n=this.data;this.data&&this.data.length||(n=void 0);let i=this.blockSizes;return this.blockSizes&&this.blockSizes.length||(i=void 0),r.encode({Type:e,Data:n,filesize:t,blocksizes:i,hashType:this.hashType,fanout:this.fanout})})}f.unmarshal=(e=>{const t=r.decode(e);t.Data||(t.Data=void 0);const n=new f(i[t.Type],t.Data);return n.blockSizes=t.blocksizes,n}),e.exports=f},function(e,t,n){"use strict";e.exports="message Data {\n enum DataType {\n Raw = 0;\n Directory = 1;\n File = 2;\n Metadata = 3;\n Symlink = 4;\n HAMTShard = 5;\n }\n\n required DataType Type = 1;\n optional bytes Data = 2;\n optional uint64 filesize = 3;\n repeated uint64 blocksizes = 4;\n\n optional uint64 hashType = 5;\n optional uint64 fanout = 6;\n}\n\nmessage Metadata {\n optional string MimeType = 1;\n}"},function(e,t,n){"use strict";const r=n(3),i=n(120);e.exports=(e=>{const t=n(146)(e);return r((n,r,a,f)=>{"function"==typeof a&&(f=a,a={}),a||(a={});try{n=i(n,a)}catch(e){return f(e)}e({path:"object/patch/add-link",args:[n,r.name,i(r.multihash)]},(e,n)=>{if(e)return f(e);t(n.Hash,{enc:"base58"},f)})})})},function(e,t,n){"use strict";const r=n(3),i=n(120);e.exports=(e=>{const t=n(146)(e);return r((n,r,a,f)=>{"function"==typeof a&&(f=a,a={}),a||(a={});try{n=i(n,a)}catch(e){return f(e)}e({path:"object/patch/rm-link",args:[n,r.name]},(e,n)=>{if(e)return f(e);t(n.Hash,{enc:"base58"},f)})})})},function(e,t,n){"use strict";const r=n(3),i=n(51),a=n(120),f=n(145);e.exports=(e=>{const t=n(146)(e),s=f(e,"object/patch/set-data");return r((e,n,r,f)=>{"function"==typeof r&&(f=r,r={});const o=i(f);r||(r={});try{e=a(e,r)}catch(e){return o(e)}s(n,{args:[e]},(e,n)=>{if(e)return o(e);t(n.Hash,{enc:"base58"},o)})})})},function(e,t,n){"use strict";const r=n(3),i=n(51),a=n(120),f=n(145);e.exports=(e=>{const t=n(146)(e),s=f(e,"object/patch/append-data");return r((e,n,r,f)=>{"function"==typeof r&&(f=r,r={});const o=i(f);r||(r={});try{e=a(e,r)}catch(e){return o(e)}s(n,{args:[e]},(e,n)=>{if(e)return o(e);t(n.Hash,{enc:"base58"},o)})})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{add:n(1197)(t),rm:n(1198)(t),ls:n(1199)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n=null),e({path:"pin/add",args:t,qs:n},(e,t)=>{if(e)return r(e);r(null,t.Pins.map(e=>({hash:e})))})}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n=null),e({path:"pin/rm",args:t,qs:n},(e,t)=>{if(e)return r(e);r(null,t.Pins.map(e=>({hash:e})))})}))},function(e,t,n){"use strict";const r=n(3),i=n(430);e.exports=(e=>r((t,n,r)=>{"function"==typeof t&&(r=t,n=null,t=null),"function"==typeof n&&(r=n),t&&t.type?(n=t,t=null):n=null,e({path:"pin/ls",args:t,qs:n},(e,t)=>{if(e)return r(e);r(null,i.keys(t.Keys).map(e=>({hash:e,type:t.Keys[e].Type})))})}))},function(e,t,n){"use strict";const r=n(3),i=n(17),a=n(53);e.exports=(e=>{const t=i(e);return r((e,n)=>{const r={path:"ping",args:e,qs:{n:1}};t.andTransform(r,(e,t)=>{a(e,(e,n)=>{if(e)return t(e);const r={Success:n[1].Success,Time:n[1].Time,Text:n[2].Text};t(null,r)})},n)})})},function(e,t,n){"use strict";const r=n(3),i=n(53),a=n(17);e.exports=(e=>{const t=a(e),n=r((e,n,r)=>{"function"==typeof n&&(r=n,n={});const a={path:"refs",args:e,qs:n};t.andTransform(a,i,r)});return n.local=r((e,n)=>{"function"==typeof e&&(n=e,e={});const r={path:"refs/local",qs:e};t.andTransform(r,i,n)}),n})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{gc:n(1203)(t),stat:n(1204)(t),version:n(1205)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"repo/gc",qs:t},n)}))},function(e,t,n){"use strict";const r=n(3),i=n(144),a=function(e,t){t(null,{numObjects:new i(e.NumObjects),repoSize:new i(e.RepoSize),repoPath:e.RepoPath,version:e.Version,storageMax:new i(e.StorageMax)})};e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"repo/stat",qs:t},a,n)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,e.Version)};e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"repo/version",qs:t},i,n)}))},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r(e=>{t({path:"shutdown"},e)})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{bitswap:n(1208)(t),bw:n(1209)(t),bwReadableStream:n(1210)(t),bwPullStream:n(1211)(t),repo:n(1212)(t)}})},function(e,t,n){"use strict";const r=n(3),i=n(144),a=function(e,t){t(null,{provideBufLen:e.ProvideBufLen,wantlist:e.Wantlist||[],peers:e.Peers||[],blocksReceived:new i(e.BlocksReceived),dataReceived:new i(e.DataReceived),blocksSent:new i(e.BlocksSent),dataSent:new i(e.DataSent),dupBlksReceived:new i(e.DupBlksReceived),dupDataReceived:new i(e.DupDataReceived)})};e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"stats/bitswap",qs:t},a,n)}))},function(e,t,n){"use strict";const r=n(3),i=n(53),a=n(280),f=(e,t)=>i(e,(e,n)=>{if(e)return t(e);t(null,a(n[0]))});e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"stats/bw",qs:t},f,n)}))},function(e,t,n){"use strict";const r=n(26),i=n(94),a=n(280);e.exports=(e=>t=>{t=t||{};const n=new r.Transform({objectMode:!0,transform(e,t,n){n(null,a(e))}});return e({path:"stats/bw",qs:t},(e,t)=>{if(e)return n.destroy(e);i(t,n)}),n})},function(e,t,n){"use strict";const r=n(185),i=n(269),a=n(280),f=n(186);e.exports=(e=>t=>{t=t||{};const n=f.source();return e({path:"stats/bw",qs:t},(e,t)=>{if(e)return n.end(e);n.resolve(i(r.source(t),i.map(a)))}),n})},function(e,t,n){"use strict";const r=n(3),i=n(144),a=function(e,t){t(null,{numObjects:new i(e.NumObjects),repoSize:new i(e.RepoSize),repoPath:e.RepoPath,version:e.Version,storageMax:new i(e.StorageMax)})};e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e.andTransform({path:"stats/repo",qs:t},a,n)}))},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{peers:n(1214)(t),connect:n(1284)(t),disconnect:n(1285)(t),addrs:n(1286)(t),localAddrs:n(1290)(t)}})},function(e,t,n){"use strict";const r=n(3),i=n(117),a=n(281);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={});const r=t.v||t.verbose;e({path:"swarm/peers",qs:t},(e,t)=>{if(e)return n(e);t.Strings?n(null,t.Strings.map(e=>{const t={};if(r){const n=e.split(" ");t.addr=i(n[0]),t.latency=n[1]}else t.addr=i(e);return t.peer=a.createFromB58String(t.addr.decapsulate("ipfs")),t})):t.Peers&&n(null,t.Peers.map(e=>{const t={addr:i(e.Addr),peer:a.createFromB58String(e.Peer),muxer:e.Muxer};return e.Latency&&(t.latency=e.Latency),e.Streams&&(t.streams=e.Streams),t}))})}))},function(e,t,n){"use strict";const r=n(431),i=n(1218),a=n(1230);(t=e.exports).aes=i,t.hmac=r,t.keys=a,t.randomBytes=n(469),t.pbkdf2=n(1283)},function(e,t){e.exports=function(e){"use strict";if("function"!=typeof Promise)throw"Promise support required";var t=e.crypto||e.msCrypto;if(t){var n=t.subtle||t.webkitSubtle;if(n){var r=e.Crypto||t.constructor||Object,i=e.SubtleCrypto||n.constructor||Object,a=(e.CryptoKey||e.Key||Object,e.navigator.userAgent.indexOf("Edge/")>-1),f=!!e.msCrypto&&!a,s=!t.subtle&&!!t.webkitSubtle;if(f||s){var o={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},l={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"};if(["generateKey","importKey","unwrapKey"].forEach(function(e){var r=n[e];n[e]=function(i,a,o){var l,c,b,S,M,E=[].slice.call(arguments);switch(e){case"generateKey":l=y(i),c=a,b=o;break;case"importKey":l=y(o),c=E[3],b=E[4],"jwk"===i&&((a=h(a)).alg||(a.alg=g(l)),a.key_ops||(a.key_ops="oct"!==a.kty?"d"in a?b.filter(I):b.filter(T):b.slice()),E[1]=(S=h(a),f&&(S.extractable=S.ext,delete S.ext),p(unescape(encodeURIComponent(JSON.stringify(S)))).buffer));break;case"unwrapKey":l=E[4],c=E[5],b=E[6],E[2]=o._key}if("generateKey"===e&&"HMAC"===l.name&&l.hash)return l.length=l.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[l.hash.name],n.importKey("raw",t.getRandomValues(new Uint8Array(l.length+7>>3)),l,c,b);if(s&&"generateKey"===e&&"RSASSA-PKCS1-v1_5"===l.name&&(!l.modulusLength||l.modulusLength>=2048))return(i=y(i)).name="RSAES-PKCS1-v1_5",delete i.hash,n.generateKey(i,!0,["encrypt","decrypt"]).then(function(e){return Promise.all([n.exportKey("jwk",e.publicKey),n.exportKey("jwk",e.privateKey)])}).then(function(e){return e[0].alg=e[1].alg=g(l),e[0].key_ops=b.filter(T),e[1].key_ops=b.filter(I),Promise.all([n.importKey("jwk",e[0],l,!0,e[0].key_ops),n.importKey("jwk",e[1],l,c,e[1].key_ops)])}).then(function(e){return{publicKey:e[0],privateKey:e[1]}});if((s||f&&"SHA-1"===(l.hash||{}).name)&&"importKey"===e&&"jwk"===i&&"HMAC"===l.name&&"oct"===a.kty)return n.importKey("raw",p(d(a.k)),o,E[3],E[4]);if(s&&"importKey"===e&&("spki"===i||"pkcs8"===i))return n.importKey("jwk",function(e){var t=_(e),n=!1;t.length>2&&(n=!0,t.shift());var r={ext:!0};switch(t[0][0]){case"1.2.840.113549.1.1.1":var i=["n","e","d","p","q","dp","dq","qi"],a=_(t[1]);n&&a.shift();for(var f=0;f2&&(r=!0,a.unshift(new Uint8Array([0]))),n[0][0]="1.2.840.113549.1.1.1",t=a;break;default:throw new TypeError("Unsupported key type")}return n.push(new Uint8Array(b(t)).buffer),r?n.unshift(new Uint8Array([0])):n[1]={tag:3,value:n[1]},new Uint8Array(b(n)).buffer}(h(e))})),o}}),["encrypt","decrypt","sign","verify"].forEach(function(e){var t=n[e];n[e]=function(r,i,a,s){if(f&&(!a.byteLength||s&&!s.byteLength))throw new Error("Empy input is not allowed");var o,l=[].slice.call(arguments),c=y(r);if(f&&"decrypt"===e&&"AES-GCM"===c.name){var u=r.tagLength>>3;l[2]=(a.buffer||a).slice(0,a.byteLength-u),r.tag=(a.buffer||a).slice(a.byteLength-u)}l[1]=i._key;try{o=t.apply(n,l)}catch(e){return Promise.reject(e)}return f&&(o=new Promise(function(t,n){o.onabort=o.onerror=function(e){n(e)},o.oncomplete=function(n){n=n.target.result;if("encrypt"===e&&n instanceof AesGcmEncryptResult){var r=n.ciphertext,i=n.tag;(n=new Uint8Array(r.byteLength+i.byteLength)).set(new Uint8Array(r),0),n.set(new Uint8Array(i),r.byteLength),n=n.buffer}t(n)}})),o}}),f){var c=n.digest;n.digest=function(e,t){if(!t.byteLength)throw new Error("Empy input is not allowed");var r;try{r=c.call(n,e,t)}catch(e){return Promise.reject(e)}return r=new Promise(function(e,t){r.onabort=r.onerror=function(e){t(e)},r.oncomplete=function(t){e(t.target.result)}})},e.crypto=Object.create(t,{getRandomValues:{value:function(e){return t.getRandomValues(e)}},subtle:{value:n}}),e.CryptoKey=v}s&&(t.subtle=n,e.Crypto=r,e.SubtleCrypto=i,e.CryptoKey=v)}}}function u(e){return btoa(e).replace(/\=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(e){return e=(e+="===").slice(0,-e.length%4),atob(e.replace(/-/g,"+").replace(/_/g,"/"))}function p(e){for(var t=new Uint8Array(e.length),n=0;ne.length)throw new RangeError("Malformed DER");var n,r=e[t.pos++],i=e[t.pos++];if(i>=128){if(i&=127,t.end-t.pos=128){var s=r;r=4;for(t.splice(i,0,s>>24&255,s>>16&255,s>>8&255,255&s);r>1&&!(s>>24);)s<<=8,r--;r<4&&t.splice(i,4-r),r|=128}return t.splice(i-2,2,n,r),t}function v(e,t,n,r){Object.defineProperties(this,{_key:{value:e},type:{value:e.type,enumerable:!0},extractable:{value:void 0===n?e.extractable:n,enumerable:!0},algorithm:{value:void 0===t?e.algorithm:t,enumerable:!0},usages:{value:void 0===r?e.usages:r,enumerable:!0}})}function T(e){return"verify"===e||"encrypt"===e||"wrapKey"===e}function I(e){return"sign"===e||"decrypt"===e||"unwrapKey"===e}}},function(e,t,n){"use strict";e.exports={SHA1:20,SHA256:32,SHA512:64}},function(e,t,n){"use strict";const r=n(1219),i={16:"aes-128-ctr",32:"aes-256-ctr"};t.create=function(e,t,n){const a=i[e.length];if(!a)return n(new Error("Invalid key length"));const f=r.createCipheriv(a,e,t),s=r.createDecipheriv(a,e,t);n(null,{encrypt(e,t){t(null,f.update(e))},decrypt(e,t){t(null,s.update(e))}})}},function(e,t,n){"use strict";const r=n(1220);e.exports={createCipheriv:r.createCipheriv,createDecipheriv:r.createDecipheriv}},function(e,t,n){var r=n(1221),i=n(1229),a=n(435);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r=n(432),i=n(436),a=n(7).Buffer,f=n(437),s=n(96),o=n(194),l=n(438);function c(e,t,n){s.call(this),this._cache=new d,this._cipher=new o.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(9)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var u=a.alloc(16,16);function d(){this.cache=a.allocUnsafe(0)}function p(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new f(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new c(s.module,t,n)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n>s%8,e._prev=a(e._prev,n?i:f);return o}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,f=r.allocUnsafe(a),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function f(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}f.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},f.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},f.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=f},function(e,t,n){var r=n(436),i=n(7).Buffer,a=n(432),f=n(437),s=n(96),o=n(194),l=n(438);function c(e,t,n){s.call(this),this._cache=new u,this._last=void 0,this._cipher=new o.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new f(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new c(s.module,t,n)}n(9)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},function(e,t,n){"use strict";(function(r){const i=n(148)(n(285)),a=n(286);t=e.exports;const f={rsa:n(1240),ed25519:n(1255),secp256k1:n(1259)(i,n(469))};function s(e){return void 0!==f[e.toLowerCase()]}t.supportedKeys=f,t.keysPBM=i,t.keyStretcher=n(1279),t.generateEphemeralKeyPair=n(1281),t.generateKeyPair=((e,t,n)=>{let r=f[e.toLowerCase()];if(!r)return n(new Error("invalid or unsupported key type"));r.generateKeyPair(t,n)}),t.generateKeyPairFromSeed=((e,t,n,r)=>{let i=f[e.toLowerCase()];return i?"ed25519"!==e.toLowerCase()?r(new Error("Seed key derivation is unimplemented for RSA or secp256k1")):void i.generateKeyPairFromSeed(t,n,r):r(new Error("invalid or unsupported key type"))}),t.unmarshalPublicKey=(e=>{const t=i.PublicKey.decode(e),n=t.Data;switch(t.Type){case i.KeyType.RSA:return f.rsa.unmarshalRsaPublicKey(n);case i.KeyType.Ed25519:return f.ed25519.unmarshalEd25519PublicKey(n);case i.KeyType.Secp256k1:if(f.secp256k1)return f.secp256k1.unmarshalSecp256k1PublicKey(n);throw new Error("secp256k1 support requires libp2p-crypto-secp256k1 package");default:throw new Error("invalid or unsupported key type")}}),t.marshalPublicKey=((e,t)=>{if(!s(t=(t||"rsa").toLowerCase()))throw new Error("invalid or unsupported key type");return e.bytes}),t.unmarshalPrivateKey=((e,t)=>{let n;try{n=i.PrivateKey.decode(e)}catch(e){return t(e)}const r=n.Data;switch(n.Type){case i.KeyType.RSA:return f.rsa.unmarshalRsaPrivateKey(r,t);case i.KeyType.Ed25519:return f.ed25519.unmarshalEd25519PrivateKey(r,t);case i.KeyType.Secp256k1:return f.secp256k1?f.secp256k1.unmarshalSecp256k1PrivateKey(r,t):t(new Error("secp256k1 support requires libp2p-crypto-secp256k1 package"));default:t(new Error("invalid or unsupported key type"))}}),t.marshalPrivateKey=((e,t)=>{if(!s(t=(t||"rsa").toLowerCase()))throw new Error("invalid or unsupported key type");return e.bytes}),t.import=((e,t,n)=>{try{const i=a.pki.decryptRsaPrivateKey(e,t);if(null===i)throw new Error("Cannot read the key, most likely the password is wrong or not a RSA key");let s=a.asn1.toDer(a.pki.privateKeyToAsn1(i));return s=r.from(s.getBytes(),"binary"),f.rsa.unmarshalRsaPrivateKey(s,n)}catch(e){n(e)}})}).call(t,n(2).Buffer)},function(e,t,n){(function(t){var n={};e.exports=n;var r={};n.encode=function(e,t,n){if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');if(void 0!==n&&"number"!=typeof n)throw new TypeError('"maxline" must be a number.');var r="";if(e instanceof Uint8Array){var i=0,a=t.length,f=t.charAt(0),s=[0];for(i=0;i0;)s.push(l%a),l=l/a|0}for(i=0;0===e[i]&&i=0;--i)r+=t[s[i]]}else r=function(e,t){var n=0,r=t.length,i=t.charAt(0),a=[0];for(n=0;n0;)a.push(s%r),s=s/r|0}var o="";for(n=0;0===e.at(n)&&n=0;--n)o+=t[a[n]];return o}(e,t);if(n){var c=new RegExp(".{1,"+n+"}","g");r=r.match(c).join("\r\n")}return r},n.decode=function(e,n){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof n)throw new TypeError('"alphabet" must be a string.');var i=r[n];if(!i){i=r[n]=[];for(var a=0;a>=8;for(;u>0;)o.push(255&u),u>>=8}for(var d=0;e[d]===s&&d=i.Versions.TLS_1_1.minor&&o.output.putBytes(n),o.update(e.fragment),o.finish(s)&&(e.fragment=o.output,e.length=e.fragment.length(),a=!0),a}function s(e,t,n){if(!n){var r=e-t.length()%e;t.fillWithByte(r-1,r)}return!0}function o(e,t,n){var r=!0;if(n){for(var i=t.length(),a=t.last(),f=i-1-a;f=s?(e.fragment=f.output.getBytes(c-s),l=f.output.getBytes(s)):e.fragment=f.output.getBytes(),e.fragment=r.util.createBuffer(e.fragment),e.length=e.fragment.length();var u=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),a=function(e,t,n){var i=r.hmac.create();return i.start("SHA1",e),i.update(t),t=i.digest().getBytes(),i.start(null,null),i.update(n),n=i.digest().getBytes(),t===n}(t.macKey,l,u)&&a}},function(e,t,n){var r=n(4);n(452),e.exports=r.mgf=r.mgf||{},r.mgf.mgf1=r.mgf1},function(e,t,n){(function(t){var r=n(4);if(n(197),n(54),n(454),n(11),void 0===i)var i=r.jsbn.BigInteger;var a=r.util.ByteBuffer,f=void 0===t?Uint8Array:t;r.pki=r.pki||{},e.exports=r.pki.ed25519=r.ed25519=r.ed25519||{};var s=r.ed25519;function o(e){var n=e.message;if(n instanceof Uint8Array)return n;var r=e.encoding;if(void 0===n){if(!e.md)throw new TypeError('"options.message" or "options.md" not specified.');n=e.md.digest().getBytes(),r="binary"}if("string"==typeof n&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if("string"==typeof n){if(void 0!==t)return new t(n,r);n=new a(n,r)}else if(!(n instanceof a))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var i=new f(n.length()),s=0;s=0;--n)O(r,r),1!==n&&P(r,r,t);for(n=0;n<16;++n)e[n]=r[n]}(n,n),P(n,n,i),P(n,n,a),P(n,n,a),P(e[0],n,a),O(r,e[0]),P(r,r,a),M(r,i)&&P(e[0],e[0],g);if(O(r,e[0]),P(r,r,a),M(r,i))return-1;D(e[0])===t[31]>>7&&R(e[0],l,e[0]);return P(e[3],e[0],e[1]),0}(o,r))return-1;for(i=0;i=0};var l=k(),c=k([1]),u=k([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=k([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=k([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),m=k([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),y=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),g=k([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function h(e,n){var i=r.md.sha512.create(),o=new a(e);i.update(o.getBytes(n),"binary");var l=i.digest().getBytes();if(void 0!==t)return new t(l,"binary");for(var c=new f(s.constants.HASH_BYTE_LENGTH),u=0;u<64;++u)c[u]=l.charCodeAt(u);return c}function _(e,t){var n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;++i)t[i]+=n-(t[31]>>4)*y[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;++i)t[i]-=n*y[i];for(r=0;r<32;++r)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function b(e){for(var t=new Float64Array(64),n=0;n<64;++n)t[n]=e[n],e[n]=0;_(e,t)}function v(e,t){var n=k(),r=k(),i=k(),a=k(),f=k(),s=k(),o=k(),l=k(),c=k();R(n,e[1],e[0]),R(c,t[1],t[0]),P(n,n,c),N(r,e[0],e[1]),N(c,t[0],t[1]),P(r,r,c),P(i,e[3],t[3]),P(i,i,d),P(a,e[2],t[2]),N(a,a,a),R(f,r,n),R(s,a,i),N(o,a,i),N(l,r,n),P(e[0],f,s),P(e[1],l,o),P(e[2],o,s),P(e[3],f,l)}function T(e,t,n){for(var r=0;r<4;++r)L(e[r],t[r],n)}function I(e,t){var n=k(),r=k(),i=k();!function(e,t){var n,r=k();for(n=0;n<16;++n)r[n]=t[n];for(n=253;n>=0;--n)O(r,r),2!==n&&4!==n&&P(r,r,t);for(n=0;n<16;++n)e[n]=r[n]}(i,t[2]),P(n,t[0],i),P(r,t[1],i),S(e,r),e[31]^=D(n)<<7}function S(e,t){var n,r,i,a=k(),f=k();for(n=0;n<16;++n)f[n]=t[n];for(A(f),A(f),A(f),r=0;r<2;++r){for(a[0]=f[0]-65517,n=1;n<15;++n)a[n]=f[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=f[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(f,a,1-i)}for(n=0;n<16;n++)e[2*n]=255&f[n],e[2*n+1]=f[n]>>8}function M(e,t){var n=new f(32),r=new f(32);return S(n,e),S(r,t),E(n,0,r,0)}function E(e,t,n,r){return function(e,t,n,r,i){var a,f=0;for(a=0;a>>8)-1}(e,t,n,r,32)}function D(e){var t=new f(32);return S(t,e),1&t[0]}function C(e,t,n){var r,i;for(x(e[0],l),x(e[1],c),x(e[2],c),x(e[3],l),i=255;i>=0;--i)T(e,t,r=n[i/8|0]>>(7&i)&1),v(t,e),v(e,e),T(e,t,r)}function w(e,t){var n=[k(),k(),k(),k()];x(n[0],p),x(n[1],m),x(n[2],c),P(n[3],p,m),C(e,n,t)}function x(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function A(e){var t,n,r=1;for(t=0;t<16;++t)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function L(e,t,n){for(var r,i=~(n-1),a=0;a<16;++a)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function k(e){var t,n=new Float64Array(16);if(e)for(t=0;t0&&(f=r.util.fillString(String.fromCharCode(0),o)+f),{encapsulation:t.encrypt(f,"NONE"),key:e.generate(f,a)}},decrypt:function(t,n,r){var i=t.decrypt(n,"NONE");return e.generate(i,r)}};return a},r.kem.kdf1=function(e,t){a(this,e,0,t||e.digestLength)},r.kem.kdf2=function(e,t){a(this,e,1,t||e.digestLength)}},function(e,t,n){e.exports=n(71),n(288),n(151),n(445),n(454)},function(e,t,n){var r=n(4);n(97),n(70),n(195),n(98),n(121),n(451),n(54),n(11),n(290);var i=r.asn1,a=e.exports=r.pkcs7=r.pkcs7||{};function f(e){var t={},n=[];if(!i.validate(e,a.asn1.recipientInfoValidator,t,n)){var f=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw f.errors=n,f}return{version:t.version.charCodeAt(0),issuer:r.pki.RDNAttributesAsArray(t.issuer),serialNumber:r.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:i.derToOid(t.encAlgorithm),parameter:t.encParameter.value,content:t.encKey}}}function s(e){var t=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[r.pki.distinguishedNameToAsn1({attributes:e.issuer}),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,r.util.hexToBytes(e.serialNumber))]),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.digestAlgorithm).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.signatureAlgorithm).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])),t.value.push(i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var n=i.create(i.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a=n&&f0&&f.value[0].value.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!0,t)),a.length>0&&f.value[0].value.push(i.create(i.Class.CONTEXT_SPECIFIC,1,!0,a)),f.value[0].value.push(i.create(i.Class.UNIVERSAL,i.Type.SET,!0,e.signerInfos)),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.type).getBytes()),f])},addSigner:function(t){var n=t.issuer,i=t.serialNumber;if(t.certificate){var a=t.certificate;"string"==typeof a&&(a=r.pki.certificateFromPem(a)),n=a.issuer.attributes,i=a.serialNumber}var f=t.key;if(!f)throw new Error("Could not add PKCS#7 signer; no private key specified.");"string"==typeof f&&(f=r.pki.privateKeyFromPem(f));var s=t.digestAlgorithm||r.pki.oids.sha1;switch(s){case r.pki.oids.sha1:case r.pki.oids.sha256:case r.pki.oids.sha384:case r.pki.oids.sha512:case r.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+s)}var o=t.authenticatedAttributes||[];if(o.length>0){for(var l=!1,c=!1,u=0;u="8"&&(n="00"+n);var i=r.util.hexToBytes(n);e.putInt32(i.length),e.putBytes(i)}function f(e,t){e.putInt32(t.length),e.putString(t)}function s(){for(var e=r.md.sha1.create(),t=arguments.length,n=0;n0&&(this.state=m[this.state].block)},y.prototype.unblock=function(e){return e=void 0===e?1:e,this.blocks-=e,0===this.blocks&&this.state!==d&&(this.state=l,g(this,0)),this.blocks},y.prototype.sleep=function(e){e=void 0===e?0:e,this.state=m[this.state].sleep;var t=this;this.timeoutId=setTimeout(function(){t.timeoutId=null,t.state=l,g(t,0)},e)},y.prototype.wait=function(e){e.wait(this)},y.prototype.wakeup=function(){this.state===u&&(cancelTimeout(this.timeoutId),this.timeoutId=null,this.state=l,g(this,0))},y.prototype.cancel=function(){this.state=m[this.state].cancel,this.permitsNeeded=0,null!==this.timeoutId&&(cancelTimeout(this.timeoutId),this.timeoutId=null),this.subtasks=[]},y.prototype.fail=function(e){if(this.error=!0,h(this,!0),e)e.error=this.error,e.swapTime=this.swapTime,e.userData=this.userData,g(e,0);else{if(null!==this.parent){for(var t=this.parent;null!==t.parent;)t.error=this.error,t.swapTime=this.swapTime,t.userData=this.userData,t=t.parent;h(t,!0)}this.failureCallback&&this.failureCallback(this)}};var g=function(e,t){var n=t>30||+new Date-e.swapTime>20,r=function(t){if(t++,e.state===l)if(n&&(e.swapTime=+new Date),e.subtasks.length>0){var r=e.subtasks.shift();r.error=e.error,r.swapTime=e.swapTime,r.userData=e.userData,r.run(r),r.error||g(r,t)}else h(e),e.error||null!==e.parent&&(e.parent.error=e.error,e.parent.swapTime=e.swapTime,e.parent.userData=e.userData,g(e.parent,t))};n?setTimeout(r,0):r(t)},h=function(e,t){e.state=d,delete a[e.id],null===e.parent&&(e.type in s?0===s[e.type].length?r.log.error(i,"[%s][%s] task queue empty [%s]",e.id,e.name,e.type):s[e.type][0]!==e?r.log.error(i,"[%s][%s] task not first in queue [%s]",e.id,e.name,e.type):(s[e.type].shift(),0===s[e.type].length?delete s[e.type]:s[e.type][0].start()):r.log.error(i,"[%s][%s] task queue missing [%s]",e.id,e.name,e.type),t||(e.error&&e.failureCallback?e.failureCallback(e):!e.error&&e.successCallback&&e.successCallback(e)))};e.exports=r.task=r.task||{},r.task.start=function(e){var t=new y({run:e.run,name:e.name||"?"});t.type=e.type,t.successCallback=e.success||null,t.failureCallback=e.failure||null,t.type in s?s[e.type].push(t):(s[t.type]=[t],function(e){e.error=!1,e.state=m[e.state].start,setTimeout(function(){e.state===l&&(e.swapTime=+new Date,e.run(e),g(e,0))},0)}(t))},r.task.cancel=function(e){e in s&&(s[e]=[s[e][0]])},r.task.createCondition=function(){var e={tasks:{},wait:function(t){t.id in e.tasks||(t.block(),e.tasks[t.id]=t)},notify:function(){var t=e.tasks;for(var n in e.tasks={},t)t[n].unblock()}};return e}},function(e,t,n){"use strict";const r=n(147),i=n(148),a=n(50),f=n(456),s=i(n(285)),o=n(286),l=n(191);class c{constructor(e){this._key=e}verify(e,t,n){d(n),f.hashAndVerify(this._key,t,e,n)}marshal(){return f.utils.jwkToPkix(this._key)}get bytes(){return s.PublicKey.encode({Type:s.KeyType.RSA,Data:this.marshal()})}encrypt(e){return this._key.encrypt(e,"RSAES-PKCS1-V1_5")}equals(e){return this.bytes.equals(e.bytes)}hash(e){d(e),r(this.bytes,"sha2-256",e)}}class u{constructor(e,t){this._key=e,this._publicKey=t}genSecret(){return f.getRandomValues(new Uint8Array(16))}sign(e,t){d(t),f.hashAndSign(this._key,e,t)}get public(){if(!this._publicKey)throw new Error("public key not provided");return new c(this._publicKey)}decrypt(e,t){f.decrypt(this._key,e,t)}marshal(){return f.utils.jwkToPkcs1(this._key)}get bytes(){return s.PrivateKey.encode({Type:s.KeyType.RSA,Data:this.marshal()})}equals(e){return this.bytes.equals(e.bytes)}hash(e){d(e),r(this.bytes,"sha2-256",e)}id(e){this.public.hash((t,n)=>{if(t)return e(t);e(null,a.encode(n))})}export(e,t,n){"function"==typeof t&&(n=t,t=e,e="pkcs-8"),d(n),l(()=>{let r=null,i=null;try{const n=new o.util.ByteBuffer(this.marshal()),a=o.asn1.fromDer(n),f=o.pki.privateKeyFromAsn1(a);if("pkcs-8"===e){const e={algorithm:"aes256",count:1e4,saltSize:16,prfAlgorithm:"sha512"};i=o.pki.encryptRsaPrivateKey(f,t,e)}else r=new Error(`Unknown export format '${e}'`)}catch(e){r=e}n(r,i)})}}function d(e){if("function"!=typeof e)throw new Error("callback is required")}e.exports={RsaPublicKey:c,RsaPrivateKey:u,unmarshalRsaPublicKey:function(e){const t=f.utils.pkixToJwk(e);return new c(t)},unmarshalRsaPrivateKey:function(e,t){const n=f.utils.pkcs1ToJwk(e);f.unmarshalPrivateKey(n,(e,n)=>{if(e)return t(e);t(null,new u(n.privateKey,n.publicKey))})},generateKeyPair:function(e,t){f.generateKey(e,(e,n)=>{if(e)return t(e);t(null,new u(n.privateKey,n.publicKey))})},fromJwk:function(e,t){f.unmarshalPrivateKey(e,(e,n)=>{if(e)return t(e);t(null,new u(n.privateKey,n.publicKey))})}}},function(e,t,n){"use strict";const r=n(122),i=n(461),a=i.toBase64,f=i.toBn,s=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid({"1.2.840.113549.1.1.1":"rsa"}),this.key("none").optional().null_(),this.key("curve").optional().objid(),this.key("params").optional().seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()))}),l=r.define("RSAPublicKey",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.pkcs1ToJwk=function(e){const t=s.decode(e,"der");return{kty:"RSA",n:a(t.modulus),e:a(t.publicExponent),d:a(t.privateExponent),p:a(t.prime1),q:a(t.prime2),dp:a(t.exponent1),dq:a(t.exponent2),qi:a(t.coefficient),alg:"RS256",kid:"2011-04-29"}},t.jwkToPkcs1=function(e){return s.encode({version:0,modulus:f(e.n),publicExponent:f(e.e),privateExponent:f(e.d),prime1:f(e.p),prime2:f(e.q),exponent1:f(e.dp),exponent2:f(e.dq),coefficient:f(e.qi)},"der")},t.pkixToJwk=function(e){const t=l.decode(e,"der"),n=c.decode(t.subjectPublicKey.data,"der");return{kty:"RSA",n:a(n.modulus),e:a(n.publicExponent),alg:"RS256",kid:"2011-04-29"}},t.jwkToPkix=function(e){return l.encode({algorithm:{algorithm:"rsa",none:null},subjectPublicKey:{data:c.encode({modulus:f(e.n),publicExponent:f(e.e)},"der")}},"der")}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var f;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{f=n(1243).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:15&f}return r}function o(e,t,n,r){for(var i=0,a=Math.min(e.length,n),f=t;f=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)f=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=f<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,f=a%r,s=Math.min(a,a-f)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],f=i*a,s=67108863&f,o=f/67108864|0;n.words[0]=s;for(var l=1;l>>26,u=67108863&o,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var m=l-p|0;c+=(f=(i=0|e.words[m])*(a=0|t.words[p])+u)/67108864|0,u=67108863&f}n.words[l]=0|u,o=0|c}return 0!==o?n.words[l]=0|o:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var i=0,a=0,f=0;f>>24-i&16777215)||f!==this.length-1?l[6-o.length]+o+n:o+n,(i+=2)>=26&&(i-=26,f--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],p=u[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var y=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?y+n:l[d-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==f),this.toArrayLike(f,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var f,s,o="le"===t,l=new e(a),c=this.clone();if(o){for(s=0;!c.isZero();s++)f=c.andln(255),c.iushrn(8),l[s]=f;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,f=0;f>26,this.words[f]=67108863&t;for(;0!==a&&f>26,this.words[f]=67108863&t;if(0===a&&f>>13,p=0|f[1],m=8191&p,y=p>>>13,g=0|f[2],h=8191&g,_=g>>>13,b=0|f[3],v=8191&b,T=b>>>13,I=0|f[4],S=8191&I,M=I>>>13,E=0|f[5],D=8191&E,C=E>>>13,w=0|f[6],x=8191&w,A=w>>>13,L=0|f[7],k=8191&L,N=L>>>13,R=0|f[8],O=8191&R,P=R>>>13,B=0|f[9],j=8191&B,U=B>>>13,Y=0|s[0],F=8191&Y,z=Y>>>13,V=0|s[1],H=8191&V,$=V>>>13,G=0|s[2],q=8191&G,W=G>>>13,K=0|s[3],Q=8191&K,Z=K>>>13,J=0|s[4],X=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,fe=ie>>>13,se=0|s[7],oe=8191&se,le=se>>>13,ce=0|s[8],ue=8191&ce,de=ce>>>13,pe=0|s[9],me=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(u,F))|0)+((8191&(i=(i=Math.imul(u,z))+Math.imul(d,F)|0))<<13)|0;l=((a=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(m,F),i=(i=Math.imul(m,z))+Math.imul(y,F)|0,a=Math.imul(y,z);var he=(l+(r=r+Math.imul(u,H)|0)|0)+((8191&(i=(i=i+Math.imul(u,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((a=a+Math.imul(d,$)|0)+(i>>>13)|0)+(he>>>26)|0,he&=67108863,r=Math.imul(h,F),i=(i=Math.imul(h,z))+Math.imul(_,F)|0,a=Math.imul(_,z),r=r+Math.imul(m,H)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,$)|0;var _e=(l+(r=r+Math.imul(u,q)|0)|0)+((8191&(i=(i=i+Math.imul(u,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,W)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(T,F)|0,a=Math.imul(T,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(m,q)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,W)|0;var be=(l+(r=r+Math.imul(u,Q)|0)|0)+((8191&(i=(i=i+Math.imul(u,Z)|0)+Math.imul(d,Q)|0))<<13)|0;l=((a=a+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(M,F)|0,a=Math.imul(M,z),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,$)|0,r=r+Math.imul(h,q)|0,i=(i=i+Math.imul(h,W)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,W)|0,r=r+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,Z)|0;var ve=(l+(r=r+Math.imul(u,X)|0)|0)+((8191&(i=(i=i+Math.imul(u,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(D,F),i=(i=Math.imul(D,z))+Math.imul(C,F)|0,a=Math.imul(C,z),r=r+Math.imul(S,H)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,$)|0,r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,W)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,Z)|0,r=r+Math.imul(m,X)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,ee)|0;var Te=(l+(r=r+Math.imul(u,ne)|0)|0)+((8191&(i=(i=i+Math.imul(u,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(x,F),i=(i=Math.imul(x,z))+Math.imul(A,F)|0,a=Math.imul(A,z),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(S,q)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,W)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,Z)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0;var Ie=(l+(r=r+Math.imul(u,ae)|0)|0)+((8191&(i=(i=i+Math.imul(u,fe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,fe)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(k,F),i=(i=Math.imul(k,z))+Math.imul(N,F)|0,a=Math.imul(N,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,$)|0,r=r+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,W)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(m,ae)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,fe)|0;var Se=(l+(r=r+Math.imul(u,oe)|0)|0)+((8191&(i=(i=i+Math.imul(u,le)|0)+Math.imul(d,oe)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(O,F),i=(i=Math.imul(O,z))+Math.imul(P,F)|0,a=Math.imul(P,z),r=r+Math.imul(k,H)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(N,H)|0,a=a+Math.imul(N,$)|0,r=r+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(A,q)|0,a=a+Math.imul(A,W)|0,r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(C,Q)|0,a=a+Math.imul(C,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(M,X)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(h,ae)|0,i=(i=i+Math.imul(h,fe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,fe)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,le)|0)+Math.imul(y,oe)|0,a=a+Math.imul(y,le)|0;var Me=(l+(r=r+Math.imul(u,ue)|0)|0)+((8191&(i=(i=i+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,z))+Math.imul(U,F)|0,a=Math.imul(U,z),r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(N,q)|0,a=a+Math.imul(N,W)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(D,X)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,fe)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(_,oe)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,de)|0;var Ee=(l+(r=r+Math.imul(u,me)|0)|0)+((8191&(i=(i=i+Math.imul(u,ye)|0)+Math.imul(d,me)|0))<<13)|0;l=((a=a+Math.imul(d,ye)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,$))+Math.imul(U,H)|0,a=Math.imul(U,$),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(P,q)|0,a=a+Math.imul(P,W)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(N,Q)|0,a=a+Math.imul(N,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,fe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,fe)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(T,oe)|0,a=a+Math.imul(T,le)|0,r=r+Math.imul(h,ue)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(_,ue)|0,a=a+Math.imul(_,de)|0;var De=(l+(r=r+Math.imul(m,me)|0)|0)+((8191&(i=(i=i+Math.imul(m,ye)|0)+Math.imul(y,me)|0))<<13)|0;l=((a=a+Math.imul(y,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(U,q)|0,a=Math.imul(U,W),r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,Q)|0,a=a+Math.imul(P,Z)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(N,X)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,fe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,fe)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(M,oe)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(T,ue)|0,a=a+Math.imul(T,de)|0;var Ce=(l+(r=r+Math.imul(h,me)|0)|0)+((8191&(i=(i=i+Math.imul(h,ye)|0)+Math.imul(_,me)|0))<<13)|0;l=((a=a+Math.imul(_,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,a=Math.imul(U,Z),r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,fe)|0,r=r+Math.imul(D,oe)|0,i=(i=i+Math.imul(D,le)|0)+Math.imul(C,oe)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(M,ue)|0,a=a+Math.imul(M,de)|0;var we=(l+(r=r+Math.imul(v,me)|0)|0)+((8191&(i=(i=i+Math.imul(v,ye)|0)+Math.imul(T,me)|0))<<13)|0;l=((a=a+Math.imul(T,ye)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(U,X)|0,a=Math.imul(U,ee),r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,fe)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(A,oe)|0,a=a+Math.imul(A,le)|0,r=r+Math.imul(D,ue)|0,i=(i=i+Math.imul(D,de)|0)+Math.imul(C,ue)|0,a=a+Math.imul(C,de)|0;var xe=(l+(r=r+Math.imul(S,me)|0)|0)+((8191&(i=(i=i+Math.imul(S,ye)|0)+Math.imul(M,me)|0))<<13)|0;l=((a=a+Math.imul(M,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,a=Math.imul(U,re),r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,fe)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(N,oe)|0,a=a+Math.imul(N,le)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(A,ue)|0,a=a+Math.imul(A,de)|0;var Ae=(l+(r=r+Math.imul(D,me)|0)|0)+((8191&(i=(i=i+Math.imul(D,ye)|0)+Math.imul(C,me)|0))<<13)|0;l=((a=a+Math.imul(C,ye)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,fe))+Math.imul(U,ae)|0,a=Math.imul(U,fe),r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(P,oe)|0,a=a+Math.imul(P,le)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(N,ue)|0,a=a+Math.imul(N,de)|0;var Le=(l+(r=r+Math.imul(x,me)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(A,me)|0))<<13)|0;l=((a=a+Math.imul(A,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,le))+Math.imul(U,oe)|0,a=Math.imul(U,le),r=r+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(P,ue)|0,a=a+Math.imul(P,de)|0;var ke=(l+(r=r+Math.imul(k,me)|0)|0)+((8191&(i=(i=i+Math.imul(k,ye)|0)+Math.imul(N,me)|0))<<13)|0;l=((a=a+Math.imul(N,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,de))+Math.imul(U,ue)|0,a=Math.imul(U,de);var Ne=(l+(r=r+Math.imul(O,me)|0)|0)+((8191&(i=(i=i+Math.imul(O,ye)|0)+Math.imul(P,me)|0))<<13)|0;l=((a=a+Math.imul(P,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Re=(l+(r=Math.imul(j,me))|0)+((8191&(i=(i=Math.imul(j,ye))+Math.imul(U,me)|0))<<13)|0;return l=((a=Math.imul(U,ye))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,o[0]=ge,o[1]=he,o[2]=_e,o[3]=be,o[4]=ve,o[5]=Te,o[6]=Ie,o[7]=Se,o[8]=Me,o[9]=Ee,o[10]=De,o[11]=Ce,o[12]=we,o[13]=xe,o[14]=Ae,o[15]=Le,o[16]=ke,o[17]=Ne,o[18]=Re,0!==l&&(o[19]=l,n.length++),n};function m(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,f&=67108863}n.words[a]=s,r=f,f=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,i,a){for(var f=0;f>>=1)i++;return 1<>>=13,n[2*f+1]=8191&a,a>>>=13;for(f=2*t;f>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var f=0;for(t=0;t>>26-n}f&&(this.words[t]=f,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,f=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<f)for(this.length-=f,l=0;l=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-a|u>>>a,c=u&s}return o&&0!==c&&(o.words[o.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(o/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,f=0|i.words[i.length-1];0!==(n=26-this._countBits(f))&&(i=i.ushln(n),r.iushln(n),f=0|i.words[i.length-1]);var s,o=r.length-i.length;if("mod"!==t){(s=new a(null)).length=o+1,s.words=new Array(s.length);for(var l=0;l=0;u--){var d=67108864*(0|r.words[i.length+u])+(0|r.words[i.length+u-1]);for(d=Math.min(d/f|0,67108863),r._ishlnsubmul(i,d,u);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,u),r.isZero()||(r.negative^=1);s&&(s.words[u]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(f=s.mod.neg(),n&&0!==f.negative&&f.iadd(e)),{div:i,mod:f}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(f=s.mod.neg(),n&&0!==f.negative&&f.isub(e)),{div:s.div,mod:f}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,f,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),f=new a(0),s=new a(0),o=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),u=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||f.isOdd())&&(i.iadd(c),f.isub(u)),i.iushrn(1),f.iushrn(1);for(var m=0,y=1;0==(n.words[0]&y)&&m<26;++m,y<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||o.isOdd())&&(s.iadd(c),o.isub(u)),s.iushrn(1),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),f.isub(o)):(n.isub(t),s.isub(i),o.isub(f))}return{a:s,b:o,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,f=new a(1),s=new a(0),o=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)f.isOdd()&&f.iadd(o),f.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(o),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),f.isub(s)):(n.isub(t),s.isub(f))}return(i=0===t.cmpn(1)?f:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[f]=s}return 0!==a&&(this.words[f]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new I(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function h(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){h.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){h.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){h.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){h.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}h.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},h.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},h.prototype.split=function(e,t){e.iushrn(this.n,0,t)},h.prototype.imulK=function(e){return e.imul(this.k)},i(_,h),_.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new b;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return g[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),f=0;!i.isZero()&&0===i.andln(1);)f++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),o=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var u=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),m=f;0!==p.cmp(s);){for(var y=p,g=0;0!==y.cmp(s);g++)y=y.redSqr();r(g=0;r--){for(var l=t.words[r],c=o-1;c>=0;c--){var u=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==u||0!==f?(f<<=1,f|=u,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[f]),s=0,f=0)):s=0}o=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,I),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):i.cmpn(0)<0&&(f=i.iadd(this.m)),f._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,n(62)(e))},function(e,t){},function(e,t,n){"use strict";const r=n(122),i=n(9);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){let t;try{t=n(1245).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){var indexOf=__webpack_require__(1246),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n{if(t)return e(t);e(null,a.encode(n))})}}function c(e){if("function"!=typeof e)throw new Error("callback is required")}function u(e,n){if(t.isBuffer(e)&&(e=new Uint8Array(e)),!(e instanceof Uint8Array)||e.length!==n)throw new Error("Key must be a Uint8Array or Buffer of length "+n);return e}e.exports={Ed25519PublicKey:o,Ed25519PrivateKey:l,unmarshalEd25519PrivateKey:function(e,t){try{e=u(e,f.privateKeyLength+f.publicKeyLength)}catch(e){return t(e)}const n=e.slice(0,f.privateKeyLength),r=e.slice(f.privateKeyLength,e.length);t(null,new l(n,r))},unmarshalEd25519PublicKey:function(e){return e=u(e,f.publicKeyLength),new o(e)},generateKeyPair:function(e,t){void 0===t&&"function"==typeof e&&(t=e),f.generateKey((e,n)=>{if(e)return t(e);let r;try{r=new l(n.secretKey,n.publicKey)}catch(e){return void t(e)}t(null,r)})},generateKeyPairFromSeed:function(e,t,n){void 0===n&&"function"==typeof t&&(n=t),f.generateKeyFromSeed(e,(e,t)=>{if(e)return n(e);let r;try{r=new l(t.secretKey,t.publicKey)}catch(e){return void n(e)}n(null,r)})}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(e){const r=n(1257),i=n(191);t.publicKeyLength=r.sign.publicKeyLength,t.privateKeyLength=r.sign.secretKeyLength,t.generateKey=function(e){i(()=>{let t;try{t=r.sign.keyPair()}catch(t){return e(t)}e(null,t)})},t.generateKeyFromSeed=function(e,t){i(()=>{let n;try{n=r.sign.keyPair.fromSeed(e)}catch(e){return t(e)}t(null,n)})},t.hashAndSign=function(t,n,a){i(()=>{a(null,e.from(r.sign.detached(n,t)))})},t.hashAndVerify=function(e,t,n,a){i(()=>{let i;try{i=r.sign.detached.verify(n,t,e)}catch(e){return a(e)}a(null,i)})}}).call(t,n(2).Buffer)},function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function y(e,t,n,r,i){var a,f=0;for(a=0;a>>8)-1}function g(e,t,n,r){return y(e,t,n,r,16)}function h(e,t,n,r){return y(e,t,n,r,32)}function _(e,t,n,r){!function(e,t,n,r){for(var i,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,f=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,o=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,m=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,y=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,h=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,_=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,T=a,I=f,S=s,M=o,E=l,D=c,C=u,w=d,x=p,A=m,L=y,k=g,N=h,R=_,O=b,P=v,B=0;B<20;B+=2)T^=(i=(N^=(i=(x^=(i=(E^=(i=T+N|0)<<7|i>>>25)+T|0)<<9|i>>>23)+E|0)<<13|i>>>19)+x|0)<<18|i>>>14,D^=(i=(I^=(i=(R^=(i=(A^=(i=D+I|0)<<7|i>>>25)+D|0)<<9|i>>>23)+A|0)<<13|i>>>19)+R|0)<<18|i>>>14,L^=(i=(C^=(i=(S^=(i=(O^=(i=L+C|0)<<7|i>>>25)+L|0)<<9|i>>>23)+O|0)<<13|i>>>19)+S|0)<<18|i>>>14,P^=(i=(k^=(i=(w^=(i=(M^=(i=P+k|0)<<7|i>>>25)+P|0)<<9|i>>>23)+M|0)<<13|i>>>19)+w|0)<<18|i>>>14,T^=(i=(M^=(i=(S^=(i=(I^=(i=T+M|0)<<7|i>>>25)+T|0)<<9|i>>>23)+I|0)<<13|i>>>19)+S|0)<<18|i>>>14,D^=(i=(E^=(i=(w^=(i=(C^=(i=D+E|0)<<7|i>>>25)+D|0)<<9|i>>>23)+C|0)<<13|i>>>19)+w|0)<<18|i>>>14,L^=(i=(A^=(i=(x^=(i=(k^=(i=L+A|0)<<7|i>>>25)+L|0)<<9|i>>>23)+k|0)<<13|i>>>19)+x|0)<<18|i>>>14,P^=(i=(O^=(i=(R^=(i=(N^=(i=P+O|0)<<7|i>>>25)+P|0)<<9|i>>>23)+N|0)<<13|i>>>19)+R|0)<<18|i>>>14;T=T+a|0,I=I+f|0,S=S+s|0,M=M+o|0,E=E+l|0,D=D+c|0,C=C+u|0,w=w+d|0,x=x+p|0,A=A+m|0,L=L+y|0,k=k+g|0,N=N+h|0,R=R+_|0,O=O+b|0,P=P+v|0,e[0]=T>>>0&255,e[1]=T>>>8&255,e[2]=T>>>16&255,e[3]=T>>>24&255,e[4]=I>>>0&255,e[5]=I>>>8&255,e[6]=I>>>16&255,e[7]=I>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=M>>>0&255,e[13]=M>>>8&255,e[14]=M>>>16&255,e[15]=M>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=D>>>0&255,e[21]=D>>>8&255,e[22]=D>>>16&255,e[23]=D>>>24&255,e[24]=C>>>0&255,e[25]=C>>>8&255,e[26]=C>>>16&255,e[27]=C>>>24&255,e[28]=w>>>0&255,e[29]=w>>>8&255,e[30]=w>>>16&255,e[31]=w>>>24&255,e[32]=x>>>0&255,e[33]=x>>>8&255,e[34]=x>>>16&255,e[35]=x>>>24&255,e[36]=A>>>0&255,e[37]=A>>>8&255,e[38]=A>>>16&255,e[39]=A>>>24&255,e[40]=L>>>0&255,e[41]=L>>>8&255,e[42]=L>>>16&255,e[43]=L>>>24&255,e[44]=k>>>0&255,e[45]=k>>>8&255,e[46]=k>>>16&255,e[47]=k>>>24&255,e[48]=N>>>0&255,e[49]=N>>>8&255,e[50]=N>>>16&255,e[51]=N>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=O>>>0&255,e[57]=O>>>8&255,e[58]=O>>>16&255,e[59]=O>>>24&255,e[60]=P>>>0&255,e[61]=P>>>8&255,e[62]=P>>>16&255,e[63]=P>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var i,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,f=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,o=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,m=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,y=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,h=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,_=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,T=0;T<20;T+=2)a^=(i=(h^=(i=(p^=(i=(l^=(i=a+h|0)<<7|i>>>25)+a|0)<<9|i>>>23)+l|0)<<13|i>>>19)+p|0)<<18|i>>>14,c^=(i=(f^=(i=(_^=(i=(m^=(i=c+f|0)<<7|i>>>25)+c|0)<<9|i>>>23)+m|0)<<13|i>>>19)+_|0)<<18|i>>>14,y^=(i=(u^=(i=(s^=(i=(b^=(i=y+u|0)<<7|i>>>25)+y|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,v^=(i=(g^=(i=(d^=(i=(o^=(i=v+g|0)<<7|i>>>25)+v|0)<<9|i>>>23)+o|0)<<13|i>>>19)+d|0)<<18|i>>>14,a^=(i=(o^=(i=(s^=(i=(f^=(i=a+o|0)<<7|i>>>25)+a|0)<<9|i>>>23)+f|0)<<13|i>>>19)+s|0)<<18|i>>>14,c^=(i=(l^=(i=(d^=(i=(u^=(i=c+l|0)<<7|i>>>25)+c|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,y^=(i=(m^=(i=(p^=(i=(g^=(i=y+m|0)<<7|i>>>25)+y|0)<<9|i>>>23)+g|0)<<13|i>>>19)+p|0)<<18|i>>>14,v^=(i=(b^=(i=(_^=(i=(h^=(i=v+b|0)<<7|i>>>25)+v|0)<<9|i>>>23)+h|0)<<13|i>>>19)+_|0)<<18|i>>>14;e[0]=a>>>0&255,e[1]=a>>>8&255,e[2]=a>>>16&255,e[3]=a>>>24&255,e[4]=c>>>0&255,e[5]=c>>>8&255,e[6]=c>>>16&255,e[7]=c>>>24&255,e[8]=y>>>0&255,e[9]=y>>>8&255,e[10]=y>>>16&255,e[11]=y>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=u>>>0&255,e[17]=u>>>8&255,e[18]=u>>>16&255,e[19]=u>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=m>>>0&255,e[29]=m>>>8&255,e[30]=m>>>16&255,e[31]=m>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function T(e,t,n,r,i,a,f){var s,o,l=new Uint8Array(16),c=new Uint8Array(64);for(o=0;o<16;o++)l[o]=0;for(o=0;o<8;o++)l[o]=a[o];for(;i>=64;){for(_(c,l,f,v),o=0;o<64;o++)e[t+o]=n[r+o]^c[o];for(s=1,o=8;o<16;o++)s=s+(255&l[o])|0,l[o]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(_(c,l,f,v),o=0;o=64;){for(_(o,s,i,v),f=0;f<64;f++)e[t+f]=o[f];for(a=1,f=8;f<16;f++)a=a+(255&s[f])|0,s[f]=255&a,a>>>=8;n-=64,t+=64}if(n>0)for(_(o,s,i,v),f=0;f>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),a=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|a<<12),this.r[5]=a>>>1&8190,f=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(a>>>14|f<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(f>>>11|s<<5),o=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|o<<8),this.r[9]=o>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function D(e,t,n,r,i,a){var f=new E(a);return f.update(n,r,i),f.finish(e,t),0}function C(e,t,n,r,i,a){var f=new Uint8Array(16);return D(f,0,n,r,i,a),g(e,t,f,0)}function w(e,t,n,r,i){var a;if(n<32)return-1;for(M(e,0,t,0,n,r,i),D(e,16,e,32,n-32,e),a=0;a<16;a++)e[a]=0;return 0}function x(e,t,n,r,i){var a,f=new Uint8Array(32);if(n<32)return-1;if(S(f,0,32,r,i),0!==C(t,16,t,32,n-32,f))return-1;for(M(e,0,t,0,n,r,i),a=0;a<32;a++)e[a]=0;return 0}function A(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function L(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function k(e,t,n){for(var r,i=~(n-1),a=0;a<16;a++)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function N(e,n){var r,i,a,f=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(L(s),L(s),L(s),i=0;i<2;i++){for(f[0]=s[0]-65517,r=1;r<15;r++)f[r]=s[r]-65535-(f[r-1]>>16&1),f[r-1]&=65535;f[15]=s[15]-32767-(f[14]>>16&1),a=f[15]>>16&1,f[14]&=65535,k(s,f,1-a)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function R(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return N(n,e),N(r,t),h(n,0,r,0)}function O(e){var t=new Uint8Array(32);return N(t,e),1&t[0]}function P(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function U(e,t,n){var r,i,a=0,f=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,m=0,y=0,g=0,h=0,_=0,b=0,v=0,T=0,I=0,S=0,M=0,E=0,D=0,C=0,w=0,x=0,A=0,L=0,k=0,N=0,R=0,O=0,P=n[0],B=n[1],j=n[2],U=n[3],Y=n[4],F=n[5],z=n[6],V=n[7],H=n[8],$=n[9],G=n[10],q=n[11],W=n[12],K=n[13],Q=n[14],Z=n[15];a+=(r=t[0])*P,f+=r*B,s+=r*j,o+=r*U,l+=r*Y,c+=r*F,u+=r*z,d+=r*V,p+=r*H,m+=r*$,y+=r*G,g+=r*q,h+=r*W,_+=r*K,b+=r*Q,v+=r*Z,f+=(r=t[1])*P,s+=r*B,o+=r*j,l+=r*U,c+=r*Y,u+=r*F,d+=r*z,p+=r*V,m+=r*H,y+=r*$,g+=r*G,h+=r*q,_+=r*W,b+=r*K,v+=r*Q,T+=r*Z,s+=(r=t[2])*P,o+=r*B,l+=r*j,c+=r*U,u+=r*Y,d+=r*F,p+=r*z,m+=r*V,y+=r*H,g+=r*$,h+=r*G,_+=r*q,b+=r*W,v+=r*K,T+=r*Q,I+=r*Z,o+=(r=t[3])*P,l+=r*B,c+=r*j,u+=r*U,d+=r*Y,p+=r*F,m+=r*z,y+=r*V,g+=r*H,h+=r*$,_+=r*G,b+=r*q,v+=r*W,T+=r*K,I+=r*Q,S+=r*Z,l+=(r=t[4])*P,c+=r*B,u+=r*j,d+=r*U,p+=r*Y,m+=r*F,y+=r*z,g+=r*V,h+=r*H,_+=r*$,b+=r*G,v+=r*q,T+=r*W,I+=r*K,S+=r*Q,M+=r*Z,c+=(r=t[5])*P,u+=r*B,d+=r*j,p+=r*U,m+=r*Y,y+=r*F,g+=r*z,h+=r*V,_+=r*H,b+=r*$,v+=r*G,T+=r*q,I+=r*W,S+=r*K,M+=r*Q,E+=r*Z,u+=(r=t[6])*P,d+=r*B,p+=r*j,m+=r*U,y+=r*Y,g+=r*F,h+=r*z,_+=r*V,b+=r*H,v+=r*$,T+=r*G,I+=r*q,S+=r*W,M+=r*K,E+=r*Q,D+=r*Z,d+=(r=t[7])*P,p+=r*B,m+=r*j,y+=r*U,g+=r*Y,h+=r*F,_+=r*z,b+=r*V,v+=r*H,T+=r*$,I+=r*G,S+=r*q,M+=r*W,E+=r*K,D+=r*Q,C+=r*Z,p+=(r=t[8])*P,m+=r*B,y+=r*j,g+=r*U,h+=r*Y,_+=r*F,b+=r*z,v+=r*V,T+=r*H,I+=r*$,S+=r*G,M+=r*q,E+=r*W,D+=r*K,C+=r*Q,w+=r*Z,m+=(r=t[9])*P,y+=r*B,g+=r*j,h+=r*U,_+=r*Y,b+=r*F,v+=r*z,T+=r*V,I+=r*H,S+=r*$,M+=r*G,E+=r*q,D+=r*W,C+=r*K,w+=r*Q,x+=r*Z,y+=(r=t[10])*P,g+=r*B,h+=r*j,_+=r*U,b+=r*Y,v+=r*F,T+=r*z,I+=r*V,S+=r*H,M+=r*$,E+=r*G,D+=r*q,C+=r*W,w+=r*K,x+=r*Q,A+=r*Z,g+=(r=t[11])*P,h+=r*B,_+=r*j,b+=r*U,v+=r*Y,T+=r*F,I+=r*z,S+=r*V,M+=r*H,E+=r*$,D+=r*G,C+=r*q,w+=r*W,x+=r*K,A+=r*Q,L+=r*Z,h+=(r=t[12])*P,_+=r*B,b+=r*j,v+=r*U,T+=r*Y,I+=r*F,S+=r*z,M+=r*V,E+=r*H,D+=r*$,C+=r*G,w+=r*q,x+=r*W,A+=r*K,L+=r*Q,k+=r*Z,_+=(r=t[13])*P,b+=r*B,v+=r*j,T+=r*U,I+=r*Y,S+=r*F,M+=r*z,E+=r*V,D+=r*H,C+=r*$,w+=r*G,x+=r*q,A+=r*W,L+=r*K,k+=r*Q,N+=r*Z,b+=(r=t[14])*P,v+=r*B,T+=r*j,I+=r*U,S+=r*Y,M+=r*F,E+=r*z,D+=r*V,C+=r*H,w+=r*$,x+=r*G,A+=r*q,L+=r*W,k+=r*K,N+=r*Q,R+=r*Z,v+=(r=t[15])*P,f+=38*(I+=r*j),s+=38*(S+=r*U),o+=38*(M+=r*Y),l+=38*(E+=r*F),c+=38*(D+=r*z),u+=38*(C+=r*V),d+=38*(w+=r*H),p+=38*(x+=r*$),m+=38*(A+=r*G),y+=38*(L+=r*q),g+=38*(k+=r*W),h+=38*(N+=r*K),_+=38*(R+=r*Q),b+=38*(O+=r*Z),a=(r=(a+=38*(T+=r*B))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=o+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=(a+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=o+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),a+=i-1+37*(i-1),e[0]=a,e[1]=f,e[2]=s,e[3]=o,e[4]=l,e[5]=c,e[6]=u,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=g,e[12]=h,e[13]=_,e[14]=b,e[15]=v}function Y(e,t){U(e,t,t)}function F(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)Y(i,i),2!==r&&4!==r&&U(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function z(e,n,r){var i,a,f=new Uint8Array(32),s=new Float64Array(80),l=t(),c=t(),u=t(),d=t(),p=t(),m=t();for(a=0;a<31;a++)f[a]=n[a];for(f[31]=127&n[31]|64,f[0]&=248,P(s,r),a=0;a<16;a++)c[a]=s[a],d[a]=l[a]=u[a]=0;for(l[0]=d[0]=1,a=254;a>=0;--a)k(l,c,i=f[a>>>3]>>>(7&a)&1),k(u,d,i),B(p,l,u),j(l,l,u),B(u,c,d),j(c,c,d),Y(d,p),Y(m,l),U(l,u,l),U(u,c,p),B(p,l,u),j(l,l,u),Y(c,l),j(u,d,m),U(l,u,o),B(l,l,d),U(u,u,l),U(l,d,m),U(d,c,s),Y(c,p),k(l,c,i),k(u,d,i);for(a=0;a<16;a++)s[a+16]=l[a],s[a+32]=u[a],s[a+48]=c[a],s[a+64]=d[a];var y=s.subarray(32),g=s.subarray(16);return F(y,y),U(g,g,y),N(e,g),0}function V(e,t){return z(e,t,a)}function H(e,t){return r(t,32),V(e,t)}function $(e,t,n){var r=new Uint8Array(32);return z(r,n,t),b(e,i,r,v)}E.prototype.blocks=function(e,t,n){for(var r,i,a,f,s,o,l,c,u,d,p,m,y,g,h,_,b,v,T,I=this.fin?0:2048,S=this.h[0],M=this.h[1],E=this.h[2],D=this.h[3],C=this.h[4],w=this.h[5],x=this.h[6],A=this.h[7],L=this.h[8],k=this.h[9],N=this.r[0],R=this.r[1],O=this.r[2],P=this.r[3],B=this.r[4],j=this.r[5],U=this.r[6],Y=this.r[7],F=this.r[8],z=this.r[9];n>=16;)S+=8191&(r=255&e[t+0]|(255&e[t+1])<<8),M+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3),E+=8191&(i>>>10|(a=255&e[t+4]|(255&e[t+5])<<8)<<6),D+=8191&(a>>>7|(f=255&e[t+6]|(255&e[t+7])<<8)<<9),C+=8191&(f>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12),w+=s>>>1&8191,x+=8191&(s>>>14|(o=255&e[t+10]|(255&e[t+11])<<8)<<2),A+=8191&(o>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5),c=255&e[t+14]|(255&e[t+15])<<8,d=u=0,d+=S*N,d+=M*(5*z),d+=E*(5*F),d+=D*(5*Y),u=(d+=C*(5*U))>>>13,d&=8191,d+=w*(5*j),d+=x*(5*B),d+=A*(5*P),d+=(L+=8191&(l>>>8|c<<8))*(5*O),p=u+=(d+=(k+=c>>>5|I)*(5*R))>>>13,p+=S*R,p+=M*N,p+=E*(5*z),p+=D*(5*F),u=(p+=C*(5*Y))>>>13,p&=8191,p+=w*(5*U),p+=x*(5*j),p+=A*(5*B),p+=L*(5*P),u+=(p+=k*(5*O))>>>13,p&=8191,m=u,m+=S*O,m+=M*R,m+=E*N,m+=D*(5*z),u=(m+=C*(5*F))>>>13,m&=8191,m+=w*(5*Y),m+=x*(5*U),m+=A*(5*j),m+=L*(5*B),y=u+=(m+=k*(5*P))>>>13,y+=S*P,y+=M*O,y+=E*R,y+=D*N,u=(y+=C*(5*z))>>>13,y&=8191,y+=w*(5*F),y+=x*(5*Y),y+=A*(5*U),y+=L*(5*j),g=u+=(y+=k*(5*B))>>>13,g+=S*B,g+=M*P,g+=E*O,g+=D*R,u=(g+=C*N)>>>13,g&=8191,g+=w*(5*z),g+=x*(5*F),g+=A*(5*Y),g+=L*(5*U),h=u+=(g+=k*(5*j))>>>13,h+=S*j,h+=M*B,h+=E*P,h+=D*O,u=(h+=C*R)>>>13,h&=8191,h+=w*N,h+=x*(5*z),h+=A*(5*F),h+=L*(5*Y),_=u+=(h+=k*(5*U))>>>13,_+=S*U,_+=M*j,_+=E*B,_+=D*P,u=(_+=C*O)>>>13,_&=8191,_+=w*R,_+=x*N,_+=A*(5*z),_+=L*(5*F),b=u+=(_+=k*(5*Y))>>>13,b+=S*Y,b+=M*U,b+=E*j,b+=D*B,u=(b+=C*P)>>>13,b&=8191,b+=w*O,b+=x*R,b+=A*N,b+=L*(5*z),v=u+=(b+=k*(5*F))>>>13,v+=S*F,v+=M*Y,v+=E*U,v+=D*j,u=(v+=C*B)>>>13,v&=8191,v+=w*P,v+=x*O,v+=A*R,v+=L*N,T=u+=(v+=k*(5*z))>>>13,T+=S*z,T+=M*F,T+=E*Y,T+=D*U,u=(T+=C*j)>>>13,T&=8191,T+=w*B,T+=x*P,T+=A*O,T+=L*R,S=d=8191&(u=(u=((u+=(T+=k*N)>>>13)<<2)+u|0)+(d&=8191)|0),M=p+=u>>>=13,E=m&=8191,D=y&=8191,C=g&=8191,w=h&=8191,x=_&=8191,A=b&=8191,L=v&=8191,k=T&=8191,t+=16,n-=16;this.h[0]=S,this.h[1]=M,this.h[2]=E,this.h[3]=D,this.h[4]=C,this.h[5]=w,this.h[6]=x,this.h[7]=A,this.h[8]=L,this.h[9]=k},E.prototype.finish=function(e,t){var n,r,i,a,f=new Uint16Array(10);if(this.leftover){for(a=this.leftover,this.buffer[a++]=1;a<16;a++)this.buffer[a]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,a=2;a<10;a++)this.h[a]+=n,n=this.h[a]>>>13,this.h[a]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,f[0]=this.h[0]+5,n=f[0]>>>13,f[0]&=8191,a=1;a<10;a++)f[a]=this.h[a]+n,n=f[a]>>>13,f[a]&=8191;for(f[9]-=8192,r=(1^n)-1,a=0;a<10;a++)f[a]&=r;for(r=~r,a=0;a<10;a++)this.h[a]=this.h[a]&r|f[a];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,a=1;a<8;a++)i=(this.h[a]+this.pad[a]|0)+(i>>>16)|0,this.h[a]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r=128;){for(I=0;I<16;I++)S=8*I+K,A[I]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],L[I]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(I=0;I<80;I++)if(i=k,a=N,f=R,s=O,o=P,l=B,c=j,u=U,d=Y,p=F,m=z,y=V,g=H,h=$,_=G,b=q,D=65535&(E=q),C=E>>>16,w=65535&(M=U),x=M>>>16,D+=65535&(E=(H>>>14|P<<18)^(H>>>18|P<<14)^(P>>>9|H<<23)),C+=E>>>16,w+=65535&(M=(P>>>14|H<<18)^(P>>>18|H<<14)^(H>>>9|P<<23)),x+=M>>>16,D+=65535&(E=H&$^~H&G),C+=E>>>16,w+=65535&(M=P&B^~P&j),x+=M>>>16,M=W[2*I],D+=65535&(E=W[2*I+1]),C+=E>>>16,w+=65535&M,x+=M>>>16,M=A[I%16],C+=(E=L[I%16])>>>16,w+=65535&M,x+=M>>>16,w+=(C+=(D+=65535&E)>>>16)>>>16,D=65535&(E=T=65535&D|C<<16),C=E>>>16,w=65535&(M=v=65535&w|(x+=w>>>16)<<16),x=M>>>16,D+=65535&(E=(Y>>>28|k<<4)^(k>>>2|Y<<30)^(k>>>7|Y<<25)),C+=E>>>16,w+=65535&(M=(k>>>28|Y<<4)^(Y>>>2|k<<30)^(Y>>>7|k<<25)),x+=M>>>16,C+=(E=Y&F^Y&z^F&z)>>>16,w+=65535&(M=k&N^k&R^N&R),x+=M>>>16,u=65535&(w+=(C+=(D+=65535&E)>>>16)>>>16)|(x+=w>>>16)<<16,b=65535&D|C<<16,D=65535&(E=y),C=E>>>16,w=65535&(M=s),x=M>>>16,C+=(E=T)>>>16,w+=65535&(M=v),x+=M>>>16,N=i,R=a,O=f,P=s=65535&(w+=(C+=(D+=65535&E)>>>16)>>>16)|(x+=w>>>16)<<16,B=o,j=l,U=c,k=u,F=d,z=p,V=m,H=y=65535&D|C<<16,$=g,G=h,q=_,Y=b,I%16==15)for(S=0;S<16;S++)M=A[S],D=65535&(E=L[S]),C=E>>>16,w=65535&M,x=M>>>16,M=A[(S+9)%16],D+=65535&(E=L[(S+9)%16]),C+=E>>>16,w+=65535&M,x+=M>>>16,v=A[(S+1)%16],D+=65535&(E=((T=L[(S+1)%16])>>>1|v<<31)^(T>>>8|v<<24)^(T>>>7|v<<25)),C+=E>>>16,w+=65535&(M=(v>>>1|T<<31)^(v>>>8|T<<24)^v>>>7),x+=M>>>16,v=A[(S+14)%16],C+=(E=((T=L[(S+14)%16])>>>19|v<<13)^(v>>>29|T<<3)^(T>>>6|v<<26))>>>16,w+=65535&(M=(v>>>19|T<<13)^(T>>>29|v<<3)^v>>>6),x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,A[S]=65535&w|x<<16,L[S]=65535&D|C<<16;D=65535&(E=Y),C=E>>>16,w=65535&(M=k),x=M>>>16,M=e[0],C+=(E=t[0])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[0]=k=65535&w|x<<16,t[0]=Y=65535&D|C<<16,D=65535&(E=F),C=E>>>16,w=65535&(M=N),x=M>>>16,M=e[1],C+=(E=t[1])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[1]=N=65535&w|x<<16,t[1]=F=65535&D|C<<16,D=65535&(E=z),C=E>>>16,w=65535&(M=R),x=M>>>16,M=e[2],C+=(E=t[2])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[2]=R=65535&w|x<<16,t[2]=z=65535&D|C<<16,D=65535&(E=V),C=E>>>16,w=65535&(M=O),x=M>>>16,M=e[3],C+=(E=t[3])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[3]=O=65535&w|x<<16,t[3]=V=65535&D|C<<16,D=65535&(E=H),C=E>>>16,w=65535&(M=P),x=M>>>16,M=e[4],C+=(E=t[4])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[4]=P=65535&w|x<<16,t[4]=H=65535&D|C<<16,D=65535&(E=$),C=E>>>16,w=65535&(M=B),x=M>>>16,M=e[5],C+=(E=t[5])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[5]=B=65535&w|x<<16,t[5]=$=65535&D|C<<16,D=65535&(E=G),C=E>>>16,w=65535&(M=j),x=M>>>16,M=e[6],C+=(E=t[6])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[6]=j=65535&w|x<<16,t[6]=G=65535&D|C<<16,D=65535&(E=q),C=E>>>16,w=65535&(M=U),x=M>>>16,M=e[7],C+=(E=t[7])>>>16,w+=65535&M,x+=M>>>16,x+=(w+=(C+=(D+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&w|x<<16,t[7]=q=65535&D|C<<16,K+=128,r-=128}return r}function Q(e,t,n){var r,i=new Int32Array(8),a=new Int32Array(8),f=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,a[0]=4089235720,a[1]=2227873595,a[2]=4271175723,a[3]=1595750129,a[4]=2917565137,a[5]=725511199,a[6]=4215389547,a[7]=327033209,K(i,a,t,n),n%=128,r=0;r=0;--i)J(e,t,r=n[i/8|0]>>(7&i)&1),Z(t,e),Z(e,e),J(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];A(r[0],u),A(r[1],d),A(r[2],s),U(r[3],u,d),ee(e,r,n)}function ne(e,n,i){var a,f=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),Q(f,n,32),f[0]&=248,f[31]&=127,f[31]|=64,te(s,f),X(e,s),a=0;a<32;a++)n[a+32]=e[a];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*re[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*re[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function fe(e,n,r,i){var a,f,s=new Uint8Array(64),o=new Uint8Array(64),l=new Uint8Array(64),c=new Float64Array(64),u=[t(),t(),t(),t()];Q(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=r+64;for(a=0;a=0;r--)Y(i,i),1!==r&&U(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}(r,r),U(r,r,a),U(r,r,o),U(r,r,o),U(e[0],r,o),Y(i,e[0]),U(i,i,o),R(i,a)&&U(e[0],e[0],p),Y(i,e[0]),U(i,i,o),R(i,a)?-1:(O(e[0])===n[31]>>7&&j(e[0],f,e[0]),U(e[3],e[0],e[1]),0)}function oe(e,n,r,i){var a,f=new Uint8Array(32),s=new Uint8Array(64),o=[t(),t(),t(),t()],l=[t(),t(),t(),t()];if(-1,r<64)return-1;if(se(l,i))return-1;for(a=0;a=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(ye(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),n=0;n{i=i||n(1260)(t);class a{constructor(e){i.validatePublicKey(e),this._key=e}verify(e,t,n){s(n),i.hashAndVerify(this._key,t,e,n)}marshal(){return i.compressPublicKey(this._key)}get bytes(){return e.PublicKey.encode({Type:e.KeyType.Secp256k1,Data:this.marshal()})}equals(e){return this.bytes.equals(e.bytes)}hash(e){s(e),r(this.bytes,"sha2-256",e)}}class f{constructor(e,t){this._key=e,this._publicKey=t||i.computePublicKey(e),i.validatePrivateKey(this._key),i.validatePublicKey(this._publicKey)}sign(e,t){s(t),i.hashAndSign(this._key,e,t)}get public(){return new a(this._publicKey)}marshal(){return this._key}get bytes(){return e.PrivateKey.encode({Type:e.KeyType.Secp256k1,Data:this.marshal()})}equals(e){return this.bytes.equals(e.bytes)}hash(e){s(e),r(this.bytes,"sha2-256",e)}}function s(e){if("function"!=typeof e)throw new Error("callback is required")}return{Secp256k1PublicKey:a,Secp256k1PrivateKey:f,unmarshalSecp256k1PrivateKey:function(e,t){t(null,new f(e),null)},unmarshalSecp256k1PublicKey:function(e){return new a(e)},generateKeyPair:function(e,t){void 0===t&&"function"==typeof e&&(t=e),s(t),i.generateKey((e,n)=>{if(e)return t(e);let r;try{r=new f(n)}catch(e){return t(e)}t(null,r)})}}})},function(e,t,n){"use strict";const r=n(1261),i=n(147),a=n(191),f="sha2-256";e.exports=(e=>{function t(e){if(!r.privateKeyVerify(e))throw new Error("Invalid private key")}return{generateKey:function(t){let n;do{n=e(32)}while(!r.privateKeyVerify(n));((e,n)=>a(()=>t(e,n)))(null,n)},privateKeyLength:32,hashAndSign:function(e,t,n){const s=(e,t)=>a(()=>n(e,t));i.digest(t,f,(t,n)=>{if(t)return s(t);try{const i=r.sign(n,e),a=r.signatureExport(i.signature);return s(null,a)}catch(t){s(t)}})},hashAndVerify:function(e,t,n,s){const o=(e,t)=>a(()=>s(e,t));i.digest(n,f,(n,i)=>{if(n)return o(n);try{t=r.signatureImport(t);const a=r.verify(i,t,e);return o(null,a)}catch(n){o(n)}})},compressPublicKey:function(e){if(!r.publicKeyVerify(e))throw new Error("Invalid public key");return r.publicKeyConvert(e,!0)},decompressPublicKey:function(e){return r.publicKeyConvert(e,!1)},validatePrivateKey:t,validatePublicKey:function(e){if(!r.publicKeyVerify(e))throw new Error("Invalid public key")},computePublicKey:function(e){return t(e),r.publicKeyCreate(e)}}})},function(e,t,n){"use strict";e.exports=n(1262)(n(1266))},function(e,t,n){"use strict";var r=n(1263),i=n(1264),a=n(462);function f(e,t){return void 0===e?t:(r.isBoolean(e,a.COMPRESSED_TYPE_INVALID),e)}e.exports=function(e){return{privateKeyVerify:function(t){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),32===t.length&&e.privateKeyVerify(t)},privateKeyExport:function(t,n){r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),n=f(n,!0);var s=e.privateKeyExport(t,n);return i.privateKeyExport(t,s,n)},privateKeyImport:function(t){if(r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),(t=i.privateKeyImport(t))&&32===t.length&&e.privateKeyVerify(t))return t;throw new Error(a.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyNegate(t)},privateKeyModInverse:function(t){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,n){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),r.isBuffer(n,a.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,a.TWEAK_LENGTH_INVALID),e.privateKeyTweakAdd(t,n)},privateKeyTweakMul:function(t,n){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),r.isBuffer(n,a.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,a.TWEAK_LENGTH_INVALID),e.privateKeyTweakMul(t,n)},publicKeyCreate:function(t,n){return r.isBuffer(t,a.EC_PRIVATE_KEY_TYPE_INVALID),r.isBufferLength(t,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),n=f(n,!0),e.publicKeyCreate(t,n)},publicKeyConvert:function(t,n){return r.isBuffer(t,a.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),n=f(n,!0),e.publicKeyConvert(t,n)},publicKeyVerify:function(t){return r.isBuffer(t,a.EC_PUBLIC_KEY_TYPE_INVALID),e.publicKeyVerify(t)},publicKeyTweakAdd:function(t,n,i){return r.isBuffer(t,a.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),r.isBuffer(n,a.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,a.TWEAK_LENGTH_INVALID),i=f(i,!0),e.publicKeyTweakAdd(t,n,i)},publicKeyTweakMul:function(t,n,i){return r.isBuffer(t,a.EC_PUBLIC_KEY_TYPE_INVALID),r.isBufferLength2(t,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),r.isBuffer(n,a.TWEAK_TYPE_INVALID),r.isBufferLength(n,32,a.TWEAK_LENGTH_INVALID),i=f(i,!0),e.publicKeyTweakMul(t,n,i)},publicKeyCombine:function(t,n){r.isArray(t,a.EC_PUBLIC_KEYS_TYPE_INVALID),r.isLengthGTZero(t,a.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var i=0;i=n)throw RangeError(r)}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(1265),a=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),f=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){var i=r.from(n?a:f);return e.copy(i,n?8:9),t.copy(i,n?181:214),i},t.privateKeyImport=function(e){var t=e.length,n=0;if(!(t2||t1?e[n+r-2]<<8:0);if(!(t<(n+=r)+i||t32||t1&&0===t[a]&&!(128&t[a+1]);--n,++a);for(var f=r.concat([r.from([0]),e.s]),s=33,o=0;s>1&&0===f[o]&&!(128&f[o+1]);--s,++o);return i.encode(t.slice(a),f.slice(o))},t.signatureImport=function(e){var t=r.alloc(32,0),n=r.alloc(32,0);try{var a=i.decode(e);if(33===a.r.length&&0===a.r[0]&&(a.r=a.r.slice(1)),a.r.length>32)throw new Error("R length is too long");if(33===a.s.length&&0===a.s[0]&&(a.s=a.s.slice(1)),a.s.length>32)throw new Error("S length is too long")}catch(e){return}return a.r.copy(t,32-a.r.length),a.s.copy(n,32-a.s.length),{r:t,s:n}},t.signatureImportLax=function(e){var t=r.alloc(32,0),n=r.alloc(32,0),i=e.length,a=0;if(48===e[a++]){var f=e[a++];if(!(128&f&&(a+=f-128)>i)&&2===e[a++]){var s=e[a++];if(128&s){if(a+(f=s-128)>i)return;for(;f>0&&0===e[a];a+=1,f-=1);for(s=0;f>0;a+=1,f-=1)s=(s<<8)+e[a]}if(!(s>i-a)){var o=a;if(a+=s,2===e[a++]){var l=e[a++];if(128&l){if(a+(f=l-128)>i)return;for(;f>0&&0===e[a];a+=1,f-=1);for(l=0;f>0;a+=1,f-=1)l=(l<<8)+e[a]}if(!(l>i-a)){var c=a;for(a+=l;s>0&&0===e[o];s-=1,o+=1);if(!(s>32)){var u=e.slice(o,o+s);for(u.copy(t,32-u.length);l>0&&0===e[c];l-=1,c+=1);if(!(l>32)){var d=e.slice(c,c+l);return d.copy(n,32-d.length),{r:t,s:n}}}}}}}}}},function(e,t,n){var r=n(7).Buffer;e.exports={check:function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var n=e[5+t];return!(0===n||6+t+n!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||n>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var n=e[5+t];if(0===n)throw new Error("S length is zero");if(6+t+n!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(n>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var n=e.length,i=t.length;if(0===n)throw new Error("R length is zero");if(0===i)throw new Error("S length is zero");if(n>33)throw new Error("R length is too long");if(i>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(n>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(i>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var a=r.allocUnsafe(6+n+i);return a[0]=48,a[1]=a.length-2,a[2]=2,a[3]=e.length,e.copy(a,4),a[4+n]=2,a[5+n]=t.length,t.copy(a,6+n),a}}},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(1267),a=n(1272),f=n(462),s=n(198),o=n(467),l=n(1278);t.privateKeyVerify=function(e){var t=s.fromBuffer(e);return!(t.isOverflow()||t.isZero())},t.privateKeyExport=function(e,t){var n=s.fromBuffer(e);if(n.isOverflow()||n.isZero())throw new Error(f.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return l.mul(n).toPublicKey(t)},t.privateKeyNegate=function(e){var t=s.fromBuffer(e);return t.isZero()?r.alloc(32):(t.ucmp(s.n)>0&&t.isub(s.n),s.n.sub(t).toBuffer())},t.privateKeyModInverse=function(e){var t=s.fromBuffer(e);if(t.isOverflow()||t.isZero())throw new Error(f.EC_PRIVATE_KEY_RANGE_INVALID);return t.uinvm().toBuffer()},t.privateKeyTweakAdd=function(e,t){var n=s.fromBuffer(t);if(n.isOverflow())throw new Error(f.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(n.iadd(s.fromBuffer(e)),n.isOverflow()&&n.isub(s.n),n.isZero())throw new Error(f.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return n.toBuffer()},t.privateKeyTweakMul=function(e,t){var n=s.fromBuffer(t);if(n.isOverflow()||n.isZero())throw new Error(f.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);var r=s.fromBuffer(e);return n.umul(r).ureduce().toBuffer()},t.publicKeyCreate=function(e,t){var n=s.fromBuffer(e);if(n.isOverflow()||n.isZero())throw new Error(f.EC_PUBLIC_KEY_CREATE_FAIL);return l.mul(n).toPublicKey(t)},t.publicKeyConvert=function(e,t){var n=o.fromPublicKey(e);if(null===n)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);return n.toPublicKey(t)},t.publicKeyVerify=function(e){return null!==o.fromPublicKey(e)},t.publicKeyTweakAdd=function(e,t,n){var r=o.fromPublicKey(e);if(null===r)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);if((t=s.fromBuffer(t)).isOverflow())throw new Error(f.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return l.mul(t).add(r).toPublicKey(n)},t.publicKeyTweakMul=function(e,t,n){var r=o.fromPublicKey(e);if(null===r)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);if((t=s.fromBuffer(t)).isOverflow()||t.isZero())throw new Error(f.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return r.mul(t).toPublicKey(n)},t.publicKeyCombine=function(e,t){for(var n=new Array(e.length),r=0;r=0)&&0===r.iadd(s.psn).redMul(m).ucmp(p.x)},t.recover=function(e,t,n,i){var a=s.fromBuffer(t.slice(0,32)),c=s.fromBuffer(t.slice(32,64));if(a.isOverflow()||c.isOverflow())throw new Error(f.ECDSA_SIGNATURE_PARSE_FAIL);do{if(a.isZero()||c.isZero())break;var u=a;if(n>>1){if(u.ucmp(s.psn)>=0)break;u=a.add(s.n)}var d=r.concat([r.from([2+(1&n)]),u.toBuffer()]),p=o.fromPublicKey(d);if(null===p)break;var m=a.uinvm(),y=s.n.sub(s.fromBuffer(e)).umul(m).ureduce(),g=c.umul(m).ureduce();return o.fromECJPoint(l.mulAdd(y,p,g)).toPublicKey(i)}while(0);throw new Error(f.ECDSA_RECOVER_FAIL)},t.ecdh=function(e,n){var r=t.ecdhUnsafe(e,n,!0);return i("sha256").update(r).digest()},t.ecdhUnsafe=function(e,t,n){var r=o.fromPublicKey(e);if(null===r)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);var i=s.fromBuffer(t);if(i.isOverflow()||i.isZero())throw new Error(f.ECDH_FAIL);return r.mul(i).toPublicKey(n)}},function(e,t,n){"use strict";var r=n(9),i=n(284),a=n(463),f=n(464),s=n(96);function o(e){s.call(this,"digest"),this._hash=e}r(o,s),o.prototype._update=function(e){this._hash.update(e)},o.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new o(f(e))}},function(e,t,n){var r=n(9),i=n(123),a=n(7).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function o(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function c(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(o,i),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,o=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var d=0;d<80;++d){var p=~~(d/20),m=0|((t=r)<<5|t>>>27)+c(p,i,a,s)+o+n[d]+f[p];o=s,s=a,a=l(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0},o.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=o},function(e,t,n){var r=n(9),i=n(123),a=n(7).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function o(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(o,i),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,o=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var p=0;p<80;++p){var m=~~(p/20),y=l(r)+u(m,i,a,s)+o+n[p]+f[m]|0;o=s,s=a,a=c(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0},o.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=o},function(e,t,n){var r=n(9),i=n(465),a=n(123),f=n(7).Buffer,s=new Array(64);function o(){this.init(),this._w=s,a.call(this,64,56)}r(o,i),o.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},o.prototype._hash=function(){var e=f.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=o},function(e,t,n){var r=n(9),i=n(466),a=n(123),f=n(7).Buffer,s=new Array(160);function o(){this.init(),this._w=s,a.call(this,128,112)}r(o,i),o.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},o.prototype._hash=function(){var e=f.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=o},function(e,t,n){"use strict";(function(t){var r=n(1273),i=n(1276),a=new t(0),f=new t([0]),s=new t([1]);function o(e,t,n,r){var a=i[e];if(void 0===a)throw new Error("hash "+e+" is not supported");this._algo=e,this._securityStrength=a.securityStrength/8,this._outlen=a.outlen/8,this._reseedInterval=281474976710656,this._init(t,n,r)}o.prototype._update=function(e){var t=r(this._algo,this._K).update(this._V).update(f);e&&t.update(e),this._K=t.digest(),this._V=r(this._algo,this._K).update(this._V).digest(),e&&(this._K=r(this._algo,this._K).update(this._V).update(s).update(e).digest(),this._V=r(this._algo,this._K).update(this._V).digest())},o.prototype._init=function(e,n,r){if(e.lengththis._reseedInterval)throw new Error("Reseed is required");n&&0===n.length&&(n=void 0),n&&this._update(n);for(var i=new t(0);i.lengthn)?t=("rmd160"===e?new o:l(e)).update(t).digest():t.lengths?t=e(t):t.length>>13,p=0|f[1],m=8191&p,y=p>>>13,g=0|f[2],h=8191&g,_=g>>>13,b=0|f[3],v=8191&b,T=b>>>13,I=0|f[4],S=8191&I,M=I>>>13,E=0|f[5],D=8191&E,C=E>>>13,w=0|f[6],x=8191&w,A=w>>>13,L=0|f[7],k=8191&L,N=L>>>13,R=0|f[8],O=8191&R,P=R>>>13,B=0|f[9],j=8191&B,U=B>>>13,Y=0|s[0],F=8191&Y,z=Y>>>13,V=0|s[1],H=8191&V,$=V>>>13,G=0|s[2],q=8191&G,W=G>>>13,K=0|s[3],Q=8191&K,Z=K>>>13,J=0|s[4],X=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,fe=ie>>>13,se=0|s[7],oe=8191&se,le=se>>>13,ce=0|s[8],ue=8191&ce,de=ce>>>13,pe=0|s[9],me=8191&pe,ye=pe>>>13;n.length=19,r=Math.imul(u,F),i=Math.imul(u,z);var ge=l+r+((8191&(i+=Math.imul(d,F)))<<13);l=(a=Math.imul(d,z))+(i>>>13)+(ge>>>26),ge&=67108863,r=Math.imul(m,F),i=Math.imul(m,z),i+=Math.imul(y,F),a=Math.imul(y,z),r+=Math.imul(u,H),i+=Math.imul(u,$);var he=l+r+((8191&(i+=Math.imul(d,H)))<<13);l=(a+=Math.imul(d,$))+(i>>>13)+(he>>>26),he&=67108863,r=Math.imul(h,F),i=Math.imul(h,z),i+=Math.imul(_,F),a=Math.imul(_,z),r+=Math.imul(m,H),i+=Math.imul(m,$),i+=Math.imul(y,H),a+=Math.imul(y,$),r+=Math.imul(u,q),i+=Math.imul(u,W);var _e=l+r+((8191&(i+=Math.imul(d,q)))<<13);l=(a+=Math.imul(d,W))+(i>>>13)+(_e>>>26),_e&=67108863,r=Math.imul(v,F),i=Math.imul(v,z),i+=Math.imul(T,F),a=Math.imul(T,z),r+=Math.imul(h,H),i+=Math.imul(h,$),i+=Math.imul(_,H),a+=Math.imul(_,$),r+=Math.imul(m,q),i+=Math.imul(m,W),i+=Math.imul(y,q),a+=Math.imul(y,W),r+=Math.imul(u,Q),i+=Math.imul(u,Z);var be=l+r+((8191&(i+=Math.imul(d,Q)))<<13);l=(a+=Math.imul(d,Z))+(i>>>13)+(be>>>26),be&=67108863,r=Math.imul(S,F),i=Math.imul(S,z),i+=Math.imul(M,F),a=Math.imul(M,z),r+=Math.imul(v,H),i+=Math.imul(v,$),i+=Math.imul(T,H),a+=Math.imul(T,$),r+=Math.imul(h,q),i+=Math.imul(h,W),i+=Math.imul(_,q),a+=Math.imul(_,W),r+=Math.imul(m,Q),i+=Math.imul(m,Z),i+=Math.imul(y,Q),a+=Math.imul(y,Z),r+=Math.imul(u,X),i+=Math.imul(u,ee);var ve=l+r+((8191&(i+=Math.imul(d,X)))<<13);l=(a+=Math.imul(d,ee))+(i>>>13)+(ve>>>26),ve&=67108863,r=Math.imul(D,F),i=Math.imul(D,z),i+=Math.imul(C,F),a=Math.imul(C,z),r+=Math.imul(S,H),i+=Math.imul(S,$),i+=Math.imul(M,H),a+=Math.imul(M,$),r+=Math.imul(v,q),i+=Math.imul(v,W),i+=Math.imul(T,q),a+=Math.imul(T,W),r+=Math.imul(h,Q),i+=Math.imul(h,Z),i+=Math.imul(_,Q),a+=Math.imul(_,Z),r+=Math.imul(m,X),i+=Math.imul(m,ee),i+=Math.imul(y,X),a+=Math.imul(y,ee),r+=Math.imul(u,ne),i+=Math.imul(u,re);var Te=l+r+((8191&(i+=Math.imul(d,ne)))<<13);l=(a+=Math.imul(d,re))+(i>>>13)+(Te>>>26),Te&=67108863,r=Math.imul(x,F),i=Math.imul(x,z),i+=Math.imul(A,F),a=Math.imul(A,z),r+=Math.imul(D,H),i+=Math.imul(D,$),i+=Math.imul(C,H),a+=Math.imul(C,$),r+=Math.imul(S,q),i+=Math.imul(S,W),i+=Math.imul(M,q),a+=Math.imul(M,W),r+=Math.imul(v,Q),i+=Math.imul(v,Z),i+=Math.imul(T,Q),a+=Math.imul(T,Z),r+=Math.imul(h,X),i+=Math.imul(h,ee),i+=Math.imul(_,X),a+=Math.imul(_,ee),r+=Math.imul(m,ne),i+=Math.imul(m,re),i+=Math.imul(y,ne),a+=Math.imul(y,re),r+=Math.imul(u,ae),i+=Math.imul(u,fe);var Ie=l+r+((8191&(i+=Math.imul(d,ae)))<<13);l=(a+=Math.imul(d,fe))+(i>>>13)+(Ie>>>26),Ie&=67108863,r=Math.imul(k,F),i=Math.imul(k,z),i+=Math.imul(N,F),a=Math.imul(N,z),r+=Math.imul(x,H),i+=Math.imul(x,$),i+=Math.imul(A,H),a+=Math.imul(A,$),r+=Math.imul(D,q),i+=Math.imul(D,W),i+=Math.imul(C,q),a+=Math.imul(C,W),r+=Math.imul(S,Q),i+=Math.imul(S,Z),i+=Math.imul(M,Q),a+=Math.imul(M,Z),r+=Math.imul(v,X),i+=Math.imul(v,ee),i+=Math.imul(T,X),a+=Math.imul(T,ee),r+=Math.imul(h,ne),i+=Math.imul(h,re),i+=Math.imul(_,ne),a+=Math.imul(_,re),r+=Math.imul(m,ae),i+=Math.imul(m,fe),i+=Math.imul(y,ae),a+=Math.imul(y,fe),r+=Math.imul(u,oe),i+=Math.imul(u,le);var Se=l+r+((8191&(i+=Math.imul(d,oe)))<<13);l=(a+=Math.imul(d,le))+(i>>>13)+(Se>>>26),Se&=67108863,r=Math.imul(O,F),i=Math.imul(O,z),i+=Math.imul(P,F),a=Math.imul(P,z),r+=Math.imul(k,H),i+=Math.imul(k,$),i+=Math.imul(N,H),a+=Math.imul(N,$),r+=Math.imul(x,q),i+=Math.imul(x,W),i+=Math.imul(A,q),a+=Math.imul(A,W),r+=Math.imul(D,Q),i+=Math.imul(D,Z),i+=Math.imul(C,Q),a+=Math.imul(C,Z),r+=Math.imul(S,X),i+=Math.imul(S,ee),i+=Math.imul(M,X),a+=Math.imul(M,ee),r+=Math.imul(v,ne),i+=Math.imul(v,re),i+=Math.imul(T,ne),a+=Math.imul(T,re),r+=Math.imul(h,ae),i+=Math.imul(h,fe),i+=Math.imul(_,ae),a+=Math.imul(_,fe),r+=Math.imul(m,oe),i+=Math.imul(m,le),i+=Math.imul(y,oe),a+=Math.imul(y,le),r+=Math.imul(u,ue),i+=Math.imul(u,de);var Me=l+r+((8191&(i+=Math.imul(d,ue)))<<13);l=(a+=Math.imul(d,de))+(i>>>13)+(Me>>>26),Me&=67108863,r=Math.imul(j,F),i=Math.imul(j,z),i+=Math.imul(U,F),a=Math.imul(U,z),r+=Math.imul(O,H),i+=Math.imul(O,$),i+=Math.imul(P,H),a+=Math.imul(P,$),r+=Math.imul(k,q),i+=Math.imul(k,W),i+=Math.imul(N,q),a+=Math.imul(N,W),r+=Math.imul(x,Q),i+=Math.imul(x,Z),i+=Math.imul(A,Q),a+=Math.imul(A,Z),r+=Math.imul(D,X),i+=Math.imul(D,ee),i+=Math.imul(C,X),a+=Math.imul(C,ee),r+=Math.imul(S,ne),i+=Math.imul(S,re),i+=Math.imul(M,ne),a+=Math.imul(M,re),r+=Math.imul(v,ae),i+=Math.imul(v,fe),i+=Math.imul(T,ae),a+=Math.imul(T,fe),r+=Math.imul(h,oe),i+=Math.imul(h,le),i+=Math.imul(_,oe),a+=Math.imul(_,le),r+=Math.imul(m,ue),i+=Math.imul(m,de),i+=Math.imul(y,ue),a+=Math.imul(y,de),r+=Math.imul(u,me),i+=Math.imul(u,ye);var Ee=l+r+((8191&(i+=Math.imul(d,me)))<<13);l=(a+=Math.imul(d,ye))+(i>>>13)+(Ee>>>26),Ee&=67108863,r=Math.imul(j,H),i=Math.imul(j,$),i+=Math.imul(U,H),a=Math.imul(U,$),r+=Math.imul(O,q),i+=Math.imul(O,W),i+=Math.imul(P,q),a+=Math.imul(P,W),r+=Math.imul(k,Q),i+=Math.imul(k,Z),i+=Math.imul(N,Q),a+=Math.imul(N,Z),r+=Math.imul(x,X),i+=Math.imul(x,ee),i+=Math.imul(A,X),a+=Math.imul(A,ee),r+=Math.imul(D,ne),i+=Math.imul(D,re),i+=Math.imul(C,ne),a+=Math.imul(C,re),r+=Math.imul(S,ae),i+=Math.imul(S,fe),i+=Math.imul(M,ae),a+=Math.imul(M,fe),r+=Math.imul(v,oe),i+=Math.imul(v,le),i+=Math.imul(T,oe),a+=Math.imul(T,le),r+=Math.imul(h,ue),i+=Math.imul(h,de),i+=Math.imul(_,ue),a+=Math.imul(_,de),r+=Math.imul(m,me),i+=Math.imul(m,ye);var De=l+r+((8191&(i+=Math.imul(y,me)))<<13);l=(a+=Math.imul(y,ye))+(i>>>13)+(De>>>26),De&=67108863,r=Math.imul(j,q),i=Math.imul(j,W),i+=Math.imul(U,q),a=Math.imul(U,W),r+=Math.imul(O,Q),i+=Math.imul(O,Z),i+=Math.imul(P,Q),a+=Math.imul(P,Z),r+=Math.imul(k,X),i+=Math.imul(k,ee),i+=Math.imul(N,X),a+=Math.imul(N,ee),r+=Math.imul(x,ne),i+=Math.imul(x,re),i+=Math.imul(A,ne),a+=Math.imul(A,re),r+=Math.imul(D,ae),i+=Math.imul(D,fe),i+=Math.imul(C,ae),a+=Math.imul(C,fe),r+=Math.imul(S,oe),i+=Math.imul(S,le),i+=Math.imul(M,oe),a+=Math.imul(M,le),r+=Math.imul(v,ue),i+=Math.imul(v,de),i+=Math.imul(T,ue),a+=Math.imul(T,de),r+=Math.imul(h,me),i+=Math.imul(h,ye);var Ce=l+r+((8191&(i+=Math.imul(_,me)))<<13);l=(a+=Math.imul(_,ye))+(i>>>13)+(Ce>>>26),Ce&=67108863,r=Math.imul(j,Q),i=Math.imul(j,Z),i+=Math.imul(U,Q),a=Math.imul(U,Z),r+=Math.imul(O,X),i+=Math.imul(O,ee),i+=Math.imul(P,X),a+=Math.imul(P,ee),r+=Math.imul(k,ne),i+=Math.imul(k,re),i+=Math.imul(N,ne),a+=Math.imul(N,re),r+=Math.imul(x,ae),i+=Math.imul(x,fe),i+=Math.imul(A,ae),a+=Math.imul(A,fe),r+=Math.imul(D,oe),i+=Math.imul(D,le),i+=Math.imul(C,oe),a+=Math.imul(C,le),r+=Math.imul(S,ue),i+=Math.imul(S,de),i+=Math.imul(M,ue),a+=Math.imul(M,de),r+=Math.imul(v,me),i+=Math.imul(v,ye);var we=l+r+((8191&(i+=Math.imul(T,me)))<<13);l=(a+=Math.imul(T,ye))+(i>>>13)+(we>>>26),we&=67108863,r=Math.imul(j,X),i=Math.imul(j,ee),i+=Math.imul(U,X),a=Math.imul(U,ee),r+=Math.imul(O,ne),i+=Math.imul(O,re),i+=Math.imul(P,ne),a+=Math.imul(P,re),r+=Math.imul(k,ae),i+=Math.imul(k,fe),i+=Math.imul(N,ae),a+=Math.imul(N,fe),r+=Math.imul(x,oe),i+=Math.imul(x,le),i+=Math.imul(A,oe),a+=Math.imul(A,le),r+=Math.imul(D,ue),i+=Math.imul(D,de),i+=Math.imul(C,ue),a+=Math.imul(C,de),r+=Math.imul(S,me),i+=Math.imul(S,ye);var xe=l+r+((8191&(i+=Math.imul(M,me)))<<13);l=(a+=Math.imul(M,ye))+(i>>>13)+(xe>>>26),xe&=67108863,r=Math.imul(j,ne),i=Math.imul(j,re),i+=Math.imul(U,ne),a=Math.imul(U,re),r+=Math.imul(O,ae),i+=Math.imul(O,fe),i+=Math.imul(P,ae),a+=Math.imul(P,fe),r+=Math.imul(k,oe),i+=Math.imul(k,le),i+=Math.imul(N,oe),a+=Math.imul(N,le),r+=Math.imul(x,ue),i+=Math.imul(x,de),i+=Math.imul(A,ue),a+=Math.imul(A,de),r+=Math.imul(D,me),i+=Math.imul(D,ye);var Ae=l+r+((8191&(i+=Math.imul(C,me)))<<13);l=(a+=Math.imul(C,ye))+(i>>>13)+(Ae>>>26),Ae&=67108863,r=Math.imul(j,ae),i=Math.imul(j,fe),i+=Math.imul(U,ae),a=Math.imul(U,fe),r+=Math.imul(O,oe),i+=Math.imul(O,le),i+=Math.imul(P,oe),a+=Math.imul(P,le),r+=Math.imul(k,ue),i+=Math.imul(k,de),i+=Math.imul(N,ue),a+=Math.imul(N,de),r+=Math.imul(x,me),i+=Math.imul(x,ye);var Le=l+r+((8191&(i+=Math.imul(A,me)))<<13);l=(a+=Math.imul(A,ye))+(i>>>13)+(Le>>>26),Le&=67108863,r=Math.imul(j,oe),i=Math.imul(j,le),i+=Math.imul(U,oe),a=Math.imul(U,le),r+=Math.imul(O,ue),i+=Math.imul(O,de),i+=Math.imul(P,ue),a+=Math.imul(P,de),r+=Math.imul(k,me),i+=Math.imul(k,ye);var ke=l+r+((8191&(i+=Math.imul(N,me)))<<13);l=(a+=Math.imul(N,ye))+(i>>>13)+(ke>>>26),ke&=67108863,r=Math.imul(j,ue),i=Math.imul(j,de),i+=Math.imul(U,ue),a=Math.imul(U,de),r+=Math.imul(O,me),i+=Math.imul(O,ye);var Ne=l+r+((8191&(i+=Math.imul(P,me)))<<13);l=(a+=Math.imul(P,ye))+(i>>>13)+(Ne>>>26),Ne&=67108863,r=Math.imul(j,me),i=Math.imul(j,ye);var Re=l+r+((8191&(i+=Math.imul(U,me)))<<13);return l=(a=Math.imul(U,ye))+(i>>>13)+(Re>>>26),Re&=67108863,o[0]=ge,o[1]=he,o[2]=_e,o[3]=be,o[4]=ve,o[5]=Te,o[6]=Ie,o[7]=Se,o[8]=Me,o[9]=Ee,o[10]=De,o[11]=Ce,o[12]=we,o[13]=xe,o[14]=Ae,o[15]=Le,o[16]=ke,o[17]=Ne,o[18]=Re,0!==l&&(o[19]=l,n.length++),n}},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(198),a=n(467),f=n(468);function s(){this.x=i.fromBuffer(r.from("79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","hex")),this.y=i.fromBuffer(r.from("483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8","hex")),this.inf=!1,this._precompute()}s.prototype._precompute=function(){for(var e=new a(this.x,this.y),t=new Array(1+Math.ceil(64.25)),n=t[0]=e,r=1;r=l;u--)c=(c<<1)+i[u];o.push(c)}for(var d=new f(null,null,null),p=new f(null,null,null),m=s;m>0;m--){for(var y=0;y=0;c--){for(var u=0;c>=0&&(l[0]=0|s[0][c],l[1]=0|s[1][c],0===l[0]&&0===l[1]);++u,--c);if(c>=0&&(u+=1),o=o.dblp(u),c<0)break;for(var d=0;d<2;d++){var p,m=l[d];0!==m&&(m>0?p=a[d][m>>1]:m<0&&(p=a[d][-m>>1].neg()),o=void 0===p.z?o.mixedAdd(p):o.add(p))}}return o},e.exports=new s},function(e,t,n){"use strict";(function(t){const r=n(1280),i=n(431),a={"AES-128":{ivSize:16,keySize:16},"AES-256":{ivSize:16,keySize:32},Blowfish:{ivSize:8,cipherKeySize:32}};e.exports=((e,n,f,s)=>{const o=a[e];if(!o)return s(new Error("unkown cipherType passed"));if(!n)return s(new Error("unkown hashType passed"));const l=o.keySize,c=o.ivSize,u=t.from("key expansion"),d=2*(c+l+20);i.create(n,f,(e,n)=>{if(e)return s(e);n.digest(u,(e,i)=>{if(e)return s(e);let a=[],f=0;r(()=>f{if(t)return e(t);let s=r.length;f+s>d&&(s=d-f),a.push(r),f+=s,n.digest(i,(t,n)=>{if(t)return e(t);i=n,e()})})},function(e){if(e)return s(e);const n=d/2,r=t.concat(a),i=r.slice(0,n),f=r.slice(n,d),o=e=>({iv:e.slice(0,c),cipherKey:e.slice(c,c+l),macKey:e.slice(c+l)});s(null,{k1:o(i),k2:o(f)})})})})})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n=(0,a.default)(n||r.default);var s=(0,f.default)(t);if(!e())return n(null);var o=function(t){if(t)return n(t);if(e())return s(o);var r=(0,i.default)(arguments,1);n.apply(null,[null].concat(r))};s(o)};var r=s(n(261)),i=s(n(184)),a=s(n(264)),f=s(n(265));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";const r=n(1282);e.exports=((e,t)=>{r.generateEphmeralKeyPair(e,t)})},function(e,t,n){"use strict";(function(e){const r=n(283)(),i=n(282),a=n(122).bignum,f=n(461),s=f.toBase64,o=f.toBn,l={"P-256":256,"P-384":384,"P-521":521};t.generateEphmeralKeyPair=function(t,n){i(r.subtle.generateKey({name:"ECDH",namedCurve:t},!0,["deriveBits"]).then(n=>{const f=(f,o,c)=>{let d;"function"==typeof o&&(c=o,o=void 0),d=o?r.subtle.importKey("jwk",function(e,t){const n=u(e,t.public);return n.d=s(new a(t.private)),n}(t,o),{name:"ECDH",namedCurve:t},!1,["deriveBits"]):Promise.resolve(n.privateKey);const p=Promise.all([r.subtle.importKey("jwk",u(t,f),{name:"ECDH",namedCurve:t},!1,[]),d]);i(p.then(e=>r.subtle.deriveBits({name:"ECDH",namedCurve:t,public:e[0]},e[1],l[t])).then(t=>e.from(t)),c)};return r.subtle.exportKey("jwk",n.publicKey).then(t=>({key:function(t){const n=c[t.crv];return e.concat([e.from([4]),o(t.x).toArrayLike(e,"be",n),o(t.y).toArrayLike(e,"be",n)],1+2*n)}(t),genSharedKey:f}))}),n)};const c={"P-256":32,"P-384":48,"P-521":66};function u(t,n){const r=c[t];if(!n.slice(0,1).equals(e.from([4])))throw new Error("Invalid key format");const i=new a(n.slice(1,r+1)),f=new a(n.slice(1+r));return{kty:"EC",crv:t,x:s(i,r),y:s(f,r),ext:!0}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(286),i={sha1:"sha1","sha2-256":"sha256","sha2-512":"sha512"};e.exports=function(e,t,n,a,f){const s=i[f];if(!s)throw new Error(`Hash '${f}' is unknown or not supported`);const o=r.pkcs5.pbkdf2(e,t,n,a,s);return r.util.encode64(o)}},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e({path:"swarm/connect",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e({path:"swarm/disconnect",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3),i=n(1287),a=n(281),f=n(117);e.exports=(e=>r((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"swarm/addrs",qs:t},(e,t)=>{if(e)return n(e);const r=Object.keys(t.Addrs).map(e=>{const n=new i(a.createFromB58String(e));return t.Addrs[e].forEach(e=>{n.multiaddrs.add(f(e))}),n});n(null,r)})}))},function(e,t,n){"use strict";const r=n(281),i=n(470).ensureMultiaddr,a=n(1288),f=n(189);class s{constructor(e){f(e,"Missing peerId. Use Peer.create(cb) to create one"),this.id=e,this.multiaddrs=new a,this.protocols=new Set,this._connectedMultiaddr=void 0}connect(e){if(e=i(e),!this.multiaddrs.has(e)&&e.toString()!==`/ipfs/${this.id.toB58String()}`)throw new Error("can't be connected to missing multiaddr from set");this._connectedMultiaddr=e}disconnect(){this._connectedMultiaddr=void 0}isConnected(){return this._connectedMultiaddr}}s.create=((e,t)=>{if("function"==typeof e)return t=e,e=null,void r.create((e,n)=>{if(e)return t(e);t(null,new s(n))});"function"==typeof e.toJSON?t(null,new s(e)):r.createFromJSON(e,(e,n)=>t(e,new s(n)))}),s.isPeerInfo=(e=>Boolean("object"==typeof e&&e.id&&e.multiaddrs)),e.exports=s},function(e,t,n){"use strict";const r=n(470).ensureMultiaddr,i=n(1289);e.exports=class{constructor(e){this._multiaddrs=e||[],this._observedMultiaddrs=[]}add(e){e=r(e),this.has(e)||this._multiaddrs.push(e)}addSafe(e){e=r(e),this._observedMultiaddrs.some((t,n)=>{if(t.equals(e))return this.add(e),this._observedMultiaddrs.splice(n,1),!0})||this._observedMultiaddrs.push(e)}toArray(){return this._multiaddrs.slice()}get size(){return this._multiaddrs.length}forEach(e){return this._multiaddrs.forEach(e)}has(e){return e=r(e),this._multiaddrs.some(t=>t.equals(e))}delete(e){e=r(e),this._multiaddrs.some((t,n)=>{if(t.equals(e))return this._multiaddrs.splice(n,1),!0})}replace(e,t){Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),e.forEach(e=>this.delete(e)),t.forEach(e=>this.add(e))}clear(){this._multiaddrs=[]}distinct(){return i(this._multiaddrs,e=>[e.toOptions().port,e.toOptions().transport].join())}}},function(e,t,n){(function(e,n){var r=200,i="Expected a function",a="__lodash_hash_undefined__",f=1,s=2,o=1/0,l=9007199254740991,c="[object Arguments]",u="[object Array]",d="[object Boolean]",p="[object Date]",m="[object Error]",y="[object Function]",g="[object GeneratorFunction]",h="[object Map]",_="[object Number]",b="[object Object]",v="[object RegExp]",T="[object Set]",I="[object String]",S="[object Symbol]",M="[object ArrayBuffer]",E="[object DataView]",D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,w=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,L=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[c]=N[u]=N[M]=N[d]=N[E]=N[p]=N[m]=N[y]=N[h]=N[_]=N[b]=N[v]=N[T]=N[I]=N["[object WeakMap]"]=!1;var R="object"==typeof e&&e&&e.Object===Object&&e,O="object"==typeof self&&self&&self.Object===Object&&self,P=R||O||Function("return this")(),B="object"==typeof t&&t&&!t.nodeType&&t,j=B&&"object"==typeof n&&n&&!n.nodeType&&n,U=j&&j.exports===B&&R.process,Y=function(){try{return U&&U.binding("util")}catch(e){}}(),F=Y&&Y.isTypedArray;function z(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var i=e.length,a=n+(r?1:-1);for(;r?a--:++a-1}function V(e,t,n){for(var r=-1,i=e?e.length:0;++r-1},we.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(me||we),string:new Ce}},xe.prototype.delete=function(e){return Ve(this,e).delete(e)},xe.prototype.get=function(e){return Ve(this,e).get(e)},xe.prototype.has=function(e){return Ve(this,e).has(e)},xe.prototype.set=function(e,t){return Ve(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,a),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.clear=function(){this.__data__=new we},Le.prototype.delete=function(e){return this.__data__.delete(e)},Le.prototype.get=function(e){return this.__data__.get(e)},Le.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var i=n.__data__;if(!me||i.lengthl))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,p=!0,m=i&f?new Ae:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=l}function ft(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ot(e){return"symbol"==typeof e||st(e)&&fe.call(e)==S}var lt=F?function(e){return function(t){return e(t)}}(F):function(e){return st(e)&&at(e.length)&&!!N[fe.call(e)]};function ct(e){return rt(e)?ke(e):Ue(e)}function ut(e){return e}n.exports=function(e,t){return e&&e.length?function(e,t,n){var i=-1,a=z,f=e.length,s=!0,o=[],l=o;if(n)s=!1,a=V;else if(f>=r){var c=t?null:Fe(e);if(c)return K(c);s=!1,a=G,l=new Ae}else l=t?[]:o;e:for(;++ir((t,n)=>{"function"==typeof t&&(n=t,t={}),e({path:"swarm/addrs/local",qs:t},(e,t)=>{if(e)return n(e);n(null,t.Strings.map(e=>i(e)))})}))},function(e,t,n){"use strict";(function(t){const r=n(3),i=n(182),a=n(267),f=n(141),s=n(1292),o=n(1294),l=n(17),c=()=>new Error("pubsub is currently not supported when run in the browser");e.exports=(e=>{const n=l(e),u=new i,d={};return u.id=Math.random(),{subscribe:(e,t,n,r)=>{const i={discover:!1};return"function"==typeof t&&(r=n,n=t,t=i),t||(t=i),f?r?void p(e,t,n,r):new Promise((r,i)=>{p(e,t,n,e=>{if(e)return i(e);r()})}):r?r(c()):Promise.reject(c())},unsubscribe:(e,t)=>{if(!f)throw c();if(0===u.listenerCount(e)||!d[e])throw new Error(`Not subscribed to '${e}'`);u.removeListener(e,t),0===u.listenerCount(e)&&(d[e].abort(),d[e]=null)},publish:r((e,r,i)=>{if(!f)return i(c());if(!t.isBuffer(r))return i(new Error("data must be a Buffer"));n({path:"pubsub/pub",args:[e,r]},i)}),ls:r(e=>{if(!f)return e(c());n.andTransform({path:"pubsub/ls"},o,e)}),peers:r((e,t)=>{if(!f)return t(c());const r={path:"pubsub/peers",args:[e]};n.andTransform(r,o,t)}),setMaxListeners:e=>u.setMaxListeners(e)};function p(e,t,r,i){if(u.on(e,r),d[e])return i();const f={path:"pubsub/sub",args:[e],qs:{discover:t.discover}};d[e]=n.andTransform(f,s.from,(t,n)=>{if(t)return d[e]=null,u.removeListener(e,r),i(t);n.on("data",t=>{u.emit(e,t)}),n.on("error",e=>{u.emit("error",e)}),a(n,t=>{t&&u.emit("error",t),d[e]=null,u.removeListener(e,r)}),i()})}})}).call(t,n(2).Buffer)},function(e,t,n){"use strict";const r=n(26).Transform,i=n(1293);class a extends r{constructor(e){super(Object.assign(e||{},{objectMode:!0}))}static from(e,t){let n=e.pipe(new a);e.on("end",()=>n.emit("end")),t(null,n)}_transform(e,t,n){if(0===Object.keys(e).length)return n();try{const t=i.deserialize(e,"base64");this.push(t),n()}catch(e){return n(e)}}}e.exports=a},function(e,t,n){"use strict";(function(t){const r=n(50);function i(e){if(!function(e){return e&&e.from&&e.seqno&&e.data&&(e.topicIDs||e.topicCIDs)}(e))throw new Error("Not a pubsub message");return{from:r.encode(t.from(e.from,"base64")).toString(),seqno:t.from(e.seqno,"base64"),data:t.from(e.data,"base64"),topicIDs:e.topicIDs||e.topicCIDs}}e.exports={deserialize(e,t){if("json"===(t=t?t.toLowerCase():"json"))return function(e){return i(JSON.parse(e))}(e);if("base64"===t)return i(e);throw new Error(`Unsupported encoding: '${t}'`)}}}).call(t,n(2).Buffer)},function(e,t,n){"use strict";e.exports=function(e,t){t(null,e.Strings||[])}},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return{apply:r((e,n)=>{"function"==typeof e&&(n=e,e={}),t({path:"update",qs:e},n)}),check:r((e,n)=>{"function"==typeof e&&(n=e,e={}),t({path:"update/check",qs:e},n)}),log:r((e,n)=>{"function"==typeof e&&(n=e,e={}),t({path:"update/log",qs:e},n)})}})},function(e,t,n){"use strict";const r=n(3),i=n(17);e.exports=(e=>{const t=i(e);return r((e,n)=>{"function"==typeof e&&(n=e,e={}),t({path:"version",qs:e},(e,t)=>{if(e)return n(e);const r={version:t.Version,commit:t.Commit,repo:t.Repo};n(null,r)})})})},function(e,t,n){"use strict";const r=n(3),i=n(17),a=function(e,t){t(null,e.Path)};e.exports=(e=>{const t=i(e);return r((e,n,r)=>{"function"==typeof n&&(r=n,n={}),t.andTransform({path:"dns",args:e,qs:n},a,r)})})},function(e,t,n){"use strict";const r=n(17);e.exports=(e=>{const t=r(e);return{add:n(259)(t),addReadableStream:n(394)(t),addPullStream:n(395)(t),cat:n(397)(t),catReadableStream:n(402)(t),catPullStream:n(403)(t),get:n(406)(t),getReadableStream:n(411)(t),getPullStream:n(412)(t),flush:n(1299)(t),cp:n(1300)(t),mkdir:n(1301)(t),stat:n(1302)(t),rm:n(1303)(t),ls:n(1304)(t),read:n(1305)(t),write:n(1306)(t),mv:n(1307)(t)}})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n)=>("function"==typeof t&&(n=t,t="/"),e({path:"files/flush",args:t},n))))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e({path:"files/cp",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e({path:"files/mkdir",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3),i=n(430),a=function(e,t){t(null,{type:e.Type,blocks:e.Blocks,size:e.Size,hash:e.Hash,cumulativeSize:e.CumulativeSize,withLocality:e.WithLocality||!1,local:e.Local||void 0,sizeLocal:e.SizeLocal||void 0})};e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),n=i.mapKeys(n,(e,t)=>i.kebabCase(t)),e.andTransform({path:"files/stat",args:t,qs:n},a,r)}))},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"!=typeof n||r||(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),e({path:"files/rm",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(3),i=function(e,t){t(null,(e.Entries||[]).map(e=>({name:e.Name,type:e.Type,size:e.Size,hash:e.Hash})))};e.exports=(e=>r((t,n,r)=>("function"==typeof n&&(r=n,n={}),e.andTransform({path:"files/ls",args:t,qs:n},i,r))))},function(e,t,n){"use strict";const r=n(3),i=n(53);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&(r=n,n={}),e.andTransform({path:"files/read",args:t,qs:n},i,r)}))},function(e,t,n){"use strict";const r=n(3),i=n(137),a=n(51),f=n(118),s=n(140);e.exports=(e=>{const t=s(e,"files/write");return r((e,n,r,s)=>{"function"!=typeof r||s||(s=r,r={}),"function"==typeof r&&"function"==typeof s&&(s=r,r={});const o=[].concat(n),l=a(s),c=t({qs:{args:e,qs:r,converter:f}}),u=i(e=>l(null,e));c.once("error",l),c.pipe(u),o.forEach(e=>c.write(e)),c.end()})})},function(e,t,n){"use strict";const r=n(3);e.exports=(e=>r((t,n,r)=>{"function"==typeof n&&void 0===r&&(r=n,n={}),e({path:"files/mv",args:t,qs:n},r)}))},function(e,t,n){"use strict";const r=n(141),i=n(3),a=n(275),f=n(118);e.exports=(e=>{const t=a(e,"add");return i((e,n,i)=>{if("function"==typeof n&&void 0===i&&(i=n,n={}),"function"==typeof n&&"function"==typeof i&&(i=n,n={}),!r)return i(new Error("fsAdd does not work in the browser"));if("string"!=typeof e)return i(new Error('"path" must be a string'));t(e,{qs:n,converter:f},i)})})},function(e,t,n){"use strict";const r=n(3),i=n(274).parse,a=n(421),f=n(275),s=n(118);e.exports=(e=>{const t=f(e,"add");return r((e,n,r)=>{if("function"==typeof n&&void 0===r&&(r=n,n={}),"function"==typeof n&&"function"==typeof r&&(r=n,n={}),!o(e))return r(new Error('"url" param must be an http(s) url'));l(e,n,t,r)})});const o=e=>"string"==typeof e&&e.startsWith("http"),l=(e,t,n,r)=>{a(i(e).protocol)(e,e=>{if(e.once("error",r),e.statusCode>=400)return r(new Error(`Failed to download with ${e.statusCode}`));const i=e.headers.location;if(e.statusCode>=300&&e.statusCode<400&&i){if(!o(i))return r(new Error("redirection url must be an http(s) url"));l(i,t,n,r)}else{n(e,{qs:t,converter:s},r)}}).end()}},function(e,t,n){var r=n(1311);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,"@import url(https://fonts.googleapis.com/css?family=Play);",""]),t.push([e.i,"body,\nhtml {\n font-family: 'Play', sans-serif;\n margin: 0;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\nbody {\n margin: 0;\n}\n.Chaingear_container {\n background: #eff3f6;\n min-height: 100vh;\n}\n.Chaingear_containerInner {\n width: 1090px;\n margin: 0 auto;\n padding-top: 65px;\n padding-bottom: 65px;\n}\n.Chaingear_paper {\n height: 100%;\n background: #fff;\n border-radius: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-box-shadow: 1px 5px 4px 0 rgba(0, 0, 0, 0.14);\n box-shadow: 1px 5px 4px 0 rgba(0, 0, 0, 0.14);\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n.Chaingear_titile {\n font-size: 24px;\n line-height: 24px;\n color: #7c7c7c;\n position: relative;\n padding-left: 20px;\n margin-bottom: 10px;\n margin-top: 0;\n -webkit-font-smoothing: antialiased;\n font-weight: normal;\n text-transform: uppercase;\n font-weight: bold;\n}\n.Chaingear_badge {\n background: #438cef;\n color: #fff;\n margin-left: 5px;\n margin-right: 5px;\n padding-left: 5px;\n padding-right: 5px;\n border-radius: 8px;\n vertical-align: middle;\n font-size: 20px;\n}\n.Chaingear_footerButton {\n display: block;\n border: 1px dashed #cbcbcb;\n background: #eff3f6;\n color: #000;\n text-decoration: none;\n text-transform: uppercase;\n text-align: center;\n padding: 15px;\n cursor: pointer;\n}\n.Chaingear_totalCost {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n margin-top: 30px;\n margin-bottom: 30px;\n}\n.Chaingear_addItemButton {\n display: block;\n width: 100%;\n background: #438cef;\n padding: 25px;\n font-size: 16px;\n}\n.Chaingear_addItemButtonText {\n color: #fff;\n display: inline-block;\n margin-right: 20px;\n text-transform: uppercase;\n}\n.Chaingear_section {\n margin-bottom: 50px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin-left: -15px;\n margin-right: -15px;\n}\n.Chaingear_sectionContent {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n padding-left: 15px;\n padding-right: 15px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.Chaingear_sectionTitle {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 20px;\n padding-left: 30px;\n color: #7c7c7c;\n line-height: 23px;\n margin-top: 40px;\n margin-bottom: 15px;\n text-transform: uppercase;\n -webkit-font-smoothing: antialiased;\n font-weight: normal;\n}\n.Chaingear_sectionTabContainer {\n width: 100%;\n padding-left: 15px;\n padding-right: 15px;\n}\n.Chaingear_centred {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n height: 100%;\n padding-top: 20px;\n padding-bottom: 20px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.Chaingear_button {\n padding: 10px;\n font-size: 14px;\n text-transform: uppercase;\n border-radius: 2px;\n border: none;\n color: #fff;\n background: #438cef;\n border: 1px solid #438cef;\n -webkit-box-shadow: 1px 5px 4px rgba(0, 0, 0, 0.14);\n box-shadow: 1px 5px 4px rgba(0, 0, 0, 0.14);\n display: inline-block;\n}\n.Chaingear_button.Chaingear_second {\n background-color: #03cba0;\n border: 1px solid #03cba0;\n}\n.Chaingear_fundContainer {\n width: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding-right: 30px;\n padding-left: 30px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.Chaingear_boxTitle {\n margin-top: 50px;\n margin-bottom: 30px;\n text-transform: uppercase;\n color: #2e3842;\n font-size: 14px;\n}\n",""]),t.locals={container:"Chaingear_container",containerInner:"Chaingear_containerInner",paper:"Chaingear_paper",titile:"Chaingear_titile",badge:"Chaingear_badge",footerButton:"Chaingear_footerButton",totalCost:"Chaingear_totalCost",addItemButton:"Chaingear_addItemButton",addItemButtonText:"Chaingear_addItemButtonText",section:"Chaingear_section",sectionContent:"Chaingear_sectionContent",sectionTitle:"Chaingear_sectionTitle",sectionTabContainer:"Chaingear_sectionTabContainer",centred:"Chaingear_centred",button:"Chaingear_button",second:"Chaingear_second",fundContainer:"Chaingear_fundContainer",boxTitle:"Chaingear_boxTitle"}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a)?e:(i=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Table=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(12));var i=n(1314);t.Table=function(e){var t=e.children;return r.createElement("table",{className:i.table},t)}},function(e,t,n){var r=n(1315);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".Table_table {\n width: 100%;\n border-collapse: collapse;\n}\n.Table_table thead {\n border-bottom: 1px solid #dedede;\n}\n.Table_table td,\n.Table_table th {\n padding-top: 20px;\n padding-bottom: 20px;\n text-align: center;\n font-size: 14px;\n}\n.Table_table th {\n color: #7c7c7c;\n font-weight: bold;\n border-bottom: 1px solid #dedede;\n}\n.Table_table td:first-child,\n.Table_table th:first-child {\n padding-left: 30px;\n text-align: left;\n}\n.Table_table td:last-child,\n.Table_table th:last-child {\n padding-right: 30px;\n}\n",""]),t.locals={table:"Table_table"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.Text=t.Container=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return i.createElement(a.Link,r({className:f.link},n),t)}},function(e,t,n){var r=n(1318);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".CallToAction_container {\n padding: 50px 80px;\n position: relative;\n}\n.CallToAction_container::after {\n content: '';\n display: block;\n clear: both;\n}\n.CallToAction_container::before {\n content: '';\n display: block;\n background: url("+n(1319)+");\n width: 260px;\n height: 200px;\n position: absolute;\n left: 30px;\n}\n.CallToAction_innerContainer {\n width: 70%;\n min-height: 200px;\n float: right;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.CallToAction_text {\n color: #438cef;\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 20px;\n}\n.CallToAction_link {\n background: #438cef;\n color: #fff;\n padding: 7px 18px;\n border-radius: 2px;\n text-transform: uppercase;\n text-decoration: none;\n}\n.CallToAction_link:hover {\n color: #fff;\n}\n",""]),t.locals={container:"CallToAction_container",innerContainer:"CallToAction_innerContainer",text:"CallToAction_text",link:"CallToAction_link"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjYwIiBoZWlnaHQ9IjE5MCIgdmlld0JveD0iMCAwIDI2MCAxOTAiPgogICAgPGRlZnM+CiAgICAgICAgPHJlY3QgaWQ9ImIiIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjI5OSIgeT0iNTgiIHJ4PSI0Ii8+CiAgICAgICAgPGZpbHRlciBpZD0iYSIgd2lkdGg9IjEwMS43JSIgaGVpZ2h0PSIxMDYlIiB4PSItLjglIiB5PSItMS41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4KICAgICAgICAgICAgPGZlT2Zmc2V0IGR4PSIxIiBkeT0iNSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPgogICAgICAgICAgICA8ZmVHYXVzc2lhbkJsdXIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIiBzdGREZXZpYXRpb249IjIiLz4KICAgICAgICAgICAgPGZlQ29sb3JNYXRyaXggaW49InNoYWRvd0JsdXJPdXRlcjEiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNDQ4NDI2MTggMCIvPgogICAgICAgIDwvZmlsdGVyPgogICAgPC9kZWZzPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBmaWxsPSIjRUZGM0Y2IiBkPSJNLTMwMS0yOTZIOTgwdjMwMDBILTMwMXoiLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzggLTExMikiPgogICAgICAgICAgICA8dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNhKSIgeGxpbms6aHJlZj0iI2IiLz4KICAgICAgICAgICAgPHVzZSBmaWxsPSIjRkZGIiB4bGluazpocmVmPSIjYiIvPgogICAgICAgIDwvZz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMiAtMSkiPgogICAgICAgICAgICA8cGF0aCBkPSJNMCAwaDI2NHYxOTBIMHoiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzOENFRiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNNzIuODY5IDE2Ny4wMDZoNTIuODIxdjE3LjY5OGgtMjAuMzY5Yy0xLjIwOCAwLTIuMDcxIDEuMDMxLTIuMDcxIDIuMDYyczEuMDM2IDIuMDYyIDIuMDcxIDIuMDYyaDY3Ljg0YzEuMjA4IDAgMi4wNzEtMS4wMyAyLjA3MS0yLjA2MiAwLTEuMDMtMS4wMzYtMi4wNjItMi4wNzEtMi4wNjJoLTIwLjM3di0xNy42OThoNTIuODIyYzMuMjggMCA1Ljg3LTIuNzUgNS44Ny02LjE4NlY3My4xODZjMC0uMzQ0IDAtLjg2LS4xNzMtMS4yMDMtLjE3My0uNjg3LS4zNDYtMS4zNzUtLjY5MS0xLjg5LTEuMDM2LTEuNzE4LTIuOTM0LTIuOTIxLTUuMDA2LTIuOTIxSDcyLjg3Yy0yLjA3MSAwLTMuOTcgMS4yMDMtNS4wMDYgMi45MjEtLjM0NS41MTUtLjUxOCAxLjIwMy0uNjkgMS44OSAwIC4zNDQtLjE3My44Ni0uMTczIDEuMjAzdjg3LjYzNGMwIDMuNDM2IDIuNzYyIDYuMTg2IDUuODY5IDYuMTg2em0wLTQuMjk2Yy0uODYzIDAtMS41NTQtLjg2LTEuNTU0LTEuODl2LTE0Ljc3OGgxMzUuODUydjE0Ljc3OGMwIDEuMDMtLjY5IDEuODktMS41NTQgMS44OUg3Mi44N3ptMTMyLjc0NC05MS40MTRjLjg2MyAwIDEuNTU0Ljg1OSAxLjU1NCAxLjg5djY4LjU2SDcxLjMxNXYtNjguNTZjMC0xLjAzMS42OTEtMS44OSAxLjU1NC0xLjg5aDEzMi43NDR6Ii8+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xMjkgMTY3aDIxdjE4aC0yMXpNOTcgNzdoODRWNjFIOTd6Ii8+CiAgICAgICAgICAgIDxnIGZpbGw9IiM0MzhDRUYiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTEyLjk4IDU1Ljg2OGwuMDUzLjAwMmgzMi4xMTdjMS4xOTEgMCAyLjE1Ni0uNzc5IDIuMTU2LTEuNzQgMC0uOTYtLjk2NS0xLjczOS0yLjE1Ni0xLjczOWgtMzIuMTE3Yy0xLjE5IDAtMi4xNTUuNzc5LTIuMTU1IDEuNzQgMCAuOTQ2LjkzNyAxLjcxNCAyLjEwMyAxLjczN3pNMTEwLjg3OCA2NC41NjVjMCAuOTYuOTYyIDEuNzQgMi4xNSAxLjc0aDUyLjk0NGMxLjE4OCAwIDIuMTUtLjc4IDIuMTUtMS43NHMtLjk2Mi0xLjczOS0yLjE1LTEuNzM5aC01Mi45NDRjLTEuMTg4IDAtMi4xNS43NzgtMi4xNSAxLjc0ek0xNjUuOTcyIDczLjI2aC01Mi45NDRjLS41NiAwLTEuMDcuMTc2LTEuNDUzLjQ2LS40MjguMzE4LS42OTcuNzczLS42OTcgMS4yOCAwIC45Ni45NjIgMS43NCAyLjE1IDEuNzRoNTIuOTQ0YzEuMTg4IDAgMi4xNS0uNzggMi4xNS0xLjc0IDAtLjUwNy0uMjctLjk2Mi0uNjk3LTEuMjhhMi40MzkgMi40MzkgMCAwIDAtMS40NTMtLjQ2ek0xNjUuOTcyIDgzLjY5NmgtNTIuOTQ0Yy0xLjE4OCAwLTIuMTUuNzc4LTIuMTUgMS43MzkgMCAuOTYuOTYyIDEuNzM5IDIuMTUgMS43MzloNTIuOTQ0YzEuMTg4IDAgMi4xNS0uNzc5IDIuMTUtMS43NCAwLS45Ni0uOTYyLTEuNzM4LTIuMTUtMS43Mzh6TTE2NS45NzIgOTQuMTNoLTUyLjk0NGMtLjU2IDAtMS4wNy4xNzYtMS40NTMuNDYtLjQyOC4zMTgtLjY5Ny43NzItLjY5NyAxLjI4IDAgLjk2Ljk2MiAxLjczOSAyLjE1IDEuNzM5aDUyLjk0NGMxLjE4OCAwIDIuMTUtLjc4IDIuMTUtMS43NCAwLS41MDctLjI3LS45NjEtLjY5Ny0xLjI3OWEyLjQzOSAyLjQzOSAwIDAgMC0xLjQ1My0uNDZ6TTE2NS45NzIgMTA0LjU2NWgtNTIuOTQ0Yy0xLjE4OCAwLTIuMTUuNzc5LTIuMTUgMS43MzkgMCAuOTYuOTYyIDEuNzQgMi4xNSAxLjc0aDUyLjk0NGMxLjE4OCAwIDIuMTUtLjc4IDIuMTUtMS43NHMtLjk2Mi0xLjczOS0yLjE1LTEuNzM5ek0xNjUuOTcyIDExNi43NGgtNTIuOTQ0Yy0xLjE4OCAwLTIuMTUuNzc4LTIuMTUgMS43MzhzLjk2MiAxLjc0IDIuMTUgMS43NGg1Mi45NDRjMS4xODggMCAyLjE1LS43OCAyLjE1LTEuNzRzLS45NjItMS43MzktMi4xNS0xLjczOXpNMTY1Ljk3MiAxMjcuMTc0aC01Mi45NDRjLS41NiAwLTEuMDcuMTc1LTEuNDUzLjQ2LS40MjguMzE4LS42OTcuNzcyLS42OTcgMS4yNzkgMCAuOTYuOTYyIDEuNzQgMi4xNSAxLjc0aDUyLjk0NGMxLjE4OCAwIDIuMTUtLjc4IDIuMTUtMS43NCAwLS41MDctLjI3LS45NjEtLjY5Ny0xLjI4YTIuNDQgMi40NCAwIDAgMC0xLjQ1My0uNDZ6Ii8+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTgxLjIxMiA1MC40NjRsLTMuNDA2LTMuMDkzLTguOTg3LTguMTYyLTQuMDQzLTMuNjcyYTIuMDkgMi4wOSAwIDAgMC0xLjI4My0uNTM3SDEwMi42NkM5OS41NCAzNSA5NyAzNy41NjIgOTcgNDAuNzEydjEwOC41NzZjMCAzLjE1IDIuNTQgNS43MTIgNS42NiA1LjcxMmg3My42OGMzLjEyMSAwIDUuNjYtMi41NjMgNS42Ni01LjcxMlY1Mi4wMThhMi4xMTUgMi4xMTUgMCAwIDAtLjc4OC0xLjU1NHptLTE1Ljc0Mi04LjU5Nmw4Ljk1OCA4LjEzNmgtOC45NTh2LTguMTM2em0xMi4zMzYgMTA3LjQyYzAgLjgyOS0uNjU3IDEuNTAzLTEuNDY1IDEuNTAzaC03My42OGMtLjgxIDAtMS40NjctLjY3NC0xLjQ2Ny0xLjUwM1Y0MC43MTJjMC0uODI5LjY1OC0xLjUwMyAxLjQ2Ni0xLjUwM2g1OC42MDN2MTIuOTFhMi4xMSAyLjExIDAgMCAwIDIuMTA0IDIuMTE2aDE0LjQ0djk1LjA1M3oiLz4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjRkZGIiBkPSJNOTAgMTYyaDk4di0xNkg5MHoiLz4KICAgICAgICAgICAgPGNpcmNsZSBjeD0iODYuNSIgY3k9IjEwLjUiIHI9IjguNSIgZmlsbD0iI0NCQ0JDQiIgb3BhY2l0eT0iLjQiLz4KICAgICAgICAgICAgPGNpcmNsZSBjeD0iMTkyLjUiIGN5PSIyNS41IiByPSIzLjUiIGZpbGw9IiNEOEQ4RDgiIG9wYWNpdHk9Ii40Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgY3g9IjI1Mi41IiBjeT0iMTE0LjUiIHI9IjguNSIgZmlsbD0iI0NCQ0JDQiIgb3BhY2l0eT0iLjQiLz4KICAgICAgICAgICAgPGNpcmNsZSBjeD0iMzEiIGN5PSIxMTgiIHI9IjYiIGZpbGw9IiNEOEQ4RDgiIG9wYWNpdHk9Ii40Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgY3g9IjEwIiBjeT0iMTgxIiByPSI3IiBmaWxsPSIjRDhEOEQ4IiBvcGFjaXR5PSIuNCIvPgogICAgICAgICAgICA8Y2lyY2xlIGN4PSI1NSIgY3k9IjE3MiIgcj0iNCIgZmlsbD0iI0NCQ0JDQiIgb3BhY2l0eT0iLjQiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&g>0&&g<=10&&!y;return a.default.createElement("div",null,a.default.createElement(l.default,{open:u,message:i,type:p,onClose:this.closeMessage}),a.default.createElement(c.PageTitle,null,"New registry creation"),a.default.createElement(c.ContainerRegister,null,a.default.createElement(c.SideBar,null,a.default.createElement(c.Label,null,"Input"),a.default.createElement(c.Panel,{title:"General Parameters"},a.default.createElement(c.Control,{title:"Name:"},a.default.createElement("input",{placeholder:"name",value:n,onChange:this.changeContractName})),a.default.createElement(c.Control,{title:"symbol:"},a.default.createElement("input",{ref:"symbol",defaultValue:"",placeholder:"symbol"}))),a.default.createElement(c.Panel,{title:"Record Structure",noPadding:!0},a.default.createElement(c.FieldsTable,null,a.default.createElement("thead",null,a.default.createElement("tr",null,a.default.createElement("th",null,"Name"),a.default.createElement("th",null,"Type"),a.default.createElement("th",null))),a.default.createElement("tbody",null,r.map(function(t){return a.default.createElement("tr",{key:t.name},a.default.createElement("td",null,t.name),a.default.createElement("td",null,t.type),a.default.createElement("td",null,a.default.createElement(c.RemoveButton,{onClick:function(){return e.remove(t.name)}},"remove")))}),a.default.createElement(s.default,{onAdd:this.add,fields:r}))),a.default.createElement(c.CreateButton,{disabled:!h,onClick:this.create},"create registry"))),a.default.createElement(c.Content,null,a.default.createElement(c.Label,{color:"#3fb990"},"Output"),a.default.createElement(o.default,null,m),"error"===p&&i&&a.default.createElement(c.ErrorMessage,null,i))))}}]),t}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n0&&!n;return f.default.createElement("tr",null,f.default.createElement("td",null,f.default.createElement("input",{value:t,onChange:this.changeName})),f.default.createElement("td",null,f.default.createElement("select",{ref:"type"},f.default.createElement("option",{value:"string"},"string"),f.default.createElement("option",{value:"bool"},"bool"),f.default.createElement("option",{value:"int256"},"int"),f.default.createElement("option",{value:"uint256"},"uint"))),f.default.createElement("td",null,f.default.createElement(s.AddButton,{onClick:this.add,disabled:!r},"add")))}}]),t}();t.default=l},function(e,t,n){var r=n(1328);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".newregistry_container2 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.newregistry_sideBar {\n width: 29%;\n}\n.newregistry_content {\n width: 68%;\n}\n.newregistry_fieldsTable {\n width: 100%;\n table-layout: fixed;\n font-size: 14px;\n padding: 30px;\n padding-bottom: 70px;\n padding-top: 20px;\n}\n.newregistry_fieldsTable th {\n font-weight: normal;\n text-transform: uppercase;\n}\n.newregistry_fieldsTable input {\n width: 100%;\n}\n.newregistry_fieldsTable tbody {\n border: 1px solid #dedede;\n}\n.newregistry_fieldsTable td,\n.newregistry_fieldsTable th {\n padding: 5px 10px;\n}\n.newregistry_fieldsTable th {\n text-align: left;\n}\n.newregistry_panel {\n background: #fff;\n border-radius: 4px;\n -webkit-box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.14);\n box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.14);\n margin-bottom: 20px;\n}\n.newregistry_panelTitle {\n padding: 30px;\n padding-bottom: 10px;\n border-bottom: 1px solid #dedede;\n color: #7c7c7c;\n font-size: 14px;\n font-weight: bold;\n}\n.newregistry_panelContent {\n padding: 30px;\n padding-top: 20px;\n}\n.newregistry_label {\n display: block;\n background: #438cef;\n color: #fff;\n border-radius: 2px;\n padding: 5px 15px;\n margin-bottom: 13px;\n}\n.newregistry_createButton {\n width: 100%;\n text-transform: uppercase;\n background: #438cef;\n color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);\n padding: 15px 30px;\n text-align: left;\n border: none;\n cursor: pointer;\n position: relative;\n text-align: center;\n}\n.newregistry_createButton[disabled] {\n opacity: 0.7;\n cursor: default;\n}\n.newregistry_control {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n margin-bottom: 15px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.newregistry_controlLabel {\n font-size: 14px;\n text-transform: uppercase;\n}\n.newregistry_controlComponent {\n width: 155px;\n}\n.newregistry_controlComponent input {\n width: 100%;\n padding: 6px 9px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.newregistry_pageTitle {\n font-size: 36px;\n line-height: 42px;\n color: #7c7c7c;\n position: relative;\n padding-left: 40px;\n margin-bottom: 40px;\n margin-top: 0;\n -webkit-font-smoothing: antialiased;\n font-weight: normal;\n}\n.newregistry_pageTitle::before {\n content: '';\n width: 39px;\n height: 2px;\n background: #7c7c7c;\n position: absolute;\n left: 0;\n top: 50%;\n -webkit-transform: rotate(-65deg);\n transform: rotate(-65deg);\n}\n.newregistry_removeButton {\n background: none;\n border: none;\n font-size: 70%;\n cursor: pointer;\n background: url("+n(1329)+") no-repeat left center;\n padding-left: 20px;\n}\n.newregistry_removeButton[disabled] {\n cursor: default;\n}\n.newregistry_addButton {\n cursor: pointer;\n background: none;\n border: none;\n font-size: 70%;\n background: url("+n(1330)+") no-repeat left center;\n background-size: 14px;\n padding-left: 20px;\n}\n.newregistry_addButton[disabled] {\n cursor: default;\n}\n.newregistry_errorMessage {\n background: red;\n margin-top: 10px;\n padding: 5px 15px;\n color: #fff;\n border-radius: 2px;\n}\n",""]),t.locals={container2:"newregistry_container2",sideBar:"newregistry_sideBar",content:"newregistry_content",fieldsTable:"newregistry_fieldsTable",panel:"newregistry_panel",panelTitle:"newregistry_panelTitle",panelContent:"newregistry_panelContent",label:"newregistry_label",createButton:"newregistry_createButton",control:"newregistry_control",controlLabel:"newregistry_controlLabel",controlComponent:"newregistry_controlComponent",pageTitle:"newregistry_pageTitle",removeButton:"newregistry_removeButton",addButton:"newregistry_addButton",errorMessage:"newregistry_errorMessage"}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTNweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTMgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogc2tldGNodG9vbCA1MC4yICg1NTA0NykgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+RjdDRkMyRTYtNURCRi00QTdDLTg5NDAtRTNCNDIzNDkxRDkzPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJSZWdpc3RlciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Ik5ldy1yZWdpc3RlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQxNC4wMDAwMDAsIC02NDIuMDAwMDAwKSIgZmlsbD0iIzQzOENFRiIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQxNC4wMDAwMDAsIDY0Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC0zIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iaWNfcmVtb3ZlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLjM1LDIuNjY2NjY2NjcgTDkuNzUsMi42NjY2NjY2NyBMOS43NSwyIEM5Ljc1LDAuODk1IDguODc3Mzc1LDAgNy44LDAgTDUuMiwwIEM0LjEyMjYyNSwwIDMuMjUsMC44OTUgMy4yNSwyIEwzLjI1LDIuNjY2NjY2NjcgTDAuNjUsMi42NjY2NjY2NyBDMC4yOTEwMTQ5MTMsMi42NjY2NjY2NyAwLDIuOTY1MTQzNSAwLDMuMzMzMzMzMzMgQzAsMy43MDE1MjMxNyAwLjI5MTAxNDkxMyw0IDAuNjUsNCBMMS4zLDQgTDEuMywxMiBDMS4zLDEzLjEwNSAyLjE3MjYyNSwxNCAzLjI1LDE0IEw5Ljc1LDE0IEMxMC44MjczNzUsMTQgMTEuNywxMy4xMDUgMTEuNywxMiBMMTEuNyw0IEwxMi4zNSw0IEMxMi43MDg5ODUxLDQgMTMsMy43MDE1MjMxNyAxMywzLjMzMzMzMzMzIEMxMywyLjk2NTE0MzUgMTIuNzA4OTg1MSwyLjY2NjY2NjY3IDEyLjM1LDIuNjY2NjY2NjcgWiBNNC41NSwyIEM0LjU1LDEuNjMxNjY2NjcgNC44NDA4NzUsMS4zMzMzMzMzMyA1LjIsMS4zMzMzMzMzMyBMNy44LDEuMzMzMzMzMzMgQzguMTU5MTI1LDEuMzMzMzMzMzMgOC40NSwxLjYzMTY2NjY3IDguNDUsMiBMOC40NSwyLjY2NjY2NjY3IEw0LjU1LDIuNjY2NjY2NjcgTDQuNTUsMiBaIE0xMC40LDEyIEMxMC40LDEyLjM2ODMzMzMgMTAuMTA5MTI1LDEyLjY2NjY2NjcgOS43NSwxMi42NjY2NjY3IEwzLjI1LDEyLjY2NjY2NjcgQzIuODkwODc1LDEyLjY2NjY2NjcgMi42LDEyLjM2ODMzMzMgMi42LDEyIEwyLjYsNCBMMTAuNCw0IEwxMC40LDEyIFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxOHB4IiB2aWV3Qm94PSIwIDAgMTcgMTgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogc2tldGNodG9vbCA1MC4yICg1NTA0NykgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+RTcxMzg4MTAtRjVBMi00QTI3LUEzODYtN0MwQThFNjgwODZFPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJSZWdpc3RlciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Ik5ldy1yZWdpc3RlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQxNC4wMDAwMDAsIC03NTkuMDAwMDAwKSIgZmlsbD0iIzQzOENFRiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC01IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MTQuMDAwMDAwLCA2NDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDExNy42MDk3NTYpIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iaWNfcGx1cyI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik04LjQ5NDIwOTYxLDAuMDg1NDQzNDc4MyBDMy44MDI4Nzc3MywwLjA4NTQ0MzQ3ODMgMCwzLjg3MjAwODcgMCw4LjU0MjcyMTc0IEMwLDEzLjIxMzY1NjUgMy44MDI4Nzc3MywxNyA4LjQ5NDIwOTYxLDE3IEMxMy4xODQ5NDc2LDE3IDE2Ljk4ODQxOTIsMTMuMjEzNjU2NSAxNi45ODg0MTkyLDguNTQyNzIxNzQgQzE2Ljk4NzgyNTMsMy44NzIwMDg3IDEzLjE4NDk0NzYsMC4wODU0NDM0NzgzIDguNDk0MjA5NjEsMC4wODU0NDM0NzgzIFogTTguNDk0MjA5NjEsMTUuNDE0MjY5NiBDNC42ODIzNDkzNCwxNS40MTQyNjk2IDEuNTkyNTgwNzksMTIuMzM3OTM0OCAxLjU5MjU4MDc5LDguNTQyNzIxNzQgQzEuNTkyNTgwNzksNC43NDc0MzQ3OCA0LjY4MjM0OTM0LDEuNjcxNjkxMyA4LjQ5NDIwOTYxLDEuNjcxNjkxMyBDMTIuMzA1NDc2LDEuNjcxNjkxMyAxNS4zOTU4Mzg0LDQuNzQ3NDM0NzggMTUuMzk1ODM4NCw4LjU0MjcyMTc0IEMxNS4zOTU4Mzg0LDEyLjMzNzkzNDggMTIuMzA1NDc2LDE1LjQxNDI2OTYgOC40OTQyMDk2MSwxNS40MTQyNjk2IFogTTExLjY4OTU0MTUsNy40ODU2OTEzIEw5LjU1NTI2MjAxLDcuNDg1NjkxMyBMOS41NTUyNjIwMSw1LjM3MTExMzA0IEM5LjU1NTI2MjAxLDUuMDc5NDUyMTcgOS4zMTc0ODQ3Miw0Ljg0MjcwODcgOS4wMjQ1NTAyMiw0Ljg0MjcwODcgTDcuOTYyNjgxMjIsNC44NDI3MDg3IEM3LjY2OTIyNzA3LDQuODQyNzA4NyA3LjQzMTk2OTQzLDUuMDc5NDUyMTcgNy40MzE5Njk0Myw1LjM3MTExMzA0IEw3LjQzMTk2OTQzLDcuNDg1NjkxMyBMNS4zMDkzNDQ5OCw3LjQ4NTY5MTMgQzUuMDE1Mjk2OTQsNy40ODU2OTEzIDQuNzc3NDQ1NDEsNy43MjI0MzQ3OCA0Ljc3NzQ0NTQxLDguMDE0MDIxNzQgTDQuNzc3NDQ1NDEsOS4wNzEzNDc4MyBDNC43Nzc0NDU0MSw5LjM2MzUyNjA5IDUuMDE1Mjk2OTQsOS41OTk2NzgyNiA1LjMwOTM0NDk4LDkuNTk5Njc4MjYgTDcuNDMyNTYzMzIsOS41OTk2NzgyNiBMNy40MzI1NjMzMiwxMS43MDkzNzgzIEM3LjQzMjU2MzMyLDEyLjAwMTAzOTEgNy42Njk3NDY3MiwxMi4yMzc0ODcgNy45NjMyNzUxMSwxMi4yMzc0ODcgTDkuMDI1MTQ0MSwxMi4yMzc0ODcgQzkuMzE4MDc4NiwxMi4yMzc0ODcgOS41NTU4NTU5LDEyLjAwMTAzOTEgOS41NTU4NTU5LDExLjcwOTM3ODMgTDkuNTU1ODU1OSw5LjU5OTY3ODI2IEwxMS42OTAxMzU0LDkuNTk5Njc4MjYgQzExLjk4NDE4MzQsOS41OTk2NzgyNiAxMi4yMjE5NjA3LDkuMzYzNTI2MDkgMTIuMjIxOTYwNyw5LjA3MTM0NzgzIEwxMi4yMjE5NjA3LDguMDE0MDIxNzQgQzEyLjIyMTY2MzgsNy43MjI3MzA0MyAxMS45ODMyOTI2LDcuNDg1NjkxMyAxMS42ODk1NDE1LDcuNDg1NjkxMyBaIiBpZD0icGx1cyI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0)for(var t=0;t]+>|\t|)+|(?:\n)))/gm,o="",l={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function c(e){return e.replace(/&/g,"&").replace(//g,">")}function u(e){return e.nodeName.toLowerCase()}function d(e,t){var n=e&&e.exec(t);return n&&0===n.index}function p(e){return a.test(e)}function m(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach(function(e){for(t in e)n[t]=e[t]}),n}function y(e){var t=[];return function e(n,r){for(var i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),u(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}function g(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function i(a,f){if(!a.compiled){if(a.compiled=!0,a.keywords=a.keywords||a.beginKeywords,a.keywords){var s={},o=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof a.keywords?o("keyword",a.keywords):n(a.keywords).forEach(function(e){o(e,a.keywords[e])}),a.keywords=s}a.lexemesRe=r(a.lexemes||/\w+/,!0),f&&(a.beginKeywords&&(a.begin="\\b("+a.beginKeywords.split(" ").join("|")+")\\b"),a.begin||(a.begin=/\B|\b/),a.beginRe=r(a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(a.endRe=r(a.end)),a.terminator_end=t(a.end)||"",a.endsWithParent&&f.terminator_end&&(a.terminator_end+=(a.end?"|":"")+f.terminator_end)),a.illegal&&(a.illegalRe=r(a.illegal)),null==a.relevance&&(a.relevance=1),a.contains||(a.contains=[]),a.contains=Array.prototype.concat.apply([],a.contains.map(function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return m(e,{variants:null},t)})),e.cached_variants||e.endsWithParent&&[m(e)]||[e]}("self"===e?a:e)})),a.contains.forEach(function(e){i(e,a)}),a.starts&&i(a.starts,f);var l=a.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([a.terminator_end,a.illegal]).map(t).filter(Boolean);a.terminators=l.length?r(l.join("|"),!0):{exec:function(){return null}}}}(e)}function h(e,t,n,i){function a(e,t){var n=m.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function f(e,t,n,r){var i='')+t+(n?"":o)}function s(){T+=null!=b.subLanguage?function(){var e="string"==typeof b.subLanguage;if(e&&!r[b.subLanguage])return c(S);var t=e?h(b.subLanguage,S,!0,v[b.subLanguage]):_(S,b.subLanguage.length?b.subLanguage:void 0);return b.relevance>0&&(M+=t.relevance),e&&(v[b.subLanguage]=t.top),f(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!b.keywords)return c(S);for(r="",t=0,b.lexemesRe.lastIndex=0,n=b.lexemesRe.exec(S);n;)r+=c(S.substring(t,n.index)),(e=a(b,n))?(M+=e[1],r+=f(e[0],c(n[0]))):r+=c(n[0]),t=b.lexemesRe.lastIndex,n=b.lexemesRe.exec(S);return r+c(S.substr(t))}(),S=""}function u(e){T+=e.className?f(e.className,"",!0):"",b=Object.create(e,{parent:{value:b}})}function p(e,t){if(S+=e,null==t)return s(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n")+'"');return S+=t,t.length||1}var m=I(e);if(!m)throw new Error('Unknown language: "'+e+'"');g(m);var y,b=i||m,v={},T="";for(y=b;y!==m;y=y.parent)y.className&&(T=f(y.className,"",!0)+T);var S="",M=0;try{for(var E,D,C=0;b.terminators.lastIndex=C,E=b.terminators.exec(t);)D=p(t.substring(C,E.index),E[0]),C=E.index+D;for(p(t.substr(C)),y=b;y.parent;y=y.parent)y.className&&(T+=o);return{relevance:M,value:T,language:e,top:b}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:c(t)};throw e}}function _(e,t){t=t||l.languages||n(r);var i={relevance:0,value:c(e)},a=i;return t.filter(I).forEach(function(t){var n=h(t,e,!1);n.language=t,n.relevance>a.relevance&&(a=n),n.relevance>i.relevance&&(a=i,i=n)}),a.language&&(i.second_best=a),i}function b(e){return l.tabReplace||l.useBR?e.replace(s,function(e,t){return l.useBR&&"\n"===e?"
":l.tabReplace?t.replace(/\t/g,l.tabReplace):""}):e}function v(e){var n,r,a,s,o,d=function(e){var t,n,r,i,a=e.className+" ";if(a+=e.parentNode?e.parentNode.className:"",n=f.exec(a))return I(n[1])?n[1]:"no-highlight";for(t=0,r=(a=a.split(/\s+/)).length;t/g,"\n"):n=e,o=n.textContent,a=d?h(d,o,!0):_(o),(r=y(n)).length&&((s=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=a.value,a.value=function(e,n,r){var i=0,a="",f=[];function s(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function l(e){a+=""}function d(e){("start"===e.event?o:l)(e.node)}for(;e.length||n.length;){var p=s();if(a+=c(r.substring(i,p[0].offset)),i=p[0].offset,p===e){f.reverse().forEach(l);do{d(p.splice(0,1)[0]),p=s()}while(p===e&&p.length&&p[0].offset===i);f.reverse().forEach(o)}else"start"===p[0].event?f.push(p[0].node):f.pop(),d(p.splice(0,1)[0])}return a+c(r.substr(i))}(r,y(s),o)),a.value=b(a.value),e.innerHTML=a.value,e.className=function(e,t,n){var r=t?i[t]:n,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}(e.className,d,a.language),e.result={language:a.language,re:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance}))}function T(){if(!T.called){T.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,v)}}function I(e){return e=(e||"").toLowerCase(),r[e]||r[i[e]]}return e.highlight=h,e.highlightAuto=_,e.fixMarkup=b,e.highlightBlock=v,e.configure=function(e){l=m(l,e)},e.initHighlighting=T,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",T,!1),addEventListener("load",T,!1)},e.registerLanguage=function(t,n){var a=r[t]=n(e);a.aliases&&a.aliases.forEach(function(e){i[e]=t})},e.listLanguages=function(){return n(r)},e.getLanguage=I,e.inherit=m,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e})},function(e,t){e.exports=function(e){var t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",r="null истина ложь неопределено",i=e.inherit(e.NUMBER_MODE),a={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},f={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},s=e.inherit(e.C_LINE_COMMENT_MODE);return{case_insensitive:!0,lexemes:t,keywords:{keyword:n,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:r},contains:[{className:"meta",lexemes:t,begin:"#|&",end:"$",keywords:{"meta-keyword":n+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[s]},{className:"function",lexemes:t,variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",lexemes:t,begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{keyword:"знач",literal:r},contains:[i,a,f]},s]},e.inherit(e.TITLE_MODE,{begin:t})]},s,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},i,a,f]}}},function(e,t){e.exports=function(e){var t="^[a-zA-Z][a-zA-Z0-9-]*",n="[!@#$^&',?+~`|:]",r=e.COMMENT(";","$"),i={begin:t+"\\s*=",returnBegin:!0,end:/=/,relevance:0,contains:[{className:"attribute",begin:t}]};return{illegal:n,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"].join(" "),contains:[i,r,{className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol",begin:/%[si]/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{contains:[{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+\\b",relevance:0},{className:"string",begin:'"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)',end:'"',keywords:"GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE",illegal:"\\n",relevance:10},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n"},{className:"string",begin:'"',end:'"',illegal:"\\n"}]}}},function(e,t){e.exports=function(e){var t={className:"rest_arg",begin:"[.]{3}",end:"[a-zA-Z_$][a-zA-Z0-9_$]*",relevance:10};return{aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:"{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t]},{begin:":\\s*([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)"}]},e.METHOD_GUARD],illegal:/#/}}},function(e,t){e.exports=function(e){var t="[A-Za-z](_?[A-Za-z0-9.])*",n=e.COMMENT("--","$"),r={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:"[]{}%#'\"",contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[n,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:"[]{}%#'\""},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[n,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:"[]{}%#'\""},r,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:"[]{}%#'\""}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:"[]{}%#'\""},r]}}},function(e,t){e.exports=function(e){var t={className:"number",begin:"[\\$%]\\d+"};return{aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:""},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",t]},t,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},function(e,t){e.exports=function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},r=e.COMMENT("--","$"),i=[r,e.COMMENT("\\(\\*","\\*\\)",{contains:["self",r]}),e.HASH_COMMENT_MODE];return{aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(i),illegal:"//|->|=>|\\[\\["}}},function(e,t){e.exports=function(e){var t={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},n={className:"string",variants:[{begin:'(u8?|U)?L?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},i={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a=e.IDENT_RE+"\\s*\\(",f={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},s=[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n];return{aliases:["c","cc","h","c++","h++","hpp"],keywords:f,illegal:"",keywords:f,contains:["self",t]},{begin:e.IDENT_RE+"::",keywords:f},{variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:f,contains:s.concat([{begin:/\(/,end:/\)/,keywords:f,contains:s.concat(["self"]),relevance:0}]),relevance:0},{className:"function",begin:"("+e.IDENT_RE+"[\\*&\\s]+)+"+a,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&]/,contains:[{begin:a,returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,t]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin://,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:i,strings:n,keywords:f}}}},function(e,t){e.exports=function(e){var t=e.getLanguage("cpp").exports;return{keywords:{keyword:"boolean byte word string String array "+t.keywords.keyword,built_in:"setup loop while catch for if do goto try switch case else default break continue return KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},contains:[t.preprocessor,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,aliases:["arm"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?",end:"\\s"},e.COMMENT("[;@]","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"[=#]\\w+"}],relevance:0}]}}},function(e,t){e.exports=function(e){var t={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},function(e,t){e.exports=function(e){return{aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,5}) .+?( \\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}},function(e,t){e.exports=function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance";return{keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" get set args call",excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:t+" get set args call",relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){var t={begin:"`[\\s\\S]"};return{case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"A|0 true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[{className:"built_in",begin:"A_[a-zA-Z0-9]+"},t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"subst",begin:"%(?=[a-zA-Z0-9#_$@])",end:"%",illegal:"[^a-zA-Z0-9#_$@]"},{className:"built_in",begin:"^\\s*\\w+\\s*,"},{className:"meta",begin:"^\\s*#w+",end:"$",relevance:0},{className:"symbol",contains:[t],variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{begin:",\\s*,"}]}}},function(e,t){e.exports=function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},r={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,r,i,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[r,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},r,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,r,i]}]}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,lexemes:"\\.?"+e.IDENT_RE,keywords:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{keywords:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}},function(e,t){e.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]};return{aliases:["sh","zsh"],lexemes:/\b-?[a-z\._]+\b/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,n,{className:"string",begin:/'/,end:/'/},t]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,illegal:"^.",lexemes:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keywords:{keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF|0 THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b([0-9]+[0-9edED.]*[#!]?)",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}},function(e,t){e.exports=function(e){return{contains:[{className:"attribute",begin://},{begin:/::=/,starts:{end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}]}}},function(e,t){e.exports=function(e){var t={className:"literal",begin:"[\\+\\-]",relevance:0};return{aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/\+\+|\-\-/,returnBegin:!0,contains:[t]},t]}}},function(e,t){e.exports=function(e){var t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},i={className:"string",begin:/(#\d+)+/},a={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,i]}].concat(n)},f={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,a]};return{case_insensitive:!0,keywords:{keyword:t,literal:"false true"},illegal:/\/\*/,contains:[r,i,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,f,a]}}},function(e,t){e.exports=function(e){return{aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}},function(e,t){e.exports=function(e){var t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},r=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[n]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return n.contains=r,{keywords:{keyword:t+" shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",meta:"doc by license see throws tagged"},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?:\\:"[^"]*")?'}].concat(r)}}},function(e,t){e.exports=function(e){return{aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|::|#!?|>>=|\\{\\||\\|\\}|:==|=:|\\.\\.|<>|`"}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n={begin:t,relevance:0},r={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},s={begin:"[\\[\\{]",end:"[\\]\\}]"},o={className:"comment",begin:"\\^"+t},l=e.COMMENT("\\^\\{","\\}"),c={className:"symbol",begin:"[:]{1,2}"+t},u={begin:"\\(",end:"\\)"},d={endsWithParent:!0,relevance:0},p={keywords:{"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},lexemes:t,className:"name",begin:t,starts:d},m=[u,i,o,l,a,c,s,r,f,n];return u.contains=[e.COMMENT("comment",""),p,d],d.contains=m,s.contains=m,l.contains=[s],{aliases:["clj"],illegal:/\S/,contains:[u,i,o,l,a,c,s,r,f]}}},function(e,t){e.exports=function(e){return{contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}},function(e,t){e.exports=function(e){return{aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or equal less greater strless strgreater strequal matches"},contains:[{className:"variable",begin:"\\${",end:"}"},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/}/,keywords:t},i=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[r,e.HASH_COMMENT_MODE]},{begin:"//[gim]*",relevance:0},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];r.contains=i;var a=e.inherit(e.TITLE_MODE,{begin:n}),f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+n+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[a,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[f]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"_ as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies DependentDerive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,aliases:["cos","cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}},function(e,t){e.exports=function(e){var t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z\$_\#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}},function(e,t){e.exports=function(e){var t="(_[uif](8|16|32|64))?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?",r={keyword:"abstract alias as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},i={className:"subst",begin:"#{",end:"}",keywords:r},a={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:r};function f(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var s={className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%w?\\(",end:"\\)",contains:f("\\(","\\)")},{begin:"%w?\\[",end:"\\]",contains:f("\\[","\\]")},{begin:"%w?{",end:"}",contains:f("{","}")},{begin:"%w?<",end:">",contains:f("<",">")},{begin:"%w?/",end:"/"},{begin:"%w?%",end:"%"},{begin:"%w?-",end:"-"},{begin:"%w?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},o=[a,s,{className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:f("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:f("\\[","\\]")},{begin:"%q{",end:"}",contains:f("{","}")},{begin:"%q<",end:">",contains:f("<",">")},{begin:"%q/",end:"/"},{begin:"%q%",end:"%"},{begin:"%q-",end:"-"},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},{begin:"(!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~)\\s*",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/",end:"/[a-z]*"},{begin:"%r\\(",end:"\\)",contains:f("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:f("\\[","\\]")},{begin:"%r{",end:"}",contains:f("{","}")},{begin:"%r<",end:">",contains:f("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}]}],relevance:0},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"%r\\(",end:"\\)",contains:f("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:f("\\[","\\]")},{begin:"%r{",end:"}",contains:f("{","}")},{begin:"%r<",end:">",contains:f("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}],relevance:0},{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:5},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[s,{begin:n}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]*[01])"+t},{begin:"\\b0o([0-7_]*[0-7])"+t},{begin:"\\b0x([A-Fa-f0-9_]*[A-Fa-f0-9])"+t},{begin:"\\b(([0-9][0-9_]*[0-9]|[0-9])(\\.[0-9_]*[0-9])?([eE][+-]?[0-9_]*[0-9])?)"+t}],relevance:0}];return i.contains=o,a.contains=o.slice(1),{aliases:["cr"],lexemes:"[a-zA-Z_]\\w*[!?=]?",keywords:r,contains:o}}},function(e,t){e.exports=function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},n={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},r=e.inherit(n,{illegal:/\n/}),i={className:"subst",begin:"{",end:"}",keywords:t},a=e.inherit(i,{illegal:/\n/}),f={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,a]},s={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},i]},o=e.inherit(s,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},a]});i.contains=[s,f,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],a.contains=[o,f,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var l={variants:[s,f,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?";return{aliases:["csharp"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},l,e.C_NUMBER_MODE,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+c+"\\s+)+"+e.IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[l,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},function(e,t){e.exports=function(e){var t={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},function(e,t){e.exports=function(e){var t="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",n="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",r={className:"number",begin:"\\b"+t+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},i={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+t+"(i|[fF]i|Li))",relevance:0},a={className:"string",begin:"'("+n+"|.)",end:"'",illegal:"."},f={className:"string",begin:'"',contains:[{begin:n,relevance:0}],end:'"[cwd]?'},s=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},f,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},i,r,a,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}},function(e,t){e.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},function(e,t){e.exports=function(e){var t={className:"subst",begin:"\\$\\{",end:"}",keywords:"true false null this is new super"},n={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]}]};t.contains=[e.C_NUMBER_MODE,n];return{keywords:{keyword:"assert async await break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch sync this throw true try var void while with yield abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"},contains:[n,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown"}),e.COMMENT("///","$",{subLanguage:"markdown"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}},function(e,t){e.exports=function(e){var t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},f={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},s={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,a,r].concat(n)},r].concat(n)};return{aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,e.NUMBER_MODE,f,s,r].concat(n)}}},function(e,t){e.exports=function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/\*{5}/,end:/\*{5}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}},function(e,t){e.exports=function(e){var t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:[t]}]}}},function(e,t){e.exports=function(e){return{aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}},function(e,t){e.exports=function(e){return{aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]\n/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:"\\&[a-z\\d_]*\\b"},a={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},f={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,i]},o={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{keywords:"",contains:[{className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[i,a,f,o,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]},i,a,f,o,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{begin:e.IDENT_RE+"::",keywords:""}]}}},function(e,t){e.exports=function(e){return{aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}},function(e,t){e.exports=function(e){var t=e.COMMENT(/\(\*/,/\*\)/);return{illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/},{begin:/=/,end:/;/,contains:[t,{className:"meta",begin:/\?.*\?/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",n="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",r={className:"subst",begin:"#\\{",end:"}",lexemes:t,keywords:n},i={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},f=e.inherit(a,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),s=[i,e.HASH_COMMENT_MODE,f,a,{className:"symbol",begin:":(?!\\s)",contains:[i,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:t+":",relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return r.contains=s,{lexemes:t,keywords:n,contains:s}}},function(e,t){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,{begin:"{",end:"}",contains:r.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},r={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},a=[e.COMMENT("#","$",{contains:[r]}),e.COMMENT("^\\=begin","^\\=end",{contains:[r],relevance:10}),e.COMMENT("^__END__","\\n$")],f={className:"subst",begin:"#\\{",end:"}",keywords:n},s={className:"string",contains:[e.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<(-?)\w+$/,end:/^\s*\w+$/}]},o={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:n},l=[s,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(a)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:t}),o].concat(a)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[s,{begin:t}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:n},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,f],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a),relevance:0}].concat(a);f.contains=l,o.contains=l;var c=[{begin:/^\s*=>/,starts:{end:"$",contains:l}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:l}}];return{aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:a.concat(c).concat(l)}}},function(e,t){e.exports=function(e){return{subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){e.exports=function(e){return{keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\?(::)?([A-Z]\\w*(::)?)+"},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}},function(e,t){e.exports=function(e){var t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},f={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},o={begin:"{",end:"}",relevance:0},l={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},c={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:"{",end:"}",relevance:0}]},d={beginKeywords:"fun receive if try case",end:"end",keywords:r};d.contains=[i,f,e.inherit(e.APOS_STRING_MODE,{className:""}),d,s,e.QUOTE_STRING_MODE,a,o,l,c,u];var p=[i,f,d,s,e.QUOTE_STRING_MODE,a,o,l,c,u];s.contains[1].contains=p,o.contains=p,u.contains[1].contains=p;var m={className:"params",begin:"\\(",end:"\\)",contains:p};return{aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:p}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,lexemes:"-"+e.IDENT_RE,keywords:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",contains:[m]},a,e.QUOTE_STRING_MODE,u,l,c,o,{begin:/\.$/}]}}},function(e,t){e.exports=function(e){return{aliases:["xlsx","xls"],case_insensitive:!0,lexemes:/[a-zA-Z][\w\.]*/,keywords:{built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF|0 IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}},function(e,t){e.exports=function(e){return{contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}},function(e,t){e.exports=function(e){var t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}},function(e,t){e.exports=function(e){var t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*","\\*\\)"),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na","built-in":"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},n={className:"symbol",variants:[{begin:/\=[lgenxc]=/},{begin:/\$/}]},r={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},i={begin:"/",end:"/",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},a={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[r,i,{className:"comment",begin:/([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,relevance:0}]};return{aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,a]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[a]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},n]},e.C_NUMBER_MODE,n]}}},function(e,t){e.exports=function(e){var t={keyword:"and bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new not open or output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname threadBegin threadEnd threadEndFor threadFor threadJoin threadStat time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin strtrim sylvester",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS"},n={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r=e.UNDERSCORE_IDENT_RE+"\\s*\\(?",i=[{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}];return{aliases:["gss"],case_insensitive:!0,keywords:t,illegal:"(\\{[%#]|[%#]\\})",contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("@","@"),n,{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"function",beginKeywords:"proc keyword",end:";",excludeEnd:!0,keywords:t,contains:[{begin:r,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n].concat(i)},{className:"function",beginKeywords:"fn",end:";",excludeEnd:!0,keywords:t,contains:[{begin:r+e.IDENT_RE+"\\)?\\s*\\=\\s*",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE].concat(i)},{className:"function",begin:"\\bexternal (proc|keyword|fn)\\s+",end:";",excludeEnd:!0,keywords:t,contains:[{begin:r,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"\\bexternal (matrix|string|array|sparse matrix|struct "+e.IDENT_RE+")\\s+",end:";",excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}},function(e,t){e.exports=function(e){var t=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.C_NUMBER_RE}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",end:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{aliases:["nc"],case_insensitive:!0,lexemes:"[A-Z_][A-Z0-9_.]*",keywords:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",contains:[{className:"meta",begin:"\\%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(t)}}},function(e,t){e.exports=function(e){return{aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBufferiimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}},function(e,t){e.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}},function(e,t){e.exports=function(e){var t={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield"};return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,keywords:t,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:t}]}}},function(e,t){e.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"meta",begin:"{-#",end:"#-}"},r={className:"meta",begin:"^#",end:"$"},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[n,r,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]};return{aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[i,a,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,i,a,{begin:"{",end:"}",contains:a.contains},t]},{beginKeywords:"default",end:"$",contains:[i,a,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[i,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,r,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}},function(e,t){e.exports=function(e){return{aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:"\\W}"}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,lexemes:/[\w\._]+/,keywords:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:'{"',end:'"}',contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t="action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view",n=(e.QUOTE_STRING_MODE,{endsWithParent:!0,relevance:0,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE,{illegal:/\}\}/,begin:/[a-zA-Z0-9_]+=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[a-zA-Z0-9_]+/}]},e.NUMBER_MODE]});return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":t},starts:n}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-Z\-]+/,end:/\}\}/,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE]}]}}},function(e,t){e.exports=function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+t,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+t+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:t},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n={begin:t,relevance:0},r={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},s={begin:"[\\[\\{]",end:"[\\]\\}]"},o={className:"comment",begin:"\\^"+t},l=e.COMMENT("\\^\\{","\\}"),c={className:"symbol",begin:"[:]{1,2}"+t},u={begin:"\\(",end:"\\)"},d={endsWithParent:!0,relevance:0},p={keywords:{"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},lexemes:t,className:"name",begin:t,starts:d},m=[u,i,o,l,a,c,s,r,f,n];return u.contains=[e.COMMENT("comment",""),p,d],d.contains=m,s.contains=m,{aliases:["hylang"],illegal:/\S/,contains:[{className:"meta",begin:"^#!",end:"$"},u,i,o,l,a,c,s,r,f]}}},function(e,t){e.exports=function(e){return{aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}},function(e,t){e.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},t,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}},function(e,t){e.exports=function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",n={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]};i.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,r,e.REGEXP_MODE];var f=i.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:f}]}]},{begin://,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:f}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{aliases:["wildfly-cli"],lexemes:"[a-z-]+",keywords:{keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B(([\/.])[\w\-.\/=]+)+/},t]}}},function(e,t){e.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},i={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})],illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return n.splice(n.length,0,i,a),{contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t={keyword:"in isa where baremodule begin break catch ccall const continue do else elseif end export false finally for function global if import importall let local macro module quote return true try using while type immutable abstract bitstype typealias ",literal:"true false ARGS C_NULL DevNull ENDIAN_BOM ENV I Inf Inf16 Inf32 Inf64 InsertionSort JULIA_HOME LOAD_PATH MergeSort NaN NaN16 NaN32 NaN64 PROGRAM_FILE QuickSort RoundDown RoundFromZero RoundNearest RoundNearestTiesAway RoundNearestTiesUp RoundToZero RoundUp STDERR STDIN STDOUT VERSION catalan e|0 eu|0 eulergamma golden im nothing pi γ π φ ",built_in:"ANY AbstractArray AbstractChannel AbstractFloat AbstractMatrix AbstractRNG AbstractSerializer AbstractSet AbstractSparseArray AbstractSparseMatrix AbstractSparseVector AbstractString AbstractUnitRange AbstractVecOrMat AbstractVector Any ArgumentError Array AssertionError Associative Base64DecodePipe Base64EncodePipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError BufferStream CachingPool CapturedException CartesianIndex CartesianRange Cchar Cdouble Cfloat Channel Char Cint Cintmax_t Clong Clonglong ClusterManager Cmd CodeInfo Colon Complex Complex128 Complex32 Complex64 CompositeException Condition ConjArray ConjMatrix ConjVector Cptrdiff_t Cshort Csize_t Cssize_t Cstring Cuchar Cuint Cuintmax_t Culong Culonglong Cushort Cwchar_t Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict DimensionMismatch Dims DirectIndexString Display DivideError DomainError EOFError EachLine Enum Enumerate ErrorException Exception ExponentialBackOff Expr Factorization FileMonitor Float16 Float32 Float64 Function Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear IndexStyle InexactError InitError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode NullException Nullable Number ObjectIdDict OrdinalRange OutOfMemoryError OverflowError Pair ParseError PartialQuickSort PermutedDimsArray Pipe PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode RowVector SSAValue SegmentationFault SerializationState Set SharedArray SharedMatrix SharedVector Signed SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange StepRangeLen StridedArray StridedMatrix StridedVecOrMat StridedVector String SubArray SubString SymTridiagonal Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry TypeMapLevel TypeName TypeVar TypedSlot UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UndefRefError UndefVarError UnicodeError UniformScaling Union UnionAll UnitRange Unsigned UpperTriangular Val Vararg VecElement VecOrMat Vector VersionNumber Void WeakKeyDict WeakRef WorkerConfig WorkerPool "},n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",r={lexemes:n,keywords:t,illegal:/<\//},i={className:"subst",begin:/\$\(/,end:/\)/,keywords:t},a={className:"variable",begin:"\\$"+n},f={className:"string",contains:[e.BACKSLASH_ESCAPE,i,a],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,i,a],begin:"`",end:"`"},o={className:"meta",begin:"@"+n};return r.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},f,s,o,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],i.contains=r.contains,r}},function(e,t){e.exports=function(e){return{contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}},function(e,t){e.exports=function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit initinterface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:"\\${",end:"}",contains:[e.APOS_STRING_MODE,e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""',contains:[i,r]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,r]}]},f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]};return{keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,f,s,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,s,a,e.C_NUMBER_MODE]},e.C_BLOCK_COMMENT_MODE]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},f,s]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t="\\]|\\?>",n={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},r=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),i={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[r]}},a={className:"meta",begin:"\\[/noprocess|<\\?(lasso(script)?|=)"},f={className:"symbol",begin:"'[a-zA-Z_][\\w.]*'"},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:"[a-zA-Z_][\\w.]*",illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[f]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{aliases:["ls","lassoscript"],case_insensitive:!0,lexemes:"[a-zA-Z_][\\w.]*|&[lg]t;",keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[|<\\?(lasso(script)?|=)",returnEnd:!0,relevance:0,contains:[r]}},i,a,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",lexemes:"[a-zA-Z_][\\w.]*|&[lg]t;",keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[noprocess\\]|<\\?(lasso(script)?|=)",returnEnd:!0,contains:[r]}},i,a].concat(s)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(s)}}},function(e,t){e.exports=function(e){return{contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:" {",returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}},function(e,t){e.exports=function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],r=[],i=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},a=function(e,t,n){return{className:e,begin:t,relevance:n}},f={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i("'"),i('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a("number","#[0-9A-Fa-f]+\\b"),f,a("variable","@@?[\\w-]+",10),a("variable","@{[\\w-]+}"),a("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var s=r.concat({begin:"{",end:"}",contains:n}),o={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},l={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},c={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},u={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:s}},d={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a("keyword","all\\b"),a("variable","@{[\\w-]+}"),a("selector-tag",t+"%?",0),a("selector-id","#"+t),a("selector-class","\\."+t,0),a("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:s},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,u,l,d),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",n="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",r={className:"literal",begin:"\\b(t{1}|nil)\\b"},i={className:"number",variants:[{begin:n,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+n+" +"+n,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),f=e.COMMENT(";","$",{relevance:0}),s={begin:"\\*",end:"\\*"},o={className:"symbol",begin:"[:&]"+t},l={begin:t,relevance:0},c={begin:"\\|[^]*?\\|"},u={contains:[i,a,s,o,{begin:"\\(",end:"\\)",contains:["self",r,a,i,l]},l],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'\\|[^]*?\\|"}]},d={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},p={begin:"\\(\\s*",end:"\\)"},m={endsWithParent:!0,relevance:0};return p.contains=[{className:"name",variants:[{begin:t},{begin:"\\|[^]*?\\|"}]},m],m.contains=[u,d,p,r,i,a,f,s,o,c,l],{illegal:/\S/,contains:[i,{className:"meta",begin:"^#!",end:"$"},r,a,f,u,d,p,l]}}},function(e,t){e.exports=function(e){var t={begin:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:";$|^\\[|^=|&|{"}}},function(e,t){e.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},n="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",r=e.inherit(e.TITLE_MODE,{begin:n}),i={className:"subst",begin:/#\{/,end:/}/,keywords:t},a={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},f=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,a]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,a]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[i,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];i.contains=f;var s={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(f)}]};return{aliases:["ls"],keywords:t,illegal:/\/\*/,contains:f.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{className:"function",contains:[r,s],returnBegin:!0,variants:[{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",end:"\\->\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[r]},r]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){var t="([-a-zA-Z$._][\\w\\-$.]*)";return{keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"keyword",begin:"i\\d+"},e.COMMENT(";","\\n",{relevance:0}),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:'"',end:'[^\\\\]"'}],relevance:0},{className:"title",variants:[{begin:"@"+t},{begin:"@\\d+"},{begin:"!"+t},{begin:"!\\d+"+t}]},{className:"symbol",variants:[{begin:"%"+t},{begin:"%\\d+"},{begin:"#\\d+"}]},{className:"number",variants:[{begin:"0[xX][a-fA-F0-9]+"},{begin:"-?\\d+(?:[.]\\d+)?(?:[eE][-+]?\\d+(?:[.]\\d+)?)?"}],relevance:0}]}}},function(e,t){e.exports=function(e){var t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",begin:e.C_NUMBER_RE};return{illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")]},n,{className:"section",variants:[{begin:"\\b(?:state|default)\\b"},{begin:"\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(?:XP_ERROR_(?:EXPERIENCES_DISABLED|EXPERIENCE_(?:DISABLED|SUSPENDED)|INVALID_(?:EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(?:FOUND|PERMITTED(?:_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(?:IVE|_(?:ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_ON_REZ|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP|CREATOR|ATTACHED_POINT|RENDER_WEIGHT|(?:BODY_SHAPE|PATHFINDING)_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(?:BASE|TIP)|[LR]WING|FACE_(?:JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:ALPHA_MODE(?:_(?:BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[ABCD]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(?:FALSE|TRUE)\\b"},{begin:"\\b(?:ZERO_ROTATION)\\b"},{begin:"\\b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\\b"},{begin:"\\b(?:ZERO_VECTOR|TOUCH_INVALID_(?:TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}},function(e,t){e.exports=function(e){var t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},n=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstringmodule next pairs pcall print rawequal rawget rawset require select setfenvsetmetatable tonumber tostring type unpack xpcall arg selfcoroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:n.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:n}].concat(n)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}},function(e,t){e.exports=function(e){var t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,n,r,{begin:/:-/}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,aliases:["mips"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|jr(.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs.[sd]|add.[sd]|alnv.ps|bc1[ft]l?|c.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et]).[sd]|(ceil|floor|round|trunc).[lw].[sd]|cfc1|cvt.d.[lsw]|cvt.l.[dsw]|cvt.ps.s|cvt.s.[dlw]|cvt.s.p[lu]|cvt.w.[dls]|div.[ds]|ldx?c1|luxc1|lwx?c1|madd.[sd]|mfc1|mov[fntz]?.[ds]|msub.[sd]|mth?c1|mul.[ds]|neg.[ds]|nmadd.[ds]|nmsub.[ds]|p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#]","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:"/"}}},function(e,t){e.exports=function(e){return{keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}},function(e,t){e.exports=function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",n={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:t},r={begin:"->{",end:"}"},i={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},a=[e.BACKSLASH_ESCAPE,n,i],f=[i,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),r,{className:"string",contains:a,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return n.contains=f,r.contains=f,{aliases:["pl","pm"],lexemes:/[\w\.]+/,keywords:t,contains:f}}},function(e,t){e.exports=function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){e.exports=function(e){var t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}},function(e,t){e.exports=function(e){var t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;var a=e.inherit(e.TITLE_MODE,{begin:n}),f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[a,f]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[f]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){var t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,lexemes:"[a-z/_]+",keywords:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}},function(e,t){e.exports=function(e){return{aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/{\./,end:/\.}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){var t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/}/,keywords:t},r={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},i=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]}];return n.contains=i,{aliases:["nixos"],keywords:t,contains:i}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:/\$+{[\w\.:-]+}/},n={className:"variable",begin:/\$+\w+/,illegal:/\(\){}/},r={className:"variable",begin:/\$+\([\w\^\.:-]+\)/},i={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"subst",begin:/\$(\\[nrt]|\$)/},{className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},t,n,r]};return{case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},i,{className:"keyword",begin:/\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)/},t,n,r,{className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},{className:"class",begin:/\w+\:\:\w+/},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],keywords:{keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},lexemes:t,illegal:""}]}]},{className:"class",begin:"("+n.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:n,lexemes:t,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}},function(e,t){e.exports=function(e){return{aliases:["ml"],keywords:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){var t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"function",beginKeywords:"module function",end:"\\=|\\{",contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",n,r,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},r,t,{begin:"[*!#%]",relevance:0},i]}}},function(e,t){e.exports=function(e){var t="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",n=e.COMMENT("{","}",{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},a={className:"string",begin:"(#\\d+)+"},f={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,a]},n,r]};return{case_insensitive:!0,lexemes:/\.?\w+/,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,f,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[i,a,n,r,e.C_LINE_COMMENT_MODE,f]}]}}},function(e,t){e.exports=function(e){var t=e.COMMENT("{","}",{contains:["self"]});return{subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT("\\^rem{","}",{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{className:"keyword",begin:"\\^[\\w\\-\\.\\:]+"},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{aliases:["pf.conf"],lexemes:/[a-z0-9_<>-]+/,keywords:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/},{className:"variable",begin:/<(?!\/)/,end:/>/}]}}},function(e,t){e.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},r={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php3","php4","php5","php6"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},r,i]}}},function(e,t){e.exports=function(e){var t={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},n={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},r={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},i={begin:e.IDENT_RE+"'",relevance:0};return{keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"class",beginKeywords:"class actor",end:"$",contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE]},{className:"function",beginKeywords:"new fun",end:"=>",contains:[e.TITLE_MODE,{begin:/\(/,end:/\)/,contains:[r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:/:/,endsWithParent:!0,contains:[r]},e.C_LINE_COMMENT_MODE]},r,{className:"string",begin:'"""',end:'"""',relevance:10},t,n,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},i=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]});return{aliases:["ps"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,r,{className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},{className:"literal",begin:/\$(null|true|false)\b/},n,i]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}},function(e,t){e.exports=function(e){var t={begin:/\(/,end:/\)/,relevance:0},n={begin:/\[/,end:/\]/},r={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},i={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},a=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},n,r,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,{className:"string",begin:/0\'(\\\'|.)/},{className:"string",begin:/0\'\\s/},e.C_NUMBER_MODE];return t.contains=a,n.contains=a,{contains:a.concat([{begin:/\.$/}])}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/;/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+/,end:/\s*=/,excludeEnd:!0}]}}},function(e,t){e.exports=function(e){var t=e.COMMENT("#","$"),n=e.inherit(e.TITLE_MODE,{begin:"([A-Za-z_]|::)(\\w|::)*"}),r={className:"variable",begin:"\\$([A-Za-z_]|::)(\\w|::)*"},i={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{aliases:["pp"],contains:[t,r,i,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[n,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[i,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},r]}],relevance:0}]}}},function(e,t){e.exports=function(e){return{aliases:["pb","pbi"],keywords:"And As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect Continue Data DataSection EndDataSection Debug DebugLevel Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndEnumeration EndIf EndImport EndInterface EndMacro EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration Extends FakeReturn For Next ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface Macro NewList Not Or ProcedureReturn Protected Prototype PrototypeC Read ReDim Repeat Until Restore Return Select Shared Static Step Structure StructureUnion Swap To Wend While With XIncludeFile XOr Procedure ProcedureC ProcedureCDLL ProcedureDLL Declare DeclareC DeclareCDLL DeclareDLL",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}}},function(e,t){e.exports=function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},n={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[n],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[n],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[n,r]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[n,r]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[r]},{begin:/(fr|rf|f)"/,end:/"/,contains:[r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},f={className:"params",begin:/\(/,end:/\)/,contains:["self",n,a,i]};return r.contains=[i,a,n],{aliases:["py","gyp"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,a,i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,f,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}},function(e,t){e.exports=function(e){return{aliases:["k","kdb"],keywords:{keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9\\._]*",n={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},r={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},i={begin:t+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4dPromise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},n,r,i],illegal:/#/}}},function(e,t){e.exports=function(e){var t="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{contains:[e.HASH_COMMENT_MODE,{begin:t,lexemes:t,keywords:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}}},function(e,t){e.exports=function(e){return{keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"\]$/},{begin:/<\//,end:/>/},{begin:/^facet /,end:/\}/},{begin:"^1\\.\\.(\\d+)$",end:/$/}],illegal:/./},e.COMMENT("^#","$"),i,a,r,{begin:/[\w-]+\=([^\s\{\}\[\]\(\)]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:"literal",begin:"\\b("+n.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s\{\}\[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+",relevance:10},{begin:/\.\./}]}]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:""}]}}},function(e,t){e.exports=function(e){var t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},n={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[t],relevance:10}]},r={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},i={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},a={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[r]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[r]},i]},f={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[i]};return{keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},r,f,a,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},r={className:"number",variants:[{begin:"(\\-|\\+)?\\d+([./]\\d+)?",relevance:0},{begin:"(\\-|\\+)?\\d+([./]\\d+)?[+\\-](\\-|\\+)?\\d+([./]\\d+)?i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},i=e.QUOTE_STRING_MODE,a=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],f={begin:t,relevance:0},s={className:"symbol",begin:"'"+t},o={endsWithParent:!0,relevance:0},l={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",n,i,r,f,s]}]},c={className:"name",begin:t,lexemes:t,keywords:{"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"}},u={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[c,{begin:/\(/,end:/\)/,endsParent:!0,contains:[f]}]},c,o]};return o.contains=[n,r,i,f,s,l,u].concat(a),{illegal:/\S/,contains:[{className:"meta",begin:"^#!",end:"$"},r,i,s,l,u].concat(a)}}},function(e,t){e.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{aliases:["sci"],lexemes:/%?\w+/,keywords:{keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE;return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},function(e,t){e.exports=function(e){return{aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}}},function(e,t){e.exports=function(e){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}},function(e,t){e.exports=function(e){var t={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:"[a-z][a-zA-Z0-9_]*:",relevance:0},e.C_NUMBER_MODE,n,t,{begin:"\\|[ ]*[a-z][a-zA-Z0-9_]*([ ]+[a-z][a-zA-Z0-9_]*)*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?[a-z][a-zA-Z0-9_]*"}]},{begin:"\\#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,t,e.C_NUMBER_MODE,n]}]}}},function(e,t){e.exports=function(e){return{aliases:["ml"],keywords:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){var t=e.getLanguage("cpp").exports;return{aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airportSide AISFinishHeal alive all3DENEntities allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSites allTurrets allUnits allUnitsUAV allVariables ammo and animate animateDoor animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular blufor boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility civilian className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configNull configProperties configSourceAddonList configSourceMod configSourceModList connectTerminalToUAV controlNull controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlType ctrlVisible curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayNull displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle driver drop east echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableUAVConnectability enableUAVWaypoints enableVehicleCargo endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllHitPointsDamage getAllOwnedMines getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getConnectedUAV getCustomAimingCoef getDammage getDescription getDir getDirVisual getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getFatigue getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSpeed getStamina getStatValue getSuppression getTerrainHeightASL getText getUnitLoadout getUnitTrait getVariable getVehicleCargo getWeaponCargo getWeaponSway getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit grpNull gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState independent inflame inflamed inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUniformAllowed isVehicleCargo isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbCurSel lbData lbDelete lbIsSelected lbPicture lbSelection lbSetColor lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineBreak lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationNull locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberToDate objectCurators objectFromNetId objectParent objNull objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openYoutubeVideo opfor or orderGetIn overcast overcastForecast owner param params parseNumber parseText parsingNamespace particlesQuality pi pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority private processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponGlobal removeWeaponTurret requiredVersion resetCamShake resetSubgroupDirection resistance resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scriptNull scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setAirportSide setAmmo setAmmoCargo setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTi setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDropInterval setEditorMode setEditorObjectScope setEffectCondition setFace setFaceAnimation setFatigue setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleTiPars setVehicleVarName setVelocity setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideAmbientLife sideChat sideEmpty sideEnemy sideFriendly sideLogic sideRadio sideUnknown simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskNull taskParent taskResult taskState taskType teamMember teamMemberNull teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorMultiply vectorNormalized vectorUp vectorUpVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD west WFSideText wind",literal:"true false nil"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z_]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},t.preprocessor],illegal:/#/}}},function(e,t){e.exports=function(e){var t=e.COMMENT("--","$");return{case_insensitive:!0,illegal:/[<>{}*#]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}]},{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t]},e.C_BLOCK_COMMENT_MODE,t]}}},function(e,t){e.exports=function(e){return{contains:[e.HASH_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE,lexemes:e.UNDERSCORE_IDENT_RE,keywords:{name:"for in while repeat until if then else",symbol:"bernoulli bernoulli_logit binomial binomial_logit beta_binomial hypergeometric categorical categorical_logit ordered_logistic neg_binomial neg_binomial_2 neg_binomial_2_log poisson poisson_log multinomial normal exp_mod_normal skew_normal student_t cauchy double_exponential logistic gumbel lognormal chi_square inv_chi_square scaled_inv_chi_square exponential inv_gamma weibull frechet rayleigh wiener pareto pareto_type_2 von_mises uniform multi_normal multi_normal_prec multi_normal_cholesky multi_gp multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet lkj_corr lkj_corr_cholesky wishart inv_wishart","selector-tag":"int real vector simplex unit_vector ordered positive_ordered row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix cov_matrix",title:"functions model data parameters quantities transformed generated",literal:"true false"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0}]}}},function(e,t){e.exports=function(e){return{aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:"[A-Z_][A-Z0-9_.]*",keywords:{keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},r="[\\.\\s\\n\\[\\:,]";return{aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+r,returnBegin:!0,contains:[{className:"selector-class",begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+r,returnBegin:!0,contains:[{className:"selector-id",begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\b("+["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"].join("|")+")"+r,returnBegin:!0,contains:[{className:"selector-tag",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"&?:?:\\b("+["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"].join("|")+")"+r},{begin:"@("+["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"].join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}},function(e,t){e.exports=function(e){var t={keyword:"__COLUMN__ __FILE__ __FUNCTION__ __LINE__ as as! as? associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r={className:"subst",begin:/\\\(/,end:"\\)",keywords:t,contains:[]},i={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{contains:[r,e.BACKSLASH_ESCAPE]});return r.contains=[i],{keywords:t,contains:[a,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},i,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,contains:["self",i,a,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:t,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n]}]}}},function(e,t){e.exports=function(e){return{contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_][\\w\\-]*",n={className:"attr",variants:[{begin:"^[ \\-]*"+t+":"},{begin:'^[ \\-]*"'+t+'":'},{begin:"^[ \\-]*'"+t+"':"}]},r={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[n,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>] *$",returnEnd:!0,contains:r.contains,end:n.variants[0].begin},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"^ *-",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:"true false yes no null",keywords:{literal:"true false yes no null"}},e.C_NUMBER_MODE,r]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:"(s+)?---$",end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}},function(e,t){e.exports=function(e){return{aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}},function(e,t){e.exports=function(e){var t={className:"tag",begin:/\\/,relevance:0,contains:[{className:"name",variants:[{begin:/[a-zA-Zа-яА-я]+[*]?/},{begin:/[^a-zA-Zа-яА-я0-9]/}],starts:{endsWithParent:!0,relevance:0,contains:[{className:"string",variants:[{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/}]},{begin:/\s*=\s*/,endsWithParent:!0,relevance:0,contains:[{className:"number",begin:/-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/}]}]}}]};return{contains:[t,{className:"formula",contains:[t],relevance:0,variants:[{begin:/\$\$/,end:/\$\$/},{begin:/\$/,end:/\$/}]},e.COMMENT("%","$",{relevance:0})]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:"bool byte i16 i32 i64 double string binary",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:"bool byte i16 i32 i64 double string binary",contains:["self"]}]}}},function(e,t){e.exports=function(e){var t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER| TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}},function(e,t){e.exports=function(e){var t="attribute block constant cycle date dump include max min parent random range source template_from_string",n={beginKeywords:t,keywords:{name:t},relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},r={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",contains:[n]},i="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return i=i+" "+i.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:i,starts:{endsWithParent:!0,contains:[r,n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:["self",r,n]}]}}},function(e,t){e.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"};return{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){return{keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:"{",excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}},function(e,t){e.exports=function(e){return{aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|\x3c!--|--\x3e",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}},function(e,t){e.exports=function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}},function(e,t){e.exports=function(e){return{aliases:["v","sv","svh"],case_insensitive:!1,keywords:{keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},lexemes:/[\w\$]+/,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signedreal_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:"{",contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}},function(e,t){e.exports=function(e){return{lexemes:/[!#@\w]+/,keywords:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,e.APOS_STRING_MODE,{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}},function(e,t){e.exports=function(e){return{case_insensitive:!0,lexemes:"[.%]?"+e.IDENT_RE,keywords:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}},function(e,t){e.exports=function(e){var t={keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},n={className:"string",begin:'"',end:'"',illegal:"\\n"},r={beginKeywords:"import",end:"$",keywords:t,contains:[n]},i={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{aliases:["tao"],lexemes:/[a-zA-Z][a-zA-Z0-9_?]*/,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},i,r,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){var t={begin:"{",end:"}"},n=[{begin:/\$[a-zA-Z0-9\-]+/},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},{className:"meta",begin:"%\\w+"},t];return t.contains=n,{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:"for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",literal:"false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute"},contains:n}}},function(e,t){e.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["zep"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var let while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally int uint long ulong char uchar double float bool boolean stringlikely unlikely",contains:[e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:"<<<['\"]?\\w+['\"]?$",end:"^\\w+;",contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_BLOCK_COMMENT_MODE,t,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},t,n]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={keyword:"var bool string int uint int8 uint8 int16 uint16 int24 uint24 int32 uint32 int40 uint40 int48 uint48 int56 uint56 int64 uint64 int72 uint72 int80 uint80 int88 uint88 int96 uint96 int104 uint104 int112 uint112 int120 uint120 int128 uint128 int136 uint136 int144 uint144 int152 uint152 int160 uint160 int168 uint168 int176 uint176 int184 uint184 int192 uint192 int200 uint200 int208 uint208 int216 uint216 int224 uint224 int232 uint232 int240 uint240 int248 uint248 int256 uint256 byte bytes bytes1 bytes2 bytes3 bytes4 bytes5 bytes6 bytes7 bytes8 bytes9 bytes10 bytes11 bytes12 bytes13 bytes14 bytes15 bytes16 bytes17 bytes18 bytes19 bytes20 bytes21 bytes22 bytes23 bytes24 bytes25 bytes26 bytes27 bytes28 bytes29 bytes30 bytes31 bytes32 enum struct mapping address new delete if else for while continue break return throw assert require revert function modifier event constant anonymous indexed storage memory external public internal pure view private returns import using contract interface library assembly",literal:"true false wei szabo finney ether second seconds minute minutes hour hours day days week weeks year years",built_in:"self this super selfdestruct now msg block tx sha3 sha256 ripemd160 erecover addmod mulmod send call callcode delegatecall"},n={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n]},i={begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"gas value send call callcode delegatecall balance length push"},relevance:2};function a(e,t){return{begin:e+"\\.\\s*",end:/[^A-Za-z0-9$_\.]/,excludeBegin:!1,excludeEnd:!0,keywords:{built_in:e+" "+t},contains:[i],relevance:10}}return{aliases:["sol"],keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"function",beginKeywords:"function modifier event",end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,keywords:t}),r],illegal:/\[|%/},a("msg","data sender sig"),a("block","blockhash coinbase difficulty gaslimit number timestamp "),a("tx","gasprice origin"),i,{className:"class",beginKeywords:"contract interface library",end:/[{]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"is"},e.UNDERSCORE_TITLE_MODE,r]},{beginKeywords:"import",end:"[;$]",keywords:"import * from as",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}],illegal:/#/}}},function(e,t,n){var r=n(1512);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".SolidityHighlight_code {\n color: #fff;\n min-height: 680px;\n padding: 20px;\n border-radius: 4px;\n -webkit-box-shadow: 1px 5px 4px rgba(0, 0, 0, 0.14);\n box-shadow: 1px 5px 4px rgba(0, 0, 0, 0.14);\n width: 100%;\n padding: 0;\n margin: 0;\n}\n.SolidityHighlight_codeContainer {\n height: 495px;\n overflow: scroll;\n}\n",""]),t.locals={code:"SolidityHighlight_code",codeContainer:"SolidityHighlight_codeContainer"}},function(e,t,n){var r=n(1514);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(42)(void 0)).push([e.i,".hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n background: #232323;\n color: #e6e1dc;\n padding-left: 30px;\n padding-top: 20px;\n padding-right: 10px;\n padding-bottom: 10px; }\n\n.hljs-comment,\n.hljs-quote {\n color: #bc9458;\n font-style: italic; }\n\n.hljs-keyword,\n.hljs-selector-tag {\n color: #c26230; }\n\n.hljs-string,\n.hljs-number,\n.hljs-regexp,\n.hljs-variable,\n.hljs-template-variable {\n color: #a5c261; }\n\n.hljs-subst {\n color: #519f50; }\n\n.hljs-tag,\n.hljs-name {\n color: #e8bf6a; }\n\n.hljs-type {\n color: #da4939; }\n\n.hljs-symbol,\n.hljs-bullet,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-attr,\n.hljs-link {\n color: #6d9cbe; }\n\n.hljs-params {\n color: #d0d0ff; }\n\n.hljs-attribute {\n color: #cda869; }\n\n.hljs-meta {\n color: #9b859d; }\n\n.hljs-title,\n.hljs-section {\n color: #ffc66d; }\n\n.hljs-addition {\n background-color: #144212;\n color: #e6e1dc;\n display: inline-block;\n width: 100%; }\n\n.hljs-deletion {\n background-color: #600;\n color: #e6e1dc;\n display: inline-block;\n width: 100%; }\n\n.hljs-selector-class {\n color: #9b703f; }\n\n.hljs-selector-id {\n color: #8b98ab; }\n\n.hljs-emphasis {\n font-style: italic; }\n\n.hljs-strong {\n font-weight: bold; }\n\n.hljs-link {\n text-decoration: underline; }\n",""])},function(e,t,n){var r=n(1516);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".StatusBar_container {\n background: url("+n(1517)+") no-repeat center center;\n background-color: rgba(216, 216, 216, 0.7);\n background-size: 400px;\n z-index: 1;\n}\n.StatusBar_message {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n text-align: center;\n background: #438cef;\n font-weight: lighter;\n font-size: 14px;\n height: 70px;\n text-transform: uppercase;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.StatusBar_containererror {\n background-image: url("+n(1518)+");\n}\n.StatusBar_messagesuccess {\n background: #34bfa3;\n}\n.StatusBar_messageerror {\n background: #cd333a;\n}\n.StatusBar_button {\n position: fixed;\n top: 43%;\n right: 36%;\n border: 0;\n padding: 10px 20px;\n border-radius: 2px;\n color: #fff;\n text-transform: uppercase;\n -webkit-box-shadow: 1px 5px 4px 0px rgba(0, 0, 0, 0.14);\n box-shadow: 1px 5px 4px 0px rgba(0, 0, 0, 0.14);\n cursor: pointer;\n}\n.StatusBar_buttonError {\n background: #cd333a;\n}\n.StatusBar_buttonSuccess {\n background: #34bfa3;\n}\n",""]),t.locals={container:"StatusBar_container",message:"StatusBar_message",containererror:"StatusBar_containererror",messagesuccess:"StatusBar_messagesuccess",messageerror:"StatusBar_messageerror",button:"StatusBar_button",buttonError:"StatusBar_buttonError",buttonSuccess:"StatusBar_buttonSuccess"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMTciIGhlaWdodD0iMTI3IiB2aWV3Qm94PSIwIDAgMTE3IDEyNyI+CiAgICA8ZGVmcz4KICAgICAgICA8ZmlsdGVyIGlkPSJhIiB3aWR0aD0iMTA3LjklIiBoZWlnaHQ9IjEwNy43JSIgeD0iLTQuMyUiIHk9Ii0yLjQlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPgogICAgICAgICAgICA8ZmVPZmZzZXQgZHk9IjIiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dPZmZzZXRPdXRlcjEiLz4KICAgICAgICAgICAgPGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIxIi8+CiAgICAgICAgICAgIDxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiByZXN1bHQ9InNoYWRvd01hdHJpeE91dGVyMSIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjIyMzEzNzQ1NSAwIi8+CiAgICAgICAgICAgIDxmZU1lcmdlPgogICAgICAgICAgICAgICAgPGZlTWVyZ2VOb2RlIGluPSJzaGFkb3dNYXRyaXhPdXRlcjEiLz4KICAgICAgICAgICAgICAgIDxmZU1lcmdlTm9kZSBpbj0iU291cmNlR3JhcGhpYyIvPgogICAgICAgICAgICA8L2ZlTWVyZ2U+CiAgICAgICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbHRlcj0idXJsKCNhKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLjI2NSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNjg1MUIiIGQ9Ik00NC44NDQgMS41MzhMMjYuNzExIDE0LjYxMWwtOC43MjMgMjAuMTU3LTIuMjA2IDIwLjI5IDIxLjg4OCAzLjU1NS4zNTgtMjIuMzggMTAuODAzLTguNTExIDExLjIyNiAzLjk0IDExLjk3NiA5LjUyIDE2Ljc5Mi43NCAxMi45MjMtMTQuNjk0LS4yMDQtMTkuNTYyLTExLjc2NSA3LjY3LTguNjQ3LTcuMDk2TDY5Ljc0Ny4xNjd6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNMzcuNjcgNTguNjEzbC4zNTgtMjIuMzhMNDguODMgMjcuNzJsMTEuMjI2IDMuOTQxIDExLjk3NiA5LjUyIDE2Ljc5Mi43NCAxMi45MjItMTQuNjk0LS4yMDMtMTkuNTYyLTExLjc2NCA3LjY3LTguNjQ4LTcuMDk2TDY5Ljc0OC4xNjcgNDQuODQ0IDEuNTM4IDI2LjcxMSAxNC42MTFsLTguNzIzIDIwLjE1Ny0yLjIwNiAyMC4yOXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjY4NTFCIiBkPSJNMzAuODE1IDI5LjIxMWwtMTEuMDQ0IDguM0w5LjQzOSA1Mi42Njd2MTAuNTE3TDEuNjAxIDc3LjQ3NnY4LjE1TC4xNzYgMTA2LjMxMmw4LjM1Ny4yMTcgMy40LTE2LjMwNiAxMi4xMTMtMTMuMTAyIDIuMTM4IDUuOTE1LS4zODMgOS42OTggOC4yMiAxMi4xNjItMy4yMDYgOS4wMzIgNDEuMzIgMTAuODgzIDguODU5LTIuODU0LTQuMDUxLTQuMzE2LTE0LjE0LTcuMjYxIDYuMzk0LTkuMjY4IDI5Ljk3NiAxOS40NjEgMTcuNDM4LS4zNTUtLjQyMS0yLjQ4OC0xLjc3LS44NDItMTIuOTQ5LTcuMjUtMjMuODY5LTI1LjU1LTQuMzQtMjUuMTM3LTExLjQ0Ny0xNy42NTdMNDIuOTI4IDI3LjA4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTczLjI2MiA1OC45NTJMNjEuODE1IDQxLjI5NSA0Mi45MjggMjcuMDc5IDMwLjgxNSAyOS4yMWwtMTEuMDQ0IDguM0w5LjQzOSA1Mi42Njd2MTAuNTE3TDEuNjAxIDc3LjQ3NnY4LjE1TC4xNzYgMTA2LjMxMmw4LjM1Ny4yMTcgMy40LTE2LjMwNkwyNC4wNDYgNzcuMTJsMi4xMzggNS45MTctLjM4MyA5LjY5NiA4LjIyIDEyLjE2My0zLjIwNiA5LjAzMiA0MS4zMiAxMC44ODMgOC44NTktMi44NTQtNC4wNTEtNC4zMTUtMTQuMTQtNy4yNjIgNi4zOTUtOS4yNjggMjkuOTc1IDE5LjQ2MSAxNy40MzctLjM1NS0uNDItMi40ODgtMS43Ny0uODQyLTEyLjk0OS03LjI1LTIzLjg2OS0yNS41NXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRDdDMUIzIiBkPSJNNjMuNjI4LjU0NEw3NC4yNSAxMi40NjhsMTEuNDI3IDguMDMtMTIuNjU1IDguNDgyLTkuMzEzIDUuNjI1IDguMTA2IDYuODI1IDE3LjAwOS40OTEgMTIuOTIzLTE0LjY5My0uMjA0LTE5LjU2Mi0xMi44NzggNC45NDVMNjkuNzQ3LjE2N3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNEN0MxQjMiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02My42MjguNTQ0TDc0LjI1IDEyLjQ2OGwxMS40MjcgOC4wMy0xMi42NTUgOC40ODItOS4zMTMgNS42MjUgOC4xMDYgNi44MjUgMTcuMDA5LjQ5MSAxMi45MjMtMTQuNjkzLS4yMDQtMTkuNTYyLTEyLjg3NyA0Ljk0NUw2OS43NDcuMTY3eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNEN0MxQjMiIGQ9Ik00MS40NjIgNzEuMzM0djYuNTU1TDM0LjU3IDg4LjYzN2wzLjQ0NiAyLjk2Mi00LjMyNCAxMy4yOTctOC4wNjctMTEuOTMuNTU5LTkuOTMtMi4xMzgtNS41ODYgMy42MzEtMTIuMzA3aDkuMTQ4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Q3QzFCMyIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTQxLjQ2MiA3MS4zMzR2Ni41NTVMMzQuNTcgODguNjM3bDMuNDQ2IDIuOTYyLTQuMzI0IDEzLjI5Ny04LjA2Ny0xMS45My41NTktOS45My0yLjEzOC01LjU4NiAzLjYzMS0xMi4zMDdoOS4xNDh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzc2M0QxNiIgZD0iTTEzLjYwNiA3Mi4zODZsLTcuMTggMi40MzYtNC44MjUgMi42NTUtMS40MjUgMjguODM1IDMuNzgzIDIuMjQyIDguNzc2LS42ODMtMS45NjctNS44IDEuMTY1LTExLjg0OEwyMy43MTYgNzcuNDVsLTUuNTE1LTEuNjMydi02Ljk1MnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02LjQyNyA3NC44MjJsNy4xNzktMi40MzYgNC41OTUtMy41MnY2Ljk1Mmw1LjUxNSAxLjYzMS0xMS43ODMgMTIuNzc0LTEuMTY1IDExLjg0OSAxLjk2NyA1LjgtOC43NzYuNjgyLTMuNzgzLTIuMjQyIDEuNDI1LTI4LjgzNnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNNDIuNDUgMTE0LjI1N3YzLjAwMWwzNC4wODIgOC43NTggNC40NjItNC4wNTktMy4zOTEtNS4zMDItNC4yODQtMi4zOTgtMTAuNTE1LTMuODc3LTEzLjk1Mi0xLjAwM3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik00Mi40NSAxMTQuMjU3bDYuNDAzLTQuODggMTMuOTUxIDEuMDAzIDEwLjUxNCAzLjg3NyA0LjI4NSAyLjM5OCAzLjM5IDUuMzAyLTQuNDYxIDQuMDU5LTM0LjA4MS04Ljc1OHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNNzIuMTM0IDEwOC40MDdsMjcuMDQgMTIuMTY2IDE3LjQzNi0uMzU2LS4wOS0yLjQ4Ny03LjU5Ny0zLjg4NC0xNy41MTItOS4zMTR6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNzIuMTM0IDEwOC40MDdsMjcuMDQgMTIuMTY2IDE3LjQzNi0uMzU2LS4wOS0yLjQ4Ny03LjU5Ny0zLjg4NC0xNy41MTItOS4zMTR6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0U0NzYxQiIgZD0iTTEwMi44NzIgOTguMDM4bC0zLjM3NSAxMS43LTcuMDU0LTEuOTIzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTEwMi44NzIgOTguMDM4bC0zLjM3NSAxMS43LTcuMDU0LTEuOTIzeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFNDc2MUIiIGQ9Ik05Mi40NDMgMTA3LjgxNWw2LjgwMy05LjI5OSAzLjM4My0uNjIzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTkyLjQ0MyAxMDcuODE1bDYuODAzLTkuMjk5IDMuMzgzLS42MjN6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTk3LjgwMyA4OC40ODNsMy40MDItMi4zNSAxLjg4NSAxMS40ODctNS4yODctOS4xMzd6bTAgMGw1LjI4NyA5LjEzNy0zLjg0NC44OTYtMS40NDMtMTAuMDMzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTk3LjgwMyA4OC40ODNsMy40MDItMi4zNSAxLjg4NSAxMS40ODctNS4yODctOS4xMzd6bTAgMGw1LjI4NyA5LjEzNy0zLjg0NC44OTYtMS40NDMtMTAuMDMzeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik0xMDIuNDU3IDgyLjQwMWwtOC45ODMtLjgyMiA5LjI5Mi0xLjgwNy0uMzEgMi42M3ptLTguOTgzLS44MjJsOS43NzgtMy45OTYtLjQ4NiAyLjE5LTkuMjkyIDEuODA2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTEwMi40NTcgODIuNDAxbC04Ljk4My0uODIyIDkuMjkyLTEuODA3LS4zMSAyLjYzem0tOC45ODMtLjgyMmw5Ljc3OC0zLjk5Ni0uNDg2IDIuMTktOS4yOTIgMS44MDZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzc2M0QxNiIgZD0iTTEwMi40NTcgODIuNDAxbC4zMDktMi42MjkgMS4zMSAxLjA4Ny0xLjYyIDEuNTQyem0xLjk1OC0zLjg5MmwtMS42NSAxLjI2My40ODctMi4xODkgMS4xNjMuOTI2em0tMS45NTggMy44OTJsLTEuMjUyIDMuNzMyLTcuNzMxLTQuNTU0IDguOTgzLjgyMnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik0xMDIuNDU3IDgyLjQwMWwuMzA5LTIuNjI5IDEuMzEgMS4wODctMS42MiAxLjU0MnptMS45NTgtMy44OTJsLTEuNjUgMS4yNjMuNDg3LTIuMTg5IDEuMTYzLjkyNnptLTEuOTU4IDMuODkybC0xLjI1MiAzLjczMi03LjczMS00LjU1NCA4Ljk4My44MjJ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0UyNzYxQiIgZD0iTTg0Ljg2IDEwNC44NjJsMi40NDQuNzc5IDUuMTM5IDIuMTc0eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0UyNzYxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTg0Ljg2IDEwNC44NjJsMi40NDQuNzc5IDUuMTM5IDIuMTc0eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik0xMDEuMjA1IDg2LjEzM2wtMTAuMTQ3LTMuMzM1IDIuNDE2LTEuMjIgNy43MyA0LjU1NXptMCAwbDEuMjUyLTMuNzMyIDEuMDc1LjgyMy0yLjMyNyAyLjkwOXoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik0xMDEuMjA1IDg2LjEzM2wtMTAuMTQ3LTMuMzM1IDIuNDE2LTEuMjIgNy43MyA0LjU1NXptMCAwbDEuMjUyLTMuNzMyIDEuMDc1LjgyMy0yLjMyNyAyLjkwOXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNOTUuODg5IDcwLjEzNmwtMi40MTUgMTEuNDQzLTIuNDE1IDEuMjJ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNOTUuODg5IDcwLjEzNmwtMi40MTUgMTEuNDQzLTIuNDE1IDEuMjJ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzc2M0QxNiIgZD0iTTEwMy4yNTIgNzcuNTgzbC05Ljc3OCAzLjk5NiAyLjQxNS0xMS40NDR6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNMTAzLjI1MiA3Ny41ODNsLTkuNzc4IDMuOTk2IDIuNDE1LTExLjQ0NHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNOTUuODg5IDcwLjEzNmwxMC4yMDUtMS4xNzUtMi44NDIgOC42MjJ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNOTUuODg5IDcwLjEzNmwxMC4yMDUtMS4xNzUtMi44NDIgOC42MjJ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTEwMS4yMDUgODYuMTMzbC0zLjQwMiAyLjM1LTYuNzQ1LTUuNjg1eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTEwMS4yMDUgODYuMTMzbC0zLjQwMiAyLjM1LTYuNzQ1LTUuNjg1eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik0xMDUuNjUyIDYwLjcybC40NDIgOC4yNC0xMC4yMDUgMS4xNzZ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNMTA1LjY1MiA2MC43MmwuNDQyIDguMjQtMTAuMjA1IDEuMTc2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFMjc2MUIiIGQ9Ik0xMDUuNjUyIDYwLjcyTDg1LjI1NyA3NS41MTFsLS4yNjUtMTAuMDMzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0UyNzYxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTEwNS42NTIgNjAuNzJMODUuMjU3IDc1LjUxMWwtLjI2NS0xMC4wMzN6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTY5LjgyNCA2NC4yNzRsMTUuMTY4IDEuMjA1LjI2NSAxMC4wMzN6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNjkuODI0IDY0LjI3NGwxNS4xNjggMS4yMDUuMjY1IDEwLjAzM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNOTEuMDU5IDgyLjc5OGwtNS44MDItNy4yODYgMTAuNjMyLTUuMzc2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTkxLjA1OSA4Mi43OThsLTUuODAyLTcuMjg2IDEwLjYzMi01LjM3NnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRTQ3NjFCIiBkPSJNOTEuMDU5IDgyLjc5OGw2Ljc0NCA1LjY4NS05LjQ2OSAxLjA0M3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFNDc2MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05MS4wNTkgODIuNzk4bDYuNzQ0IDUuNjg1LTkuNDY5IDEuMDQzeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFNDc2MUIiIGQ9Ik04OC4zMzUgODkuNTI2bC0zLjA3OC0xNC4wMTQgNS44MDIgNy4yODZ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRTQ3NjFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODguMzM1IDg5LjUyNmwtMy4wNzgtMTQuMDE0IDUuODAyIDcuMjg2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik05NS44ODkgNzAuMTM2bC0xMC42MzIgNS4zNzYgMjAuMzk1LTE0Ljc5M3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05NS44ODkgNzAuMTM2bC0xMC42MzIgNS4zNzYgMjAuMzk1LTE0Ljc5M3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQzBBRDlFIiBkPSJNNjkuOTU3IDEwNy41OGw0LjgxNSA1LjAwOS02LjU1My01Ljk1eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTY5Ljk1NyAxMDcuNThsNC44MTUgNS4wMDktNi41NTMtNS45NXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQ0Q2MTE2IiBkPSJNOTIuNDQzIDEwNy44MTVsMi4yODMtOC42NTMgNC41Mi0uNjQ2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0NENjExNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTkyLjQ0MyAxMDcuODE1bDIuMjgzLTguNjUzIDQuNTItLjY0NnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRTI3NjFCIiBkPSJNNTAuNDMgODMuNDc0bDguMzM1LTguNzQtNy4yNiA3LjY5N3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFMjc2MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik01MC40MyA4My40NzRsOC4zMzUtOC43NC03LjI2IDcuNjk3eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNjg1MUIiIGQ9Ik04NS4yNTcgNzUuNTEybC04LjExNC0uMjY1LTcuMzItMTAuOTczIDE1LjQzNCAxMS4yMzh6bTEzLjk5IDIzLjAwNGwtNC41MjEuNjQ2IDMuMDc3LTEwLjY3OSAxLjQ0MyAxMC4wMzN6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODUuMjU3IDc1LjUxMmwtOC4xMTQtLjI2NS03LjMyLTEwLjk3MyAxNS40MzQgMTEuMjM4em0xMy45OSAyMy4wMDRsLTQuNTIxLjY0NiAzLjA3Ny0xMC42NzkgMS40NDMgMTAuMDMzeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFNDc1MUYiIGQ9Ik05Ny44MDMgODguNDgzbC0zLjA3NyAxMC42OC0uMjUxLTUuMjE2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzUxRiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTk3LjgwMyA4OC40ODNsLTMuMDc3IDEwLjY4LS4yNTEtNS4yMTZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0NENjExNiIgZD0iTTg4LjMzNSA4OS41MjZsOS40NjgtMS4wNDMtMy4zMjggNS40NjR6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODguMzM1IDg5LjUyNmw5LjQ2OC0xLjA0My0zLjMyOCA1LjQ2NHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjY4NTFCIiBkPSJNNzcuMTQzIDc1LjI0N2w4LjExNC4yNjUgMy4wNzcgMTQuMDE0eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTc3LjE0MyA3NS4yNDdsOC4xMTQuMjY1IDMuMDc3IDE0LjAxNHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRTQ3NjFCIiBkPSJNNjkuODEgMTEwLjY1bC0xOS4wMjYgNS44NzUtMy44LTE0LjQ2OSAyMi44MjUgOC41OTR6bTcuMzMzLTM1LjQwM0w1NS4yNDYgNTUuMDM0bDE0LjU3OCA5LjI0IDcuMzE5IDEwLjk3M3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFNDc2MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02OS44MSAxMTAuNjVsLTE5LjAyNiA1Ljg3NS0zLjgtMTQuNDY5IDIyLjgyNSA4LjU5NHptNy4zMzMtMzUuNDAzTDU1LjI0NiA1NS4wMzRsMTQuNTc4IDkuMjQgNy4zMTkgMTAuOTczeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik01My4yNTcgODcuMDg3bDcuMTg3LTUuNjI2IDYuMDIyIDEuMzk2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTUzLjI1NyA4Ny4wODdsNy4xODctNS42MjYgNi4wMjIgMS4zOTZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzc2M0QxNiIgZD0iTTY2LjQ2NiA4Mi44NTdsLTYuMDIyLTEuMzk2IDMuMjI1LTEzLjI4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTY2LjQ2NiA4Mi44NTdsLTYuMDIyLTEuMzk2IDMuMjI1LTEzLjI4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik01MS41MDUgODIuNDNsOC45MzktLjk2OS03LjE4NyA1LjYyNnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik01MS41MDUgODIuNDNsOC45MzktLjk2OS03LjE4NyA1LjYyNnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQ0Q2MTE2IiBkPSJNOTQuNDc1IDkzLjk0N2wtMy43MS4yMjUtMi40My00LjY0NnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNDRDYxMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05NC40NzUgOTMuOTQ3bC0zLjcxLjIyNS0yLjQzLTQuNjQ2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik01MS41MDUgODIuNDNsLS42MzMtMy4zMzQgOS41NzIgMi4zNjV6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNTEuNTA1IDgyLjQzbC0uNjMzLTMuMzM0IDkuNTcyIDIuMzY1eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMyMzM0NDciIGQ9Ik04OS45OTggOTYuMjgzbC43NjYtMS44MTMgMy43MTEtLjUyM3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiMyMzM0NDciIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik04OS45OTggOTYuMjgzbC43NjYtMS44MTMgMy43MTEtLjUyM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjY4NTFCIiBkPSJNOTQuNzI2IDk5LjE2MmwtNC43MjgtMi44NzkgNC40NzctMi4zMzZ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNOTQuNzI2IDk5LjE2MmwtNC43MjgtMi44NzkgNC40NzctMi4zMzZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzc2M0QxNiIgZD0iTTYzLjY2OSA2OC4xODJsMTMuNDc0IDcuMDY1LTEwLjY3NyA3LjYxLTIuNzk3LTE0LjY3NXptMCAwbC0zLjIyNSAxMy4yOEw1MC4wOSA3Ni4yOWwxMy41NzgtOC4xMDh6bS0zLjIyNSAxMy4yOGwtOS41NzItMi4zNjYtLjc4LTIuODA2IDEwLjM1MiA1LjE3MXoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02My42NjkgNjguMTgybDEzLjQ3NCA3LjA2NS0xMC42NzcgNy42MS0yLjc5Ny0xNC42NzV6bTAgMGwtMy4yMjUgMTMuMjhMNTAuMDkgNzYuMjlsMTMuNTc4LTguMTA4em0tMy4yMjUgMTMuMjhsLTkuNTcyLTIuMzY2LS43OC0yLjgwNiAxMC4zNTIgNS4xNzF6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0U0NzYxQiIgZD0iTTgxLjkgODkuNzQ2bC0xNC43NTYtLjMwOC0uNjc4LTYuNThMODEuOSA4OS43NDV6bS0xNS40MzQtNi44ODlsMTAuNjc3LTcuNjEgNC43NTYgMTQuNS0xNS40MzMtNi44OXoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFNDc2MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik04MS45IDg5Ljc0NmwtMTQuNzU2LS4zMDgtLjY3OC02LjU4TDgxLjkgODkuNzQ1em0tMTUuNDM0LTYuODg5bDEwLjY3Ny03LjYxIDQuNzU2IDE0LjUtMTUuNDMzLTYuODl6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTg4LjMzNSA4OS41MjZsLTYuNDM2LjIyLTQuNzU2LTE0LjQ5OCAxMS4xOTIgMTQuMjc4em0tMzUuMDc4LTIuNDM5bDEzLjIxLTQuMjMuNjc3IDYuNTgtMTMuODg3LTIuMzV6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODguMzM1IDg5LjUyNmwtNi40MzYuMjItNC43NTYtMTQuNDk4IDExLjE5MiAxNC4yNzh6bS0zNS4wNzgtMi40MzlsMTMuMjEtNC4yMy42NzcgNi41OC0xMy44ODctMi4zNXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQ0Q2MTE2IiBkPSJNOTAuNzY0IDk0LjE3Mkw5MCA5Ni4yODNsLTEuNjY0LTYuNzU3eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0NENjExNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTkwLjc2NCA5NC4xNzJMOTAgOTYuMjgzbC0xLjY2NC02Ljc1N3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNNTUuMjQ2IDU1LjAzNWwyMS44OTcgMjAuMjEzLTEzLjQ3NC03LjA2NnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik01NS4yNDYgNTUuMDM1bDIxLjg5NyAyMC4yMTMtMTMuNDc0LTcuMDY2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFNDc2MUIiIGQ9Ik00Ni45ODQgMTAyLjA1NmwxOC40NjYtLjc2NCA0LjM2IDkuMzU4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTQ2Ljk4NCAxMDIuMDU2bDE4LjQ2Ni0uNzY0IDQuMzYgOS4zNTh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0NENjExNiIgZD0iTTY5LjgxIDExMC4zNTFsLTQuMzYtOS4wNTkgOS4wNzItLjQ0eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0NENjExNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTY5LjgxIDExMC4zNTFsLTQuMzYtOS4wNTkgOS4wNzItLjQ0eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNjg1MUIiIGQ9Ik04My43MSA5NC4yNDFsLTEuODEtNC40OTUgNi40MzQtLjIyLTQuNjI0IDQuNzE1em00LjYyNC00LjcxNWwxLjIwOCA0LjM3OC01LjgzMi4zMzcgNC42MjQtNC43MTV6TTY1LjQ1IDEwMS4yOTJsLTE4LjQ2Ni43NjQgMjAuMTYtMTIuNjE4LTEuNjk0IDExLjg1NHptMS42OTQtMTEuODU0bC0yMC4xNiAxMi42MTggNi4yNzMtMTQuOTY5IDEzLjg4NyAyLjM1em0yMi44NTQgNi44NDVsNC43MjcgMi44OCAyLjYwNyA2LjEyNS03LjMzNC05LjAwNXoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik04My43MSA5NC4yNDFsLTEuODEtNC40OTUgNi40MzQtLjIyLTQuNjI0IDQuNzE1em00LjYyNC00LjcxNWwxLjIwOCA0LjM3OC01LjgzMi4zMzcgNC42MjQtNC43MTV6TTY1LjQ1IDEwMS4yOTJsLTE4LjQ2Ni43NjQgMjAuMTYtMTIuNjE4LTEuNjk0IDExLjg1NHptMS42OTQtMTEuODU0bC0yMC4xNiAxMi42MTggNi4yNzMtMTQuOTY5IDEzLjg4NyAyLjM1em0yMi44NTQgNi44NDVsNC43MjcgMi44OCAyLjYwNyA2LjEyNS03LjMzNC05LjAwNXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQzBBRDlFIiBkPSJNNzQuNzcyIDExMi41ODlsLTQuOTYzLTEuOTQgMTcuMjU5IDIuODk1eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTc0Ljc3MiAxMTIuNTg5bC00Ljk2My0xLjk0IDE3LjI1OSAyLjg5NXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNNTMuMjU3IDg3LjA4N2wtMi44MjctMy42MTMgMS4wNzUtMS4wNDN6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNzYzRDE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNTMuMjU3IDg3LjA4N2wtMi44MjctMy42MTMgMS4wNzUtMS4wNDN6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Q3QzFCMyIgZD0iTTg5LjAyNyAxMTEuMzk5bC0xLjk1OSAyLjE0NS0xNy4yNTktMi44OTR6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRDdDMUIzIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODkuMDI3IDExMS4zOTlsLTEuOTU5IDIuMTQ1LTE3LjI1OS0yLjg5NHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRTQ3NjFCIiBkPSJNODkuOTU0IDEwNi4xNGwtMjAuMTQ1IDQuNTEgNC43MTMtOS43OTh6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRTQ3NjFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODkuOTU0IDEwNi4xNGwtMjAuMTQ1IDQuNTEgNC43MTMtOS43OTh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Q3QzFCMyIgZD0iTTY5LjgxIDExMC42NWwyMC4xNDQtNC41MS0uOTI4IDUuMjU5eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Q3QzFCMyIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTY5LjgxIDExMC42NWwyMC4xNDQtNC41MS0uOTI4IDUuMjU5eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik01MS41MDUgODIuNDNsLTEuOTU4LTEuOTgyIDEuMzI1LTEuMzUyLjYzMyAzLjMzNXptLTEuNDE0LTYuMTRsLS42NjItMTEuMjk2IDE0LjI0IDMuMTg4TDUwLjA5IDc2LjI5eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTUxLjUwNSA4Mi40M2wtMS45NTgtMS45ODIgMS4zMjUtMS4zNTIuNjMzIDMuMzM1em0tMS40MTQtNi4xNGwtLjY2Mi0xMS4yOTYgMTQuMjQgMy4xODhMNTAuMDkgNzYuMjl6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0NENjExNiIgZD0iTTc4LjYgOTQuNzQ1bDMuMy00Ljk5OS0uNDcyIDcuMTF6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNzguNiA5NC43NDVsMy4zLTQuOTk5LS40NzIgNy4xMXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQ0Q2MTE2IiBkPSJNODEuOSA4OS43NDZsLTMuMyA0LjctNC44LjY5MXoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNDRDYxMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik04MS45IDg5Ljc0NmwtMy4zIDQuNy00LjguNjkxeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNjg1MUIiIGQ9Ik05Ny4zMzIgMTA1LjI4OGwtLjg5OS0uNjYxTDkwIDk2LjI4M3oiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05Ny4zMzIgMTA1LjI4OGwtLjg5OS0uNjYxTDkwIDk2LjI4M3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQ0Q2MTE2IiBkPSJNNzMuOCA5NS4xMzdsLTYuNjU2LTUuNjk5IDE0Ljc1Ni4zMDh6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNzMuOCA5NS4xMzdsLTYuNjU2LTUuNjk5IDE0Ljc1Ni4zMDh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0U0NzUxRiIgZD0iTTgxLjQyOCA5Ni44NTZsLjQ3MS03LjExIDEuODEyIDQuNDk1eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzUxRiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTgxLjQyOCA5Ni44NTZsLjQ3MS03LjExIDEuODEyIDQuNDk1eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM3NjNEMTYiIGQ9Ik00OC44OTkgNzcuNDA3bDEuMTkyLTEuMTE3Ljc4IDIuODA2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTQ4Ljg5OSA3Ny40MDdsMS4xOTItMS4xMTcuNzggMi44MDZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzIzMzQ0NyIgZD0iTTgxLjQyOCA5Ni44NTZMNzMuOCA5NS4xMzdsNC44LS4zOTJ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjMjMzNDQ3IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNODEuNDI4IDk2Ljg1Nkw3My44IDk1LjEzN2w0LjgtLjM5MnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNzYzRDE2IiBkPSJNNjMuNjY5IDY4LjE4MmwtMTQuMjQtMy4xODggNS44MTYtOS45NnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiM3NjNEMTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02My42NjkgNjguMTgybC0xNC4yNC0zLjE4OCA1LjgxNi05Ljk2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNDMEFEOUUiIGQ9Ik04Ny4wNjggMTEzLjU0NGwuODEgMi4yMDMtMTMuMTA2LTMuMTU4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTg3LjA2OCAxMTMuNTQ0bC44MSAyLjIwMy0xMy4xMDYtMy4xNTh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTc0LjUyMiAxMDAuODUybC0uNzIyLTUuNzE1IDcuNjI4IDEuNzJ6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNNzQuNTIyIDEwMC44NTJsLS43MjItNS43MTUgNy42MjggMS43MnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRTQ3NTFGIiBkPSJNNjcuMTQ0IDg5LjQzOGw2LjY1NiA1LjcuNzIyIDUuNzEzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzUxRiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTY3LjE0NCA4OS40MzhsNi42NTYgNS43LjcyMiA1LjcxM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjY4NTFCIiBkPSJNNjcuMTQ0IDg5LjQzOGw3LjM3OCAxMS40MTMtOS4wNzIuNDQxIDEuNjk0LTExLjg1NHptMTYuNTY2IDQuODA0bDUuODMyLS4zMzkgNi44OTIgMTAuNzI0TDgzLjcxIDk0LjI0MnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik02Ny4xNDQgODkuNDM4bDcuMzc4IDExLjQxMy05LjA3Mi40NDEgMS42OTQtMTEuODU0em0xNi41NjYgNC44MDRsNS44MzItLjMzOSA2Ljg5MiAxMC43MjRMODMuNzEgOTQuMjQyeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFNDc1MUYiIGQ9Ik04My43MSA5NC4yNDFsNy4yNDYgMTEuMDAzLTkuNTI4LTguMzg4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0U0NzUxRiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTgzLjcxIDk0LjI0MWw3LjI0NiAxMS4wMDMtOS41MjgtOC4zODh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y2ODUxQiIgZD0iTTgxLjQyOCA5Ni44NTZsOS41MjggOC4zODgtMS4wMDIuODk2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTgxLjQyOCA5Ni44NTZsOS41MjggOC4zODgtMS4wMDIuODk2eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNjg1MUIiIGQ9Ik05Ni40MzQgMTA0LjYyN2wtNS40NzguNjE3TDgzLjcxIDk0LjI0bDEyLjcyNCAxMC4zODZ6bS02LjQ4IDEuNTEzbC0xNS40MzItNS4yODkgNi45MDYtMy45OTUgOC41MjYgOS4yODR6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjRjY4NTFCIiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNOTYuNDM0IDEwNC42MjdsLTUuNDc4LjYxN0w4My43MSA5NC4yNGwxMi43MjQgMTAuMzg2em0tNi40OCAxLjUxM2wtMTUuNDMyLTUuMjg5IDYuOTA2LTMuOTk1IDguNTI2IDkuMjg0eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNDMEFEOUUiIGQ9Ik04Ny44NzggMTE1Ljc0N2wtLjgxLTIuMjAzIDEuOTU4LTIuMTQ1LTEuMTQ4IDQuMzQ4em05Ljk5OS01Ljk1bC0yLjM1NiA0LjcxNi03LjY0MyAxLjIzNCA5Ljk5OS01Ljk1eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTg3Ljg3OCAxMTUuNzQ3bC0uODEtMi4yMDMgMS45NTgtMi4xNDUtMS4xNDggNC4zNDh6bTkuOTk5LTUuOTVsLTIuMzU2IDQuNzE2LTcuNjQzIDEuMjM0IDkuOTk5LTUuOTV6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0MwQUQ5RSIgZD0iTTg3Ljg3OCAxMTUuNzQ3bDIuNTkxLTQuOTIgNy40MDgtMS4wMy0xMCA1Ljk1em0xLjE0OC00LjM0OGwxLjQ0My0uNTczLTIuNTkxIDQuOTIxIDEuMTQ4LTQuMzQ4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTg3Ljg3OCAxMTUuNzQ3bDIuNTkxLTQuOTIgNy40MDgtMS4wMy0xMCA1Ljk1em0xLjE0OC00LjM0OGwxLjQ0My0uNTczLTIuNTkxIDQuOTIxIDEuMTQ4LTQuMzQ4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMxNjE2MTYiIGQ9Ik05Ni40MzQgMTA0LjYyN2wxLjgxMSAxLjEwMi01LjUwOC42NnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiMxNjE2MTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05Ni40MzQgMTA0LjYyN2wxLjgxMSAxLjEwMi01LjUwOC42NnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjMTYxNjE2IiBkPSJNOTIuMTA0IDEwNy4yNTZsNi43LS44MDctLjkyNyAzLjM0OS01Ljc3My0yLjU0MnptLjYzMy0uODY2bC0xLjc4MS0xLjE0NiA1LjQ3OC0uNjE3LTMuNjk3IDEuNzYzeiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzE2MTYxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTkyLjEwNCAxMDcuMjU2bDYuNy0uODA3LS45MjcgMy4zNDktNS43NzMtMi41NDJ6bS42MzMtLjg2NmwtMS43ODEtMS4xNDYgNS40NzgtLjYxNy0zLjY5NyAxLjc2M3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjMTYxNjE2IiBkPSJNOTguMjQ1IDEwNS43MjlsLjU2LjcyLTYuNy44MDggNi4xNC0xLjUyOHptLTguMjkuNDExbDEtLjg5NiAxLjc4MiAxLjE0Ni0yLjc4My0uMjV6bS41MTUgNC42ODZsLTEuNDQzLjU3My45MjctNS4yNTkuNTE2IDQuNjg2em03LjQwNy0xLjAyOGwtNy40MDcgMS4wMjggMS42MzQtMy41NyA1Ljc3MyAyLjU0MnoiLz4KICAgICAgICA8cGF0aCBzdHJva2U9IiMxNjE2MTYiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik05OC4yNDUgMTA1LjcyOWwuNTYuNzItNi43LjgwOCA2LjE0LTEuNTI4em0tOC4yOS40MTFsMS0uODk2IDEuNzgyIDEuMTQ2LTIuNzgzLS4yNXptLjUxNSA0LjY4NmwtMS40NDMuNTczLjkyNy01LjI1OS41MTYgNC42ODZ6bTcuNDA3LTEuMDI4bC03LjQwNyAxLjAyOCAxLjYzNC0zLjU3IDUuNzczIDIuNTQyeiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMxNjE2MTYiIGQ9Ik04OS45NTQgMTA2LjE0bDIuMTUgMS4xMTctMS42MzUgMy41NjktLjUxNS00LjY4NnptMi4xNSAxLjExN2wuNjMzLS44NjcgNS41MDgtLjY2MS02LjE0IDEuNTI4eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzE2MTYxNiIgc3Ryb2tlLXdpZHRoPSIuNSIgZD0iTTg5Ljk1NCAxMDYuMTRsMi4xNSAxLjExNy0xLjYzNSAzLjU2OS0uNTE1LTQuNjg2em0yLjE1IDEuMTE3bC42MzMtLjg2NyA1LjUwOC0uNjYxLTYuMTQgMS41Mjh6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzE2MTYxNiIgZD0iTTkyLjczNyAxMDYuMzlsLS42MzMuODY3LTIuMTUtMS4xMTd6Ii8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjMTYxNjE2IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNOTIuNzM3IDEwNi4zOWwtLjYzMy44NjctMi4xNS0xLjExN3oiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNTM5cHgiIGhlaWdodD0iNjUzcHgiIHZpZXdCb3g9IjAgMCA1MzkgNjUzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IHNrZXRjaHRvb2wgNTAuMiAoNTUwNDcpIC0gaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoIC0tPgogICAgPHRpdGxlPjMzOTNEQTZGLUExQ0EtNEIyMi05NjQ5LUNGQUZBNDg3OEM2RTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggc2tldGNodG9vbC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9ImlsL2ZveF9mYWlsZCIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTIiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImZveF9mYWlsZCI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9IkxheWVyXzMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMDAwMDAwLCAxMDUuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgZmlsbD0iIzZBMkUxNyIgcG9pbnRzPSIzMDcuOCA0ODAuNiAzMDUuOCAzMjUuNSAzNDAuNCAyNjkuMiAzNDAuNCA0ODAuNiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiM2QTJFMTciIHBvaW50cz0iMjYyLjIgNDYxLjkgMjIxLjkgMjgwLjQgMjcxIDMxMC41IDMwMi4xIDQ2MC42Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjRjY4NTFGIiBmaWxsPSIjRjY4NTFGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMzQ0IDIyNS4zIDMwMS42IDI1Ni42IDM0MC40IDI2OS4yIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjQ0Q2MzI4IiBmaWxsPSIjQ0Q2MzI4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMjYxLjQgMC40IDM0MC40IDIwNC4xIDM0MC40IDI2OS4yIDMwNS44IDMyNS41IDMwNC44IDI1NS4zIDMwNC43IDIzMS42IDI5Mi4xIDI2MC40IDI3NS40IDMyOCAyNzEgMzEwLjUgMjIxLjkgMjgwLjQgMjI2LjkgMzAwLjcgMjUyLjIgNDExLjkgMzkzLjcgMzk1LjYgNDQyLjggNDMzLjIgMzA4LjggNDk5LjUgMzM2IDUzNC42IDIxOC4xIDU0Ny4xIDExMi4zIDUxMC44IDAuOSAzNTAuNSAxMDYuMSAxMTYuNCAxOTcuNCA1NC4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjQ0Q2MzI4IiBmaWxsPSIjQ0Q2MzI4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMjczLjQgMjY3LjkgMjcxIDMxMC41IDI3Ny42IDMzMyAyOTMuOSAyNTYuNiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0NENjMyOCIgZmlsbD0iI0NENjMyOCIgb3BhY2l0eT0iMC40NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjI1Mi4yIDExNy43IDI0NS4xIDIxNi42IDI1Mi4yIDI0Mi4zIDIwNS44IDIxMCAxOTYuMiAxNjYuNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0Y2ODUxRiIgZmlsbD0iI0Y2ODUxRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjI3MSA1OS45IDI0MS40IDIzLjEgMTY4LjcgNzMuOSAxOTYuMiAxNjYuNCAyNTIuMiAxMTcuNyI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiNFNkNGQzAiIHBvaW50cz0iMzc3LjggMzQgMjUyLjIgNDEuOCAyNDUuMSAyMTYuNiAyNzEgMzEwLjUgMjczLjQgMjY3LjkgMzQ4LjEgMjM3LjkgMzU3LjMgMTc3LjcgMzgzLjcgMTY2LjQgMzc2LjIgOTAuMSAzODMuNyA2MS42Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjRTM3NzI1IiBmaWxsPSIjRTM3NzI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMzAxLjYgMjU2LjYgMzA1LjggMzI1LjUgMzQwLjQgMjY5LjIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBzdHJva2U9IiNFMzc3MjUiIGZpbGw9IiNFMzc3MjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgcG9pbnRzPSIxMDYuMSAxMTYuNCAxMTcuMyAxNTcuNyAxOTYuMiAxNjYuNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0UzNzcyNSIgZmlsbD0iI0UzNzcyNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjIxNS43IDI1NS40IDE4OS45IDI2MS42IDE2OC43IDIyNi42IDEwNi4xIDIzNi42IDE5Ni4yIDE2Ni40Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjRjY4NTFGIiBmaWxsPSIjRjY4NTFGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMjUyLjIgMjQyLjMgMjA1LjggMjEwIDIyMS45IDI4MC40IDI3MSAzMTAuNSI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0NENjMyOCIgZmlsbD0iI0NENjMyOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjU0LjcgMjQ3LjMgMTQ0LjkgMzY0LjMgMjA1LjggMzEwLjUgMTY4LjcgMjI2LjYiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBzdHJva2U9IiNFMzc3MjUiIGZpbGw9IiNFMzc3MjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgcG9pbnRzPSIyMDUuOCAzMTAuNSAxNDQuOSAzNjQuMyAxNzkuMyA0MDQuNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0NENjMyOCIgZmlsbD0iI0NENjMyOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjI1Mi4yIDQxMS45IDIwNS44IDQxMS45IDE3OS4zIDQwNC40IDIwNS44IDMxMC41IDIyMS45IDI4MC40Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgZmlsbD0iI0U2Q0ZDMCIgcG9pbnRzPSIyMjEuOSAyODAuNCAyMDUuOCAzMTAuNSAxODkuOSAyNjEuNiAyMTUuNyAyNTUuNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0UzNzcyNSIgZmlsbD0iI0UzNzcyNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjU0LjcgMjQ3LjMgMC45IDM1MC41IDE0NC45IDM2NC4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjQ0Q2MzI4IiBmaWxsPSIjQ0Q2MzI4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMTQ0LjkgMzY0LjMgMC45IDM1MC41IDU0LjcgNDM1LjciPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBzdHJva2U9IiNDRDYzMjgiIGZpbGw9IiNDRDYzMjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgcG9pbnRzPSIzMDguOCA0OTkuNSAzOTMuNyAzOTUuNiA0NDIuOCA0MzMuMiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU0LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0Y2ODUxRiIgZmlsbD0iI0Y2ODUxRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjAuNyA3MS43IDkwLjkgMC4zIDE2MS43IDQ3LjkgMTIuMSA4MC4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjRTM3NzI1IiBmaWxsPSIjRTM3NzI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMTYxLjcgNDcuOSAxMi4xIDgwLjMgOTEuMiA5OS4yIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjRTM3NzI1IiBmaWxsPSIjRTM3NzI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMTAwLjMgMTYxLjIgNTguMyAxNDYuOCA5MS4yIDk5LjIgMTQyLjIgMTA5LjIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBzdHJva2U9IiNFMzc3MjUiIGZpbGw9IiNFMzc3MjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgcG9pbnRzPSIxNjQuMSAxODMuMSAxMDAuMyAxNjEuMiAxNDIuMiAxMDkuMiAyNTQuOCAxMzUuNSI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiNFNkNGQzAiIHBvaW50cz0iNDIyLjYgNDAuMyAzMzkuNyAzMS42IDM4OC44IDY5LjIgMjU0LjggMTM1LjUgMjgyIDE3MC42IDM4OC44IDE2MS4yIDQ4NCAxNC4xIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgc3Ryb2tlPSIjQzFBRTlFIiBmaWxsPSIjQzFBRTlFIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iNDg0IDE0LjEgNDIyLjYgNDAuMyAzMzkuNyAzMS42IDM4OC44IDY5LjIgNDQxLjEgODAuMyI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIHN0cm9rZT0iI0Y2ODUxRiIgZmlsbD0iI0Y2ODUxRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjMzOS43IDMxLjYgMTYxLjcgNDcuOSA5MS4yIDk5LjIgMTQyLjIgMTA5LjIgMzg4LjggNjkuMiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxnIGlkPSJTaGFwZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBmaWxsPSIjQ0Q2MzI4IiBwb2ludHM9IjEyMC4zIDE2LjkgMjEwIDI2LjggMTk5LjggOC4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBmaWxsPSIjNzYzRTFBIiBwb2ludHM9IjIxMy42IDM5LjUgMjI1IDc5LjIgMjEwIDI2LjggMTIwLjMgMTYuOSI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gc3Ryb2tlPSIjQ0Q2MzI4IiBmaWxsPSIjQ0Q2MzI4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iNTAgOTIuNCAyMC40IDEyOC4xIDQ4LjkgMTg2LjYgOTMuNCAxMjMuMiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gc3Ryb2tlPSIjRjY4NTFGIiBmaWxsPSIjRjY4NTFGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iMTkwLjUgMTM4LjggMTc3LjggODEuNSAxNDguNCAzOC44IDExMy44IDQ3LjkgNTcuNCAxMjMuMiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTE0NC4xLDE3Ni45IEMxNDQuOCwxNzQuMiAxNTkuMiwxMzUuMiAxNTkuMiwxMzUuMiBMNTcuNCwxMjMuMiBMMzUuNSwyMDMuOSBMMTQ0LjEsMTc2LjkgWiIgZmlsbD0iI0RGNkIyNiI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gZmlsbD0iI0Y0N0EyMCIgcG9pbnRzPSIxOTAuNSAxMzguOCAxNDQuMSAxNzYuOSAxNTkuMiAxMzUuMiI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gZmlsbD0iI0RGNkIyNiIgcG9pbnRzPSIyNzIuNCAxNzAuOCAxNDAuNiAxNzguOSAxOTAuNSAxMzguOCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlsaW5lIGZpbGw9IiNERjZCMjYiIHBvaW50cz0iMTA3LjYgNTYuMiAxMjQuNCAzNS40IDE5Ni45IDIxLjYgMTY5LjEgNy4zIDExNy40IDAuOSAwLjkgNjUiPjwvcG9seWxpbmU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBmaWxsPSIjREY2QjI2IiBwb2ludHM9IjE5My4yIDEwOS45IDE5MC41IDEzOC44IDE3Ny44IDgxLjUiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiNGNDdBMjAiIHBvaW50cz0iMjY2LjkgMTY5LjMgMTkwLjUgMTM4LjggMTkzLjIgMTA5LjkiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiNERjZCMjYiIHBvaW50cz0iMjM1LjQgOTMuNiAyMzEuMSAxMDkuNiAyMjQuMyA5NS40IDIyMC44IDgxLjciPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiNGNjg1MUYiIHBvaW50cz0iMjY2LjkgMTY5LjMgMjczLjkgMTY0LjIgMjMwLjggMTA3LjYgMjI3LjIgODcuMSAyMTIuOSAzOC43IDIwOC4yIDMzLjMgMTk2LjkgMjEuNiAyMTcuMyA5NC45Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBmaWxsPSIjQ0Q2MzI4IiBwb2ludHM9IjE3Ny44IDgxLjUgMjE1LjMgODcuOCAyMTEuNCAxMjQuMyAxOTMuMiAxMDkuOSI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gZmlsbD0iIzI0MzQ0NyIgcG9pbnRzPSIyMTEuNCAxMjQuMyAyMDQuOSAxMDIuNSAxOTAuOCAxMDguNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gZmlsbD0iI0RGNkIyNiIgcG9pbnRzPSIyNjYuOSAxNjkuMyAyMTEuNCAxMjQuMyAyMTUuMyA4Ny44Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBmaWxsPSIjREY2QjI2IiBwb2ludHM9IjE3Ny44IDgxLjUgMTUwLjUgNDEuOSAxOTYuOSAyMS42IDIxNS4zIDg3LjgiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiMxNzE3MTciIHBvaW50cz0iMjg5LjMgMTc3LjggMjkwLjcgMTcyLjcgMjczLjkgMTY0LjIgMjY2LjkgMTY5LjMgMjU5LjkgMTk1LjMgMjczLjEgMTkxLjkiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiNDMUFFOUUiIHBvaW50cz0iMjczLjEgMTkxLjkgMjQ1IDIwOS42IDE0NS42IDE4NSAxNDEuMSAxNzguNSAyMzUuNyAyMDEuOCAyNjAuOCAxOTIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiNERjZCMjYiIHBvaW50cz0iNTcuNCAxMjMuMiAzNy40IDU2LjggMTEwLjcgNTIuNCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gZmlsbD0iI0Q2QzBCMyIgcG9pbnRzPSIxNDEuMSAxNzguNSAyMzUuNyAyMDEuOCAyNjAuOCAxOTIgMjY2LjQgMTcxLjQiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGZpbGw9IiM3NjNFMUEiIHBvaW50cz0iMC45IDY1IDEzNi44IDMxLjkgMTk2LjkgMjEuNiAxNTAuNSA0MS45IDEwMC4xIDU2LjUiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiNGNjg1MUYiIHBvaW50cz0iMTU5LjIgMjguOCAxMTcuNCAwLjkgMTE5LjkgMzYuMyI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiNFMzc1MjUiIHBvaW50cz0iMTk2LjkgMjEuNiAxNTkuMiAxIDExNy40IDAuOSAxNTkuMiAyOC44Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","onClickOutside"]));return f.default.createElement("div",r({},n,{ref:this.getContainer}),t)}},{key:"componentDidMount",value:function(){document.addEventListener("touchend",this.handle,!0),document.addEventListener("click",this.handle,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchend",this.handle,!0),document.removeEventListener("click",this.handle,!0)}}]),t}();l.propTypes={onClickOutside:s.default.func.isRequired},t.default=l},function(e,t,n){var r=n(1523);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(43)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(42)(void 0)).push([e.i,".valueInput_input {\n font-size: 14px;\n padding: 10px;\n border: 1px solid #979797;\n border-right: none;\n width: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin-right: 45px;\n}\n.valueInput_container {\n display: inline-block;\n width: 119px;\n position: relative;\n}\n.valueInput_nextBtn {\n font-size: 14px;\n padding: 10px;\n text-indent: -99999px;\n width: 37px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: url("+n(1524)+") no-repeat center center #438cef;\n border: 1px solid #438cef;\n position: absolute;\n right: 0;\n top: 0;\n}\n.valueInput_nextBtn.valueInput_second {\n background-color: #03cba0;\n border: 1px solid #03cba0;\n}\n",""]),t.locals={input:"valueInput_input",container:"valueInput_container",nextBtn:"valueInput_nextBtn",second:"valueInput_second"}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxM3B4IiB2aWV3Qm94PSIwIDAgMTYgMTMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogc2tldGNodG9vbCA1MC4yICg1NTA0NykgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+NEM3Q0QxNzgtRTI5Ni00QkMwLTkzNjgtQkY3MDRCM0IyOTU0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJTeW1ib2xzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iaWMvYXJyb3dfZnVuZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi4wMDAwMDAsIC0xLjAwMDAwMCkiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICA8ZyBpZD0iYXJyb3ciPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTUiPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik02Ljk5MTI0NDgyLDE0LjQ3NDc0MTEgTDYuOTkxMjQ0ODIsMy4wMzk1MTAwNiBMMTAuODk5OTIxNyw2LjkyMjkxMDQxIEMxMS4wODU3Njk4LDcuMTExNzAyOTYgMTEuMzU5Mzk4Nyw3LjE4NjY5OTg4IDExLjYxNjM4NjksNy4xMTkyODEwNiBDMTEuODczMzc1Miw3LjA1MTg2MjI1IDEyLjA3NDA2OTYsNi44NTI0MzA0MiAxMi4xNDE4ODE4LDYuNTk3MDkyMTMgQzEyLjIwOTY5NCw2LjM0MTc1MzgzIDEyLjEzNDE2MDYsNi4wNjk5MDc3MyAxMS45NDQxMDY0LDUuODg1Mjk0ODkgTDYuNzc0ODc1NTksMC43NDk0OTI0MTkgQzYuNDg2NTA2NDcsMC40NjMwNzQ2MyA2LjAxOTA2MDA5LDAuNDYzMDc0NjMgNS43MzA2OTA5NywwLjc0OTQ5MjQxOSBMMC41NjE0NjAyMDMsNS44ODUyOTQ4OSBDMC40MjI2OTI1NjMsNi4wMjI3NTE1MiAwLjM0NDgxOTAzNCw2LjIwOTUwODgyIDAuMzQ1MDkwOTcyLDYuNDA0MTk0MzYgQzAuMzQ1MTU0NzM3LDYuNzAwODkzOTkgMC41MjUwNzQzNTcsNi45NjgzNTA1NiAwLjgwMDk3NjgzNyw3LjA4MTg4NDAyIEMxLjA3Njg3OTMyLDcuMTk1NDE3NDkgMS4zOTQ0NDkwNiw3LjEzMjY3NzA2IDEuNjA1NjQ0ODIsNi45MjI5MTA0MSBMNS41MTQzMjE3NCwzLjAzOTUxMDA2IEw1LjUxNDMyMTc0LDE0LjQ3NDc0MTEgQzUuNTE0MzIxNzQsMTQuODc5OTQ0NyA1Ljg0NDk0MjIzLDE1LjIwODQyNzIgNi4yNTI3ODMyOCwxNS4yMDg0MjcyIEM2LjY2MDYyNDMzLDE1LjIwODQyNzIgNi45OTEyNDQ4MiwxNC44Nzk5NDQ3IDYuOTkxMjQ0ODIsMTQuNDc0NzQxMSBaIiBpZD0iU2hhcGUiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNi4yNTU3MTQsIDcuODcxNTUzKSByb3RhdGUoODkuNTQyMTUzKSB0cmFuc2xhdGUoLTYuMjU1NzE0LCAtNy44NzE1NTMpICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryList=t.RegistryItem=void 0;var r=Object.assign||function(e){for(var t=1;t0,onClick:function(){return u(i)}},"remove"));y&&(g=n.map(function(t){var n=f.default.createElement(c.FieldInput,{inputRef:function(n){return e._refs[t.name]=n},onChange:function(n){return e.change(n,t.name,t.type)},defaultValue:r[t.name].toString()});return"bool"===t.type&&(n=f.default.createElement("input",{ref:t.name,type:"checkbox"})),f.default.createElement("div",{key:t.name},f.default.createElement(c.FieldLabel,null,t.name),n)}),h=f.default.createElement("div",null,f.default.createElement(c.UpdateButton,{onClick:this.update},"update"),f.default.createElement(c.CancelButton,{onClick:this.cancel},"cancel")));var _=p===r.owner;return f.default.createElement("div",null,_&&f.default.createElement(c.ButtonContainer,null,h),f.default.createElement(o.Section,null,f.default.createElement(o.SectionContent,{grow:2},f.default.createElement("div",{style:{margintTop:20}},g)),f.default.createElement(o.SectionContent,{grow:0,style:{width:"25%"}},f.default.createElement(o.Centred,null,f.default.createElement("div",null,f.default.createElement(l.default,{height:100,address:r.owner,isOwner:_,onTransfer:m})),f.default.createElement("div",null,f.default.createElement(s.default,{onInter:function(e){return d(i,e)},buttonLable:"fund entry"})))),f.default.createElement(o.SectionContent,{grow:0,style:{width:"25%"}},f.default.createElement(o.Centred,{style:{justifyContent:_?"space-between":"start"}},f.default.createElement(c.Label,{style:{marginBottom:_?0:40}},"Funded:"),f.default.createElement(c.Amount,null,r.currentEntryBalanceETH," ETH"),_&&f.default.createElement(s.default,{onInter:function(e){return a(i,e)},buttonLable:"claim funds",color:"second"})))))}}]),t}();t.RegistryItem=d,t.RegistryList=function(e){var t=e.children;return f.default.createElement("div",null,t)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var g={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000"},h={value:d.string.isRequired,size:d.number,level:d.oneOf(["L","M","Q","H"]),bgColor:d.string,fgColor:d.string},_=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=new Array(i),s=0;s=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},l.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},l.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=f.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},l.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},l.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=f.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++){a=!e&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},l.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var o=0;o<2;o++)if(null==this.modules[r][s-o]){var l=!1;a>>i&1)),f.getMask(t,r,s-o)&&(l=!l),this.modules[r][s-o]=l,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},o.PAD0=236,o.PAD1=17,o.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,l=0;l8*u)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*u+")");for(s.getLengthInBits()+4<=8*u&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*u||(s.put(o.PAD0,8),s.getLengthInBits()>=8*u));)s.put(o.PAD1,8);return o.createBytes(s,r)},o.createBytes=function(e,t){for(var n=0,r=0,i=0,a=new Array(t.length),o=new Array(t.length),l=0;l=0?m.get(y):0}}var g=0;for(d=0;d>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(598),i=n(600),a=n(601),f=0,s=1,o=2,l=3,c=4,u=5,d=6,p=7,m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;m.getBCHDigit(t)-m.getBCHDigit(m.G15)>=0;)t^=m.G15<=0;)t^=m.G18<>>=1;return t},getPatternPosition:function(e){return m.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case f:return(t+n)%2==0;case s:return t%2==0;case o:return n%3==0;case l:return(t+n)%3==0;case c:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case u:return t*n%2+t*n%3==0;case d:return(t*n%2+t*n%3)%2==0;case p:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+a-5)}for(r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===a[b-2]?2:"="===a[b-1]?1:0}function k(a){return 3*a.length/4-j(a)}function l(a){var b,c,d,g,h,i,k=a.length;h=j(a),i=new f(3*k/4-h),d=h>0?k-4:k;var l=0;for(b=0,c=0;b>16&255,i[l++]=g>>8&255,i[l++]=255&g;return 2===h?(g=e[a.charCodeAt(b)]<<2|e[a.charCodeAt(b+1)]>>4,i[l++]=255&g):1===h&&(g=e[a.charCodeAt(b)]<<10|e[a.charCodeAt(b+1)]<<4|e[a.charCodeAt(b+2)]>>2,i[l++]=g>>8&255,i[l++]=255&g),i}function m(a){return d[a>>18&63]+d[a>>12&63]+d[a>>6&63]+d[63&a]}function n(a,b,c){for(var d,e=[],f=b;fj?j:i+h));return 1===e?(b=a[c-1],f+=d[b>>2],f+=d[b<<4&63],f+="=="):2===e&&(b=(a[c-2]<<8)+a[c-1],f+=d[b>>10],f+=d[b>>4&63],f+=d[b<<2&63],f+="="),g.push(f),g.join("")}c.byteLength=k,c.toByteArray=l,c.fromByteArray=o;for(var d=[],e=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,i=g.length;hg)throw new RangeError("size is too large");var f=d,h=c;void 0===h&&(f=void 0,h=0);var i=new e(b);if("string"==typeof h)for(var j=new e(h,f),k=j.length,l=-1;++lg)throw new RangeError("size is too large");return new e(b)},c.from=function(c,d,f){if("function"==typeof e.from&&(!b.Uint8Array||Uint8Array.from!==e.from))return e.from(c,d,f);if("number"==typeof c)throw new TypeError('"value" argument must not be a number');if("string"==typeof c)return new e(c,d);if("undefined"!=typeof ArrayBuffer&&c instanceof ArrayBuffer){var g=d;if(1===arguments.length)return new e(c);"undefined"==typeof g&&(g=0);var h=f;if("undefined"==typeof h&&(h=c.byteLength-g),g>=c.byteLength)throw new RangeError("'offset' is out of bounds");if(h>c.byteLength-g)throw new RangeError("'length' is out of bounds");return new e(c.slice(g,g+h))}if(e.isBuffer(c)){var i=new e(c.length);return c.copy(i,0,0,c.length),i}if(c){if(Array.isArray(c)||"undefined"!=typeof ArrayBuffer&&c.buffer instanceof ArrayBuffer||"length"in c)return new e(c);if("Buffer"===c.type&&Array.isArray(c.data))return new e(c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},c.allocUnsafeSlow=function(b){if("function"==typeof e.allocUnsafeSlow)return e.allocUnsafeSlow(b);if("number"!=typeof b)throw new TypeError("size must be a number");if(b>=g)throw new RangeError("size is too large");return new f(b)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:5}],5:[function(a,b,c){(function(b){"use strict";function g(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}function h(){return j.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(a,b){if(h()=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|a}function t(a){return+a!=a&&(a=0),j.alloc(+a)}function u(a,b){if(j.isBuffer(a))return a.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":case void 0:return Y(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return _(a).length;default:if(d)return Y(a).length;b=(""+b).toLowerCase(),d=!0}}function v(a,b,c){var d=!1;if((void 0===b||b<0)&&(b=0),b>this.length)return"";if((void 0===c||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,b>>>=0,c<=b)return"";for(a||(a="utf8");;)switch(a){case"hex":return L(this,b,c);case"utf8":case"utf-8":return G(this,b,c);case"ascii":return J(this,b,c);case"latin1":case"binary":return K(this,b,c);case"base64":return F(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function w(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function x(a,b,c,d,e){if(0===a.length)return-1;if("string"==typeof c?(d=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,isNaN(c)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return-1;c=a.length-1}else if(c<0){if(!e)return-1;c=0}if("string"==typeof b&&(b=j.from(b,d)),j.isBuffer(b))return 0===b.length?-1:y(a,b,c,d,e);if("number"==typeof b)return b&=255,j.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):y(a,[b],c,d,e);throw new TypeError("val must be string, number or Buffer")}function y(a,b,c,d,e){function i(a,b){return 1===f?a[b]:a.readUInt16BE(b*f)}var f=1,g=a.length,h=b.length;if(void 0!==d&&(d=String(d).toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return-1;f=2,g/=2,h/=2,c/=2}var j;if(e){var k=-1;for(j=c;jg&&(c=g-h),j=c;j>=0;j--){for(var l=!0,m=0;me&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new TypeError("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;g239?4:f>223?3:f>191?2:1;if(e+h<=c){var i,j,k,l;switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return I(d)}function I(a){var b=a.length;if(b<=H)return String.fromCharCode.apply(String,a);for(var c="",d=0;dd)&&(c=d);for(var e="",f=b;fc)throw new RangeError("Trying to access beyond buffer length")}function O(a,b,c,d,e,f){if(!j.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError("Index out of range")}function P(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}function Q(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}function R(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function S(a,b,c,d,f){return f||R(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(a,b,c,d,23,4),c+4}function T(a,b,c,d,f){return f||R(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(a,b,c,d,52,8),c+8}function V(a){if(a=W(a).replace(U,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function W(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function X(a){return a<16?"0"+a.toString(16):a.toString(16)}function Y(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;g55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function Z(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function _(a){return d.toByteArray(V(a))}function aa(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function ba(a){return a!==a}var d=a("base64-js"),e=a("ieee754"),f=a("isarray");c.Buffer=j,c.SlowBuffer=t,c.INSPECT_MAX_BYTES=50,j.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:g(),c.kMaxLength=h(),j.poolSize=8192,j._augment=function(a){return a.__proto__=j.prototype,a},j.from=function(a,b,c){return k(null,a,b,c)},j.TYPED_ARRAY_SUPPORT&&(j.prototype.__proto__=Uint8Array.prototype,j.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&j[Symbol.species]===j&&Object.defineProperty(j,Symbol.species,{value:null,configurable:!0})),j.alloc=function(a,b,c){return m(null,a,b,c)},j.allocUnsafe=function(a){return n(null,a)},j.allocUnsafeSlow=function(a){return n(null,a)},j.isBuffer=function(b){return!(null==b||!b._isBuffer)},j.compare=function(b,c){if(!j.isBuffer(b)||!j.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(b===c)return 0;for(var d=b.length,e=c.length,f=0,g=Math.min(d,e);f0&&(b=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(b+=" ... ")),""},j.prototype.compare=function(b,c,d,e,f){if(!j.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(void 0===c&&(c=0),void 0===d&&(d=b?b.length:0),void 0===e&&(e=0),void 0===f&&(f=this.length),c<0||d>b.length||e<0||f>this.length)throw new RangeError("out of range index");if(e>=f&&c>=d)return 0;if(e>=f)return-1;if(c>=d)return 1;if(c>>>=0,d>>>=0,e>>>=0,f>>>=0,this===b)return 0;for(var g=f-e,h=d-c,i=Math.min(g,h),k=this.slice(e,f),l=b.slice(c,d),m=0;mf)&&(d=f),b.length>0&&(d<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var g=!1;;)switch(e){case"hex":return z(this,b,c,d);case"utf8":case"utf-8":return A(this,b,c,d);case"ascii":return B(this,b,c,d);case"latin1":case"binary":return C(this,b,c,d);case"base64":return D(this,b,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,b,c,d);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),g=!0}},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;j.prototype.slice=function(b,c){var d=this.length;b=~~b,c=void 0===c?d:~~c,b<0?(b+=d,b<0&&(b=0)):b>d&&(b=d),c<0?(c+=d,c<0&&(c=0)):c>d&&(c=d),c0&&(f*=256);)e+=this[b+--c]*f;return e},j.prototype.readUInt8=function(b,c){return c||N(b,1,this.length),this[b]},j.prototype.readUInt16LE=function(b,c){return c||N(b,2,this.length),this[b]|this[b+1]<<8},j.prototype.readUInt16BE=function(b,c){return c||N(b,2,this.length),this[b]<<8|this[b+1]},j.prototype.readUInt32LE=function(b,c){return c||N(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},j.prototype.readUInt32BE=function(b,c){return c||N(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},j.prototype.readIntLE=function(b,c,d){b|=0,c|=0,d||N(b,c,this.length);for(var e=this[b],f=1,g=0;++g=f&&(e-=Math.pow(2,8*c)),e},j.prototype.readIntBE=function(b,c,d){b|=0,c|=0,d||N(b,c,this.length);for(var e=c,f=1,g=this[b+--e];e>0&&(f*=256);)g+=this[b+--e]*f;return f*=128,g>=f&&(g-=Math.pow(2,8*c)),g},j.prototype.readInt8=function(b,c){return c||N(b,1,this.length),128&this[b]?(255-this[b]+1)*-1:this[b]},j.prototype.readInt16LE=function(b,c){c||N(b,2,this.length);var d=this[b]|this[b+1]<<8;return 32768&d?4294901760|d:d},j.prototype.readInt16BE=function(b,c){c||N(b,2,this.length);var d=this[b+1]|this[b]<<8;return 32768&d?4294901760|d:d},j.prototype.readInt32LE=function(b,c){return c||N(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},j.prototype.readInt32BE=function(b,c){return c||N(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},j.prototype.readFloatLE=function(b,c){return c||N(b,4,this.length),e.read(this,b,!0,23,4)},j.prototype.readFloatBE=function(b,c){return c||N(b,4,this.length),e.read(this,b,!1,23,4)},j.prototype.readDoubleLE=function(b,c){return c||N(b,8,this.length),e.read(this,b,!0,52,8)},j.prototype.readDoubleBE=function(b,c){return c||N(b,8,this.length),e.read(this,b,!1,52,8)},j.prototype.writeUIntLE=function(b,c,d,e){if(b=+b,c|=0,d|=0,!e){var f=Math.pow(2,8*d)-1;O(this,b,c,d,f,0)}var g=1,h=0;for(this[c]=255&b;++h=0&&(h*=256);)this[c+g]=b/h&255;return c+d},j.prototype.writeUInt8=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,1,255,0),j.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),this[c]=255&b,c+1},j.prototype.writeUInt16LE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):P(this,b,c,!0),c+2},j.prototype.writeUInt16BE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):P(this,b,c,!1),c+2},j.prototype.writeUInt32LE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[c+3]=b>>>24,this[c+2]=b>>>16,this[c+1]=b>>>8,this[c]=255&b):Q(this,b,c,!0),c+4},j.prototype.writeUInt32BE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):Q(this,b,c,!1),c+4},j.prototype.writeIntLE=function(b,c,d,e){if(b=+b,c|=0,!e){var f=Math.pow(2,8*d-1);O(this,b,c,d,f-1,-f)}var g=0,h=1,i=0;for(this[c]=255&b;++g>0)-i&255;return c+d},j.prototype.writeIntBE=function(b,c,d,e){if(b=+b,c|=0,!e){var f=Math.pow(2,8*d-1);O(this,b,c,d,f-1,-f)}var g=d-1,h=1,i=0;for(this[c+g]=255&b;--g>=0&&(h*=256);)b<0&&0===i&&0!==this[c+g+1]&&(i=1),this[c+g]=(b/h>>0)-i&255;return c+d},j.prototype.writeInt8=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,1,127,-128),j.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),b<0&&(b=255+b+1),this[c]=255&b,c+1},j.prototype.writeInt16LE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):P(this,b,c,!0),c+2},j.prototype.writeInt16BE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):P(this,b,c,!1),c+2},j.prototype.writeInt32LE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,4,2147483647,-2147483648),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8,this[c+2]=b>>>16,this[c+3]=b>>>24):Q(this,b,c,!0),c+4},j.prototype.writeInt32BE=function(b,c,d){return b=+b,c|=0,d||O(this,b,c,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):Q(this,b,c,!1),c+4},j.prototype.writeFloatLE=function(b,c,d){return S(this,b,c,!0,d)},j.prototype.writeFloatBE=function(b,c,d){return S(this,b,c,!1,d)},j.prototype.writeDoubleLE=function(b,c,d){return T(this,b,c,!0,d)},j.prototype.writeDoubleBE=function(b,c,d){return T(this,b,c,!1,d)},j.prototype.copy=function(b,c,d,e){if(d||(d=0),e||0===e||(e=this.length),c>=b.length&&(c=b.length),c||(c=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),b.length-c=0;--g)b[g+c]=this[g+d];else if(f<1e3||!j.TYPED_ARRAY_SUPPORT)for(g=0;g>>=0,d=void 0===d?this.length:d>>>0,b||(b=0);var g;if("number"==typeof b)for(g=c;g0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function d(){this.removeListener(a,d),c||(c=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var c=!1;return d.listener=b,this.on(a,d),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(d<0)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],9:[function(a,b,c){var d=a("http"),e=b.exports;for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f]);e.request=function(a,b){return a||(a={}),a.scheme="https",a.protocol="https:",d.request.call(this,a,b)}},{http:33}],10:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],11:[function(a,b,c){"function"==typeof Object.create?b.exports=function(b,c){b.super_=c,b.prototype=Object.create(c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(b,c){b.super_=c;var d=function(){};d.prototype=c.prototype,b.prototype=new d,b.prototype.constructor=b}},{}],12:[function(a,b,c){function d(a){return!!a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function e(a){return"function"==typeof a.readFloatLE&&"function"==typeof a.slice&&d(a.slice(0,0))}b.exports=function(a){return null!=a&&(d(a)||e(a)||!!a._isBuffer)}},{}],13:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],14:[function(a,b,c){(function(a){ -function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function f(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!d;e--){var g=e>=0?arguments[e]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,d="/"===g.charAt(0))}return c=b(f(c.split("/"),function(a){return!!a}),!d).join("/"),(d?"/":"")+c||"."},c.normalize=function(a){var d=c.isAbsolute(a),e="/"===g(a,-1);return a=b(f(a.split("/"),function(a){return!!a}),!d).join("/"),a||d||(a="."),a&&e&&(a+="/"),(d?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(f(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c1&&(d=c[0]+"@",a=c[1]),a=a.replace(t,".");var e=a.split("."),f=A(e,b).join(".");return d+f}function C(a){for(var e,f,b=[],c=0,d=a.length;c=55296&&e<=56319&&c65535&&(a-=65536,b+=x(a>>>10&1023|55296),a=56320|1023&a),b+=x(a)}).join("")}function E(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:j}function F(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function G(a,b,c){var d=0;for(a=c?w(a/n):a>>1,a+=w(a/b);a>v*l>>1;d+=j)a=w(a/v);return w(d+(v+1)*a/(a+m))}function H(a){var d,h,m,n,r,s,t,u,v,x,b=[],c=a.length,e=0,f=p,g=o;for(h=a.lastIndexOf(q),h<0&&(h=0),m=0;m=128&&z("not-basic"),b.push(a.charCodeAt(m));for(n=h>0?h+1:0;n=c&&z("invalid-input"),u=E(a.charCodeAt(n++)),(u>=j||u>w((i-e)/s))&&z("overflow"),e+=u*s,v=t<=g?k:t>=g+l?l:t-g,!(uw(i/x)&&z("overflow"),s*=x;d=b.length+1,g=G(e-r,d,0==r),w(e/d)>i-f&&z("overflow"),f+=w(e/d),e%=d,b.splice(e++,0,f)}return D(b)}function I(a){var b,c,d,e,f,g,h,m,n,r,s,u,v,y,A,t=[];for(a=C(a),u=a.length,b=p,c=0,f=o,g=0;g=b&&sw((i-c)/v)&&z("overflow"),c+=(h-b)*v,b=h,g=0;gi&&z("overflow"),s==b){for(m=c,n=j;r=n<=f?k:n>=f+l?l:n-f,!(m= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=j-k,w=Math.floor,x=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:C,encode:D},decode:H,encode:I,toASCII:K,toUnicode:J},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return h});else if(e&&f)if(b.exports==e)f.exports=h;else for(y in h)h.hasOwnProperty(y)&&(e[y]=h[y]);else d.punycode=h}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],18:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;k=0?(n=l.substr(0,m),o=l.substr(m+1)):(n=l,o=""),p=decodeURIComponent(n),q=decodeURIComponent(o),d(g,p)?e(g[p])?g[p].push(q):g[p]=[g[p],q]:g[p]=q}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],19:[function(a,b,c){"use strict";function f(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else{var i;!b.decoder||e||d||(c=b.decoder.write(c),i=!b.objectMode&&0===c.length),e||(b.reading=!1),i||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&A(a))),C(a,b)}else e||(b.reading=!1);return u(b)}function u(a){return!a.ended&&(a.needReadable||a.length=v?a=v:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function x(a,b){return a<=0||0===b.length&&b.ended?0:b.objectMode?1:a!==a?b.flowing&&b.length?b.buffer.head.data.length:b.length:(a>b.highWaterMark&&(b.highWaterMark=w(a)),a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0))}function y(a,b){var c=null;return j.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function z(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,A(a)}}function A(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?d(B,a):B(a))}function B(a){n("emit readable"),a.emit("readable"),I(a)}function C(a,b){b.readingMore||(b.readingMore=!0,d(D,a,b))}function D(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):c=K(a,b.buffer,b.decoder),c}function K(a,b,c){var d;return af.length?f.length:a;if(e+=g===f.length?f:f.slice(0,a),a-=g,0===a){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}function M(a,b){var c=k.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),a-=g,0===a){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}function N(a){var b=a._readableState;if(b.length>0)throw new Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,d(O,b,a))}function O(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function P(a,b){for(var c=0,d=a.length;c=b.highWaterMark||b.ended))return n("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?N(this):A(this),null;if(a=x(a,b),0===a&&b.ended)return 0===b.length&&N(this),null;var d=b.needReadable;n("need readable",d),(0===b.length||b.length-a0?J(a,b):null,null===e?(b.needReadable=!0,a=0):b.length-=a,0===b.length&&(b.ended||(b.needReadable=!0),c!==a&&b.ended&&N(this)),null!==e&&this.emit("data",e),e},s.prototype._read=function(a){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){function j(a){n("onunpipe"),a===e&&o()}function k(){n("onend"),a.end()}function o(){n("cleanup"),a.removeListener("close",t),a.removeListener("finish",u),a.removeListener("drain",l),a.removeListener("error",s),a.removeListener("unpipe",j),e.removeListener("end",k),e.removeListener("end",o),e.removeListener("data",r),m=!0,!f.awaitDrain||a._writableState&&!a._writableState.needDrain||l()}function r(b){n("ondata"),p=!1;var c=a.write(b);!1!==c||p||((1===f.pipesCount&&f.pipes===a||f.pipesCount>1&&Q(f.pipes,a)!==-1)&&!m&&(n("false write response, pause",e._readableState.awaitDrain),e._readableState.awaitDrain++,p=!0),e.pause())}function s(b){n("onerror",b),v(),a.removeListener("error",s),0===h(a,"error")&&a.emit("error",b)}function t(){a.removeListener("finish",u),v()}function u(){n("onfinish"),a.removeListener("close",t),v()}function v(){n("unpipe"),e.unpipe(a)}var e=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=a;break;case 1:f.pipes=[f.pipes,a];break;default:f.pipes.push(a)}f.pipesCount+=1,n("pipe count=%d opts=%j",f.pipesCount,b);var g=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,i=g?k:o;f.endEmitted?d(i):e.once("end",i),a.on("unpipe",j);var l=E(e);a.on("drain",l);var m=!1,p=!1;return e.on("data",r),q(a,"error",s),a.once("close",t),a.once("finish",u),a.emit("pipe",e),f.flowing||(n("pipe resume"),e.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;e-1?setImmediate:d;p.WritableState=n;var g=a("core-util-is");g.inherits=a("inherits");var i,h={deprecate:a("util-deprecate")};!function(){try{i=a("stream")}catch(a){}finally{i||(i=a("events").EventEmitter)}}();var j=a("buffer").Buffer,k=a("buffer-shims");g.inherits(p,i),n.prototype.getBuffer=function(){for(var b=this.bufferedRequest,c=[];b;)c.push(b),b=b.next;return c},function(){try{Object.defineProperty(n.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var o;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(a){return!!o.call(this,a)||a&&a._writableState instanceof n}})):o=function(a){return a instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(a,b,c){var d=this._writableState,e=!1;return"function"==typeof b&&(c=b,b=null),j.isBuffer(a)?b="buffer":b||(b=d.defaultEncoding),"function"!=typeof c&&(c=l),d.ended?q(this,c):r(this,d,a,c)&&(d.pendingcb++,e=t(this,d,a,b,c)),e},p.prototype.cork=function(){var a=this._writableState;a.corked++},p.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||A(this,a))},p.prototype.setDefaultEncoding=function(b){if("string"==typeof b&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);return this._writableState.defaultEncoding=b,this},p.prototype._write=function(a,b,c){c(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||E(this,d,c)}}).call(this,a("_process"))},{"./_stream_duplex":22,_process:16,buffer:5,"buffer-shims":4,"core-util-is":7,events:8,inherits:11,"process-nextick-args":15,"util-deprecate":41}],27:[function(a,b,c){"use strict";function f(){this.head=null,this.tail=null,this.length=0}var e=(a("buffer").Buffer,a("buffer-shims"));b.exports=f,f.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},f.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},f.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},f.prototype.concat=function(a){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var b=e.allocUnsafe(a>>>0),c=this.head,d=0;c;)c.data.copy(b,d),d+=c.data.length,c=c.next;return b}},{buffer:5,"buffer-shims":4}],28:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":23}],29:[function(a,b,c){(function(d){var e=function(){try{return a("stream")}catch(a){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=e||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(b.exports=e)}).call(this,a("_process"))},{"./lib/_stream_duplex.js":22,"./lib/_stream_passthrough.js":23,"./lib/_stream_readable.js":24,"./lib/_stream_transform.js":25,"./lib/_stream_writable.js":26,_process:16}],30:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":25}],31:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":26}],32:[function(a,b,c){function f(){d.call(this)}b.exports=f;var d=a("events").EventEmitter,e=a("inherits");e(f,d),f.Readable=a("readable-stream/readable.js"),f.Writable=a("readable-stream/writable.js"),f.Duplex=a("readable-stream/duplex.js"),f.Transform=a("readable-stream/transform.js"),f.PassThrough=a("readable-stream/passthrough.js"),f.Stream=f,f.prototype.pipe=function(a,b){function e(b){a.writable&&!1===a.write(b)&&c.pause&&c.pause()}function f(){c.readable&&c.resume&&c.resume()}function h(){g||(g=!0,a.end())}function i(){g||(g=!0,"function"==typeof a.destroy&&a.destroy())}function j(a){if(k(),0===d.listenerCount(this,"error"))throw a}function k(){c.removeListener("data",e),a.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",i),c.removeListener("error",j),a.removeListener("error",j),c.removeListener("end",k),c.removeListener("close",k),a.removeListener("close",k)}var c=this;c.on("data",e),a.on("drain",f),a._isStdio||b&&b.end===!1||(c.on("end",h),c.on("close",i));var g=!1;return c.on("error",j),a.on("error",j),c.on("end",k),c.on("close",k),a.on("close",k),a.emit("pipe",c),a}},{events:8,inherits:11,"readable-stream/duplex.js":21,"readable-stream/passthrough.js":28,"readable-stream/readable.js":29,"readable-stream/transform.js":30,"readable-stream/writable.js":31}],33:[function(a,b,c){(function(b){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,c){a="string"==typeof a?g.parse(a):e(a);var f=b.location.protocol.search(/^https?:$/)===-1?"http:":"",h=a.protocol||f,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),a.url=(i?h+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new d(a); -return c&&l.on("response",c),l},h.get=function(b,c){var d=h.request(b,c);return d.end(),d},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":35,"builtin-status-codes":6,url:39,xtend:45}],34:[function(a,b,c){(function(a){function d(a){try{return b.responseType=a,b.responseType===a}catch(a){}return!1}function g(a){return"function"==typeof a}c.fetch=g(a.fetch)&&g(a.ReadableStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(a){}var b=new a.XMLHttpRequest;b.open("GET",a.XDomainRequest?"/":"https://example.com");var e="undefined"!=typeof a.ArrayBuffer,f=e&&g(a.ArrayBuffer.prototype.slice);c.arraybuffer=e&&d("arraybuffer"),c.msstream=!c.fetch&&f&&d("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&e&&d("moz-chunked-arraybuffer"),c.overrideMimeType=g(b.overrideMimeType),c.vbArray=g(a.VBArray),b=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],35:[function(a,b,c){(function(c,d,e){function m(a,b){return f.fetch&&b?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&a?"arraybuffer":f.vbArray&&a?"text:vbarray":"text"}function o(a){try{var b=a.status;return null!==b&&0!==b}catch(a){return!1}}var f=a("./capability"),g=a("inherits"),h=a("./response"),i=a("readable-stream"),j=a("to-arraybuffer"),k=h.IncomingMessage,l=h.readyStates,n=b.exports=function(a){var b=this;i.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(c){b.setHeader(c,a.headers[c])});var c,d=!0;if("disable-fetch"===a.mode)d=!1,c=!0;else if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!f.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=m(c,d),b.on("finish",function(){b._onFinish()})};g(n,i.Writable),n.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();p.indexOf(d)===-1&&(c._headers[d]={name:a,value:b})},n.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},n.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},n.prototype._onFinish=function(){var a=this;if(!a._destroyed){var h,b=a._opts,g=a._headers;if("POST"!==b.method&&"PUT"!==b.method&&"PATCH"!==b.method&&"MERGE"!==b.method||(h=f.blobConstructor?new d.Blob(a._body.map(function(a){return j(a)}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:h,mode:"cors",credentials:b.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var k=a._xhr=new d.XMLHttpRequest;try{k.open(a._opts.method,a._opts.url,!0)}catch(b){return void c.nextTick(function(){a.emit("error",b)})}"responseType"in k&&(k.responseType=a._mode.split(":")[0]),"withCredentials"in k&&(k.withCredentials=!!b.withCredentials),"text"===a._mode&&"overrideMimeType"in k&&k.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){k.setRequestHeader(g[a].name,g[a].value)}),a._response=null,k.onreadystatechange=function(){switch(k.readyState){case l.LOADING:case l.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(k.onprogress=function(){a._onXHRProgress()}),k.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{k.send(h)}catch(b){return void c.nextTick(function(){a.emit("error",b)})}}}},n.prototype._onXHRProgress=function(){var a=this;o(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},n.prototype._connect=function(){var a=this;a._destroyed||(a._response=new k(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},n.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},n.prototype.abort=n.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},n.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),i.Writable.prototype.end.call(d,a,b,c)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":34,"./response":36,_process:16,buffer:5,inherits:11,"readable-stream":29,"to-arraybuffer":38}],36:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("inherits"),h=a("readable-stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=c.IncomingMessage=function(a,c,d){function j(){i.read().then(function(a){if(!g._destroyed){if(a.done)return void g.push(null);g.push(new e(a.value)),j()}})}var g=this;if(h.Readable.call(g),g._mode=d,g.headers={},g.rawHeaders=[],g.trailers={},g.rawTrailers=[],g.on("end",function(){b.nextTick(function(){g.emit("close")})}),"fetch"===d){g._fetchResponse=c,g.url=c.url,g.statusCode=c.status,g.statusMessage=c.statusText,c.headers.forEach(function(a,b){g.headers[b.toLowerCase()]=a,g.rawHeaders.push(b,a)});var i=c.body.getReader();j()}else{g._xhr=a,g._pos=0,g.url=a.responseURL,g.statusCode=a.status,g.statusMessage=a.statusText;var k=a.getAllResponseHeaders().split(/\r?\n/);if(k.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===g.headers[c]&&(g.headers[c]=[]),g.headers[c].push(b[2])):void 0!==g.headers[c]?g.headers[c]+=", "+b[2]:g.headers[c]=b[2],g.rawHeaders.push(b[1],b[2])}}),g._charset="x-user-defined",!f.overrideMimeType){var l=g.rawHeaders["mime-type"];if(l){var m=l.match(/;\s*charset=([^;])(;|$)/);m&&(g._charset=m[1].toLowerCase())}g._charset||(g._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(a){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(b){a._mode="text:vbarray";break}if(c.length>a._pos){var f=c.substr(a._pos);if("x-user-defined"===a._charset){for(var g=new e(f.length),h=0;ha._pos&&(a.push(new e(new Uint8Array(j.result.slice(a._pos)))),a._pos=j.result.byteLength)},j.onload=function(){a.push(null)},j.readAsArrayBuffer(c)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":34,_process:16,buffer:5,inherits:11,"readable-stream":29}],37:[function(a,b,c){function f(a){if(a&&!e(a))throw new Error("Unknown encoding: "+a)}function h(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function j(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var d=a("buffer").Buffer,e=d.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},g=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),f(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=j;break;default:return void(this.write=h)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};g.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&d<=56319){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},g.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(b<=2&&c>>4==14){this.charLength=3;break}if(b<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=b},g.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:5}],38:[function(a,b,c){var d=a("buffer").Buffer;b.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(d.isBuffer(a)){for(var b=new Uint8Array(a.length),c=a.length,e=0;e",'"',"`"," ","\r","\n","\t"],k=["{","}","|","\\","^","`"].concat(j),l=["'"].concat(k),m=["%","/","?",";","#"].concat(l),n=["/","?","#"],o=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=a("querystring");f.prototype.parse=function(a,b,c){if(!e.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var f=a.indexOf("?"),h=f!==-1&&f127?"x":I[K];if(!J.match(p)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(q);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=M.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=d.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!r[y])for(var B=0,H=l.length;B0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,e.isNull(c.pathname)&&e.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!x.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=x.slice(-1)[0],B=(c.host||a.host||x.length>1)&&("."===A||".."===A)||""===A,C=0,D=x.length;D>=0;D--)A=x[D],"."===A?x.splice(D,1):".."===A?(x.splice(D,1),C++):C&&(x.splice(D,1),C--);if(!v&&!w)for(;C--;C)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),B&&"/"!==x.join("/").substr(-1)&&x.push("");var E=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(y){c.hostname=c.host=E?"":x.length?x.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return v=v||c.host&&x.length,v&&!E&&x.unshift(""),x.length?c.pathname=x.join("/"):(c.pathname=null,c.path=null),e.isNull(c.pathname)&&e.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},f.prototype.parseHost=function(){var a=this.host,b=h.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":40,punycode:17,querystring:20}],40:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],41:[function(a,b,c){(function(a){function c(a,b){function e(){if(!c){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),c=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var c=!1;return e}function d(b){try{if(!a.localStorage)return!1}catch(a){return!1}var c=a.localStorage[b];return null!=c&&"true"===String(c).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],42:[function(a,b,c){arguments[4][11][0].apply(c,arguments)},{dup:11}],43:[function(a,b,c){b.exports=function(b){return b&&"object"==typeof b&&"function"==typeof b.copy&&"function"==typeof b.fill&&"function"==typeof b.readUInt8}},{}],44:[function(a,b,c){(function(b,d){function h(a,b){var d={seen:[],stylize:j};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),s(b)?d.showHidden=b:b&&c._extend(d,b),y(d.showHidden)&&(d.showHidden=!1),y(d.depth)&&(d.depth=2),y(d.colors)&&(d.colors=!1),y(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=i),l(d,a,d.depth)}function i(a,b){var c=h.styles[b];return c?"["+h.colors[c][0]+"m"+a+"["+h.colors[c][1]+"m":a}function j(a,b){return a}function k(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function l(a,b,d){if(a.customInspect&&b&&D(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return w(e)||(e=l(a,e,d)),e}var f=m(a,b);if(f)return f;var g=Object.keys(b),h=k(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),C(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return n(b);if(0===g.length){if(D(b)){var i=b.name?": "+b.name:"";return a.stylize("[Function"+i+"]","special")}if(z(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(B(b))return a.stylize(Date.prototype.toString.call(b),"date");if(C(b))return n(b)}var j="",s=!1,t=["{","}"];if(r(b)&&(s=!0,t=["[","]"]),D(b)){var u=b.name?": "+b.name:"";j=" [Function"+u+"]"}if(z(b)&&(j=" "+RegExp.prototype.toString.call(b)),B(b)&&(j=" "+Date.prototype.toUTCString.call(b)),C(b)&&(j=" "+n(b)),0===g.length&&(!s||0==b.length))return t[0]+j+t[1];if(d<0)return z(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var v;return v=s?o(a,b,d,h,g):g.map(function(c){return p(a,b,d,h,c,s)}),a.seen.pop(),q(v,j,t)}function m(a,b){if(y(b))return a.stylize("undefined","undefined");if(w(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return v(b)?a.stylize(""+b,"number"):s(b)?a.stylize(""+b,"boolean"):t(b)?a.stylize("null","null"):void 0}function n(a){return"["+Error.prototype.toString.call(a)+"]"}function o(a,b,c,d,e){for(var f=[],g=0,h=b.length;g-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),y(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function q(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function r(a){return Array.isArray(a)}function s(a){return"boolean"==typeof a}function t(a){return null===a}function u(a){return null==a}function v(a){return"number"==typeof a}function w(a){return"string"==typeof a}function x(a){return"symbol"==typeof a}function y(a){return void 0===a}function z(a){return A(a)&&"[object RegExp]"===F(a)}function A(a){return"object"==typeof a&&null!==a}function B(a){return A(a)&&"[object Date]"===F(a)}function C(a){return A(a)&&("[object Error]"===F(a)||a instanceof Error)}function D(a){return"function"==typeof a}function E(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function F(a){return Object.prototype.toString.call(a)}function G(a){return a<10?"0"+a.toString(10):a.toString(10)}function I(){var a=new Date,b=[G(a.getHours()),G(a.getMinutes()),G(a.getSeconds())].join(":");return[a.getDate(),H[a.getMonth()],b].join(" ")}function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var e=/%[sdj%]/g;c.format=function(a){if(!w(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),i=d[c];c=0&&"[object Array]"!==t(b)&&"[object Function]"===t(b.callee)},ca=aa(arguments)?aa:ba,da={primitive:function(a){return null===a||"function"!=typeof a&&"object"!=typeof a},string:function(a){return"[object String]"===t(a)},regex:function(a){return"[object RegExp]"===t(a)},symbol:function(a){return"function"==typeof z.Symbol&&"symbol"==typeof a}},ea=function(b,c,d){var e=b[c];r(b,c,d,!0),v.preserveToString(b[c],e)},fa="function"==typeof X&&"function"==typeof X.for&&da.symbol(X()),ga=da.symbol(X.iterator)?X.iterator:"_es6-shim iterator_";z.Set&&"function"==typeof(new z.Set)["@@iterator"]&&(ga="@@iterator"),z.Reflect||r(z,"Reflect",{},!0);var ha=z.Reflect,ia=String,ja="undefined"!=typeof document&&document?document.all:null,ka=null==ja?function(b){return null==b}:function(b){return null==b&&b!==ja},la={Call:function(c,d){var e=arguments.length>2?arguments[2]:[];if(!la.IsCallable(c))throw new TypeError(c+" is not a function");return b(c,d,e)},RequireObjectCoercible:function(a,b){if(ka(a))throw new TypeError(b||"Cannot call method on "+a);return a},TypeIsObject:function(a){return void 0!==a&&null!==a&&a!==!0&&a!==!1&&("function"==typeof a||"object"==typeof a||a===ja)},ToObject:function(a,b){return Object(la.RequireObjectCoercible(a,b))},IsCallable:u,IsConstructor:function(a){return la.IsCallable(a)},ToInt32:function(a){return la.ToNumber(a)>>0},ToUint32:function(a){return la.ToNumber(a)>>>0},ToNumber:function(a){if("[object Symbol]"===t(a))throw new TypeError("Cannot convert a Symbol value to a number");return+a},ToInteger:function(a){var b=la.ToNumber(a);return Z(b)?0:0!==b&&$(b)?(b>0?1:-1)*K(L(b)):b},ToLength:function(a){var b=la.ToInteger(a);return b<=0?0:b>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:b},SameValue:function(a,b){return a===b?0!==a||1/a===1/b:Z(a)&&Z(b)},SameValueZero:function(a,b){return a===b||Z(a)&&Z(b)},IsIterable:function(a){return la.TypeIsObject(a)&&("undefined"!=typeof a[ga]||ca(a))},GetIterator:function(a){if(ca(a))return new Q(a,"value");var b=la.GetMethod(a,ga);if(!la.IsCallable(b))throw new TypeError("value is not an iterable");var c=la.Call(b,a);if(!la.TypeIsObject(c))throw new TypeError("bad iterator");return c},GetMethod:function(a,b){var c=la.ToObject(a)[b];if(!ka(c)){if(!la.IsCallable(c))throw new TypeError("Method not callable: "+b);return c}},IteratorComplete:function(a){return!!a.done},IteratorClose:function(a,b){var c=la.GetMethod(a,"return");if(void 0!==c){var d,e;try{d=la.Call(c,a)}catch(a){e=a}if(!b){if(e)throw e;if(!la.TypeIsObject(d))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(a){var b=arguments.length>1?a.next(arguments[1]):a.next();if(!la.TypeIsObject(b))throw new TypeError("bad iterator");return b},IteratorStep:function(a){ -var b=la.IteratorNext(a),c=la.IteratorComplete(b);return!c&&b},Construct:function(a,b,c,d){var e="undefined"==typeof c?a:c;if(!d&&ha.construct)return ha.construct(a,b,e);var f=e.prototype;la.TypeIsObject(f)||(f=Object.prototype);var g=w(f),h=la.Call(a,g,b);return la.TypeIsObject(h)?h:g},SpeciesConstructor:function(a,b){var c=a.constructor;if(void 0===c)return b;if(!la.TypeIsObject(c))throw new TypeError("Bad constructor");var d=c[Y];if(ka(d))return b;if(!la.IsConstructor(d))throw new TypeError("Bad @@species");return d},CreateHTML:function(a,b,c,d){var e=la.ToString(a),f="<"+b;if(""!==c){var g=la.ToString(d),h=g.replace(/"/g,""");f+=" "+c+'="'+h+'"'}var i=f+">",j=i+e;return j+""},IsRegExp:function(b){if(!la.TypeIsObject(b))return!1;var c=b[X.match];return"undefined"!=typeof c?!!c:da.regex(b)},ToString:function(b){return ia(b)}};if(l&&fa){var ma=function(b){if(da.symbol(X[b]))return X[b];var c=X.for("Symbol."+b);return Object.defineProperty(X,b,{configurable:!1,enumerable:!1,writable:!1,value:c}),c};if(!da.symbol(X.search)){var na=ma("search"),oa=String.prototype.search;r(RegExp.prototype,na,function(b){return la.Call(oa,b,[this])});var pa=function(b){var c=la.RequireObjectCoercible(this);if(!ka(b)){var d=la.GetMethod(b,na);if("undefined"!=typeof d)return la.Call(d,b,[c])}return la.Call(oa,c,[la.ToString(b)])};ea(String.prototype,"search",pa)}if(!da.symbol(X.replace)){var qa=ma("replace"),ra=String.prototype.replace;r(RegExp.prototype,qa,function(b,c){return la.Call(ra,b,[this,c])});var sa=function(b,c){var d=la.RequireObjectCoercible(this);if(!ka(b)){var e=la.GetMethod(b,qa);if("undefined"!=typeof e)return la.Call(e,b,[d,c])}return la.Call(ra,d,[la.ToString(b),c])};ea(String.prototype,"replace",sa)}if(!da.symbol(X.split)){var ta=ma("split"),ua=String.prototype.split;r(RegExp.prototype,ta,function(b,c){return la.Call(ua,b,[this,c])});var va=function(b,c){var d=la.RequireObjectCoercible(this);if(!ka(b)){var e=la.GetMethod(b,ta);if("undefined"!=typeof e)return la.Call(e,b,[d,c])}return la.Call(ua,d,[la.ToString(b),c])};ea(String.prototype,"split",va)}var wa=da.symbol(X.match),xa=wa&&function(){var a={};return a[X.match]=function(){return 42},42!=="a".match(a)}();if(!wa||xa){var ya=ma("match"),za=String.prototype.match;r(RegExp.prototype,ya,function(b){return la.Call(za,b,[this])});var Aa=function(b){var c=la.RequireObjectCoercible(this);if(!ka(b)){var d=la.GetMethod(b,ya);if("undefined"!=typeof d)return la.Call(d,b,[c])}return la.Call(za,c,[la.ToString(b)])};ea(String.prototype,"match",Aa)}}var Ba=function(b,c,d){v.preserveToString(c,b),Object.setPrototypeOf&&Object.setPrototypeOf(b,c),l?n(Object.getOwnPropertyNames(b),function(a){a in R||d[a]||v.proxy(b,a,c)}):n(Object.keys(b),function(a){a in R||d[a]||(c[a]=b[a])}),c.prototype=b.prototype,v.redefine(b.prototype,"constructor",c)},Ca=function(){return this},Da=function(a){l&&!P(a,Y)&&v.getter(a,Y,Ca)},Ea=function(a,b){var c=b||function(){return this};r(a,ga,c),!a[ga]&&da.symbol(ga)&&(a[ga]=c)},Fa=function(b,c,d){l?Object.defineProperty(b,c,{configurable:!0,enumerable:!0,writable:!0,value:d}):b[c]=d},Ga=function(b,c,d){if(Fa(b,c,d),!la.SameValue(b[c],d))throw new TypeError("property is nonconfigurable")},Ha=function(a,b,c,d){if(!la.TypeIsObject(a))throw new TypeError("Constructor requires `new`: "+b.name);var e=b.prototype;la.TypeIsObject(e)||(e=c);var f=w(e);for(var g in d)if(P(d,g)){var h=d[g];r(f,g,h,!0)}return f};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Ia=String.fromCodePoint;ea(String,"fromCodePoint",function(b){return la.Call(Ia,this,arguments)})}var Ja={fromCodePoint:function(b){for(var d,c=[],e=0,f=arguments.length;e1114111)throw new RangeError("Invalid code point "+d);d<65536?F(c,String.fromCharCode(d)):(d-=65536,F(c,String.fromCharCode((d>>10)+55296)),F(c,String.fromCharCode(d%1024+56320)))}return c.join("")},raw:function(b){var c=la.ToObject(b,"bad callSite"),d=la.ToObject(c.raw,"bad raw value"),e=d.length,f=la.ToLength(e);if(f<=0)return"";for(var i,j,k,l,g=[],h=0;h=f));)j=h+1=La)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Ka(c,d)},startsWith:function(b){var c=la.ToString(la.RequireObjectCoercible(this));if(la.IsRegExp(b))throw new TypeError('Cannot call method "startsWith" with a regex');var e,d=la.ToString(b);arguments.length>1&&(e=arguments[1]);var f=I(la.ToInteger(e),0);return E(c,f,f+d.length)===d},endsWith:function(b){var c=la.ToString(la.RequireObjectCoercible(this));if(la.IsRegExp(b))throw new TypeError('Cannot call method "endsWith" with a regex');var f,d=la.ToString(b),e=c.length;arguments.length>1&&(f=arguments[1]);var g="undefined"==typeof f?e:la.ToInteger(f),h=J(I(g,0),e);return E(c,h-d.length,h)===d},includes:function(b){if(la.IsRegExp(b))throw new TypeError('"includes" does not accept a RegExp');var d,c=la.ToString(b);return arguments.length>1&&(d=arguments[1]),B(this,c,d)!==-1},codePointAt:function(b){var c=la.ToString(la.RequireObjectCoercible(this)),d=la.ToInteger(b),e=c.length;if(d>=0&&d56319||g)return f;var h=c.charCodeAt(d+1);return h<56320||h>57343?f:1024*(f-55296)+(h-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",1/0)!==!1&&ea(String.prototype,"includes",Ma.includes),String.prototype.startsWith&&String.prototype.endsWith){var Na=h(function(){"/a/".startsWith(/a/)}),Oa=i(function(){return"abc".startsWith("a",1/0)===!1});Na&&Oa||(ea(String.prototype,"startsWith",Ma.startsWith),ea(String.prototype,"endsWith",Ma.endsWith))}if(fa){var Pa=i(function(){var a=/a/;return a[X.match]=!1,"/a/".startsWith(a)});Pa||ea(String.prototype,"startsWith",Ma.startsWith);var Qa=i(function(){var a=/a/;return a[X.match]=!1,"/a/".endsWith(a)});Qa||ea(String.prototype,"endsWith",Ma.endsWith);var Ra=i(function(){var a=/a/;return a[X.match]=!1,"/a/".includes(a)});Ra||ea(String.prototype,"includes",Ma.includes)}s(String.prototype,Ma);var Sa=["\t\n\v\f\r Â áš€á Žâ€€â€â€‚â€ƒ","          \u2028","\u2029\ufeff"].join(""),Ta=new RegExp("(^["+Sa+"]+)|(["+Sa+"]+$)","g"),Ua=function(){return la.ToString(la.RequireObjectCoercible(this)).replace(Ta,"")},Va=["Â…","​","￾"].join(""),Wa=new RegExp("["+Va+"]","g"),Xa=/^[-+]0x[0-9a-f]+$/i,Ya=Va.trim().length!==Va.length;r(String.prototype,"trim",Ua,Ya);var Za=function(a){return{value:a,done:0===arguments.length}},$a=function(a){la.RequireObjectCoercible(a),this._s=la.ToString(a),this._i=0};$a.prototype.next=function(){var a=this._s,b=this._i;if("undefined"==typeof a||b>=a.length)return this._s=void 0,Za();var d,e,c=a.charCodeAt(b);return c<55296||c>56319||b+1===a.length?e=1:(d=a.charCodeAt(b+1),e=d<56320||d>57343?1:2),this._i=b+e,Za(a.substr(b,e))},Ea($a.prototype),Ea(String.prototype,function(){return new $a(this)});var _a={from:function(b){var e,d=this;arguments.length>1&&(e=arguments[1]);var f,g;if("undefined"==typeof e)f=!1;else{if(!la.IsCallable(e))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(g=arguments[2]),f=!0}var i,j,k,h="undefined"!=typeof(ca(b)||la.GetMethod(b,ga));if(h){j=la.IsConstructor(d)?Object(new d):[];var m,n,l=la.GetIterator(b);for(k=0;;){if(m=la.IteratorStep(l),m===!1)break;n=m.value;try{f&&(n="undefined"==typeof g?e(n,k):c(e,g,n,k)),j[k]=n}catch(a){throw la.IteratorClose(l,!0),a}k+=1}i=k}else{var o=la.ToObject(b);i=la.ToLength(o.length),j=la.IsConstructor(d)?Object(new d(i)):new Array(i);var p;for(k=0;k2&&(j=arguments[2]);var k="undefined"==typeof j?e:la.ToInteger(j),l=k<0?I(e+k,0):J(k,e),m=J(l-i,e-h),n=1;for(i0;)i in d?d[h]=d[i]:delete d[h],i+=n,h+=n,m-=1;return d},fill:function(b){var c;arguments.length>1&&(c=arguments[1]);var d;arguments.length>2&&(d=arguments[2]);var e=la.ToObject(this),f=la.ToLength(e.length);c=la.ToInteger("undefined"==typeof c?0:c),d=la.ToInteger("undefined"==typeof d?f:d);for(var g=c<0?I(f+c,0):J(c,f),h=d<0?f+d:d,i=g;i1?arguments[1]:null,g=0;g1?arguments[1]:null,g=0;g1&&"undefined"!=typeof arguments[1]?la.Call(gb,this,arguments):c(gb,this,b)})}var hb=-(Math.pow(2,32)-1),ib=function(a,b){var d={length:hb};return d[b?(d.length>>>0)-1:0]=!0,i(function(){return c(a,d,function(){throw new RangeError("should not reach here")},[]),!0})};if(!ib(Array.prototype.forEach)){var jb=Array.prototype.forEach;ea(Array.prototype,"forEach",function(b){return la.Call(jb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.map)){var kb=Array.prototype.map;ea(Array.prototype,"map",function(b){return la.Call(kb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.filter)){var lb=Array.prototype.filter;ea(Array.prototype,"filter",function(b){return la.Call(lb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.some)){var mb=Array.prototype.some;ea(Array.prototype,"some",function(b){return la.Call(mb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.every)){var nb=Array.prototype.every;ea(Array.prototype,"every",function(b){return la.Call(nb,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.reduce)){var ob=Array.prototype.reduce;ea(Array.prototype,"reduce",function(b){return la.Call(ob,this.length>=0?this:[],arguments)},!0)}if(!ib(Array.prototype.reduceRight,!0)){var pb=Array.prototype.reduceRight;ea(Array.prototype,"reduceRight",function(b){return la.Call(pb,this.length>=0?this:[],arguments)},!0)}var qb=8!==Number("0o10"),rb=2!==Number("0b10"),sb=q(Va,function(a){return 0===Number(a+0+a)});if(qb||rb||sb){var tb=Number,ub=/^0b[01]+$/i,vb=/^0o[0-7]+$/i,wb=ub.test.bind(ub),xb=vb.test.bind(vb),yb=function(a){var b;if("function"==typeof a.valueOf&&(b=a.valueOf(),da.primitive(b)))return b;if("function"==typeof a.toString&&(b=a.toString(),da.primitive(b)))return b;throw new TypeError("No default value")},zb=Wa.test.bind(Wa),Ab=Xa.test.bind(Xa),Bb=function(){var a=function(c){var d;d=arguments.length>0?da.primitive(c)?c:yb(c,"number"):0,"string"==typeof d&&(d=la.Call(Ua,d),wb(d)?d=parseInt(E(d,2),2):xb(d)?d=parseInt(E(d,2),8):(zb(d)||Ab(d))&&(d=NaN));var e=this,f=i(function(){return tb.prototype.valueOf.call(e),!0});return e instanceof a&&!f?new tb(d):tb(d)};return a}();Ba(tb,Bb,{}),s(Bb,{NaN:tb.NaN,MAX_VALUE:tb.MAX_VALUE,MIN_VALUE:tb.MIN_VALUE,NEGATIVE_INFINITY:tb.NEGATIVE_INFINITY,POSITIVE_INFINITY:tb.POSITIVE_INFINITY}),Number=Bb,v.redefine(z,"Number",Bb)}var Cb=Math.pow(2,53)-1;s(Number,{MAX_SAFE_INTEGER:Cb,MIN_SAFE_INTEGER:-Cb,EPSILON:2.220446049250313e-16,parseInt:z.parseInt,parseFloat:z.parseFloat,isFinite:$,isInteger:function(b){return $(b)&&la.ToInteger(b)===b},isSafeInteger:function(b){return Number.isInteger(b)&&L(b)<=Number.MAX_SAFE_INTEGER},isNaN:Z}),r(Number,"parseInt",z.parseInt,Number.parseInt!==z.parseInt),[,1].find(function(a,b){return 0===b})||ea(Array.prototype,"find",bb.find),0!==[,1].findIndex(function(a,b){return 0===b})&&ea(Array.prototype,"findIndex",bb.findIndex);var Db=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),Eb=function(b,c){l&&Db(b,c)&&Object.defineProperty(b,c,{enumerable:!1})},Fb=function(){for(var b=Number(this),c=arguments.length,d=c-b,e=new Array(d<0?0:d),f=b;f1?NaN:c===-1?-(1/0):1===c?1/0:0===c?c:.5*N((1+c)/(1-c))},cbrt:function(b){var c=Number(b);if(0===c)return c;var e,d=c<0;return d&&(c=-c),c===1/0?e=1/0:(e=M(N(c)/3),e=(c/(e*e)+2*e)/3),d?-e:e},clz32:function(b){var c=Number(b),d=la.ToUint32(c);return 0===d?32:Cc?la.Call(Cc,d):31-K(N(d+.5)*Ac)},cosh:function(b){var c=Number(b);return 0===c?1:Z(c)?NaN:A(c)?(c<0&&(c=-c),c>21?M(c)/2:(M(c)+M(-c))/2):1/0},expm1:function(b){var c=Number(b);if(c===-(1/0))return-1;if(!A(c)||0===c)return c;if(L(c)>.5)return M(c)-1;for(var d=c,e=0,f=1;e+d!==e;)e+=d,f+=1,d*=c/f;return e},hypot:function(b,c){for(var d=0,e=0,f=0;f0?g/e*(g/e):g}return e===1/0?1/0:e*O(d)},log2:function(b){return N(b)*Ac},log10:function(b){return N(b)*Bc},log1p:function(b){var c=Number(b);return c<-1||Z(c)?NaN:0===c||c===1/0?c:c===-1?-(1/0):1+c-1===0?c:c*(N(1+c)/(1+c-1))},sign:_,sinh:function(b){var c=Number(b);return A(c)&&0!==c?L(c)<1?(Math.expm1(c)-Math.expm1(-c))/2:(M(c-1)-M(-c-1))*zc/2:c},tanh:function(b){var c=Number(b);return Z(c)||0===c?c:c>=20?1:c<=-20?-1:(Math.expm1(c)-Math.expm1(-c))/(M(c)+M(-c))},trunc:function(b){var c=Number(b);return c<0?-K(-c):K(c)},imul:function(b,c){var d=la.ToUint32(b),e=la.ToUint32(c),f=d>>>16&65535,g=65535&d,h=e>>>16&65535,i=65535&e;return g*i+(f*i+g*h<<16>>>0)|0},fround:function(b){var c=Number(b);if(0===c||c===1/0||c===-(1/0)||Z(c))return c;var d=_(c),e=L(c);if(exc||Z(g)?d*(1/0):d*g}};s(Math,Dc),r(Math,"log1p",Dc.log1p,Math.log1p(-1e-17)!==-1e-17),r(Math,"asinh",Dc.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),r(Math,"tanh",Dc.tanh,Math.tanh(-2e-17)!==-2e-17),r(Math,"acosh",Dc.acosh,Math.acosh(Number.MAX_VALUE)===1/0),r(Math,"cbrt",Dc.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8),r(Math,"sinh",Dc.sinh,Math.sinh(-2e-17)!==-2e-17);var Ec=Math.expm1(10);r(Math,"expm1",Dc.expm1,Ec>22025.465794806718||Ec<22025.465794806718);var Fc=Math.round,Gc=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(-.5+Number.EPSILON/3.99),Hc=uc+1,Ic=2*uc-1,Jc=[Hc,Ic].every(function(a){return Math.round(a)===a});r(Math,"round",function(b){var c=K(b),d=c===-1?-0:c+1;return b-c<.5?c:d},!Gc||!Jc),v.preserveToString(Math.round,Fc);var Kc=Math.imul;Math.imul(4294967295,5)!==-5&&(Math.imul=Dc.imul,v.preserveToString(Math.imul,Kc)),2!==Math.imul.length&&ea(Math,"imul",function(b,c){return la.Call(Kc,Math,arguments)});var Lc=function(){var b=z.setTimeout;if("function"==typeof b||"object"==typeof b){la.IsPromise=function(a){return!!la.TypeIsObject(a)&&"undefined"!=typeof a._promise};var e,d=function(a){if(!la.IsConstructor(a))throw new TypeError("Bad promise constructor");var b=this,c=function(a,c){if(void 0!==b.resolve||void 0!==b.reject)throw new TypeError("Bad Promise implementation!");b.resolve=a,b.reject=c};if(b.resolve=void 0,b.reject=void 0,b.promise=new a(c),!la.IsCallable(b.resolve)||!la.IsCallable(b.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&la.IsCallable(window.postMessage)&&(e=function(){var a=[],b="zero-timeout-message",c=function(c){F(a,c),window.postMessage(b,"*")},d=function(c){if(c.source===window&&c.data===b){if(c.stopPropagation(),0===a.length)return;var d=H(a);d()}};return window.addEventListener("message",d,!0),c});var y,A,f=function(){var a=z.Promise,b=a&&a.resolve&&a.resolve();return b&&function(a){return b.then(a)}},g=la.IsCallable(z.setImmediate)?z.setImmediate:"object"==typeof a&&a.nextTick?a.nextTick:f()||(la.IsCallable(e)?e():function(a){b(a,0)}),h=function(a){return a},i=function(a){throw a},j=0,k=1,l=2,m=0,n=1,o=2,p={},q=function(a,b,c){g(function(){r(a,b,c)})},r=function(a,b,c){var d,e;if(b===p)return a(c);try{d=a(c),e=b.resolve}catch(a){d=a,e=b.reject}e(d)},t=function(a,b){var c=a._promise,d=c.reactionLength;if(d>0&&(q(c.fulfillReactionHandler0,c.reactionCapability0,b),c.fulfillReactionHandler0=void 0,c.rejectReactions0=void 0,c.reactionCapability0=void 0,d>1))for(var e=1,f=0;e0&&(q(c.rejectReactionHandler0,c.reactionCapability0,b),c.fulfillReactionHandler0=void 0,c.rejectReactions0=void 0,c.reactionCapability0=void 0,d>1))for(var e=1,f=0;e2&&arguments[2]===p;g=r&&f===B?p:new d(f);var v,s=la.IsCallable(b)?b:h,t=la.IsCallable(c)?c:i,u=e._promise;if(u.state===j){if(0===u.reactionLength)u.fulfillReactionHandler0=s,u.rejectReactionHandler0=t,u.reactionCapability0=g;else{var w=3*(u.reactionLength-1);u[w+m]=s,u[w+n]=t,u[w+o]=g}u.reactionLength+=1}else if(u.state===k)v=u.result,q(s,g,v);else{if(u.state!==l)throw new TypeError("unexpected Promise state");v=u.result,q(t,g,v)}return g.promise}}),p=new d(B),A=y.then,B}}();if(z.Promise&&(delete z.Promise.accept,delete z.Promise.defer,delete z.Promise.prototype.chain),"function"==typeof Lc){s(z,{Promise:Lc});var Mc=x(z.Promise,function(a){return a.resolve(42).then(function(){})instanceof a}),Nc=!h(function(){z.Promise.reject(42).then(null,5).then(null,R)}),Oc=h(function(){z.Promise.call(3,R)}),Pc=function(a){var b=a.resolve(5);b.constructor={};var c=a.resolve(b);try{c.then(null,R).then(null,R)}catch(a){return!0}return b===c}(z.Promise),Qc=l&&function(){var a=0,b=Object.defineProperty({},"then",{get:function(){a+=1}});return Promise.resolve(b),1===a}(),Rc=function a(b){var c=new Promise(b);b(3,function(){}),this.then=c.then,this.constructor=a};Rc.prototype=Promise.prototype,Rc.all=Promise.all;var Sc=i(function(){return!!Rc.all([1,2])});if(Mc&&Nc&&Oc&&!Pc&&Qc&&!Sc||(Promise=Lc,ea(z,"Promise",Lc)),1!==Promise.all.length){var Tc=Promise.all;ea(Promise,"all",function(b){return la.Call(Tc,this,arguments)})}if(1!==Promise.race.length){var Uc=Promise.race;ea(Promise,"race",function(b){return la.Call(Uc,this,arguments)})}if(1!==Promise.resolve.length){var Vc=Promise.resolve;ea(Promise,"resolve",function(b){return la.Call(Vc,this,arguments)})}if(1!==Promise.reject.length){var Wc=Promise.reject;ea(Promise,"reject",function(b){return la.Call(Wc,this,arguments)})}Eb(Promise,"all"),Eb(Promise,"race"),Eb(Promise,"resolve"),Eb(Promise,"reject"),Da(Promise)}var Xc=function(a){var b=f(o(a,function(a,b){return a[b]=!0,a},{}));return a.join(":")===b.join(":")},Yc=Xc(["z","a","bb"]),Zc=Xc(["z",1,"a","3",2]);if(l){var $c=function(b,c){return c||Yc?ka(b)?"^"+la.ToString(b):"string"==typeof b?"$"+b:"number"==typeof b?Zc?b:"n"+b:"boolean"==typeof b?"b"+b:null:null},_c=function(){return Object.create?Object.create(null):{}},ad=function(b,d,f){if(e(f)||da.string(f))n(f,function(a){if(!la.TypeIsObject(a))throw new TypeError("Iterator value "+a+" is not an entry object");d.set(a[0],a[1])});else if(f instanceof b)c(b.prototype.forEach,f,function(a,b){d.set(b,a)});else{var g,h;if(!ka(f)){if(h=d.set,!la.IsCallable(h))throw new TypeError("bad map");g=la.GetIterator(f)}if("undefined"!=typeof g)for(;;){var i=la.IteratorStep(g);if(i===!1)break;var j=i.value;try{if(!la.TypeIsObject(j))throw new TypeError("Iterator value "+j+" is not an entry object");c(h,d,j[0],j[1])}catch(a){throw la.IteratorClose(g,!0),a}}}},bd=function(b,d,f){if(e(f)||da.string(f))n(f,function(a){d.add(a)});else if(f instanceof b)c(b.prototype.forEach,f,function(a){d.add(a)});else{var g,h;if(!ka(f)){if(h=d.add,!la.IsCallable(h))throw new TypeError("bad set");g=la.GetIterator(f)}if("undefined"!=typeof g)for(;;){var i=la.IteratorStep(g);if(i===!1)break;var j=i.value;try{c(h,d,j)}catch(a){throw la.IteratorClose(g,!0),a}}}},cd={Map:function(){var a={},b=function(b,c){this.key=b,this.value=c,this.next=null,this.prev=null};b.prototype.isRemoved=function(){return this.key===a};var d=function(b){return!!b._es6map},e=function(b,c){if(!la.TypeIsObject(b)||!d(b))throw new TypeError("Method Map.prototype."+c+" called on incompatible receiver "+la.ToString(b))},f=function(b,c){e(b,"[[MapIterator]]"),this.head=b._head,this.i=this.head,this.kind=c};f.prototype={next:function(){var b=this.i,c=this.kind,d=this.head;if("undefined"==typeof this.i)return Za();for(;b.isRemoved()&&b!==d;)b=b.prev;for(var e;b.next!==d;)if(b=b.next,!b.isRemoved())return e="key"===c?b.key:"value"===c?b.value:[b.key,b.value],this.i=b,Za(e);return this.i=void 0,Za()}},Ea(f.prototype);var g,h=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var c=Ha(this,a,g,{_es6map:!0,_head:null,_map:S?new S:null,_size:0,_storage:_c()}),d=new b(null,null);return d.next=d.prev=d,c._head=d,arguments.length>0&&ad(a,c,arguments[0]), -c};return g=h.prototype,v.getter(g,"size",function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}),s(g,{get:function(b){e(this,"get");var c,d=$c(b,!0);if(null!==d)return c=this._storage[d],c?c.value:void 0;if(this._map)return c=U.call(this._map,b),c?c.value:void 0;for(var f=this._head,g=f;(g=g.next)!==f;)if(la.SameValueZero(g.key,b))return g.value},has:function(b){e(this,"has");var c=$c(b,!0);if(null!==c)return"undefined"!=typeof this._storage[c];if(this._map)return V.call(this._map,b);for(var d=this._head,f=d;(f=f.next)!==d;)if(la.SameValueZero(f.key,b))return!0;return!1},set:function(c,d){e(this,"set");var h,f=this._head,g=f,i=$c(c,!0);if(null!==i){if("undefined"!=typeof this._storage[i])return this._storage[i].value=d,this;h=this._storage[i]=new b(c,d),g=f.prev}else this._map&&(V.call(this._map,c)?U.call(this._map,c).value=d:(h=new b(c,d),W.call(this._map,c,h),g=f.prev));for(;(g=g.next)!==f;)if(la.SameValueZero(g.key,c))return g.value=d,this;return h=h||new b(c,d),la.SameValue(-0,c)&&(h.key=0),h.next=this._head,h.prev=this._head.prev,h.prev.next=h,h.next.prev=h,this._size+=1,this},delete:function(b){e(this,"delete");var c=this._head,d=c,f=$c(b,!0);if(null!==f){if("undefined"==typeof this._storage[f])return!1;d=this._storage[f].prev,delete this._storage[f]}else if(this._map){if(!V.call(this._map,b))return!1;d=U.call(this._map,b).prev,T.call(this._map,b)}for(;(d=d.next)!==c;)if(la.SameValueZero(d.key,b))return d.key=d.value=a,d.prev.next=d.next,d.next.prev=d.prev,this._size-=1,!0;return!1},clear:function(){e(this,"clear"),this._map=S?new S:null,this._size=0,this._storage=_c();for(var c=this._head,d=c,f=d.next;(d=f)!==c;)d.key=d.value=a,f=d.next,d.next=d.prev=c;c.next=c.prev=c},keys:function(){return e(this,"keys"),new f(this,"key")},values:function(){return e(this,"values"),new f(this,"value")},entries:function(){return e(this,"entries"),new f(this,"key+value")},forEach:function(b){e(this,"forEach");for(var d=arguments.length>1?arguments[1]:null,f=this.entries(),g=f.next();!g.done;g=f.next())d?c(b,d,g.value[1],g.value[0],this):b(g.value[1],g.value[0],this)}}),Ea(g,g.entries),h}(),Set:function(){var d,a=function(b){return b._es6set&&"undefined"!=typeof b._storage},b=function(c,d){if(!la.TypeIsObject(c)||!a(c))throw new TypeError("Set.prototype."+d+" called on incompatible receiver "+la.ToString(c))},e=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var b=Ha(this,a,d,{_es6set:!0,"[[SetData]]":null,_storage:_c()});if(!b._es6set)throw new TypeError("bad set");return arguments.length>0&&bd(a,b,arguments[0]),b};d=e.prototype;var g=function(a){var b=a;if("^null"===b)return null;if("^undefined"!==b){var c=b.charAt(0);return"$"===c?E(b,1):"n"===c?+E(b,1):"b"===c?"btrue"===b:+b}},h=function(b){if(!b["[[SetData]]"]){var c=b["[[SetData]]"]=new cd.Map;n(f(b._storage),function(a){var b=g(a);c.set(b,b)}),b["[[SetData]]"]=c}b._storage=null};return v.getter(e.prototype,"size",function(){return b(this,"size"),this._storage?f(this._storage).length:(h(this),this["[[SetData]]"].size)}),s(e.prototype,{has:function(c){b(this,"has");var d;return this._storage&&null!==(d=$c(c))?!!this._storage[d]:(h(this),this["[[SetData]]"].has(c))},add:function(c){b(this,"add");var d;return this._storage&&null!==(d=$c(c))?(this._storage[d]=!0,this):(h(this),this["[[SetData]]"].set(c,c),this)},delete:function(a){b(this,"delete");var c;if(this._storage&&null!==(c=$c(a))){var d=P(this._storage,c);return delete this._storage[c]&&d}return h(this),this["[[SetData]]"].delete(a)},clear:function(){b(this,"clear"),this._storage&&(this._storage=_c()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return b(this,"values"),h(this),this["[[SetData]]"].values()},entries:function(){return b(this,"entries"),h(this),this["[[SetData]]"].entries()},forEach:function(d){b(this,"forEach");var e=arguments.length>1?arguments[1]:null,f=this;h(f),this["[[SetData]]"].forEach(function(a,b){e?c(d,e,b,b,f):d(b,b,f)})}}),r(e.prototype,"keys",e.prototype.values,!0),Ea(e.prototype,e.prototype.values),e}()};if(z.Map||z.Set){var dd=i(function(){return 2===new Map([[1,2]]).get(1)});dd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,z.Map.prototype),b},z.Map.prototype=w(S.prototype),r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var ed=new Map,fd=function(){var a=new Map([[1,0],[2,0],[3,0],[4,0]]);return a.set(-0,a),a.get(0)===a&&a.get(-0)===a&&a.has(0)&&a.has(-0)}(),gd=ed.set(1,2)===ed;fd&&gd||ea(Map.prototype,"set",function(b,d){return c(W,this,0===b?0:b,d),this}),fd||(s(Map.prototype,{get:function(b){return c(U,this,0===b?0:b)},has:function(b){return c(V,this,0===b?0:b)}},!0),v.preserveToString(Map.prototype.get,U),v.preserveToString(Map.prototype.has,V));var hd=new Set,id=function(a){return a.delete(0),a.add(-0),!a.has(0)}(hd),jd=hd.add(1)===hd;if(!id||!jd){var kd=Set.prototype.add;Set.prototype.add=function(b){return c(kd,this,0===b?0:b),this},v.preserveToString(Set.prototype.add,kd)}if(!id){var ld=Set.prototype.has;Set.prototype.has=function(b){return c(ld,this,0===b?0:b)},v.preserveToString(Set.prototype.has,ld);var md=Set.prototype.delete;Set.prototype.delete=function(b){return c(md,this,0===b?0:b)},v.preserveToString(Set.prototype.delete,md)}var nd=x(z.Map,function(a){var b=new a([]);return b.set(42,42),b instanceof a}),od=Object.setPrototypeOf&&!nd,pd=function(){try{return!(z.Map()instanceof z.Map)}catch(a){return a instanceof TypeError}}();0===z.Map.length&&!od&&pd||(z.Map=function a(){if(!(this instanceof a))throw new TypeError('Constructor Map requires "new"');var b=new S;return arguments.length>0&&ad(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Map.prototype=S.prototype,r(z.Map.prototype,"constructor",z.Map,!0),v.preserveToString(z.Map,S));var qd=x(z.Set,function(a){var b=new a([]);return b.add(42,42),b instanceof a}),rd=Object.setPrototypeOf&&!qd,sd=function(){try{return!(z.Set()instanceof z.Set)}catch(a){return a instanceof TypeError}}();if(0!==z.Set.length||rd||!sd){var td=z.Set;z.Set=function a(){if(!(this instanceof a))throw new TypeError('Constructor Set requires "new"');var b=new td;return arguments.length>0&&bd(a,b,arguments[0]),delete b.constructor,Object.setPrototypeOf(b,a.prototype),b},z.Set.prototype=td.prototype,r(z.Set.prototype,"constructor",z.Set,!0),v.preserveToString(z.Set,td)}var ud=new z.Map,vd=!i(function(){return ud.keys().next().done});if(("function"!=typeof z.Map.prototype.clear||0!==(new z.Set).size||0!==ud.size||"function"!=typeof z.Map.prototype.keys||"function"!=typeof z.Set.prototype.keys||"function"!=typeof z.Map.prototype.forEach||"function"!=typeof z.Set.prototype.forEach||j(z.Map)||j(z.Set)||"function"!=typeof ud.keys().next||vd||!nd)&&s(z,{Map:cd.Map,Set:cd.Set},!0),z.Set.prototype.keys!==z.Set.prototype.values&&r(z.Set.prototype,"keys",z.Set.prototype.values,!0),Ea(Object.getPrototypeOf((new z.Map).keys())),Ea(Object.getPrototypeOf((new z.Set).keys())),m&&"has"!==z.Set.prototype.has.name){var wd=z.Set.prototype.has;ea(z.Set.prototype,"has",function(b){return c(wd,this,b)})}}s(z,cd),Da(z.Map),Da(z.Set)}var xd=function(b){if(!la.TypeIsObject(b))throw new TypeError("target must be an object")},yd={apply:function(){return la.Call(la.Call,null,arguments)},construct:function(b,c){if(!la.IsConstructor(b))throw new TypeError("First argument must be a constructor.");var d=arguments.length>2?arguments[2]:b;if(!la.IsConstructor(d))throw new TypeError("new.target must be a constructor.");return la.Construct(b,c,d,"internal")},deleteProperty:function(b,c){if(xd(b),l){var d=Object.getOwnPropertyDescriptor(b,c);if(d&&!d.configurable)return!1}return delete b[c]},has:function(b,c){return xd(b),c in b}};Object.getOwnPropertyNames&&Object.assign(yd,{ownKeys:function(b){xd(b);var c=Object.getOwnPropertyNames(b);return la.IsCallable(Object.getOwnPropertySymbols)&&G(c,Object.getOwnPropertySymbols(b)),c}});var zd=function(b){return!h(b)};if(Object.preventExtensions&&Object.assign(yd,{isExtensible:function(b){return xd(b),Object.isExtensible(b)},preventExtensions:function(b){return xd(b),zd(function(){Object.preventExtensions(b)})}}),l){var Ad=function(b,c,d){var e=Object.getOwnPropertyDescriptor(b,c);if(!e){var f=Object.getPrototypeOf(b);if(null===f)return;return Ad(f,c,d)}return"value"in e?e.value:e.get?la.Call(e.get,d):void 0},Bd=function(b,d,e,f){var g=Object.getOwnPropertyDescriptor(b,d);if(!g){var h=Object.getPrototypeOf(b);if(null!==h)return Bd(h,d,e,f);g={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in g){if(!g.writable)return!1;if(!la.TypeIsObject(f))return!1;var i=Object.getOwnPropertyDescriptor(f,d);return i?ha.defineProperty(f,d,{value:e}):ha.defineProperty(f,d,{value:e,writable:!0,enumerable:!0,configurable:!0})}return!!g.set&&(c(g.set,f,e),!0)};Object.assign(yd,{defineProperty:function(b,c,d){return xd(b),zd(function(){Object.defineProperty(b,c,d)})},getOwnPropertyDescriptor:function(b,c){return xd(b),Object.getOwnPropertyDescriptor(b,c)},get:function(b,c){xd(b);var d=arguments.length>2?arguments[2]:b;return Ad(b,c,d)},set:function(b,c,d){xd(b);var e=arguments.length>3?arguments[3]:b;return Bd(b,c,d,e)}})}if(Object.getPrototypeOf){var Cd=Object.getPrototypeOf;yd.getPrototypeOf=function(b){return xd(b),Cd(b)}}if(Object.setPrototypeOf&&yd.getPrototypeOf){var Dd=function(a,b){for(var c=b;c;){if(a===c)return!0;c=yd.getPrototypeOf(c)}return!1};Object.assign(yd,{setPrototypeOf:function(b,c){if(xd(b),null!==c&&!la.TypeIsObject(c))throw new TypeError("proto must be an object or null");return c===ha.getPrototypeOf(b)||!(ha.isExtensible&&!ha.isExtensible(b))&&(!Dd(b,c)&&(Object.setPrototypeOf(b,c),!0))}})}var Ed=function(a,b){if(la.IsCallable(z.Reflect[a])){var c=i(function(){return z.Reflect[a](1),z.Reflect[a](NaN),z.Reflect[a](!0),!0});c&&ea(z.Reflect,a,b)}else r(z.Reflect,a,b)};Object.keys(yd).forEach(function(a){Ed(a,yd[a])});var Fd=z.Reflect.getPrototypeOf;if(m&&Fd&&"getPrototypeOf"!==Fd.name&&ea(z.Reflect,"getPrototypeOf",function(b){return c(Fd,z.Reflect,b)}),z.Reflect.setPrototypeOf&&i(function(){return z.Reflect.setPrototypeOf(1,{}),!0})&&ea(z.Reflect,"setPrototypeOf",yd.setPrototypeOf),z.Reflect.defineProperty&&(i(function(){var a=!z.Reflect.defineProperty(1,"test",{value:1}),b="function"!=typeof Object.preventExtensions||!z.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return a&&b})||ea(z.Reflect,"defineProperty",yd.defineProperty)),z.Reflect.construct&&(i(function(){var a=function(){};return z.Reflect.construct(function(){},[],a)instanceof a})||ea(z.Reflect,"construct",yd.construct)),"Invalid Date"!==String(new Date(NaN))){var Gd=Date.prototype.toString,Hd=function(){var b=+this;return b!==b?"Invalid Date":la.Call(Gd,this)};ea(Date.prototype,"toString",Hd)}var Id={anchor:function(b){return la.CreateHTML(this,"a","name",b)},big:function(){return la.CreateHTML(this,"big","","")},blink:function(){return la.CreateHTML(this,"blink","","")},bold:function(){return la.CreateHTML(this,"b","","")},fixed:function(){return la.CreateHTML(this,"tt","","")},fontcolor:function(b){return la.CreateHTML(this,"font","color",b)},fontsize:function(b){return la.CreateHTML(this,"font","size",b)},italics:function(){return la.CreateHTML(this,"i","","")},link:function(b){return la.CreateHTML(this,"a","href",b)},small:function(){return la.CreateHTML(this,"small","","")},strike:function(){return la.CreateHTML(this,"strike","","")},sub:function(){return la.CreateHTML(this,"sub","","")},sup:function(){return la.CreateHTML(this,"sup","","")}};n(Object.keys(Id),function(a){var b=String.prototype[a],d=!1;if(la.IsCallable(b)){var e=c(b,"",' " '),f=D([],e.match(/"/g)).length;d=e!==e.toLowerCase()||f>2}else d=!0;d&&ea(String.prototype,a,Id[a])});var Jd=function(){if(!fa)return!1;var a="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!a)return!1;if("undefined"!=typeof a(X()))return!0;if("[null]"!==a([X()]))return!0;var b={a:X()};return b[X()]=!0,"{}"!==a(b)}(),Kd=i(function(){return!fa||"{}"===JSON.stringify(Object(X()))&&"[{}]"===JSON.stringify([Object(X())])});if(Jd||!Kd){var Ld=JSON.stringify;ea(JSON,"stringify",function(b){if("symbol"!=typeof b){var d;arguments.length>1&&(d=arguments[1]);var f=[b];if(e(d))f.push(d);else{var g=la.IsCallable(d)?d:null,h=function(a,b){var d=g?c(g,this,a,b):b;if("symbol"!=typeof d)return da.symbol(d)?Gb({})(d):d};f.push(h)}return arguments.length>2&&f.push(arguments[2]),Ld.apply(this,f)}})}return z})}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:16}],47:[function(a,b,c){function e(a,b,c){var d=document.getElementById("script-"+a);null!=d&&d.parentElement.removeChild(d),d=document.createElement("script"),d.type="text/javascript",d.setAttribute("id","script-"+a),d.readyState?d.onreadystatechange=function(){"loaded"!=d.readyState&&"complete"!=d.readyState||(d.onreadystatechange=null,c())}:d.onload=function(){c()},d.src=b,document.getElementsByTagName("head")[0].appendChild(d)}function f(a,b){delete window.Module,window.Module=void 0;var c="https://ethereum.github.io/solc-bin/bin/"+a;e("solc",c,function(){var a=d(window.Module);b(a)})}function g(a){var b="https://ethereum.github.io/solc-bin/bin/list.js";e("solc-list",b,function(){a(soljsonSources,soljsonReleases)})}a("es6-shim");var d=a("solc/wrapper");b.exports={getVersions:g,loadVersion:f}},{"es6-shim":46,"solc/wrapper":51}],48:[function(a,b,c){a("es6-shim");var d=a("./browser-solc"),e=function(a){var b=function(){return document.attachEvent&&"undefined"!=typeof document.attachEvent?"ie":"not-ie"};return a=function(a){a&&"function"==typeof a?"ie"!==b()?document.addEventListener("DOMContentLoaded",function(){return a()}):document.attachEvent("onreadystatechange",function(){if("complete"===document.readyState)return a()}):console.error("The callback is not a function!")}}(e||{});!function(a,b,c,e){c(function(){b.BrowserSolc=d})}(document,window,e)},{"./browser-solc":47,"es6-shim":46}],49:[function(a,b,c){(function(c){"use strict";function g(a,b){return this instanceof g?(g.super_.call(this,b),void this.init(a,b)):new g(a,b)}function h(a,b){return this instanceof h?(h.super_.call(this,b),void this.init(a,b)):new h(a,b)}function i(a,b){return this instanceof i?(i.super_.call(this,b),void this.init(a,b)):new i(a,b)}function j(a,b){if(!(this instanceof j))return new j(a,b);b=b||{};var c=!b.hasOwnProperty("readable")||b.readable,d=!b.hasOwnProperty("writable")||b.writable;if(c&&d)return new i(a,b);if(c)return new g(a,b);if(d)return new h(a,b);throw new Error("Unknown stream type Readable, Writable or Duplex ")}var d=a("stream"),e=a("util"),f=a("string_decoder").StringDecoder;e.inherits(g,d.Readable),e.inherits(h,d.Writable),e.inherits(i,d.Duplex),g.prototype.init=h.prototype.init=i.prototype.init=function(b,d){var e=this;this.queue=[],b&&(Array.isArray(b)||(b=[b]),b.forEach(function(a){a instanceof c||(a=new c(a)),e.queue.push(a)})),d=d||{},this.maxbufsize=d.hasOwnProperty("maxbufsize")?d.maxbufsize:null,this.bufoverflow=d.hasOwnProperty("bufoverflow")?d.bufoverflow:null,this.frequence=d.hasOwnProperty("frequence")?d.frequence:null},j.createReadStream=function(a,b){return b=b||{},b.readable=!0,b.writable=!1,new j(a,b)},j.createWriteStream=function(a,b){return b=b||{},b.readable=!1,b.writable=!0,new j(a,b)},g.prototype._read=i.prototype._read=function(b){var c=this,e=c.frequence||0,f=this instanceof d.Duplex&&!this._writableState.finished;this.queue.length||f?this.queue.length&&setTimeout(function(){if(c.queue.length){var a=c.queue.shift();a&&!c._readableState.ended&&(c.push(a)||c.queue.unshift(a))}},e):this.push(null)},h.prototype._write=i.prototype._write=function(b,c,e){var g=null;try{g=this.decodeStrings&&c?new f(c):null}catch(a){return e(a)}var h=g?g.write(b):b,i=this._getQueueSize(),j=h.length;if(this.maxbufsize&&i+j>this.maxbufsize)return this.bufoverflow?e("Buffer overflowed ("+this.bufoverflow+"/"+i+")"):e();if(this instanceof d.Duplex){for(;this.queue.length;)this.push(this.queue.shift());this.push(h)}else this.queue.push(h);e()},i.prototype.end=function(a,b,c){var d=this;return i.super_.prototype.end.call(this,a,b,function(){d.push(null),c&&c()})},g.prototype._getQueueSize=h.prototype._getQueueSize=i.prototype._getQueueSize=function(){var b,a=0;for(b=0;b42)throw new Error("Invalid address specified for "+c);for(f=f.slice(2),f=Array(40-f.length+1).join("0")+f;a.indexOf(e)>=0;)a=a.replace(e,f)}return a},o=b.cwrap("version","string",[]);return{version:o,compile:m,linkBytecode:n,supportsMulti:null!==h,supportsImportCallback:null!==i,useVersion:function(b){return g(a("./bin/soljson-"+b+".js"))},loadRemoteVersion:function(a,b){var c=new f(null,{readable:!1}),h="https://ethereum.github.io/solc-bin/bin/soljson-"+a+".js";e.get(h,function(a){200!==a.statusCode?b("Error retrieving binary: "+a.statusMessage):(a.pipe(c),a.on("end",function(){b(null,g(d(c.toString())))}))}).on("error",function(a){b(a)})},setupMethods:g}}var d=a("require-from-string"),e=a("https"),f=a("memorystream");b.exports=g},{https:9,memorystream:49,"require-from-string":50}]},{},[48]); diff --git a/distribution/config.js b/distribution/config.js deleted file mode 100644 index 018bf09f..00000000 --- a/distribution/config.js +++ /dev/null @@ -1,7 +0,0 @@ -var env = { - "CYBER_CHAINGEAR_API": "http://93.125.26.210:32600", - "CYBER_SEARCH_API": "http://93.125.26.210:32901", - "CYBER_MARKETS_API": "http://93.125.26.210:32800", - // "CYBER_MARKETS_API": "https://min-api.cryptocompare.com/data", - "CYBER_MARKETS_STREAM_API": "ws://93.125.26.210:32801" -} diff --git a/distribution/favicon.ico b/distribution/favicon.ico deleted file mode 100644 index 00358e4d..00000000 Binary files a/distribution/favicon.ico and /dev/null differ diff --git a/distribution/icon.png b/distribution/icon.png deleted file mode 100644 index eafd896b..00000000 Binary files a/distribution/icon.png and /dev/null differ diff --git a/distribution/index.html b/distribution/index.html deleted file mode 100644 index 7ee69bf4..00000000 --- a/distribution/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - cyber.search - Search inside block chains - - - - - - - -

- - - - diff --git a/distribution/manifest.json b/distribution/manifest.json deleted file mode 100644 index de4f4e5a..00000000 --- a/distribution/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "id": "chaingear-test-app", - "name": "Chaingear REMOTE", - "iconUrl": "images/title.png", - "description": "The most expensive database", - "version": "0.0.1", - "author": "cybercongress" -} diff --git a/distribution/vendor.js b/distribution/vendor.js deleted file mode 100644 index f6c9041e..00000000 --- a/distribution/vendor.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){var e=window.webpackJsonp;window.webpackJsonp=function(n,i,a){for(var u,s,c,l=0,f=[];l0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(15),o=n(105),i=n(334),a=(n(5),o.ID_ATTRIBUTE_NAME),u=i,s="__reactInternalInstance$"+Math.random().toString(36).slice(2);function c(t,e){return 1===t.nodeType&&t.getAttribute(a)===String(e)||8===t.nodeType&&t.nodeValue===" react-text: "+e+" "||8===t.nodeType&&t.nodeValue===" react-empty: "+e+" "}function l(t){for(var e;e=t._renderedComponent;)t=e;return t}function f(t,e){var n=l(t);n._hostNode=e,e[s]=n}function p(t,e){if(!(t._flags&u.hasCachedChildNodes)){var n=t._renderedChildren,o=e.firstChild;t:for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],s=l(a)._domID;if(0!==s){for(;null!==o;o=o.nextSibling)if(c(o,s)){f(a,o);continue t}r("32",s)}}t._flags|=u.hasCachedChildNodes}}function d(t){if(t[s])return t[s];for(var e,n,r=[];!t[s];){if(r.push(t),!t.parentNode)return null;t=t.parentNode}for(;t&&(n=t[s]);t=r.pop())e=n,r.length&&p(n,t);return e}var h={getClosestInstanceFromNode:d,getInstanceFromNode:function(t){var e=d(t);return null!=e&&e._hostNode===t?e:null},getNodeFromInstance:function(t){if(void 0===t._hostNode&&r("33"),t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent||r("34"),t=t._hostParent;for(;e.length;t=e.pop())p(t,t._hostNode);return t._hostNode},precacheChildNodes:p,precacheNode:f,uncacheNode:function(t){var e=t._hostNode;e&&(delete e[s],t._hostNode=null)}};t.exports=h},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,c=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=c.length;e;){for(s=c,c=[];++f1)for(var n=1;n"+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(124),o=n(56);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(125),o=n(78),i=n(37),a=n(55),u=n(36),s=n(293),c=Object.getOwnPropertyDescriptor;e.f=n(21)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(36),o=n(27),i=n(201)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},,,,,function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(30);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=null;t.exports={debugTool:r}},,,,,,,function(t,e,n){var r=n(14);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(0),o=n(44),i=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(45),o=n(124),i=n(27),a=n(23),u=n(218);t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,d=e||u;return function(e,u,h){for(var v,m,g=i(e),y=o(g),_=r(u,h,3),b=a(y.length),x=0,E=n?d(e,b):s?d(e,0):void 0;b>x;x++)if((p||x in y)&&(m=_(v=y[x],x,g),t))if(n)E[x]=m;else if(m)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:E.push(v)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";var r=n(15),o=n(19),i=n(338),a=n(88),u=n(339),s=n(106),c=n(170),l=(n(5),[]),f=0,p=i.getPooled(),d=!1,h=null;function v(){x.ReactReconcileTransaction&&h||r("123")}var m=[{initialize:function(){this.dirtyComponentsLength=l.length},close:function(){this.dirtyComponentsLength!==l.length?(l.splice(0,this.dirtyComponentsLength),b()):l.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];function g(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=i.getPooled(),this.reconcileTransaction=x.ReactReconcileTransaction.getPooled(!0)}function y(t,e){return t._mountOrder-e._mountOrder}function _(t){var e=t.dirtyComponentsLength;e!==l.length&&r("124",e,l.length),l.sort(y),f++;for(var n=0;nn;)o[n]=e[n++];return o},Mt=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,r,o,i,a,u=E(t),s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,p=k(u);if(void 0!=p&&!w(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(f&&s>2&&(l=c(l,arguments[2],2)),e=0,n=v(u.length),o=Pt(this,n);n>e;e++)o[e]=f?l(u[e],e):u[e];return o},Ot=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!K&&i(function(){dt.call(new K(1))}),At=function(){return dt.apply(It?ft.call(St(this)):St(this),arguments)},Rt={copyWithin:function(t,e){return U.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(St(this),arguments)},filter:function(t){return kt(this,$(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(St(this),arguments)},lastIndexOf:function(t){return at.apply(St(this),arguments)},map:function(t){return xt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(St(this),arguments)},reduceRight:function(t){return st.apply(St(this),arguments)},reverse:function(){for(var t,e=St(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return lt.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,o=g(t,r);return new(I(n,n[gt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},Dt=function(t,e){return kt(this,ft.call(St(this),t,e))},Ft=function(t){St(this);var e=Ct(arguments[1],1),n=this.length,r=E(t),o=v(r.length),i=0;if(o+e>n)throw H("Wrong length!");for(;i255?255:255&r),o.v[d](n*e+o.o,r,Et)}(this,n,t)},enumerable:!0})};_?(h=n(function(t,n,r,o){l(t,h,c,"_d");var i,a,u,s,f=0,d=0;if(x(n)){if(!(n instanceof G||"ArrayBuffer"==(s=b(n))||"SharedArrayBuffer"==s))return _t in n?Tt(h,n):Nt.call(h,n);i=n,d=Ct(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw H("Wrong length!");if((a=g-d)<0)throw H("Wrong length!")}else if((a=v(o)*e)+d>g)throw H("Wrong length!");u=a/e}else u=m(n),i=new G(a=u*e);for(p(t,"_d",{b:i,o:d,l:a,e:u,v:new z(i)});fdocument.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(295),o=n(202).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(8),o=n(22),i=n(21),a=n(18)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(45),o=n(307),i=n(215),a=n(6),u=n(23),s=n(217),c={},l={};(e=t.exports=function(t,e,n,f,p){var d,h,v,m,g=p?function(){return t}:s(t),y=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(d=u(t.length);d>_;_++)if((m=e?y(a(h=t[_])[0],h[1]):y(t[_]))===c||m===l)return m}else for(v=g.call(t);!(h=v.next()).done;)if((m=o(v,y,h.value,e))===c||m===l)return m}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(34);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(15),o=(n(5),function(t){if(this.instancePool.length){var e=this.instancePool.pop();return this.call(e,t),e}return new this(t)}),i=function(t){t instanceof this||r("25"),t.destructor(),this.instancePool.length1){for(var h=Array(d),v=0;v1){for(var g=Array(m),y=0;yl;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(46);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(14),o=n(46),i=n(18)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(18)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(6);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(33),o=n(34),i=n(13),a=n(56),u=n(18);t.exports=function(t,e,n){var s=u(t),c=n(a,s,""[t]),l=c[0],f=c[1];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,l),r(RegExp.prototype,s,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},function(t,e,n){var r=n(6),o=n(30),i=n(18)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(8).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(8),o=n(0),i=n(34),a=n(87),u=n(72),s=n(86),c=n(85),l=n(14),f=n(13),p=n(159),d=n(99),h=n(206);t.exports=function(t,e,n,v,m,g){var y=r[t],_=y,b=m?"set":"add",x=_&&_.prototype,E={},w=function(t){var e=x[t];i(x,t,"delete"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(g||x.forEach&&!f(function(){(new _).entries().next()}))){var C=new _,S=C[b](g?{}:-0,1)!=C,P=f(function(){C.has(1)}),k=p(function(t){new _(t)}),T=!g&&f(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});k||((_=e(function(e,n){c(e,_,t);var r=h(new y,e,_);return void 0!=n&&s(n,m,r[b],r),r})).prototype=x,x.constructor=_),(P||T)&&(w("delete"),w("has"),m&&w("get")),(T||S)&&w(b),g&&x.clear&&delete x.clear}else _=v.getConstructor(e,t,m,b),a(_.prototype,n),u.NEED=!0;return d(_,t),E[t]=_,o(o.G+o.W+o.F*(_!=y),E),g||v.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(8),i=n(33),a=n(79),u=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,u,!0),i(r.prototype,s,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:u,VIEW:s}},function(t,e,n){"use strict";t.exports=n(73)||!n(13)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(8)[t]})},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(0),o=n(30),i=n(45),a=n(86);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,u,s=arguments[1];return o(this),(e=void 0!==s)&&o(s),void 0==t?new this:(n=[],e?(r=0,u=i(s,arguments[2],2),a(t,!1,function(t){n.push(u(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";var r=n(15),o=(n(5),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,e,n,o,i,a,u,s){var c,l;this.isInTransaction()&&r("27");try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=t.call(e,n,o,i,a,u,s),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n]/,s=n(234)(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{(r=r||document.createElement("div")).innerHTML=""+e+"";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(s=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=s},function(t,e,n){"use strict";var r=/["'&<>]/;t.exports=function(t){return"boolean"==typeof t||"number"==typeof t?""+t:function(t){var e,n=""+t,o=r.exec(n);if(!o)return n;var i="",a=0,u=0;for(a=o.index;a0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(57),o=n(56);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s))<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(73),o=n(0),i=n(34),a=n(33),u=n(101),s=n(212),c=n(99),l=n(39),f=n(18)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,g){s(n,e,h);var y,_,b,x=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",w="values"==v,C=!1,S=t.prototype,P=S[f]||S["@@iterator"]||v&&S[v],k=P||x(v),T=v?w?x("entries"):k:void 0,M="Array"==e&&S.entries||P;if(M&&(b=l(M.call(new t)))!==Object.prototype&&b.next&&(c(b,E,!0),r||"function"==typeof b[f]||a(b,f,d)),w&&P&&"values"!==P.name&&(C=!0,k=function(){return P.call(this)}),r&&!g||!p&&!C&&S[f]||a(S,f,k),u[e]=k,u[E]=d,v)if(y={values:w?k:x("values"),keys:m?k:x("keys"),entries:T},g)for(_ in y)_ in S||i(S,_,y[_]);else o(o.P+o.F*(p||C),e,y);return y}},function(t,e,n){"use strict";var r=n(82),o=n(78),i=n(99),a={};n(33)(a,n(18)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(158),o=n(56);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(18)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(101),o=n(18)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(22),o=n(78);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(126),o=n(18)("iterator"),i=n(101);t.exports=n(44).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(696);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(27),o=n(81),i=n(23);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(74),o=n(310),i=n(101),a=n(37);t.exports=n(211)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r,o,i,a=n(45),u=n(300),s=n(203),c=n(199),l=n(8),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},_=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete g[t]},"process"==n(46)(f)?r=function(t){f.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(8),o=n(221).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(46)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(30);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){"use strict";var r=n(8),o=n(21),i=n(73),a=n(165),u=n(33),s=n(87),c=n(13),l=n(85),f=n(57),p=n(23),d=n(319),h=n(83).f,v=n(22).f,m=n(219),g=n(99),y="prototype",_="Wrong index!",b=r.ArrayBuffer,x=r.DataView,E=r.Math,w=r.RangeError,C=r.Infinity,S=b,P=E.abs,k=E.pow,T=E.floor,M=E.log,N=E.LN2,O=o?"_b":"buffer",I=o?"_l":"byteLength",A=o?"_o":"byteOffset";function R(t,e,n){var r,o,i,a=new Array(n),u=8*n-e-1,s=(1<>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===C?(o=t!=t?1:0,r=s):(r=T(M(t)/N),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,u-=8);return a[--f]|=128*p,a}function D(t,e,n){var r,o=8*n-e-1,i=(1<>1,u=o-7,s=n-1,c=t[s--],l=127&c;for(c>>=7;u>0;l=256*l+t[s],s--,u-=8);for(r=l&(1<<-u)-1,l>>=-u,u+=e;u>0;r=256*r+t[s],s--,u-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-C:C;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function F(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function L(t){return[255&t]}function U(t){return[255&t,t>>8&255]}function j(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return R(t,52,8)}function W(t){return R(t,23,4)}function B(t,e,n){v(t[y],e,{get:function(){return this[n]}})}function H(t,e,n,r){var o=d(+n);if(o+e>t[I])throw w(_);var i=t[O]._b,a=o+t[A],u=i.slice(a,a+e);return r?u:u.reverse()}function q(t,e,n,r,o,i){var a=d(+n);if(a+e>t[I])throw w(_);for(var u=t[O]._b,s=a+t[A],c=r(+o),l=0;lz;)(K=G[z++])in b||u(b,K,S[K]);i||(Y.constructor=b)}var X=new x(new b(2)),$=x[y].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||s(x[y],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else b=function(t){l(this,b,"ArrayBuffer");var e=d(t);this._b=m.call(new Array(e),0),this[I]=e},x=function(t,e,n){l(this,x,"DataView"),l(t,b,"DataView");var r=t[I],o=f(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw w("Wrong length!");this[O]=t,this[A]=o,this[I]=n},o&&(B(b,"byteLength","_l"),B(x,"buffer","_b"),B(x,"byteLength","_l"),B(x,"byteOffset","_o")),s(x[y],{getInt8:function(t){return H(this,1,t)[0]<<24>>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t){var e=H(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=H(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return F(H(this,4,t,arguments[1]))},getUint32:function(t){return F(H(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(H(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(H(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,L,e)},setUint8:function(t,e){q(this,1,t,L,e)},setInt16:function(t,e){q(this,2,t,U,e,arguments[2])},setUint16:function(t,e){q(this,2,t,U,e,arguments[2])},setInt32:function(t,e){q(this,4,t,j,e,arguments[2])},setUint32:function(t,e){q(this,4,t,j,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,V,e,arguments[2])}});g(b,"ArrayBuffer"),g(x,"DataView"),u(x[y],a.VIEW,!0),e.ArrayBuffer=b,e.DataView=x},function(t,e,n){"use strict";t.exports=n(819)},function(t,e,n){"use strict";var r=n(15),o=(n(5),null),i={};function a(){if(o)for(var t in i){var e=i[t],n=o.indexOf(t);if(n>-1||r("96",t),!c.plugins[n]){e.extractEvents||r("97",t),c.plugins[n]=e;var a=e.eventTypes;for(var s in a)u(a[s],e,s)||r("98",s,t)}}}function u(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&r("99",n),c.eventNameDispatchConfigs[n]=t;var o=t.phasedRegistrationNames;if(o){for(var i in o){if(o.hasOwnProperty(i))s(o[i],e,n)}return!0}return!!t.registrationName&&(s(t.registrationName,e,n),!0)}function s(t,e,n){c.registrationNameModules[t]&&r("100",t),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){o&&r("101"),o=Array.prototype.slice.call(t),a()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];i.hasOwnProperty(n)&&i[n]===o||(i[n]&&r("102",n),i[n]=o,e=!0)}e&&a()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){for(var t in o=null,i)i.hasOwnProperty(t)&&delete i[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=c.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};t.exports=c},function(t,e,n){"use strict";var r,o,i=n(15),a=n(228);n(5),n(16);function u(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=s.getNodeFromInstance(r),e?a.invokeGuardedCallbackWithCatch(o,n,t):a.invokeGuardedCallback(o,n,t),t.currentTarget=null}var s={isEndish:function(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t},isMoveish:function(t){return"topMouseMove"===t||"topTouchMove"===t},isStartish:function(t){return"topMouseDown"===t||"topTouchStart"===t},executeDirectDispatch:function(t){var e=t._dispatchListeners,n=t._dispatchInstances;Array.isArray(e)&&i("103"),t.currentTarget=e?s.getNodeFromInstance(n):null;var r=e?e(t):null;return t.currentTarget=null,t._dispatchListeners=null,t._dispatchInstances=null,r},executeDispatchesInOrder:function(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function s(t,e){var n=o.get(t);return n||null}var c={isMounted:function(t){var e=o.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){c.validateCallback(e,n);var r=s(t);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(e):r._pendingCallbacks=[e],a(r)},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],a(t)},enqueueForceUpdate:function(t){var e=s(t);e&&(e._pendingForceUpdate=!0,a(e))},enqueueReplaceState:function(t,e,n){var r=s(t);r&&(r._pendingStateQueue=[e],r._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),r._pendingCallbacks?r._pendingCallbacks.push(n):r._pendingCallbacks=[n]),a(r))},enqueueSetState:function(t,e){var n=s(t);n&&((n._pendingStateQueue||(n._pendingStateQueue=[])).push(e),a(n))},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,a(t)},validateCallback:function(t,e){t&&"function"!=typeof t&&r("122",e,u(t))}};t.exports=c},function(t,e,n){"use strict";n(19);var r=n(60),o=(n(16),r);t.exports=o},function(t,e,n){"use strict";t.exports=function(t){var e,n=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===n&&(e=13):e=n,e>=32||13===e?e:0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=!n(21)&&!n(13)(function(){return 7!=Object.defineProperty(n(199)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){e.f=n(18)},function(t,e,n){var r=n(36),o=n(37),i=n(155)(!1),a=n(201)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(22),o=n(6),i=n(80);t.exports=n(21)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(37),o=n(83).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(80),o=n(156),i=n(125),a=n(27),u=n(124),s=Object.assign;t.exports=!s||n(13)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=o.f,f=i.f;s>c;)for(var p,d=u(arguments[c++]),h=l?r(d).concat(l(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:s},function(t,e,n){"use strict";var r=n(30),o=n(14),i=n(300),a=[].slice,u={};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?function(t,e,n){if(!(e in u)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(8).parseFloat,o=n(100).trim;t.exports=1/r(n(205)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(46);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(14),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(208),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),s=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return ou||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(30),o=n(27),i=n(124),a=n(23);t.exports=function(t,e,n,u,s){r(e);var c=o(t),l=i(c),f=a(c.length),p=s?f-1:0,d=s?-1:1;if(n<2)for(;;){if(p in l){u=l[p],p+=d;break}if(p+=d,s?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;s?p>=0:f>p;p+=d)p in l&&(u=e(u,l[p],p,c));return u}},function(t,e,n){"use strict";var r=n(27),o=n(81),i=n(23);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),s=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-s,a-u),f=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=f,s+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(21)&&"g"!=/./g.flags&&n(22).f(RegExp.prototype,"flags",{configurable:!0,get:n(160)})},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(6),o=n(14),i=n(223);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(315),o=n(102);t.exports=n(164)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(22).f,o=n(82),i=n(87),a=n(45),u=n(85),s=n(86),c=n(211),l=n(310),f=n(84),p=n(21),d=n(72).fastKey,h=n(102),v=p?"_s":"size",m=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){u(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&s(r,n,t[c],t)});return i(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),r=m(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){h(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(h(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return h(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=m(t,e);return i?i.v=n:(t._l=i={i:o=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(315),o=n(102);t.exports=n(164)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(59)(0),i=n(34),a=n(72),u=n(298),s=n(318),c=n(14),l=n(13),f=n(102),p=a.getWeak,d=Object.isExtensible,h=s.ufstore,v={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?h(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(f(this,"WeakMap"),t,e)}},y=t.exports=n(164)("WeakMap",m,g,s,!0,!0);l(function(){return 7!=(new y).set((Object.freeze||Object)(v),7).get(v)})&&(u((r=s.getConstructor(m,"WeakMap")).prototype,g),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];i(e,t,function(e,o){if(c(e)&&!d(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(87),o=n(72).getWeak,i=n(6),a=n(14),u=n(85),s=n(86),c=n(59),l=n(36),f=n(102),p=c(5),d=c(6),h=0,v=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},g=function(t,e){return p(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t(function(t,r){u(t,c,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&s(r,n,t[i],t)});return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(57),o=n(23);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(83),o=n(156),i=n(6),a=n(8).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var r=n(157),o=n(14),i=n(23),a=n(45),u=n(18)("isConcatSpreadable");t.exports=function t(e,n,s,c,l,f,p,d){for(var h,v,m=l,g=0,y=!!p&&a(p,d,3);g0)m=t(e,n,h,i(h.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=h}m++}g++}return m}},function(t,e,n){var r=n(23),o=n(207),i=n(56);t.exports=function(t,e,n,a){var u=String(i(t)),s=u.length,c=void 0===n?" ":String(n),l=r(e);if(l<=s||""==c)return u;var f=l-s,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+u:u+p}},function(t,e,n){var r=n(80),o=n(37),i=n(125).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=r(a),s=u.length,c=0,l=[];s>c;)i.call(a,n=u[c++])&&l.push(t?[n,a[n]]:a[n]);return l}}},function(t,e,n){var r=n(126),o=n(325);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){var r=n(86);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e){t.exports=Math.scale||function(t,e,n,r,o){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||o!=o?NaN:t===1/0||t===-1/0?t:(t-e)*(o-r)/(n-e)+r}},function(t,e,n){"use strict";var r=n(127),o=n(19),i=n(328),a=(n(329),n(169));n(5),n(806);function u(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}function s(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}function c(){}u.prototype.isReactComponent={},u.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&r("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},u.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")},c.prototype=u.prototype,s.prototype=new c,s.prototype.constructor=s,o(s.prototype,u.prototype),s.prototype.isPureReactComponent=!0,t.exports={Component:u,PureComponent:s}},function(t,e,n){"use strict";n(16);var r={isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){},enqueueReplaceState:function(t,e){},enqueueSetState:function(t,e){}};t.exports=r},function(t,e,n){"use strict";var r=!1;t.exports=r},function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},function(t,e,n){"use strict";var r=n(814);t.exports=function(t){return r(t,!1)}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";var r=n(19),o=n(169),i=n(5),a="mixins";t.exports=function(t,e,n){var u=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},l={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var i,u=a.createElement(F,{child:e});if(t){var s=p.get(t);i=s._processChildContext(s._context)}else i=g;var c=R(n);if(c){var l=c._currentElement.props.child;if(b(l,e)){var f=c._renderedComponent.getPublicInstance(),d=o&&function(){o.call(f)};return L._updateRootComponent(c,u,i,n,d),f}L.unmountComponentAtNode(n)}var h=k(n),m=h&&!!T(h),y=I(n),_=m&&!c&&!y,x=L._renderNewRootComponent(u,n,_,i)._renderedComponent.getPublicInstance();return o&&o.call(x),x},render:function(t,e,n){return L._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){A(t)||r("40");var e=R(t);if(!e){I(t),1===t.nodeType&&t.hasAttribute(E);return!1}return delete P[e._instance.rootID],m.batchedUpdates(O,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(A(e)||r("41"),i){var u=k(e);if(d.canReuseMarkup(t,u))return void s.precacheNode(n,u);var c=u.getAttribute(d.CHECKSUM_ATTR_NAME);u.removeAttribute(d.CHECKSUM_ATTR_NAME);var l=u.outerHTML;u.setAttribute(d.CHECKSUM_ATTR_NAME,c);var f=t,p=function(t,e){for(var n=Math.min(t.length,e.length),r=0;ro;)G(t,n=r[o++],e[n]);return t},X=function(t){var e=F.call(this,t=x(t,!0));return!(this===V&&o(U,t)&&!o(j,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,R)&&this[R][t])||e)},$=function(t,e){if(t=b(t),e=x(e,!0),t!==V||!o(U,e)||o(j,e)){var n=T(t,e);return!n||!o(U,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=N(b(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==R||e==s||r.push(e);return r},J=function(t){for(var e,n=t===V,r=N(n?j:b(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(V,e)||i.push(U[e]);return i};W||(u((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(j,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),q(this,t,E(1,n))};return i&&H&&q(V,t,{configurable:!0,set:e}),K(t)}).prototype,"toString",function(){return this._k}),S.f=$,P.f=G,n(83).f=C.f=Q,n(125).f=X,n(156).f=J,i&&!n(73)&&u(V,"propertyIsEnumerable",X,!0),h.f=function(t){return K(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:O});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=k(d.store),nt=0;et.length>nt;)v(et[nt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=O(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!W,"Object",{create:function(t,e){return void 0===e?w(t):z(w(t),e)},defineProperty:G,defineProperties:z,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),I&&a(a.S+a.F*(!W||c(function(){var t=O();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!Y(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,A.apply(I,r)}}),O.prototype[D]||n(33)(O.prototype,D,O.prototype.valueOf),f(O,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(80),o=n(156),i=n(125);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(82)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(21),"Object",{defineProperty:n(22).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(21),"Object",{defineProperties:n(296)})},function(t,e,n){var r=n(37),o=n(38).f;n(58)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(27),o=n(39);n(58)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(27),o=n(80);n(58)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(58)("getOwnPropertyNames",function(){return n(297).f})},function(t,e,n){var r=n(14),o=n(72).onFreeze;n(58)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(14),o=n(72).onFreeze;n(58)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(14),o=n(72).onFreeze;n(58)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(14);n(58)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(14);n(58)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(14);n(58)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(298)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(623)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(204).set})},function(t,e,n){"use strict";var r=n(126),o={};o[n(18)("toStringTag")]="z",o+""!="[object z]"&&n(34)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(299)})},function(t,e,n){var r=n(22).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(21)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(14),o=n(39),i=n(18)("hasInstance"),a=Function.prototype;i in a||n(22).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(301);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(302);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(8),o=n(36),i=n(46),a=n(206),u=n(55),s=n(13),c=n(83).f,l=n(38).f,f=n(22).f,p=n(100).trim,d=r.Number,h=d,v=d.prototype,m="Number"==i(n(82)(v)),g="trim"in String.prototype,y=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=g?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;co)return NaN;return parseInt(s,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?s(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new h(y(e)),n,d):y(e)};for(var _,b=n(21)?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)o(h,_=b[x])&&!o(d,_)&&f(d,_,l(h,_));d.prototype=v,v.constructor=d,n(34)(r,"Number",d)}},function(t,e,n){"use strict";var r=n(0),o=n(57),i=n(303),a=n(207),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=s(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=s(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},h=function(t,e,n){return 0===e?n:e%2==1?h(t,e-1,n*t):h(t*t,e/2,n)};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(13)(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,s=i(this,l),c=o(t),v="",m="0";if(c<0||c>20)throw RangeError(l);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(v="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*h(2,69,1))-69)<0?s*h(2,-e,1):s/h(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(h(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?v+((u=m.length)<=c?"0."+a.call("0",c-u)+m:m.slice(0,u-c)+"."+m.slice(u-c)):v+m}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(303),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(8).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(304)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(304),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(302);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(301);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(305),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(208);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(209);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(306)})},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments.length,s=0;a0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(13)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(305)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(208)})},function(t,e,n){var r=n(0),o=n(209),i=Math.exp;r(r.S+r.F*n(13)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(209),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(81),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(37),i=n(23);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),u=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(210)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(23),i=n(213),a="".endsWith;r(r.P+r.F*n(214)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,n){"use strict";var r=n(0),o=n(213);r(r.P+r.F*n(214)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(207)})},function(t,e,n){"use strict";var r=n(0),o=n(23),i=n(213),a="".startsWith;r(r.P+r.F*n(214)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(35)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(35)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(35)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(35)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(35)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(35)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(35)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(35)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(35)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(35)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(35)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(35)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(35)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(55);r(r.P+r.F*n(13)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(685);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(13),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(34)(r,"toString",function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(18)("toPrimitive"),o=Date.prototype;r in o||n(33)(o,r,n(688))},function(t,e,n){"use strict";var r=n(6),o=n(55);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(157)})},function(t,e,n){"use strict";var r=n(45),o=n(0),i=n(27),a=n(307),u=n(215),s=n(23),c=n(216),l=n(217);o(o.S+o.F*!n(159)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,p=i(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&u(y))for(n=new d(e=s(p.length));e>g;g++)c(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new d;!(o=f.next()).done;g++)c(n,g,m?a(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(0),o=n(216);r(r.S+r.F*n(13)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(37),i=[].join;r(r.P+r.F*(n(124)!=Object||!n(47)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(203),i=n(46),a=n(81),u=n(23),s=[].slice;r(r.P+r.F*n(13)(function(){o&&s.call(o)}),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return s.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=u(c-o),f=new Array(l),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(309)}),n(74)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(219)}),n(74)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(59)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(74)("find")},function(t,e,n){"use strict";var r=n(0),o=n(59)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(74)(i)},function(t,e,n){n(84)("Array")},function(t,e,n){var r=n(8),o=n(206),i=n(22).f,a=n(83).f,u=n(158),s=n(160),c=r.RegExp,l=c,f=c.prototype,p=/a/g,d=/a/g,h=new c(p)!==p;if(n(21)&&(!h||n(13)(function(){return d[n(18)("match")]=!1,c(p)!=p||c(d)==d||"/a/i"!=c(p,"i")}))){c=function(t,e){var n=this instanceof c,r=u(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(h?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?s.call(t):e),n?this:f,c)};for(var v=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},m=a(l),g=0;m.length>g;)v(m[g++]);f.constructor=c,c.prototype=f,n(34)(r,"RegExp",c)}n(84)("RegExp")},function(t,e,n){"use strict";n(311);var r=n(6),o=n(160),i=n(21),a=/./.toString,u=function(t){n(34)(RegExp.prototype,"toString",t,!0)};n(13)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},function(t,e,n){n(161)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(161)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,n){n(161)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(161)("split",2,function(t,e,r){"use strict";var o=n(158),i=r,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var u=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,s,c,l,f,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,v=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(u||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(s=m.exec(n))&&!((c=s.index+s[0].length)>h&&(p.push(n.slice(h,s.index)),!u&&s.length>1&&s[0].replace(r,function(){for(f=1;f1&&s.index=v));)m.lastIndex===s.index&&m.lastIndex++;return h===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(h)),p.length>v?p.slice(0,v):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){"use strict";var r,o,i,a,u=n(73),s=n(8),c=n(45),l=n(126),f=n(0),p=n(14),d=n(30),h=n(85),v=n(86),m=n(162),g=n(221).set,y=n(222)(),_=n(223),b=n(312),x=n(163),E=n(313),w=s.TypeError,C=s.process,S=C&&C.versions,P=S&&S.v8||"",k=s.Promise,T="process"==l(C),M=function(){},N=o=_.f,O=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(18)("species")]=function(t){t(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==P.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(o||(2==t._h&&F(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c(w("Promise-chain cycle")):(i=I(n))?i.call(n,s,c):s(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){g.call(s,function(){var e,n,r,o=t._v,i=D(t);if(i&&(e=b(function(){T?C.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||D(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){g.call(s,function(){var e;T?C.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},U=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=I(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(U,r,1),c(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};O||(k=function(t){h(this,k,"Promise","_h"),d(t),r.call(this);try{t(c(U,this,1),c(L,this,1))}catch(t){L.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(87)(k.prototype,{then:function(t,e){var n=N(m(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(U,t,1),this.reject=c(L,t,1)},_.f=N=function(t){return t===k||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!O,{Promise:k}),n(99)(k,"Promise"),n(84)("Promise"),a=n(44).Promise,f(f.S+f.F*!O,"Promise",{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!O),"Promise",{resolve:function(t){return E(u&&this===a?k:this,t)}}),f(f.S+f.F*!(O&&n(159)(function(t){k.all(t).catch(M)})),"Promise",{all:function(t){var e=this,n=N(e),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=N(e),r=n.reject,o=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(318),o=n(102);n(164)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(165),i=n(224),a=n(6),u=n(81),s=n(23),c=n(14),l=n(8).ArrayBuffer,f=n(162),p=i.ArrayBuffer,d=i.DataView,h=o.ABV&&l.isView,v=p.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return h&&h(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(13)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(f(this,p))(s(o-r)),c=new d(this),l=new d(i),h=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(38),o=n(39),i=n(36),a=n(0),u=n(14),s=n(6);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return s(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:u(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(38),o=n(0),i=n(6);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(39),i=n(6);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(6),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(320)})},function(t,e,n){var r=n(0),o=n(6),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(22),o=n(38),i=n(39),a=n(36),u=n(0),s=n(78),c=n(6),l=n(14);u(u.S,"Reflect",{set:function t(e,n,u){var f,p,d=arguments.length<4?e:arguments[3],h=o.f(c(e),n);if(!h){if(l(p=i(e)))return t(p,n,u,d);h=s(0)}if(a(h,"value")){if(!1===h.writable||!l(d))return!1;if(f=o.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=u,r.f(d,n,f)}else r.f(d,n,s(0,u));return!0}return void 0!==h.set&&(h.set.call(d,u),!0)}})},function(t,e,n){var r=n(0),o=n(204);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r=n(0),o=n(155)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(74)("includes")},function(t,e,n){"use strict";var r=n(0),o=n(321),i=n(27),a=n(23),u=n(30),s=n(218);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return u(t),e=a(r.length),n=s(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(74)("flatMap")},function(t,e,n){"use strict";var r=n(0),o=n(321),i=n(27),a=n(23),u=n(57),s=n(218);r(r.P,"Array",{flatten:function(){var t=arguments[0],e=i(this),n=a(e.length),r=s(e,0);return o(r,e,e,n,0,void 0===t?1:u(t)),r}}),n(74)("flatten")},function(t,e,n){"use strict";var r=n(0),o=n(210)(!0);r(r.P,"String",{at:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(322),i=n(163);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(322),i=n(163);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(100)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(100)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(0),o=n(56),i=n(23),a=n(158),u=n(160),s=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(212)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in s?String(t.flags):u.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=i(t.lastIndex),new c(r,e)}})},function(t,e,n){n(200)("asyncIterator")},function(t,e,n){n(200)("observable")},function(t,e,n){var r=n(0),o=n(320),i=n(37),a=n(38),u=n(216);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),s=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=s(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(0),o=n(323)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(323)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(30),a=n(22);n(21)&&r(r.P+n(166),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(30),a=n(22);n(21)&&r(r.P+n(166),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(55),a=n(39),u=n(38).f;n(21)&&r(r.P+n(166),"Object",{__lookupGetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.get}while(n=a(n))}})},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(55),a=n(39),u=n(38).f;n(21)&&r(r.P+n(166),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.set}while(n=a(n))}})},function(t,e,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(324)("Map")})},function(t,e,n){var r=n(0);r(r.P+r.R,"Set",{toJSON:n(324)("Set")})},function(t,e,n){n(167)("Map")},function(t,e,n){n(167)("Set")},function(t,e,n){n(167)("WeakMap")},function(t,e,n){n(167)("WeakSet")},function(t,e,n){n(168)("Map")},function(t,e,n){n(168)("Set")},function(t,e,n){n(168)("WeakMap")},function(t,e,n){n(168)("WeakSet")},function(t,e,n){var r=n(0);r(r.G,{global:n(8)})},function(t,e,n){var r=n(0);r(r.S,"System",{global:n(8)})},function(t,e,n){var r=n(0),o=n(46);r(r.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var r=n(0),o=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*o}})},function(t,e,n){var r=n(0),o=n(326),i=n(306);r(r.S,"Math",{fscale:function(t,e,n,r,a){return i(o(t,e,n,r,a))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{iaddh:function(t,e,n,r){var o=t>>>0,i=n>>>0;return(e>>>0)+(r>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{isubh:function(t,e,n,r){var o=t>>>0,i=n>>>0;return(e>>>0)-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{imulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>16,u=r>>16,s=(a*i>>>0)+(o*i>>>16);return a*u+(s>>16)+((o*u>>>0)+(65535&s)>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var r=n(0),o=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*o}})},function(t,e,n){var r=n(0);r(r.S,"Math",{scale:n(326)})},function(t,e,n){var r=n(0);r(r.S,"Math",{umulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>>16,u=r>>>16,s=(a*i>>>0)+(o*i>>>16);return a*u+(s>>>16)+((o*u>>>0)+(65535&s)>>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){"use strict";var r=n(0),o=n(44),i=n(8),a=n(162),u=n(313);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(0),o=n(223),i=n(312);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(64),o=n(6),i=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,o(n),i(r))}})},function(t,e,n){var r=n(64),o=n(6),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var s=u.get(e);return s.delete(n),!!s.size||u.delete(e)}})},function(t,e,n){var r=n(64),o=n(6),i=n(39),a=r.has,u=r.get,s=r.key,c=function(t,e,n){if(a(t,e,n))return u(t,e,n);var r=i(e);return null!==r?c(t,r,n):void 0};r.exp({getMetadata:function(t,e){return c(t,o(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(316),o=n(325),i=n(64),a=n(6),u=n(39),s=i.keys,c=i.key,l=function(t,e){var n=s(t,e),i=u(t);if(null===i)return n;var a=l(i,e);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(t){return l(a(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(64),o=n(6),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(64),o=n(6),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,n){var r=n(64),o=n(6),i=n(39),a=r.has,u=r.key,s=function(t,e,n){if(a(t,e,n))return!0;var r=i(e);return null!==r&&s(t,r,n)};r.exp({hasMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(64),o=n(6),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(64),o=n(6),i=n(30),a=r.key,u=r.set;r.exp({metadata:function(t,e){return function(n,r){u(t,e,(void 0!==r?o:i)(n),a(r))}}})},function(t,e,n){var r=n(0),o=n(222)(),i=n(8).process,a="process"==n(46)(i);r(r.G,{asap:function(t){var e=a&&i.domain;o(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(44),a=n(222)(),u=n(18)("observable"),s=n(30),c=n(6),l=n(85),f=n(87),p=n(33),d=n(86),h=d.RETURN,v=function(t){return null==t?void 0:s(t)},m=function(t){var e=t._c;e&&(t._c=void 0,e())},g=function(t){return void 0===t._o},y=function(t){g(t)||(t._o=void 0,m(t))},_=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:s(n),this._c=n)}catch(e){return void t.error(e)}g(this)&&m(this)};_.prototype=f({},{unsubscribe:function(){y(this)}});var b=function(t){this._s=t};b.prototype=f({},{next:function(t){var e=this._s;if(!g(e)){var n=e._o;try{var r=v(n.next);if(r)return r.call(n,t)}catch(t){try{y(e)}finally{throw t}}}},error:function(t){var e=this._s;if(g(e))throw t;var n=e._o;e._o=void 0;try{var r=v(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{m(e)}finally{throw t}}return m(e),t},complete:function(t){var e=this._s;if(!g(e)){var n=e._o;e._o=void 0;try{var r=v(n.complete);t=r?r.call(n,t):void 0}catch(t){try{m(e)}finally{throw t}}return m(e),t}}});var x=function(t){l(this,x,"Observable","_f")._f=s(t)};f(x.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(i.Promise||o.Promise)(function(n,r){s(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n})})}}),f(x,{from:function(t){var e="function"==typeof this?this:x,n=v(c(t)[u]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(d(t,!1,function(t){if(e.next(t),n)return h})===h)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*u,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(t,e,n){var r=n(0),o=n(221);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(220),o=n(80),i=n(34),a=n(8),u=n(33),s=n(101),c=n(18),l=c("iterator"),f=c("toStringTag"),p=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,r){var o=e&&e.prototype instanceof E?e:E,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=x(t,e,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function E(){}function w(){}function C(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(t){function n(e,r,i,a){var u=x(t[e],t,r);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(t){n("next",t,i,a)},function(t){n("throw",t,i,a)}):Promise.resolve(c).then(function(t){s.value=t,i(s)},a)}a(u.arg)}var r;"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n)),this._invoke=function(t,e){function o(){return new Promise(function(r,o){n(t,e,r,o)})}return r=r?r.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r8&&f<=11);var v=32,m=String.fromCharCode(v),g={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},y=!1;function _(t,e){switch(t){case"topKeyUp":return-1!==s.indexOf(e.keyCode);case"topKeyDown":return e.keyCode!==c;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function b(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}var x=null;function E(t,e,n,o){var u,s;if(l?u=function(t){switch(t){case"topCompositionStart":return g.compositionStart;case"topCompositionEnd":return g.compositionEnd;case"topCompositionUpdate":return g.compositionUpdate}}(t):x?_(t,n)&&(u=g.compositionEnd):function(t,e){return"topKeyDown"===t&&e.keyCode===c}(t,n)&&(u=g.compositionStart),!u)return null;h&&(x||u!==g.compositionStart?u===g.compositionEnd&&x&&(s=x.getData()):x=i.getPooled(o));var f=a.getPooled(u,e,n,o);if(s)f.data=s;else{var p=b(n);null!==p&&(f.data=p)}return r.accumulateTwoPhaseDispatches(f),f}function w(t,e,n,o){var a;if(!(a=d?function(t,e){switch(t){case"topCompositionEnd":return b(e);case"topKeyPress":return e.which!==v?null:(y=!0,m);case"topTextInput":var n=e.data;return n===m&&y?null:n;default:return null}}(t,n):function(t,e){if(x){if("topCompositionEnd"===t||!l&&_(t,e)){var n=x.getData();return i.release(x),x=null,n}return null}switch(t){case"topPaste":return null;case"topKeyPress":return e.which&&!function(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}(e)?String.fromCharCode(e.which):null;case"topCompositionEnd":return h?null:e.data;default:return null}}(t,n)))return null;var s=u.getPooled(g.beforeInput,e,n,o);return s.data=a,r.accumulateTwoPhaseDispatches(s),s}var C={eventTypes:g,extractEvents:function(t,e,n,r){return[E(t,e,n,r),w(t,e,n,r)]}};t.exports=C},function(t,e,n){"use strict";var r=n(19),o=n(88),i=n(337);function a(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}r(a.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),o.addPoolingTo(a),t.exports=a},function(t,e,n){"use strict";var r=n(66);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{data:null}),t.exports=o},function(t,e,n){"use strict";var r=n(66);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{data:null}),t.exports=o},function(t,e,n){"use strict";var r=n(129),o=n(128),i=n(32),a=n(24),u=n(61),s=n(66),c=n(340),l=n(229),f=n(230),p=n(341),d={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}};function h(t,e,n){var r=s.getPooled(d.change,t,e,n);return r.type="change",o.accumulateTwoPhaseDispatches(r),r}var v=null,m=null;var g=!1;function y(t){var e=h(m,t,l(t));u.batchedUpdates(_,e)}function _(t){r.enqueueEvents(t),r.processEventQueue(!1)}function b(){v&&(v.detachEvent("onchange",y),v=null,m=null)}function x(t,e){var n=c.updateValueIfChanged(t),r=!0===e.simulated&&O._allowSimulatedPassThrough;if(n||r)return t}function E(t,e){if("topChange"===t)return e}function w(t,e,n){"topFocus"===t?(b(),function(t,e){m=e,(v=t).attachEvent("onchange",y)}(e,n)):"topBlur"===t&&b()}i.canUseDOM&&(g=f("change")&&(!document.documentMode||document.documentMode>8));var C=!1;function S(){v&&(v.detachEvent("onpropertychange",P),v=null,m=null)}function P(t){"value"===t.propertyName&&x(m,t)&&y(t)}function k(t,e,n){"topFocus"===t?(S(),function(t,e){m=e,(v=t).attachEvent("onpropertychange",P)}(e,n)):"topBlur"===t&&S()}function T(t,e,n){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return x(m,n)}function M(t,e,n){if("topClick"===t)return x(e,n)}function N(t,e,n){if("topInput"===t||"topChange"===t)return x(e,n)}i.canUseDOM&&(C=f("input")&&(!("documentMode"in document)||document.documentMode>9));var O={eventTypes:d,_allowSimulatedPassThrough:!0,_isInputEventSupported:C,extractEvents:function(t,e,n,r){var o,i,u,s,c=e?a.getNodeFromInstance(e):window;if("select"===(s=(u=c).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type?g?o=E:i=w:p(c)?C?o=N:(o=T,i=k):function(t){var e=t.nodeName;return e&&"input"===e.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}(c)&&(o=M),o){var l=o(t,e,n);if(l)return h(l,n,r)}i&&i(t,c,e),"topBlur"===t&&function(t,e){if(null!=t){var n=t._wrapperState||e._wrapperState;if(n&&n.controlled&&"number"===e.type){var r=""+e.value;e.getAttribute("value")!==r&&e.setAttribute("value",r)}}}(e,c)}};t.exports=O},function(t,e,n){"use strict";var r=n(828),o={};o.attachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&function(t,e,n){"function"==typeof t?t(e.getPublicInstance()):r.addComponentAsRefTo(e,t,n)}(n,t,e._owner)}},o.shouldUpdateRefs=function(t,e){var n=null,r=null;null!==t&&"object"==typeof t&&(n=t.ref,r=t._owner);var o=null,i=null;return null!==e&&"object"==typeof e&&(o=e.ref,i=e._owner),n!==o||"string"==typeof o&&i!==r},o.detachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&function(t,e,n){"function"==typeof t?t(null):r.removeComponentAsRefFrom(e,t,n)}(n,t,e._owner)}},t.exports=o},function(t,e,n){"use strict";var r=n(15);n(5);function o(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var i={addComponentAsRefTo:function(t,e,n){o(n)||r("119"),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){o(n)||r("120");var i=n.getPublicInstance();i&&i.refs[e]===t.getPublicInstance()&&n.detachRef(e)}};t.exports=i},function(t,e,n){"use strict";t.exports=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"]},function(t,e,n){"use strict";var r=n(128),o=n(24),i=n(171),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(t,e,n,u){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var s,c,l;if(u.window===u)s=u;else{var f=u.ownerDocument;s=f?f.defaultView||f.parentWindow:window}if("topMouseOut"===t){c=e;var p=n.relatedTarget||n.toElement;l=p?o.getClosestInstanceFromNode(p):null}else c=null,l=e;if(c===l)return null;var d=null==c?s:o.getNodeFromInstance(c),h=null==l?s:o.getNodeFromInstance(l),v=i.getPooled(a.mouseLeave,c,n,u);v.type="mouseleave",v.target=d,v.relatedTarget=h;var m=i.getPooled(a.mouseEnter,l,n,u);return m.type="mouseenter",m.target=h,m.relatedTarget=d,r.accumulateEnterLeaveDispatches(v,m,c,l),[v,m]}};t.exports=u},function(t,e,n){"use strict";var r=n(105),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}};t.exports=c},function(t,e,n){"use strict";var r=n(232),o={processChildrenUpdates:n(837).dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=o},function(t,e,n){"use strict";var r=n(15),o=n(107),i=n(32),a=n(834),u=n(60),s=(n(5),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM||r("56"),e||r("57"),"HTML"===t.nodeName&&r("58"),"string"==typeof e){var n=a(e,u)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=s},function(t,e,n){"use strict";var r=n(32),o=n(835),i=n(836),a=n(5),u=r.canUseDOM?document.createElement("div"):null,s=/^\s*<(\w+)/;t.exports=function(t,e){var n=u;u||a(!1);var r=function(t){var e=t.match(s);return e&&e[1].toLowerCase()}(t),c=r&&i(r);if(c){n.innerHTML=c[1]+t+c[2];for(var l=c[0];l--;)n=n.lastChild}else n.innerHTML=t;var f=n.getElementsByTagName("script");f.length&&(e||a(!1),o(f).forEach(e));for(var p=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o',""],s=[1,"","
"],c=[3,"","
"],l=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:s,colgroup:s,tbody:s,tfoot:s,thead:s,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(t){f[t]=l,a[t]=!0}),t.exports=function(t){return i||o(!1),f.hasOwnProperty(t)||(t="*"),a.hasOwnProperty(t)||(i.innerHTML="*"===t?"":"<"+t+">",a[t]=!i.firstChild),a[t]?f[t]:null}},function(t,e,n){"use strict";var r=n(232),o=n(24),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";var r=n(15),o=n(19),i=n(839),a=n(840),u=n(107),s=n(233),c=n(105),l=n(346),f=n(129),p=n(226),d=n(174),h=n(334),v=n(24),m=n(850),g=n(852),y=n(347),_=n(853),b=(n(48),n(854)),x=n(861),E=(n(60),n(173)),w=(n(5),n(230),n(237),n(340)),C=(n(241),n(16),h),S=f.deleteListener,P=v.getNodeFromInstance,k=d.listenTo,T=p.registrationNameModules,M={string:!0,number:!0},N="__html",O={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},I=11;function A(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function R(t,e){e&&(Y[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&r("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&r("60"),"object"==typeof e.dangerouslySetInnerHTML&&N in e.dangerouslySetInnerHTML||r("61")),null!=e.style&&"object"!=typeof e.style&&r("62",A(t)))}function D(t,e,n,r){if(!(r instanceof x)){0;var o=t._hostContainerInfo,i=o._node&&o._node.nodeType===I?o._node:o._ownerDocument;k(e,i),r.getReactMountReady().enqueue(F,{inst:t,registrationName:e,listener:n})}}function F(){f.putListener(this.inst,this.registrationName,this.listener)}function L(){m.postMountWrapper(this)}function U(){_.postMountWrapper(this)}function j(){g.postMountWrapper(this)}var V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"};function W(){w.track(this)}function B(){this._rootNodeID||r("63");var t=P(this);switch(t||r("64"),this._tag){case"iframe":case"object":this._wrapperState.listeners=[d.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":for(var e in this._wrapperState.listeners=[],V)V.hasOwnProperty(e)&&this._wrapperState.listeners.push(d.trapBubbledEvent(e,V[e],t));break;case"source":this._wrapperState.listeners=[d.trapBubbledEvent("topError","error",t)];break;case"img":this._wrapperState.listeners=[d.trapBubbledEvent("topError","error",t),d.trapBubbledEvent("topLoad","load",t)];break;case"form":this._wrapperState.listeners=[d.trapBubbledEvent("topReset","reset",t),d.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":this._wrapperState.listeners=[d.trapBubbledEvent("topInvalid","invalid",t)]}}function H(){y.postUpdateWrapper(this)}var q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=o({menuitem:!0},q),G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,z={},X={}.hasOwnProperty;function $(t,e){return t.indexOf("-")>=0||null!=e.is}var Q=1;function J(t){var e=t.type;!function(t){X.call(z,t)||(G.test(t)||r("65",t),z[t]=!0)}(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}J.displayName="ReactDOMComponent",J.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=Q++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var o,a,c,f=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(B,this);break;case"input":m.mountWrapper(this,f,e),f=m.getHostProps(this,f),t.getReactMountReady().enqueue(W,this),t.getReactMountReady().enqueue(B,this);break;case"option":g.mountWrapper(this,f,e),f=g.getHostProps(this,f);break;case"select":y.mountWrapper(this,f,e),f=y.getHostProps(this,f),t.getReactMountReady().enqueue(B,this);break;case"textarea":_.mountWrapper(this,f,e),f=_.getHostProps(this,f),t.getReactMountReady().enqueue(W,this),t.getReactMountReady().enqueue(B,this)}if(R(this,f),null!=e?(o=e._namespaceURI,a=e._tag):n._tag&&(o=n._namespaceURI,a=n._tag),(null==o||o===s.svg&&"foreignobject"===a)&&(o=s.html),o===s.html&&("svg"===this._tag?o=s.svg:"math"===this._tag&&(o=s.mathml)),this._namespaceURI=o,t.useCreateElement){var p,d=n._ownerDocument;if(o===s.html)if("script"===this._tag){var h=d.createElement("div"),b=this._currentElement.type;h.innerHTML="<"+b+">",p=h.removeChild(h.firstChild)}else p=f.is?d.createElement(this._currentElement.type,f.is):d.createElement(this._currentElement.type);else p=d.createElementNS(o,this._currentElement.type);v.precacheNode(this,p),this._flags|=C.hasCachedChildNodes,this._hostParent||l.setAttributeForRoot(p),this._updateDOMProperties(null,f,t);var x=u(p);this._createInitialChildren(t,f,r,x),c=x}else{var E=this._createOpenTagMarkupAndPutListeners(t,f),w=this._createContentMarkup(t,f,r);c=!w&&q[this._tag]?E+"/>":E+">"+w+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(L,this),f.autoFocus&&t.getReactMountReady().enqueue(i.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(U,this),f.autoFocus&&t.getReactMountReady().enqueue(i.focusDOMComponent,this);break;case"select":case"button":f.autoFocus&&t.getReactMountReady().enqueue(i.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(j,this)}return c},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i)if(T.hasOwnProperty(r))i&&D(this,r,i,t);else{"style"===r&&(i&&(i=this._previousStyleCopy=o({},e.style)),i=a.createMarkupForStyles(i,this));var u=null;null!=this._tag&&$(this._tag,e)?O.hasOwnProperty(r)||(u=l.createMarkupForCustomAttribute(r,i)):u=l.createMarkupForProperty(r,i),u&&(n+=" "+u)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+l.createMarkupForRoot()),n+=" "+l.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=M[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=E(i);else if(null!=a){r=this.mountChildren(a,t,n).join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&u.queueHTML(r,o.__html);else{var i=M[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)""!==i&&u.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,t,n),c=0;c0;)t=t._hostParent,n--;for(;i-n>0;)e=e._hostParent,i--;for(var u=n;u--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}t.exports={isAncestor:function(t,e){"_hostNode"in t||r("35"),"_hostNode"in e||r("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1},getLowestCommonAncestor:o,getParentInstance:function(t){return"_hostNode"in t||r("36"),t._hostParent},traverseTwoPhase:function(t,e,n){for(var r,o=[];t;)o.push(t),t=t._hostParent;for(r=o.length;r-- >0;)e(o[r],"captured",n);for(r=0;r0;)n(c[s],"captured",i)}}},function(t,e,n){"use strict";var r=n(15),o=n(19),i=n(232),a=n(107),u=n(24),s=n(173),c=(n(5),n(241),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),f=c.createComment(" /react-text "),p=a(c.createDocumentFragment());return a.queueChild(p,a(l)),this._stringText&&a.queueChild(p,a(c.createTextNode(this._stringText))),a.queueChild(p,a(f)),u.precacheNode(this,l),this._closingComment=f,p}var d=s(this._stringText);return t.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=u.getNodeFromInstance(this).nextSibling;;){if(null==e&&r("67",this._domID),8===e.nodeType&&" /react-text "===e.nodeValue){this._closingComment=e;break}e=e.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),t.exports=c},function(t,e,n){"use strict";var r=n(19),o=n(61),i=n(170),a=n(60),u={initialize:a,close:function(){f.isBatchingUpdates=!1}},s=[{initialize:a,close:o.flushBatchedUpdates.bind(o)},u];function c(){this.reinitializeTransaction()}r(c.prototype,i,{getTransactionWrappers:function(){return s}});var l=new c,f={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=f.isBatchingUpdates;return f.isBatchingUpdates=!0,a?t(e,n,r,o,i):l.perform(t,null,e,n,r,o,i)}};t.exports=f},function(t,e,n){"use strict";var r=n(19),o=n(354),i=n(32),a=n(88),u=n(24),s=n(61),c=n(229),l=n(868);function f(t){for(;t._hostParent;)t=t._hostParent;var e=u.getNodeFromInstance(t).parentNode;return u.getClosestInstanceFromNode(e)}function p(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function d(t){var e=c(t.nativeEvent),n=u.getClosestInstanceFromNode(e),r=n;do{t.ancestors.push(r),r=r&&f(r)}while(r);for(var o=0;oe.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}:function(t,e){if(window.getSelection){var n=window.getSelection(),r=t[i()].length,a=Math.min(e.start,r),u=void 0===e.end?a:Math.min(e.end,r);if(!n.extend&&a>u){var s=u;u=a,a=s}var c=o(t,a),l=o(t,u);if(c&&l){var f=document.createRange();f.setStart(c.node,c.offset),n.removeAllRanges(),a>u?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}};t.exports=s},function(t,e,n){"use strict";function r(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function o(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}t.exports=function(t,e){for(var n=r(t),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=e&&a>=e)return{node:n,offset:e-i};i=a}n=r(o(n))}}},function(t,e,n){"use strict";var r=n(874);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},function(t,e,n){"use strict";var r=n(875);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},function(t,e,n){"use strict";var r="http://www.w3.org/1999/xlink",o="http://www.w3.org/XML/1998/namespace",i={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},a={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r,xlinkArcrole:r,xlinkHref:r,xlinkRole:r,xlinkShow:r,xlinkTitle:r,xlinkType:r,xmlBase:o,xmlLang:o,xmlSpace:o},DOMAttributeNames:{}};Object.keys(i).forEach(function(t){a.Properties[t]=0,i[t]&&(a.DOMAttributeNames[t]=i[t])}),t.exports=a},function(t,e,n){"use strict";var r=n(128),o=n(32),i=n(24),a=n(355),u=n(66),s=n(356),c=n(341),l=n(237),f=o.canUseDOM&&"documentMode"in document&&document.documentMode<=11,p={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},d=null,h=null,v=null,m=!1,g=!1;function y(t,e){if(m||null==d||d!==s())return null;var n=function(t){if("selectionStart"in t&&a.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}(d);if(!v||!l(v,n)){v=n;var o=u.getPooled(p.select,h,t,e);return o.type="select",o.target=d,r.accumulateTwoPhaseDispatches(o),o}return null}var _={eventTypes:p,extractEvents:function(t,e,n,r){if(!g)return null;var o=e?i.getNodeFromInstance(e):window;switch(t){case"topFocus":(c(o)||"true"===o.contentEditable)&&(d=o,h=e,v=null);break;case"topBlur":d=null,h=null,v=null;break;case"topMouseDown":m=!0;break;case"topContextMenu":case"topMouseUp":return m=!1,y(n,r);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return y(n,r)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(g=!0)}};t.exports=_},function(t,e,n){"use strict";var r=n(15),o=n(354),i=n(128),a=n(24),u=n(879),s=n(880),c=n(66),l=n(881),f=n(882),p=n(171),d=n(884),h=n(885),v=n(886),m=n(130),g=n(887),y=n(60),_=n(242),b=(n(5),{}),x={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,r="top"+e,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};b[t]=o,x[r]=o});var E={};function w(t){return"."+t._rootNodeID}function C(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var S={eventTypes:b,extractEvents:function(t,e,n,o){var a,y=x[t];if(!y)return null;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=c;break;case"topKeyPress":if(0===_(n))return null;case"topKeyDown":case"topKeyUp":a=f;break;case"topBlur":case"topFocus":a=l;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=p;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=d;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=h;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=u;break;case"topTransitionEnd":a=v;break;case"topScroll":a=m;break;case"topWheel":a=g;break;case"topCopy":case"topCut":case"topPaste":a=s}a||r("86",t);var b=a.getPooled(y,e,n,o);return i.accumulateTwoPhaseDispatches(b),b},didPutListener:function(t,e,n){if("onClick"===e&&!C(t._tag)){var r=w(t),i=a.getNodeFromInstance(t);E[r]||(E[r]=o.listen(i,"click",y))}},willDeleteListener:function(t,e){if("onClick"===e&&!C(t._tag)){var n=w(t);E[n].remove(),delete E[n]}}};t.exports=S},function(t,e,n){"use strict";var r=n(66);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{animationName:null,elapsedTime:null,pseudoElement:null}),t.exports=o},function(t,e,n){"use strict";var r=n(66),o={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};function i(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(i,o),t.exports=i},function(t,e,n){"use strict";var r=n(130);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{relatedTarget:null}),t.exports=o},function(t,e,n){"use strict";var r=n(130),o=n(242),i={key:n(883),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:n(231),charCode:function(t){return"keypress"===t.type?o(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?o(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};function a(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(a,i),t.exports=a},function(t,e,n){"use strict";var r=n(242),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=function(t){if(t.key){var e=o[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=r(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?i[t.keyCode]||"Unidentified":""}},function(t,e,n){"use strict";var r=n(171);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{dataTransfer:null}),t.exports=o},function(t,e,n){"use strict";var r=n(130),o={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:n(231)};function i(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(i,o),t.exports=i},function(t,e,n){"use strict";var r=n(66);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{propertyName:null,elapsedTime:null,pseudoElement:null}),t.exports=o},function(t,e,n){"use strict";var r=n(171);function o(t,e,n,o){return r.call(this,t,e,n,o)}r.augmentClass(o,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),t.exports=o},function(t,e,n){"use strict";n(241);var r=9;t.exports=function(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===r?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}},function(t,e,n){"use strict";t.exports={useCreateElement:!0,useFiber:!1}},function(t,e,n){"use strict";var r=n(891),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(t)===n}};t.exports=a},function(t,e,n){"use strict";var r=65521;t.exports=function(t){for(var e=1,n=0,o=0,i=t.length,a=-4&i;o bool) internal entryExpensiveStringIndex; + Entry[] public entries; - Entry[] internal entries; + IDatabase internal database; - function() external {} + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_ID); + database = IDatabase(owner); + } + + function() external {} function createEntry() external onlyOwner - returns (uint256) { Entry memory m = (Entry( { - expensiveAddress: address(0), - expensiveUint: uint256(0), - expensiveInt: int128(0), - expensiveString: "" + name: "", + manifest: "", + extension: "", + content: "", + logo: "" })); - uint256 newEntryID = entries.push(m) - 1; - - return newEntryID; + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + string, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].manifest, + entries[entryIndex].extension, + entries[entryIndex].content, + entries[entryIndex].logo + ); } function updateEntry( - uint256 _entryID, - address _newAddress, - uint256 _newUint, - int128 _newInt, - string _newString + uint256 _entryID, + string _name, + string _manifest, + string _extension, + string _content, + string _logo ) external { - require(owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender)); + database.auth(_entryID, msg.sender); - // for uniq check example - require(entryExpensiveStringIndex[_newString] == false); + uint256 entryIndex = database.getIndexByID(_entryID); - Entry memory m = (Entry({ - expensiveAddress: _newAddress, - expensiveUint: _newUint, - expensiveInt: _newInt, - expensiveString: _newString + Entry memory m = (Entry( + { + name: _name, + manifest: _manifest, + extension: _extension, + content: _content, + logo: _logo })); - entries[_entryID] = m; - - // for uniq check example - entryExpensiveStringIndex[_newString] = true; - - require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID)); + entries[entryIndex] = m; } - function deleteEntry( - uint256 _entryIndex - ) + function deleteEntry(uint256 _entryIndex) external onlyOwner - { + { uint256 lastEntryIndex = entries.length - 1; - Entry storage lastEntry = entries[lastEntryIndex]; - + Entry memory lastEntry = entries[lastEntryIndex]; + entries[_entryIndex] = lastEntry; delete entries[lastEntryIndex]; entries.length--; } - - function entriesAmount() - external - view - returns (uint256 entryID) - { - return entries.length; - } - - function entryInfo( - uint256 _entryID - ) - external - view - returns ( - address, - uint256, - int128, - string - ) - { - return ( - entries[_entryID].expensiveAddress, - entries[_entryID].expensiveUint, - entries[_entryID].expensiveInt, - entries[_entryID].expensiveString - ); - } - + } + ``` \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index 628ffc6a..0e9c6e7b 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,79 +1,27 @@ # Configuring, development and deploying -##### Development environment -Recommending to use [Remix Ethereum Online IDE](remix.ethereum.org) or [desktop electron-based Remix IDE](https://github.com/horizon-games/remix-app) - -PS: to import to IDE open-zeppelin contacts change imports this way: -```js -import "github.com/openZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol"; +##### Install ``` - -##### Truffle + Ganache workflow - -Install Ganache (with UI) from [latest release](https://github.com/trufflesuite/ganache/releases) or npm package => - -```bash -npm install -g ganache-cli +npm i ``` -Configure development config in truffle.js and launch Ganache (configure them too if needed) and: -```bash -ganache-cli -p 7545 (in first tab/or run UI-client) -truffle migrate --network development --reset (in second tab) -truffle console --network development (in second tab) -``` - -##### Creating new registry/CRU entries (truffle console way/no Remix IDE) -```bash -var chaingear = Chaingear.at(Chaingear.address) - -var beneficiaries = [] -var shares = [] -var buildingFee = 100000 -var gas = 10000000 - -chaingear.registerRegistry("V1", beneficiaries, shares, "BlockchainRegistry", "BLR", {value: 100000, gas: 10000000}) -var registryAddress = chaingear.registryInfo.call(0) -var registry = Registry.at('insert_registry_address_here') -registry.initializeRegistry("IPFS_HASH", EntryCore.bytecode) -registry.createEntry() -var entryCoreAddress = registry.getEntriesStorage() -var entryCore = EntryCore.at('insert_entry_core_address_here') -entryCore.updateEntry(0, '0xa2f0dde51cb715f9cc7c12763fef90270bd50f70', 256, -127,"helloworld") -entryCore.entryInfo(0) -// --->>> -[ '0xa2f0dde51cb715f9cc7c12763fef90270bd50f70', - BigNumber { s: 1, e: 2, c: [ 256 ] }, - BigNumber { s: -1, e: 2, c: [ 127 ] }, - 'helloworld' ] -``` ##### Linting: ```bash -npm install -g solium - solium -d contracts ``` ##### Testing: ```bash +ganache-cli -p 8545 truffle test ``` -PS: script will run separate tests flow for each file, also produce gas report. Temp solution, for while we don't fix problem with tests falls when running for all files at one time what in truffle by default. ##### Deploying (for example kovan): ```bash -parity ui --chain=kovan - -truffle migrate --network=kovan +truffle migrate --network= ``` -PS: approve transaction in parity ui (http://127.0.0.1:8180/) - -#####(Optional) Build contract in file: -```bash -truffle-flattener contracts/registry/Registry.sol > Registry_full.sol -``` diff --git a/docs/graphs/build_graphs.sh b/docs/graphs/build_graphs.sh new file mode 100755 index 00000000..c87c92f2 --- /dev/null +++ b/docs/graphs/build_graphs.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +truffle-flattener ../../contracts/chaingear/Chaingear.sol > Chaingear_full.sol +solgraph Chaingear_full.sol > chaingear_full.dot +dot -Tpng chaingear_full.dot -o chaingear_full.png + +truffle-flattener ../../contracts/databases/DatabaseV1.sol > DatabaseV1_full.sol +solgraph DatabaseV1_full.sol > databasev1_full.dot +dot -Tpng databasev1_full.dot -o databasev1_full.png + +solgraph ../../contracts/databases/DatabaseV1.sol > databasev1.dot +dot -Tpng databasev1.dot -o databasev1.png + +solgraph ../../contracts/chaingear/Chaingear.sol > chaingear.dot +dot -Tpng chaingear.dot -o chaingear.png \ No newline at end of file diff --git a/docs/graphs/chaingear.png b/docs/graphs/chaingear.png new file mode 100644 index 00000000..12cff6a5 Binary files /dev/null and b/docs/graphs/chaingear.png differ diff --git a/docs/graphs/chaingear/Chaingear.sol b/docs/graphs/chaingear/Chaingear.sol deleted file mode 120000 index 78dee992..00000000 --- a/docs/graphs/chaingear/Chaingear.sol +++ /dev/null @@ -1 +0,0 @@ -../../../contracts/chaingear/Chaingear.sol \ No newline at end of file diff --git a/docs/graphs/chaingear/build_graph.sh b/docs/graphs/chaingear/build_graph.sh deleted file mode 100755 index dad9e0fa..00000000 --- a/docs/graphs/chaingear/build_graph.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -solgraph Chaingear.sol > chaingear.dot -dot -Tpng chaingear.dot -o chaingear.png diff --git a/docs/graphs/chaingear/chaingear.dot b/docs/graphs/chaingear/chaingear.dot deleted file mode 100644 index 1d173f81..00000000 --- a/docs/graphs/chaingear/chaingear.dot +++ /dev/null @@ -1,40 +0,0 @@ -strict digraph { - constructor - fallback [color=brown] - registerRegistry [color=brown] - transferFrom - clearApproval - removeTokenFrom - addTokenTo - transferAdminRights - Transfer - unregisterRegistry - _burn - RegistryUnregistered - transferOwnership - fundRegistry [color=purple] - RegistryFunded - transfer - claimEntryFunds - RegistryFundsClaimed - claim - createRegistry - _mint - RegistryRegistered - transferFrom -> clearApproval - transferFrom -> removeTokenFrom - transferFrom -> addTokenTo - transferFrom -> transferAdminRights - transferFrom -> Transfer - unregisterRegistry -> _burn - unregisterRegistry -> RegistryUnregistered - unregisterRegistry -> transferOwnership - fundRegistry -> RegistryFunded - fundRegistry -> transfer - claimEntryFunds -> RegistryFundsClaimed - claimEntryFunds -> claim - createRegistry -> _mint - createRegistry -> RegistryRegistered - createRegistry -> transferAdminRights -} - diff --git a/docs/graphs/chaingear/chaingear.png b/docs/graphs/chaingear/chaingear.png deleted file mode 100644 index fec27bb9..00000000 Binary files a/docs/graphs/chaingear/chaingear.png and /dev/null differ diff --git a/docs/graphs/chaingear_full.png b/docs/graphs/chaingear_full.png new file mode 100644 index 00000000..6f819fff Binary files /dev/null and b/docs/graphs/chaingear_full.png differ diff --git a/docs/graphs/databasev1.png b/docs/graphs/databasev1.png new file mode 100644 index 00000000..ba2cfc4f Binary files /dev/null and b/docs/graphs/databasev1.png differ diff --git a/docs/graphs/databasev1_full.png b/docs/graphs/databasev1_full.png new file mode 100644 index 00000000..dc2faf77 Binary files /dev/null and b/docs/graphs/databasev1_full.png differ diff --git a/docs/graphs/full/build_graphs.sh b/docs/graphs/full/build_graphs.sh deleted file mode 100755 index e4b4b98f..00000000 --- a/docs/graphs/full/build_graphs.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -truffle-flattener ../../../contracts/chaingear/Chaingear.sol > Chaingear_full.sol -solgraph Chaingear_full.sol > chaingear_full.dot -dot -Tpng chaingear_full.dot -o chaingear_full.png - -truffle-flattener ../../../contracts/registry/Registry.sol > Registry_full.sol -solgraph Registry_full.sol > registry_full.dot -dot -Tpng registry_full.dot -o registry_full.png diff --git a/docs/graphs/full/chaingear_full.dot b/docs/graphs/full/chaingear_full.dot deleted file mode 100644 index cf8aaa76..00000000 --- a/docs/graphs/full/chaingear_full.dot +++ /dev/null @@ -1,157 +0,0 @@ -strict digraph { - balanceOf [color=yellow] - ownerOf [color=yellow] - exists [color=yellow] - approve - getApproved [color=yellow] - setApprovalForAll - isApprovedForAll [color=yellow] - transferFrom - safeTransferFrom - totalSupply [color=yellow] - tokenOfOwnerByIndex [color=yellow] - tokenByIndex [color=yellow] - name [color=yellow] - symbol [color=yellow] - tokenURI [color=yellow] - onERC721Received - mul [color=gray] - div [color=gray] - sub [color=gray] - add [color=gray] - isContract [color=gray] - ApprovalForAll - clearApproval [color=gray] - removeTokenFrom [color=gray] - addTokenTo [color=gray] - Transfer - isApprovedOrOwner [color=gray] - _mint [color=gray] - _burn [color=gray] - checkAndCallSafeTransfer [color=gray] - ERC721Token - _setTokenURI [color=gray] - push - SplitPayment [color=brown] - addPayee [color=gray] - fallback [color=brown] - claim [color=purple] - transfer - Ownable - transferOwnership - OwnershipTransferred - constructor - changePayeeAddress - PayeeAddressChanged - getSafeBalance [color=yellow] - getAdmin [color=yellow] - createEntry [color=brown] - deleteEntry - fundEntry [color=purple] - claimEntryFunds - transferAdminRights - Destructible [color=brown] - destroy - selfdestruct - destroyAndSend - pause - Pause - unpause - Unpause - registryInfo [color=yellow] - registryBalanceInfo [color=yellow] - registriesAmount [color=yellow] - addRegistryCreatorVersion - updateRegistrationFee - updateDescription - getRegistryCreatorInfo [color=yellow] - getDescription [color=yellow] - getRegistrationFee [color=yellow] - getSafe [color=yellow] - getRegistryPermissions [color=yellow] - updateCreateEntryPermissionGroup - updateEntryCreationFee - updateRegistryDescription - addRegistryTag - updateRegistryTag - removeRegistryTag - getEntriesStorage [color=yellow] - getInterfaceEntriesContract [color=yellow] - getRegistryBalance [color=yellow] - getEntryCreationFee [color=yellow] - getRegistryDescription [color=yellow] - getRegistryTags [color=yellow] - getRegistrySafe [color=yellow] - getRegistryInitStatus [color=yellow] - entriesAmount [color=yellow] - EntryCreated - EntryDeleted - EntryFunded - EntryFundsClaimed - updateEntryTimestamp - getEntryMeta [color=yellow] - checkAuth [color=yellow] - updateName - initializeRegistry - create - setBuilder - getRegistryBuilder [color=yellow] - registerRegistry [color=brown] - unregisterRegistry - RegistryUnregistered - fundRegistry [color=purple] - RegistryFunded - RegistryFundsClaimed - createRegistry - RegistryRegistered - setApprovalForAll -> ApprovalForAll - transferFrom -> clearApproval - transferFrom -> removeTokenFrom - transferFrom -> addTokenTo - transferFrom -> Transfer - safeTransferFrom -> safeTransferFrom - safeTransferFrom -> transferFrom - _mint -> addTokenTo - _mint -> Transfer - _burn -> clearApproval - _burn -> removeTokenFrom - _burn -> Transfer - addTokenTo -> addTokenTo - addTokenTo -> push - removeTokenFrom -> removeTokenFrom - _mint -> _mint - _mint -> push - _burn -> _burn - SplitPayment -> addPayee - claim -> transfer - addPayee -> push - transferOwnership -> OwnershipTransferred - changePayeeAddress -> PayeeAddressChanged - destroy -> selfdestruct - destroyAndSend -> selfdestruct - pause -> Pause - unpause -> Unpause - addRegistryTag -> push - createEntry -> push - createEntry -> _mint - createEntry -> EntryCreated - deleteEntry -> _burn - deleteEntry -> EntryDeleted - deleteEntry -> deleteEntry - fundEntry -> EntryFunded - fundEntry -> transfer - claimEntryFunds -> EntryFundsClaimed - claimEntryFunds -> claim - create -> transferOwnership - transferFrom -> transferAdminRights - unregisterRegistry -> _burn - unregisterRegistry -> RegistryUnregistered - unregisterRegistry -> transferOwnership - fundRegistry -> RegistryFunded - fundRegistry -> transfer - claimEntryFunds -> RegistryFundsClaimed - createRegistry -> _mint - createRegistry -> RegistryRegistered - createRegistry -> transferAdminRights -} - diff --git a/docs/graphs/full/chaingear_full.png b/docs/graphs/full/chaingear_full.png deleted file mode 100644 index 23a96178..00000000 Binary files a/docs/graphs/full/chaingear_full.png and /dev/null differ diff --git a/docs/graphs/full/chaingear_full.sol b/docs/graphs/full/chaingear_full.sol deleted file mode 100644 index 4fbb2c3c..00000000 --- a/docs/graphs/full/chaingear_full.sol +++ /dev/null @@ -1,2321 +0,0 @@ -pragma solidity 0.4.24; - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic interface - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Basic { - event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); - event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); - event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); - - function balanceOf(address _owner) public view returns (uint256 _balance); - function ownerOf(uint256 _tokenId) public view returns (address _owner); - function exists(uint256 _tokenId) public view returns (bool _exists); - - function approve(address _to, uint256 _tokenId) public; - function getApproved(uint256 _tokenId) public view returns (address _operator); - - function setApprovalForAll(address _operator, bool _approved) public; - function isApprovedForAll(address _owner, address _operator) public view returns (bool); - - function transferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public; -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol - -/** - * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Enumerable is ERC721Basic { - function totalSupply() public view returns (uint256); - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId); - function tokenByIndex(uint256 _index) public view returns (uint256); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, optional metadata extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Metadata is ERC721Basic { - function name() public view returns (string _name); - function symbol() public view returns (string _symbol); - function tokenURI(uint256 _tokenId) public view returns (string); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, full implementation interface - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol - -/** - * @title ERC721 token receiver interface - * @dev Interface for any contract that wants to support safeTransfers - * from ERC721 asset contracts. - */ -contract ERC721Receiver { - /** - * @dev Magic value to be returned upon successful reception of an NFT - * Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`, - * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - */ - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - /** - * @notice Handle the receipt of an NFT - * @dev The ERC721 smart contract calls this function on the recipient - * after a `safetransfer`. This function MAY throw to revert and reject the - * transfer. This function MUST use 50,000 gas or less. Return of other - * than the magic value MUST result in the transaction being reverted. - * Note: the contract address is always the message sender. - * @param _from The sending address - * @param _tokenId The NFT identifier which is being transfered - * @param _data Additional data with no specified format - * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - */ - function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4); -} - -// File: openzeppelin-solidity/contracts/math/SafeMath.sol - -/** - * @title SafeMath - * @dev Math operations with safety checks that throw on error - */ -library SafeMath { - - /** - * @dev Multiplies two numbers, throws on overflow. - */ - function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { - if (a == 0) { - return 0; - } - c = a * b; - assert(c / a == b); - return c; - } - - /** - * @dev Integer division of two numbers, truncating the quotient. - */ - function div(uint256 a, uint256 b) internal pure returns (uint256) { - // assert(b > 0); // Solidity automatically throws when dividing by 0 - // uint256 c = a / b; - // assert(a == b * c + a % b); // There is no case in which this doesn't hold - return a / b; - } - - /** - * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). - */ - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; - } - - /** - * @dev Adds two numbers, throws on overflow. - */ - function add(uint256 a, uint256 b) internal pure returns (uint256 c) { - c = a + b; - assert(c >= a); - return c; - } -} - -// File: openzeppelin-solidity/contracts/AddressUtils.sol - -/** - * Utility library of inline functions on addresses - */ -library AddressUtils { - - /** - * Returns whether the target address is a contract - * @dev This function will return false if invoked during the constructor of a contract, - * as the code is not actually created until after the constructor finishes. - * @param addr address to check - * @return whether the target address is a contract - */ - function isContract(address addr) internal view returns (bool) { - uint256 size; - // XXX Currently there is no better way to check if there is a contract in an address - // than to check the size of the code at that address. - // See https://ethereum.stackexchange.com/a/14016/36603 - // for more details about how this works. - // TODO Check this again before the Serenity release, because all addresses will be - // contracts then. - assembly { size := extcodesize(addr) } // solium-disable-line security/no-inline-assembly - return size > 0; - } - -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic implementation - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721BasicToken is ERC721Basic { - using SafeMath for uint256; - using AddressUtils for address; - - // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - // Mapping from token ID to owner - mapping (uint256 => address) internal tokenOwner; - - // Mapping from token ID to approved address - mapping (uint256 => address) internal tokenApprovals; - - // Mapping from owner to number of owned token - mapping (address => uint256) internal ownedTokensCount; - - // Mapping from owner to operator approvals - mapping (address => mapping (address => bool)) internal operatorApprovals; - - /** - * @dev Guarantees msg.sender is owner of the given token - * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender - */ - modifier onlyOwnerOf(uint256 _tokenId) { - require(ownerOf(_tokenId) == msg.sender); - _; - } - - /** - * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator - * @param _tokenId uint256 ID of the token to validate - */ - modifier canTransfer(uint256 _tokenId) { - require(isApprovedOrOwner(msg.sender, _tokenId)); - _; - } - - /** - * @dev Gets the balance of the specified address - * @param _owner address to query the balance of - * @return uint256 representing the amount owned by the passed address - */ - function balanceOf(address _owner) public view returns (uint256) { - require(_owner != address(0)); - return ownedTokensCount[_owner]; - } - - /** - * @dev Gets the owner of the specified token ID - * @param _tokenId uint256 ID of the token to query the owner of - * @return owner address currently marked as the owner of the given token ID - */ - function ownerOf(uint256 _tokenId) public view returns (address) { - address owner = tokenOwner[_tokenId]; - require(owner != address(0)); - return owner; - } - - /** - * @dev Returns whether the specified token exists - * @param _tokenId uint256 ID of the token to query the existance of - * @return whether the token exists - */ - function exists(uint256 _tokenId) public view returns (bool) { - address owner = tokenOwner[_tokenId]; - return owner != address(0); - } - - /** - * @dev Approves another address to transfer the given token ID - * @dev The zero address indicates there is no approved address. - * @dev There can only be one approved address per token at a given time. - * @dev Can only be called by the token owner or an approved operator. - * @param _to address to be approved for the given token ID - * @param _tokenId uint256 ID of the token to be approved - */ - function approve(address _to, uint256 _tokenId) public { - address owner = ownerOf(_tokenId); - require(_to != owner); - require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); - - if (getApproved(_tokenId) != address(0) || _to != address(0)) { - tokenApprovals[_tokenId] = _to; - emit Approval(owner, _to, _tokenId); - } - } - - /** - * @dev Gets the approved address for a token ID, or zero if no address set - * @param _tokenId uint256 ID of the token to query the approval of - * @return address currently approved for a the given token ID - */ - function getApproved(uint256 _tokenId) public view returns (address) { - return tokenApprovals[_tokenId]; - } - - /** - * @dev Sets or unsets the approval of a given operator - * @dev An operator is allowed to transfer all tokens of the sender on their behalf - * @param _to operator address to set the approval - * @param _approved representing the status of the approval to be set - */ - function setApprovalForAll(address _to, bool _approved) public { - require(_to != msg.sender); - operatorApprovals[msg.sender][_to] = _approved; - emit ApprovalForAll(msg.sender, _to, _approved); - } - - /** - * @dev Tells whether an operator is approved by a given owner - * @param _owner owner address which you want to query the approval of - * @param _operator operator address which you want to query the approval of - * @return bool whether the given operator is approved by the given owner - */ - function isApprovedForAll(address _owner, address _operator) public view returns (bool) { - return operatorApprovals[_owner][_operator]; - } - - /** - * @dev Transfers the ownership of a given token ID to another address - * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function transferFrom(address _from, address _to, uint256 _tokenId) public canTransfer(_tokenId) { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - { - // solium-disable-next-line arg-overflow - safeTransferFrom(_from, _to, _tokenId, ""); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes data to send along with a safe transfer check - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public - canTransfer(_tokenId) - { - transferFrom(_from, _to, _tokenId); - // solium-disable-next-line arg-overflow - require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data)); - } - - /** - * @dev Returns whether the given spender can transfer a given token ID - * @param _spender address of the spender to query - * @param _tokenId uint256 ID of the token to be transferred - * @return bool whether the msg.sender is approved for the given token ID, - * is an operator of the owner, or is the owner of the token - */ - function isApprovedOrOwner(address _spender, uint256 _tokenId) internal view returns (bool) { - address owner = ownerOf(_tokenId); - return _spender == owner || getApproved(_tokenId) == _spender || isApprovedForAll(owner, _spender); - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to The address that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - require(_to != address(0)); - addTokenTo(_to, _tokenId); - emit Transfer(address(0), _to, _tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - clearApproval(_owner, _tokenId); - removeTokenFrom(_owner, _tokenId); - emit Transfer(_owner, address(0), _tokenId); - } - - /** - * @dev Internal function to clear current approval of a given token ID - * @dev Reverts if the given address is not indeed the owner of the token - * @param _owner owner of the token - * @param _tokenId uint256 ID of the token to be transferred - */ - function clearApproval(address _owner, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _owner); - if (tokenApprovals[_tokenId] != address(0)) { - tokenApprovals[_tokenId] = address(0); - emit Approval(_owner, address(0), _tokenId); - } - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - require(tokenOwner[_tokenId] == address(0)); - tokenOwner[_tokenId] = _to; - ownedTokensCount[_to] = ownedTokensCount[_to].add(1); - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _from); - ownedTokensCount[_from] = ownedTokensCount[_from].sub(1); - tokenOwner[_tokenId] = address(0); - } - - /** - * @dev Internal function to invoke `onERC721Received` on a target address - * @dev The call is not executed if the target address is not a contract - * @param _from address representing the previous owner of the given token ID - * @param _to target address that will receive the tokens - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes optional data to send along with the call - * @return whether the call correctly returned the expected magic value - */ - function checkAndCallSafeTransfer( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - internal - returns (bool) - { - if (!_to.isContract()) { - return true; - } - bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data); - return (retval == ERC721_RECEIVED); - } -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol - -/** - * @title Full ERC721 Token - * This implementation includes all the required and some optional functionality of the ERC721 standard - * Moreover, it includes approve all functionality using operator terminology - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Token is ERC721, ERC721BasicToken { - // Token name - string internal name_; - - // Token symbol - string internal symbol_; - - // Mapping from owner to list of owned token IDs - mapping (address => uint256[]) internal ownedTokens; - - // Mapping from token ID to index of the owner tokens list - mapping(uint256 => uint256) internal ownedTokensIndex; - - // Array with all token ids, used for enumeration - uint256[] internal allTokens; - - // Mapping from token id to position in the allTokens array - mapping(uint256 => uint256) internal allTokensIndex; - - // Optional mapping for token URIs - mapping(uint256 => string) internal tokenURIs; - - /** - * @dev Constructor function - */ - function ERC721Token(string _name, string _symbol) public { - name_ = _name; - symbol_ = _symbol; - } - - /** - * @dev Gets the token name - * @return string representing the token name - */ - function name() public view returns (string) { - return name_; - } - - /** - * @dev Gets the token symbol - * @return string representing the token symbol - */ - function symbol() public view returns (string) { - return symbol_; - } - - /** - * @dev Returns an URI for a given token ID - * @dev Throws if the token ID does not exist. May return an empty string. - * @param _tokenId uint256 ID of the token to query - */ - function tokenURI(uint256 _tokenId) public view returns (string) { - require(exists(_tokenId)); - return tokenURIs[_tokenId]; - } - - /** - * @dev Gets the token ID at a given index of the tokens list of the requested owner - * @param _owner address owning the tokens list to be accessed - * @param _index uint256 representing the index to be accessed of the requested tokens list - * @return uint256 token ID at the given index of the tokens list owned by the requested address - */ - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256) { - require(_index < balanceOf(_owner)); - return ownedTokens[_owner][_index]; - } - - /** - * @dev Gets the total amount of tokens stored by the contract - * @return uint256 representing the total amount of tokens - */ - function totalSupply() public view returns (uint256) { - return allTokens.length; - } - - /** - * @dev Gets the token ID at a given index of all the tokens in this contract - * @dev Reverts if the index is greater or equal to the total number of tokens - * @param _index uint256 representing the index to be accessed of the tokens list - * @return uint256 token ID at the given index of the tokens list - */ - function tokenByIndex(uint256 _index) public view returns (uint256) { - require(_index < totalSupply()); - return allTokens[_index]; - } - - /** - * @dev Internal function to set the token URI for a given token - * @dev Reverts if the token ID does not exist - * @param _tokenId uint256 ID of the token to set its URI - * @param _uri string URI to assign - */ - function _setTokenURI(uint256 _tokenId, string _uri) internal { - require(exists(_tokenId)); - tokenURIs[_tokenId] = _uri; - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - super.addTokenTo(_to, _tokenId); - uint256 length = ownedTokens[_to].length; - ownedTokens[_to].push(_tokenId); - ownedTokensIndex[_tokenId] = length; - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - super.removeTokenFrom(_from, _tokenId); - - uint256 tokenIndex = ownedTokensIndex[_tokenId]; - uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); - uint256 lastToken = ownedTokens[_from][lastTokenIndex]; - - ownedTokens[_from][tokenIndex] = lastToken; - ownedTokens[_from][lastTokenIndex] = 0; - // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to - // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping - // the lastToken to the first position, and then dropping the element placed in the last position of the list - - ownedTokens[_from].length--; - ownedTokensIndex[_tokenId] = 0; - ownedTokensIndex[lastToken] = tokenIndex; - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to address the beneficiary that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - super._mint(_to, _tokenId); - - allTokensIndex[_tokenId] = allTokens.length; - allTokens.push(_tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _owner owner of the token to burn - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - super._burn(_owner, _tokenId); - - // Clear metadata (if any) - if (bytes(tokenURIs[_tokenId]).length != 0) { - delete tokenURIs[_tokenId]; - } - - // Reorg all tokens array - uint256 tokenIndex = allTokensIndex[_tokenId]; - uint256 lastTokenIndex = allTokens.length.sub(1); - uint256 lastToken = allTokens[lastTokenIndex]; - - allTokens[tokenIndex] = lastToken; - allTokens[lastTokenIndex] = 0; - - allTokens.length--; - allTokensIndex[_tokenId] = 0; - allTokensIndex[lastToken] = tokenIndex; - } - -} - -// File: openzeppelin-solidity/contracts/payment/SplitPayment.sol - -/** - * @title SplitPayment - * @dev Base contract that supports multiple payees claiming funds sent to this contract - * according to the proportion they own. - */ -contract SplitPayment { - using SafeMath for uint256; - - uint256 public totalShares = 0; - uint256 public totalReleased = 0; - - mapping(address => uint256) public shares; - mapping(address => uint256) public released; - address[] public payees; - - /** - * @dev Constructor - */ - function SplitPayment(address[] _payees, uint256[] _shares) public payable { - require(_payees.length == _shares.length); - - for (uint256 i = 0; i < _payees.length; i++) { - addPayee(_payees[i], _shares[i]); - } - } - - /** - * @dev payable fallback - */ - function () public payable {} - - /** - * @dev Claim your share of the balance. - */ - function claim() public { - address payee = msg.sender; - - require(shares[payee] > 0); - - uint256 totalReceived = address(this).balance.add(totalReleased); - uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]); - - require(payment != 0); - require(address(this).balance >= payment); - - released[payee] = released[payee].add(payment); - totalReleased = totalReleased.add(payment); - - payee.transfer(payment); - } - - /** - * @dev Add a new payee to the contract. - * @param _payee The address of the payee to add. - * @param _shares The number of shares owned by the payee. - */ - function addPayee(address _payee, uint256 _shares) internal { - require(_payee != address(0)); - require(_shares > 0); - require(shares[_payee] == 0); - - payees.push(_payee); - shares[_payee] = _shares; - totalShares = totalShares.add(_shares); - } -} - -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); - - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - function Ownable() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } - -} - -// File: contracts/common/SplitPaymentChangeable.sol - -contract SplitPaymentChangeable is SplitPayment, Ownable { - - event PayeeAddressChanged( - uint payeeIndex, - address oldAddress, - address newAddress - ); - - constructor( - address[] _payees, - uint256[] _shares - ) - public - payable - SplitPayment(_payees, _shares) - { } - - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) - external - onlyOwner - { - address oldAddress = payees[_payeeIndex]; - - shares[_newAddress] = shares[oldAddress]; - released[_newAddress] = released[oldAddress]; - payees[_payeeIndex] = _newAddress; - - delete shares[oldAddress]; - delete released[oldAddress]; - - emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); - } -} - -// File: contracts/common/RegistryInterface.sol - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} - -// File: contracts/common/Safe.sol - -/** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! -*/ -contract Safe { - - address public owner; - - constructor() - public - payable - { - owner = msg.sender; - } - - /** - * @dev Allows direct send only by owner. - */ - function() - external - payable - { - require(msg.sender == owner); - } - - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) - external - { - require(msg.sender == owner); - require(_amount <= address(this).balance); - require(_entryOwner != 0x0); - _entryOwner.transfer(_amount); - } - -} - -// File: openzeppelin-solidity/contracts/lifecycle/Destructible.sol - -/** - * @title Destructible - * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. - */ -contract Destructible is Ownable { - - function Destructible() public payable { } - - /** - * @dev Transfers the current balance to the owner and terminates the contract. - */ - function destroy() onlyOwner public { - selfdestruct(owner); - } - - function destroyAndSend(address _recipient) onlyOwner public { - selfdestruct(_recipient); - } -} - -// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol - -/** - * @title Pausable - * @dev Base contract which allows children to implement an emergency stop mechanism. - */ -contract Pausable is Ownable { - event Pause(); - event Unpause(); - - bool public paused = false; - - - /** - * @dev Modifier to make a function callable only when the contract is not paused. - */ - modifier whenNotPaused() { - require(!paused); - _; - } - - /** - * @dev Modifier to make a function callable only when the contract is paused. - */ - modifier whenPaused() { - require(paused); - _; - } - - /** - * @dev called by the owner to pause, triggers stopped state - */ - function pause() onlyOwner whenNotPaused public { - paused = true; - emit Pause(); - } - - /** - * @dev called by the owner to unpause, returns to normal state - */ - function unpause() onlyOwner whenPaused public { - paused = false; - emit Unpause(); - } -} - -// File: contracts/chaingear/RegistryBase.sol - -/** -* @title RegistryBase contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Contracts which holds logic and struct of data witch describes registry metainformation which -* associated with token, provides views function for registry metainformation. -* @notice not recommend to use before release! -*/ - -//todo rename: we have RegistryBase and RegistryInterface -contract RegistryBase { - - /* - * Storage - */ - - // @dev Sctruct which describes registry metainformation with balance state and status - struct RegistryMeta { - address contractAddress; - address creator; - string version; - string linkABI; - uint registrationTimestamp; - uint256 currentRegistryBalanceETH; - uint256 accumulatedRegistryETH; - } - - - // @dev Array of registries data - RegistryMeta[] internal registries; - - /* - * Events - */ - - // @dev Events witch signals that new Registry registered - event RegistryRegistered( - string name, - address registryAddress, - address creator, - uint registryID - ); - - // @dev Events witch signals that Registry adminship transferred - // @notice that also means associated token transferred too - event RegistryChangedOwner( - address caller, - uint256 registyID, - address newOwner - ); - - // @dev Events witch signals that Registry unregistered from Chaingear - // @notice adminship of Registry transfers from Chaingear to Admin - event RegistryUnregistered( - address admin, - string name - ); - - /* - * External Functions - */ - - /** - * @dev Registy metainfo getter - * @param _registryID uint256 Registry ID, associated ERC721 token ID - * @return string Registy name - * @return string Registy symbol - * @return address Registy address - * @return address Registy creator address - * @return string Registy version - * @return uint Registy creation timestamp - * @return address Registy admin address - */ - function registryInfo( - uint256 _registryID - ) - external - view - returns ( - string, - string, - address, - address, - string, - uint, - address - ) - { - address contractAddress = registries[_registryID].contractAddress; - - return ( - RegistryInterface(contractAddress).name(), - RegistryInterface(contractAddress).symbol(), - contractAddress, - registries[_registryID].creator, - registries[_registryID].version, - registries[_registryID].registrationTimestamp, - RegistryInterface(contractAddress).getAdmin() - ); - } - - /** - * @dev Registy funding stats getter - * @param _registryID uint256 Registry ID - * @return uint Registy current balance in wei, which stored in Safe - * @return uint Registy total accumulated balance in wei - */ - function registryBalanceInfo( - uint256 _registryID - ) - external - view - returns ( - uint256, - uint256 - ) - { - return ( - registries[_registryID].currentRegistryBalanceETH, - registries[_registryID].accumulatedRegistryETH - ); - } - - /** - * @dev Registies amount getter - * @return uint256 amounts of Registries - */ - function registriesAmount() - external - view - returns (uint256) - { - return registries.length; - } -} - -// File: contracts/chaingear/ChaingearCore.sol - -/** -* @title Chaingear core contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ - -contract ChaingearCore is RegistryBase, Destructible, Pausable { - - /* - * Storage - */ - - // @dev Mapping which allow control of name uniqueness in metaregistry - mapping(string => bool) internal registryNamesIndex; - - // @dev Mapping which allow control of symbol uniqueness in metaregistry - mapping(string => bool) internal registrySymbolsIndex; - - // @dev Short Chaingear's description, less than 128 symbols - string internal chaingearDescription; - - // @dev Amount that registrys creator should pay for registry creation/registring - uint internal registryRegistrationFee; - - // @dev Address of contract where their funds allocates - address internal chaingearSafe; - - // @dev mapping with address of registry creators with different code base of registries - mapping (string => address) internal registryAddresses; - - // @dev mapping with ipfs links to json with ABI of different registries - mapping (string => string) internal registryABIsLinks; - - // @dev mapping description of different registries types/versions - mapping (string => string) internal registryDescriptions; - - /* - * Events - */ - - // @dev Signals that given Registry funded - event RegistryFunded( - uint registryID, - address sender, - uint amount - ); - - // @dev Signals that given Registry funds claimed by their admin - event RegistryFundsClaimed( - uint registryID, - address claimer, - uint amout - ); - - /* - * External Functions - */ - - /** - * @dev Provides funcitonality for adding fabrics of different kind of registries - * @param _nameOfVersion string which represents name of registry type/version - * @param _addressRegistryCreator address of registry creator/fabric - * @param _link string which represents IPFS hash to JSON with ABI of registry - * @param _description string which resprent info about registry fabric type - * @notice Only owner of metaregistry/chaingear allowed to add fabrics - */ - function addRegistryCreatorVersion( - string _nameOfVersion, - address _addressRegistryCreator, - string _link, - string _description - ) - external - onlyOwner - { - require(registryAddresses[_nameOfVersion] == 0x0); - registryAddresses[_nameOfVersion] = _addressRegistryCreator; - registryABIsLinks[_nameOfVersion] = _link; - registryDescriptions[_nameOfVersion] = _description; - } - - /* - * External Functions - */ - - /** - * @dev Chaingear' registry creation/registration fee setter - * @param _newFee uint new fee amount - * @notice Only owner of metaregistry/chaingear allowed to set fee - */ - function updateRegistrationFee( - uint _newFee - ) - external - onlyOwner - { - registryRegistrationFee = _newFee; - } - - /** - * @dev Chaingear' description setter - * @param _description string with new description - * @notice description should be less than 128 symbols - * @notice Only owner of metaregistry/chaingear allowed to change description - */ - function updateDescription( - string _description - ) - external - onlyOwner - { - uint len = bytes(_description).length; - require(len <= 256); - - chaingearDescription = _description; - } - - /* - * View Functions - */ - - /** - * @dev Allows get information about given version of registry fabric - * @param _nameOfVersion address which represents name of registry type - * @return _addressRegistryCreator address of registry fabric for this version - * @return _link string which represents IPFS hash to JSON with ABI of registry - * @return _description string which resprent info about this registry - */ - function getRegistryCreatorInfo( - string _nameOfVersion - ) - external - view - returns ( - address _addressRegistryCreator, - string _link, - string _description - ) - { - return( - registryAddresses[_nameOfVersion], - registryABIsLinks[_nameOfVersion], - registryDescriptions[_nameOfVersion] - ); - } - - /** - * @dev Chaingear description getter - * @return string description of Chaingear - */ - function getDescription() - external - view - returns (string) - { - return chaingearDescription; - } - - /** - * @dev Chaingear registration fee getter - * @return uint amount of fee in wei - */ - function getRegistrationFee() - external - view - returns (uint) - { - return registryRegistrationFee; - } - - /** - * @dev Safe balence getter - * @return uint amount of fee in wei - */ - function getSafeBalance() - external - view - returns (uint) - { - return address(chaingearSafe).balance; - } - - /** - * @dev Safe contract address getter - * @return uint amount of fee in wei - */ - function getSafe() - external - view - returns (address) - { - return chaingearSafe; - } -} - -// File: contracts/registry/RegistryPermissionControl.sol - -/** -* @title RegistryPermissionControl contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! -*/ -contract RegistryPermissionControl is Pausable { - - /* - * Storage - */ - - // @dev - address internal admin; - - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} - - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; - - /* - * Modifiers - */ - - // @dev Controls access granted only to admin - modifier onlyAdmin() { - require(msg.sender == admin); - _; - } - - // @dev Controls access to entry creation granted by setted permission group - modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { - require(msg.sender == admin); - } - _; - } - - /* - * View functions - */ - - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() - external - view - returns (address) - { - return admin; - } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() - external - view - returns (uint8) - { - return uint8(createEntryPermissionGroup); - } - - /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) - */ - function transferAdminRights( - address _newAdmin - ) - public - onlyOwner - whenNotPaused - { - require(_newAdmin != 0x0); - admin = _newAdmin; - } - - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ - function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup - ) - public - onlyAdmin - whenNotPaused - { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); - } - -} - -// File: contracts/registry/Chaingeareable.sol - -/** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ -contract Chaingeareable is RegistryPermissionControl { - - /* - * Storage - */ - - // @dev entry creation fee - uint internal entryCreationFee; - - // @dev registry description string - string internal registryDescription; - - // @dev registry tags - bytes32[] internal registryTags; - - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; - - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; - - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; - - /* - * Modifiers - */ - - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); - _; - } - - /** - * Events - */ - - // @dev Signals that new entry-token added to Registry - event EntryCreated( - uint entryID, - address creator - ); - - // @dev Signals that entry-token changed owner - event EntryChangedOwner( - uint entryID, - address newOwner - ); - - // @dev Signals that entry-token deleted - event EntryDeleted( - uint entryID, - address owner - ); - - // @dev Signals that entry-token funded with given amount - event EntryFunded( - uint entryID, - address funder, - uint amount - ); - - // @dev Signals that entry-token funds claimed by owner with given amount - event EntryFundsClaimed( - uint entryID, - address owner, - uint amount - ); - - /** - * External Functions - */ - - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee - ) - external - onlyAdmin - { - entryCreationFee = _fee; - } - - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription - ) - external - onlyAdmin - { - uint len = bytes(_registryDescription).length; - require(len <= 256); - - registryDescription = _registryDescription; - } - - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - registryTags.push(_tag); - } - - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); - - registryTags[_index] = _tag; - } - - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) - external - onlyAdmin - { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; - - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; - } - - /** - * View functions - */ - - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ - function getEntriesStorage() - external - view - returns (address) - { - return entriesStorage; - } - - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI - */ - function getInterfaceEntriesContract() - external - view - returns (string) - { - return linkToABIOfEntriesContract; - } - - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() - external - view - returns (uint) - { - return address(this).balance; - } - - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() - external - view - returns (uint) - { - return entryCreationFee; - } - - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() - external - view - returns (string) - { - return registryDescription; - } - - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() - external - view - returns (bytes32[]) - { - return registryTags; - } - - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() - external - view - returns (address) - { - return registrySafe; - } - - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ - function getSafeBalance() - external - view - returns (uint balance) - { - return address(registrySafe).balance; - } - - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() - external - view - returns (bool) - { - return registryInitStatus; - } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: contracts/registry/Registry.sol - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { - - using SafeMath for uint256; - - /* - * Storage - */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; - } - - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) - public - payable - { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() - external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) - { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); - - return newEntryID; - } - - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); - } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) - external - registryInitialized - whenNotPaused - payable - { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); - } - - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ - - function getEntryMeta( - uint256 _entryID - ) - external - view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) - { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH - ); - } - - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) - external - view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore - ) - public - onlyAdmin - returns (address) - { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; - } - -} - -// File: contracts/chaingear/RegistryCreator.sol - -/** -* @title Registry Creator engine/fabric -* @author cyber•Congress -* @dev Allows to Chaingear contract as builder create new Registries -* @dev with codebase which imported and deployed with this fabric -* @notice not recommend to use before release! -*/ -contract RegistryCreator is Ownable { - - /* - * @dev Storage - */ - - // @dev Holds address of contract which can call creation, means Chaingear - address internal builder; - - /* - * @dev Constructor - */ - - /** - * @dev Contructor of RegistryCreators - * @notice setting 0x0, then allows to owner to set builder/Chaingear - * @notice after deploying needs to set up builder/Chaingear address - */ - constructor() - public - { - builder = 0x0; - } - - /** - * @dev Disallows direct send by settings a default function without the `payable` flag. - */ - function() external {} - - /* - * @dev External Functions - */ - - /** - * @dev Allows chaingear (builder) create new registry - * @param _benefitiaries address[] array of beneficiaries addresses - * @param _shares uint256[] array of shares amont ot each beneficiary - * @param _name string name of Registry and token - * @param _symbol string symbol of Registry and token - * @return address Address of new initialized Registry - */ - function create( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - external - returns (address) - { - require(msg.sender == builder); - - address registryContract = new Registry( - _benefitiaries, - _shares, - _name, - _symbol - ); - //Fabric as owner transfers ownership to Chaingear contract after creation - Registry(registryContract).transferOwnership(builder); - - return registryContract; - } - - /** - * @dev Registry builder setter, owners sets Chaingear address - * @param _builder address - */ - function setBuilder( - address _builder - ) - external - onlyOwner - { - require(_builder != 0x0); - builder = _builder; - } - - /* - * View Functions - */ - - /** - * @dev RegistryCreator's builder getter - * @return address of setted Registry builder (Chaingear contract) - */ - function getRegistryBuilder() - external - view - returns (address) - { - return builder; - } -} - -// File: contracts/chaingear/Chaingear.sol - -/** -* @title Chaingear - the most expensive database -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Main metaregistry contract -* @notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries -* @notice where each registry are ERC721. -* @notice not recommend to use before release! -*/ -contract Chaingear is SplitPaymentChangeable, ChaingearCore, ERC721Token { - - using SafeMath for uint256; - - /* - * Constructor - */ - - /** - * @dev Chaingear constructor - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _description string description of Chaingear - * @param _registrationFee uint Fee for registry creation, wei - * @param _chaingearName string Chaingear's name, use for chaingear's ERC721 - * @param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721 - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _description, - uint _registrationFee, - string _chaingearName, - string _chaingearSymbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_chaingearName, _chaingearSymbol) - public - { - registryRegistrationFee = _registrationFee; - chaingearDescription = _description; - // Only chaingear as owner can transfer either to and out from Safe - chaingearSafe = new Safe(); - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Add and tokenize registry with specified parameters. - * @dev Registration fee is required to send with tx. - * @dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry - * @param _version version of registry from which Registry will be boostrapped - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function registerRegistry( - string _version, - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - external - payable - whenNotPaused - returns ( - address, - uint256 - ) - { - require(registryAddresses[_version] != 0x0); - require(registryRegistrationFee == msg.value); - - //checking uniqueness of name AND symbol of NFT in metaregistry - require(registryNamesIndex[_name] == false); - require(registrySymbolsIndex[_symbol] == false); - - return createRegistry( - _version, - _benefitiaries, - _shares, - _name, - _symbol - ); - } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - address registryAddress = registries[_tokenId].contractAddress; - RegistryInterface(registryAddress).transferAdminRights(_to); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows to unregister Registry from Chaingear - * @dev Only possible when safe of Registry is empty - * @dev Burns associated registry token and transfer Registry adminship to current token owner - * @param _registryID uint256 Registry-token ID - */ - function unregisterRegistry( - uint256 _registryID - ) - external - onlyOwnerOf(_registryID) - whenNotPaused - { - address registryAddress = registries[_registryID].contractAddress; - require(RegistryInterface(registryAddress).getSafeBalance() == 0); - - uint256 registryIndex = allTokensIndex[_registryID]; - uint256 lastRegistryIndex = registries.length.sub(1); - RegistryMeta storage lastRegistry = registries[lastRegistryIndex]; - - registries[registryIndex] = lastRegistry; - delete registries[lastRegistryIndex]; - registries.length--; - - _burn(msg.sender, _registryID); - - string memory registryName = RegistryInterface(registryAddress).name(); - emit RegistryUnregistered(msg.sender, registryName); - - //Sets current admin as owner of registry, transfers full control - RegistryInterface(registryAddress).transferOwnership(msg.sender); - } - - /** - * @dev Gets funding and allocate funds of Registry to Chaingear's Safe - * @param _registryID uint256 Registry-token ID - */ - function fundRegistry( - uint256 _registryID - ) - external - whenNotPaused - payable - { - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.add(msg.value); - registries[_registryID].accumulatedRegistryETH = registries[_registryID].accumulatedRegistryETH.add(msg.value); - - emit RegistryFunded(_registryID, msg.sender, msg.value); - - chaingearSafe.transfer(msg.value); - } - - /** - * @dev Gets funding and allocate funds of Registry to Safe - * @param _registryID uint256 Registry-token ID - * @param _amount uint256 Amount which admin of registry claims - */ - function claimEntryFunds( - uint256 _registryID, - uint256 _amount - ) - external - onlyOwnerOf(_registryID) - whenNotPaused - { - require(_amount <= registries[_registryID].currentRegistryBalanceETH); - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.sub(_amount); - - emit RegistryFundsClaimed(_registryID, msg.sender, _amount); - - Safe(chaingearSafe).claim(msg.sender, _amount); - } - - /* - * Private functions - */ - - /** - * @dev Private function for registry creation - * @dev Pass Registry params and bytecode to RegistryCreator to current builder - * @param _version version of registry code which added to chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares to benefitiaries - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function createRegistry( - string _version, - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - private - returns ( - address, - uint256 - ) - { - address registryContract = RegistryCreator(registryAddresses[_version]).create( - _benefitiaries, - _shares, - _name, - _symbol - ); - - RegistryMeta memory registry = (RegistryMeta( - { - contractAddress: registryContract, - creator: msg.sender, - version: _version, - linkABI: registryABIsLinks[_version], - registrationTimestamp: block.timestamp, - currentRegistryBalanceETH: 0, - accumulatedRegistryETH: 0 - })); - - uint256 registryID = registries.push(registry) - 1; - _mint(msg.sender, registryID); - - registryNamesIndex[_name] = true; - registrySymbolsIndex[_symbol] = true; - - emit RegistryRegistered(_name, registryContract, msg.sender, registryID); - - //Metaregistry as owner sets creator as admin of Registry - RegistryInterface(registryContract).transferAdminRights(msg.sender); - - return ( - registryContract, - registryID - ); - } - -} diff --git a/docs/graphs/full/registry_full.dot b/docs/graphs/full/registry_full.dot deleted file mode 100644 index 7981982e..00000000 --- a/docs/graphs/full/registry_full.dot +++ /dev/null @@ -1,119 +0,0 @@ -strict digraph { - balanceOf [color=yellow] - ownerOf [color=yellow] - exists [color=yellow] - approve - getApproved [color=yellow] - setApprovalForAll - isApprovedForAll [color=yellow] - transferFrom - safeTransferFrom - totalSupply [color=yellow] - tokenOfOwnerByIndex [color=yellow] - tokenByIndex [color=yellow] - name [color=yellow] - symbol [color=yellow] - tokenURI [color=yellow] - onERC721Received - mul [color=gray] - div [color=gray] - sub [color=gray] - add [color=gray] - isContract [color=gray] - ApprovalForAll - clearApproval [color=gray] - removeTokenFrom [color=gray] - addTokenTo [color=gray] - Transfer - isApprovedOrOwner [color=gray] - _mint [color=gray] - _burn [color=gray] - checkAndCallSafeTransfer [color=gray] - ERC721Token - _setTokenURI [color=gray] - push - SplitPayment [color=brown] - addPayee [color=gray] - fallback [color=brown] - claim [color=purple] - transfer - Ownable - transferOwnership - OwnershipTransferred - constructor [color=brown] - changePayeeAddress - PayeeAddressChanged - pause - Pause - unpause - Unpause - getAdmin [color=yellow] - getRegistryPermissions [color=yellow] - transferAdminRights - updateCreateEntryPermissionGroup - updateEntryCreationFee - updateRegistryDescription - addRegistryTag - updateRegistryTag - removeRegistryTag - getEntriesStorage [color=yellow] - getInterfaceEntriesContract [color=yellow] - getRegistryBalance [color=yellow] - getEntryCreationFee [color=yellow] - getRegistryDescription [color=yellow] - getRegistryTags [color=yellow] - getRegistrySafe [color=yellow] - getSafeBalance [color=yellow] - getRegistryInitStatus [color=yellow] - entriesAmount [color=yellow] - createEntry [color=brown] - deleteEntry - fundEntry [color=purple] - claimEntryFunds - EntryCreated - EntryDeleted - EntryFunded - EntryFundsClaimed - updateEntryTimestamp - getEntryMeta [color=yellow] - checkAuth [color=yellow] - updateName - initializeRegistry - setApprovalForAll -> ApprovalForAll - transferFrom -> clearApproval - transferFrom -> removeTokenFrom - transferFrom -> addTokenTo - transferFrom -> Transfer - safeTransferFrom -> safeTransferFrom - safeTransferFrom -> transferFrom - _mint -> addTokenTo - _mint -> Transfer - _burn -> clearApproval - _burn -> removeTokenFrom - _burn -> Transfer - addTokenTo -> addTokenTo - addTokenTo -> push - removeTokenFrom -> removeTokenFrom - _mint -> _mint - _mint -> push - _burn -> _burn - SplitPayment -> addPayee - claim -> transfer - addPayee -> push - transferOwnership -> OwnershipTransferred - changePayeeAddress -> PayeeAddressChanged - pause -> Pause - unpause -> Unpause - addRegistryTag -> push - createEntry -> push - createEntry -> _mint - createEntry -> EntryCreated - deleteEntry -> _burn - deleteEntry -> EntryDeleted - deleteEntry -> deleteEntry - fundEntry -> EntryFunded - fundEntry -> transfer - claimEntryFunds -> EntryFundsClaimed - claimEntryFunds -> claim -} - diff --git a/docs/graphs/full/registry_full.png b/docs/graphs/full/registry_full.png deleted file mode 100644 index 5b2dadf9..00000000 Binary files a/docs/graphs/full/registry_full.png and /dev/null differ diff --git a/docs/graphs/full/registry_full.sol b/docs/graphs/full/registry_full.sol deleted file mode 100644 index e95013f3..00000000 --- a/docs/graphs/full/registry_full.sol +++ /dev/null @@ -1,1607 +0,0 @@ -pragma solidity 0.4.24; - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic interface - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Basic { - event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); - event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); - event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); - - function balanceOf(address _owner) public view returns (uint256 _balance); - function ownerOf(uint256 _tokenId) public view returns (address _owner); - function exists(uint256 _tokenId) public view returns (bool _exists); - - function approve(address _to, uint256 _tokenId) public; - function getApproved(uint256 _tokenId) public view returns (address _operator); - - function setApprovalForAll(address _operator, bool _approved) public; - function isApprovedForAll(address _owner, address _operator) public view returns (bool); - - function transferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public; -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol - -/** - * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Enumerable is ERC721Basic { - function totalSupply() public view returns (uint256); - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId); - function tokenByIndex(uint256 _index) public view returns (uint256); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, optional metadata extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Metadata is ERC721Basic { - function name() public view returns (string _name); - function symbol() public view returns (string _symbol); - function tokenURI(uint256 _tokenId) public view returns (string); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, full implementation interface - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol - -/** - * @title ERC721 token receiver interface - * @dev Interface for any contract that wants to support safeTransfers - * from ERC721 asset contracts. - */ -contract ERC721Receiver { - /** - * @dev Magic value to be returned upon successful reception of an NFT - * Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`, - * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - */ - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - /** - * @notice Handle the receipt of an NFT - * @dev The ERC721 smart contract calls this function on the recipient - * after a `safetransfer`. This function MAY throw to revert and reject the - * transfer. This function MUST use 50,000 gas or less. Return of other - * than the magic value MUST result in the transaction being reverted. - * Note: the contract address is always the message sender. - * @param _from The sending address - * @param _tokenId The NFT identifier which is being transfered - * @param _data Additional data with no specified format - * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - */ - function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4); -} - -// File: openzeppelin-solidity/contracts/math/SafeMath.sol - -/** - * @title SafeMath - * @dev Math operations with safety checks that throw on error - */ -library SafeMath { - - /** - * @dev Multiplies two numbers, throws on overflow. - */ - function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { - if (a == 0) { - return 0; - } - c = a * b; - assert(c / a == b); - return c; - } - - /** - * @dev Integer division of two numbers, truncating the quotient. - */ - function div(uint256 a, uint256 b) internal pure returns (uint256) { - // assert(b > 0); // Solidity automatically throws when dividing by 0 - // uint256 c = a / b; - // assert(a == b * c + a % b); // There is no case in which this doesn't hold - return a / b; - } - - /** - * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). - */ - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; - } - - /** - * @dev Adds two numbers, throws on overflow. - */ - function add(uint256 a, uint256 b) internal pure returns (uint256 c) { - c = a + b; - assert(c >= a); - return c; - } -} - -// File: openzeppelin-solidity/contracts/AddressUtils.sol - -/** - * Utility library of inline functions on addresses - */ -library AddressUtils { - - /** - * Returns whether the target address is a contract - * @dev This function will return false if invoked during the constructor of a contract, - * as the code is not actually created until after the constructor finishes. - * @param addr address to check - * @return whether the target address is a contract - */ - function isContract(address addr) internal view returns (bool) { - uint256 size; - // XXX Currently there is no better way to check if there is a contract in an address - // than to check the size of the code at that address. - // See https://ethereum.stackexchange.com/a/14016/36603 - // for more details about how this works. - // TODO Check this again before the Serenity release, because all addresses will be - // contracts then. - assembly { size := extcodesize(addr) } // solium-disable-line security/no-inline-assembly - return size > 0; - } - -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic implementation - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721BasicToken is ERC721Basic { - using SafeMath for uint256; - using AddressUtils for address; - - // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - // Mapping from token ID to owner - mapping (uint256 => address) internal tokenOwner; - - // Mapping from token ID to approved address - mapping (uint256 => address) internal tokenApprovals; - - // Mapping from owner to number of owned token - mapping (address => uint256) internal ownedTokensCount; - - // Mapping from owner to operator approvals - mapping (address => mapping (address => bool)) internal operatorApprovals; - - /** - * @dev Guarantees msg.sender is owner of the given token - * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender - */ - modifier onlyOwnerOf(uint256 _tokenId) { - require(ownerOf(_tokenId) == msg.sender); - _; - } - - /** - * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator - * @param _tokenId uint256 ID of the token to validate - */ - modifier canTransfer(uint256 _tokenId) { - require(isApprovedOrOwner(msg.sender, _tokenId)); - _; - } - - /** - * @dev Gets the balance of the specified address - * @param _owner address to query the balance of - * @return uint256 representing the amount owned by the passed address - */ - function balanceOf(address _owner) public view returns (uint256) { - require(_owner != address(0)); - return ownedTokensCount[_owner]; - } - - /** - * @dev Gets the owner of the specified token ID - * @param _tokenId uint256 ID of the token to query the owner of - * @return owner address currently marked as the owner of the given token ID - */ - function ownerOf(uint256 _tokenId) public view returns (address) { - address owner = tokenOwner[_tokenId]; - require(owner != address(0)); - return owner; - } - - /** - * @dev Returns whether the specified token exists - * @param _tokenId uint256 ID of the token to query the existance of - * @return whether the token exists - */ - function exists(uint256 _tokenId) public view returns (bool) { - address owner = tokenOwner[_tokenId]; - return owner != address(0); - } - - /** - * @dev Approves another address to transfer the given token ID - * @dev The zero address indicates there is no approved address. - * @dev There can only be one approved address per token at a given time. - * @dev Can only be called by the token owner or an approved operator. - * @param _to address to be approved for the given token ID - * @param _tokenId uint256 ID of the token to be approved - */ - function approve(address _to, uint256 _tokenId) public { - address owner = ownerOf(_tokenId); - require(_to != owner); - require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); - - if (getApproved(_tokenId) != address(0) || _to != address(0)) { - tokenApprovals[_tokenId] = _to; - emit Approval(owner, _to, _tokenId); - } - } - - /** - * @dev Gets the approved address for a token ID, or zero if no address set - * @param _tokenId uint256 ID of the token to query the approval of - * @return address currently approved for a the given token ID - */ - function getApproved(uint256 _tokenId) public view returns (address) { - return tokenApprovals[_tokenId]; - } - - /** - * @dev Sets or unsets the approval of a given operator - * @dev An operator is allowed to transfer all tokens of the sender on their behalf - * @param _to operator address to set the approval - * @param _approved representing the status of the approval to be set - */ - function setApprovalForAll(address _to, bool _approved) public { - require(_to != msg.sender); - operatorApprovals[msg.sender][_to] = _approved; - emit ApprovalForAll(msg.sender, _to, _approved); - } - - /** - * @dev Tells whether an operator is approved by a given owner - * @param _owner owner address which you want to query the approval of - * @param _operator operator address which you want to query the approval of - * @return bool whether the given operator is approved by the given owner - */ - function isApprovedForAll(address _owner, address _operator) public view returns (bool) { - return operatorApprovals[_owner][_operator]; - } - - /** - * @dev Transfers the ownership of a given token ID to another address - * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function transferFrom(address _from, address _to, uint256 _tokenId) public canTransfer(_tokenId) { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - { - // solium-disable-next-line arg-overflow - safeTransferFrom(_from, _to, _tokenId, ""); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes data to send along with a safe transfer check - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public - canTransfer(_tokenId) - { - transferFrom(_from, _to, _tokenId); - // solium-disable-next-line arg-overflow - require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data)); - } - - /** - * @dev Returns whether the given spender can transfer a given token ID - * @param _spender address of the spender to query - * @param _tokenId uint256 ID of the token to be transferred - * @return bool whether the msg.sender is approved for the given token ID, - * is an operator of the owner, or is the owner of the token - */ - function isApprovedOrOwner(address _spender, uint256 _tokenId) internal view returns (bool) { - address owner = ownerOf(_tokenId); - return _spender == owner || getApproved(_tokenId) == _spender || isApprovedForAll(owner, _spender); - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to The address that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - require(_to != address(0)); - addTokenTo(_to, _tokenId); - emit Transfer(address(0), _to, _tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - clearApproval(_owner, _tokenId); - removeTokenFrom(_owner, _tokenId); - emit Transfer(_owner, address(0), _tokenId); - } - - /** - * @dev Internal function to clear current approval of a given token ID - * @dev Reverts if the given address is not indeed the owner of the token - * @param _owner owner of the token - * @param _tokenId uint256 ID of the token to be transferred - */ - function clearApproval(address _owner, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _owner); - if (tokenApprovals[_tokenId] != address(0)) { - tokenApprovals[_tokenId] = address(0); - emit Approval(_owner, address(0), _tokenId); - } - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - require(tokenOwner[_tokenId] == address(0)); - tokenOwner[_tokenId] = _to; - ownedTokensCount[_to] = ownedTokensCount[_to].add(1); - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _from); - ownedTokensCount[_from] = ownedTokensCount[_from].sub(1); - tokenOwner[_tokenId] = address(0); - } - - /** - * @dev Internal function to invoke `onERC721Received` on a target address - * @dev The call is not executed if the target address is not a contract - * @param _from address representing the previous owner of the given token ID - * @param _to target address that will receive the tokens - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes optional data to send along with the call - * @return whether the call correctly returned the expected magic value - */ - function checkAndCallSafeTransfer( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - internal - returns (bool) - { - if (!_to.isContract()) { - return true; - } - bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data); - return (retval == ERC721_RECEIVED); - } -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol - -/** - * @title Full ERC721 Token - * This implementation includes all the required and some optional functionality of the ERC721 standard - * Moreover, it includes approve all functionality using operator terminology - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Token is ERC721, ERC721BasicToken { - // Token name - string internal name_; - - // Token symbol - string internal symbol_; - - // Mapping from owner to list of owned token IDs - mapping (address => uint256[]) internal ownedTokens; - - // Mapping from token ID to index of the owner tokens list - mapping(uint256 => uint256) internal ownedTokensIndex; - - // Array with all token ids, used for enumeration - uint256[] internal allTokens; - - // Mapping from token id to position in the allTokens array - mapping(uint256 => uint256) internal allTokensIndex; - - // Optional mapping for token URIs - mapping(uint256 => string) internal tokenURIs; - - /** - * @dev Constructor function - */ - function ERC721Token(string _name, string _symbol) public { - name_ = _name; - symbol_ = _symbol; - } - - /** - * @dev Gets the token name - * @return string representing the token name - */ - function name() public view returns (string) { - return name_; - } - - /** - * @dev Gets the token symbol - * @return string representing the token symbol - */ - function symbol() public view returns (string) { - return symbol_; - } - - /** - * @dev Returns an URI for a given token ID - * @dev Throws if the token ID does not exist. May return an empty string. - * @param _tokenId uint256 ID of the token to query - */ - function tokenURI(uint256 _tokenId) public view returns (string) { - require(exists(_tokenId)); - return tokenURIs[_tokenId]; - } - - /** - * @dev Gets the token ID at a given index of the tokens list of the requested owner - * @param _owner address owning the tokens list to be accessed - * @param _index uint256 representing the index to be accessed of the requested tokens list - * @return uint256 token ID at the given index of the tokens list owned by the requested address - */ - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256) { - require(_index < balanceOf(_owner)); - return ownedTokens[_owner][_index]; - } - - /** - * @dev Gets the total amount of tokens stored by the contract - * @return uint256 representing the total amount of tokens - */ - function totalSupply() public view returns (uint256) { - return allTokens.length; - } - - /** - * @dev Gets the token ID at a given index of all the tokens in this contract - * @dev Reverts if the index is greater or equal to the total number of tokens - * @param _index uint256 representing the index to be accessed of the tokens list - * @return uint256 token ID at the given index of the tokens list - */ - function tokenByIndex(uint256 _index) public view returns (uint256) { - require(_index < totalSupply()); - return allTokens[_index]; - } - - /** - * @dev Internal function to set the token URI for a given token - * @dev Reverts if the token ID does not exist - * @param _tokenId uint256 ID of the token to set its URI - * @param _uri string URI to assign - */ - function _setTokenURI(uint256 _tokenId, string _uri) internal { - require(exists(_tokenId)); - tokenURIs[_tokenId] = _uri; - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - super.addTokenTo(_to, _tokenId); - uint256 length = ownedTokens[_to].length; - ownedTokens[_to].push(_tokenId); - ownedTokensIndex[_tokenId] = length; - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - super.removeTokenFrom(_from, _tokenId); - - uint256 tokenIndex = ownedTokensIndex[_tokenId]; - uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); - uint256 lastToken = ownedTokens[_from][lastTokenIndex]; - - ownedTokens[_from][tokenIndex] = lastToken; - ownedTokens[_from][lastTokenIndex] = 0; - // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to - // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping - // the lastToken to the first position, and then dropping the element placed in the last position of the list - - ownedTokens[_from].length--; - ownedTokensIndex[_tokenId] = 0; - ownedTokensIndex[lastToken] = tokenIndex; - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to address the beneficiary that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - super._mint(_to, _tokenId); - - allTokensIndex[_tokenId] = allTokens.length; - allTokens.push(_tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _owner owner of the token to burn - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - super._burn(_owner, _tokenId); - - // Clear metadata (if any) - if (bytes(tokenURIs[_tokenId]).length != 0) { - delete tokenURIs[_tokenId]; - } - - // Reorg all tokens array - uint256 tokenIndex = allTokensIndex[_tokenId]; - uint256 lastTokenIndex = allTokens.length.sub(1); - uint256 lastToken = allTokens[lastTokenIndex]; - - allTokens[tokenIndex] = lastToken; - allTokens[lastTokenIndex] = 0; - - allTokens.length--; - allTokensIndex[_tokenId] = 0; - allTokensIndex[lastToken] = tokenIndex; - } - -} - -// File: openzeppelin-solidity/contracts/payment/SplitPayment.sol - -/** - * @title SplitPayment - * @dev Base contract that supports multiple payees claiming funds sent to this contract - * according to the proportion they own. - */ -contract SplitPayment { - using SafeMath for uint256; - - uint256 public totalShares = 0; - uint256 public totalReleased = 0; - - mapping(address => uint256) public shares; - mapping(address => uint256) public released; - address[] public payees; - - /** - * @dev Constructor - */ - function SplitPayment(address[] _payees, uint256[] _shares) public payable { - require(_payees.length == _shares.length); - - for (uint256 i = 0; i < _payees.length; i++) { - addPayee(_payees[i], _shares[i]); - } - } - - /** - * @dev payable fallback - */ - function () public payable {} - - /** - * @dev Claim your share of the balance. - */ - function claim() public { - address payee = msg.sender; - - require(shares[payee] > 0); - - uint256 totalReceived = address(this).balance.add(totalReleased); - uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]); - - require(payment != 0); - require(address(this).balance >= payment); - - released[payee] = released[payee].add(payment); - totalReleased = totalReleased.add(payment); - - payee.transfer(payment); - } - - /** - * @dev Add a new payee to the contract. - * @param _payee The address of the payee to add. - * @param _shares The number of shares owned by the payee. - */ - function addPayee(address _payee, uint256 _shares) internal { - require(_payee != address(0)); - require(_shares > 0); - require(shares[_payee] == 0); - - payees.push(_payee); - shares[_payee] = _shares; - totalShares = totalShares.add(_shares); - } -} - -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); - - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - function Ownable() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } - -} - -// File: contracts/common/SplitPaymentChangeable.sol - -contract SplitPaymentChangeable is SplitPayment, Ownable { - - event PayeeAddressChanged( - uint payeeIndex, - address oldAddress, - address newAddress - ); - - constructor( - address[] _payees, - uint256[] _shares - ) - public - payable - SplitPayment(_payees, _shares) - { } - - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) - external - onlyOwner - { - address oldAddress = payees[_payeeIndex]; - - shares[_newAddress] = shares[oldAddress]; - released[_newAddress] = released[oldAddress]; - payees[_payeeIndex] = _newAddress; - - delete shares[oldAddress]; - delete released[oldAddress]; - - emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); - } -} - -// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol - -/** - * @title Pausable - * @dev Base contract which allows children to implement an emergency stop mechanism. - */ -contract Pausable is Ownable { - event Pause(); - event Unpause(); - - bool public paused = false; - - - /** - * @dev Modifier to make a function callable only when the contract is not paused. - */ - modifier whenNotPaused() { - require(!paused); - _; - } - - /** - * @dev Modifier to make a function callable only when the contract is paused. - */ - modifier whenPaused() { - require(paused); - _; - } - - /** - * @dev called by the owner to pause, triggers stopped state - */ - function pause() onlyOwner whenNotPaused public { - paused = true; - emit Pause(); - } - - /** - * @dev called by the owner to unpause, returns to normal state - */ - function unpause() onlyOwner whenPaused public { - paused = false; - emit Unpause(); - } -} - -// File: contracts/registry/RegistryPermissionControl.sol - -/** -* @title RegistryPermissionControl contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! -*/ -contract RegistryPermissionControl is Pausable { - - /* - * Storage - */ - - // @dev - address internal admin; - - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} - - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; - - /* - * Modifiers - */ - - // @dev Controls access granted only to admin - modifier onlyAdmin() { - require(msg.sender == admin); - _; - } - - // @dev Controls access to entry creation granted by setted permission group - modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { - require(msg.sender == admin); - } - _; - } - - /* - * View functions - */ - - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() - external - view - returns (address) - { - return admin; - } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() - external - view - returns (uint8) - { - return uint8(createEntryPermissionGroup); - } - - /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) - */ - function transferAdminRights( - address _newAdmin - ) - public - onlyOwner - whenNotPaused - { - require(_newAdmin != 0x0); - admin = _newAdmin; - } - - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ - function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup - ) - public - onlyAdmin - whenNotPaused - { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); - } - -} - -// File: contracts/registry/Chaingeareable.sol - -/** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ -contract Chaingeareable is RegistryPermissionControl { - - /* - * Storage - */ - - // @dev entry creation fee - uint internal entryCreationFee; - - // @dev registry description string - string internal registryDescription; - - // @dev registry tags - bytes32[] internal registryTags; - - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; - - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; - - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; - - /* - * Modifiers - */ - - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); - _; - } - - /** - * Events - */ - - // @dev Signals that new entry-token added to Registry - event EntryCreated( - uint entryID, - address creator - ); - - // @dev Signals that entry-token changed owner - event EntryChangedOwner( - uint entryID, - address newOwner - ); - - // @dev Signals that entry-token deleted - event EntryDeleted( - uint entryID, - address owner - ); - - // @dev Signals that entry-token funded with given amount - event EntryFunded( - uint entryID, - address funder, - uint amount - ); - - // @dev Signals that entry-token funds claimed by owner with given amount - event EntryFundsClaimed( - uint entryID, - address owner, - uint amount - ); - - /** - * External Functions - */ - - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee - ) - external - onlyAdmin - { - entryCreationFee = _fee; - } - - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription - ) - external - onlyAdmin - { - uint len = bytes(_registryDescription).length; - require(len <= 256); - - registryDescription = _registryDescription; - } - - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - registryTags.push(_tag); - } - - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); - - registryTags[_index] = _tag; - } - - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) - external - onlyAdmin - { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; - - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; - } - - /** - * View functions - */ - - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ - function getEntriesStorage() - external - view - returns (address) - { - return entriesStorage; - } - - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI - */ - function getInterfaceEntriesContract() - external - view - returns (string) - { - return linkToABIOfEntriesContract; - } - - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() - external - view - returns (uint) - { - return address(this).balance; - } - - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() - external - view - returns (uint) - { - return entryCreationFee; - } - - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() - external - view - returns (string) - { - return registryDescription; - } - - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() - external - view - returns (bytes32[]) - { - return registryTags; - } - - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() - external - view - returns (address) - { - return registrySafe; - } - - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ - function getSafeBalance() - external - view - returns (uint balance) - { - return address(registrySafe).balance; - } - - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() - external - view - returns (bool) - { - return registryInitStatus; - } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: contracts/common/RegistryInterface.sol - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} - -// File: contracts/common/Safe.sol - -/** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! -*/ -contract Safe { - - address public owner; - - constructor() - public - payable - { - owner = msg.sender; - } - - /** - * @dev Allows direct send only by owner. - */ - function() - external - payable - { - require(msg.sender == owner); - } - - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) - external - { - require(msg.sender == owner); - require(_amount <= address(this).balance); - require(_entryOwner != 0x0); - _entryOwner.transfer(_amount); - } - -} - -// File: contracts/registry/Registry.sol - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { - - using SafeMath for uint256; - - /* - * Storage - */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; - } - - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) - public - payable - { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() - external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) - { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); - - return newEntryID; - } - - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); - } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) - external - registryInitialized - whenNotPaused - payable - { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); - } - - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ - - function getEntryMeta( - uint256 _entryID - ) - external - view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) - { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH - ); - } - - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) - external - view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore - ) - public - onlyAdmin - returns (address) - { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; - } - -} diff --git a/docs/graphs/registry/Registry.sol b/docs/graphs/registry/Registry.sol deleted file mode 120000 index 9468f1ad..00000000 --- a/docs/graphs/registry/Registry.sol +++ /dev/null @@ -1 +0,0 @@ -../../../contracts/registry/Registry.sol \ No newline at end of file diff --git a/docs/graphs/registry/build_graph.sh b/docs/graphs/registry/build_graph.sh deleted file mode 100755 index f48f3068..00000000 --- a/docs/graphs/registry/build_graph.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -solgraph Registry.sol > registry.dot -dot -Tpng registry.dot -o registry.png diff --git a/docs/graphs/registry/registry.dot b/docs/graphs/registry/registry.dot deleted file mode 100644 index 96312a8a..00000000 --- a/docs/graphs/registry/registry.dot +++ /dev/null @@ -1,42 +0,0 @@ -strict digraph { - constructor [color=brown] - fallback [color=brown] - createEntry [color=brown] - push - _mint - EntryCreated - deleteEntry - _burn - EntryDeleted - transferFrom - clearApproval - removeTokenFrom - addTokenTo - Transfer - fundEntry [color=purple] - EntryFunded - transfer - claimEntryFunds - EntryFundsClaimed - claim - updateEntryTimestamp - getEntryMeta [color=yellow] - checkAuth [color=yellow] - updateName - initializeRegistry - createEntry -> push - createEntry -> _mint - createEntry -> EntryCreated - deleteEntry -> _burn - deleteEntry -> EntryDeleted - deleteEntry -> deleteEntry - transferFrom -> clearApproval - transferFrom -> removeTokenFrom - transferFrom -> addTokenTo - transferFrom -> Transfer - fundEntry -> EntryFunded - fundEntry -> transfer - claimEntryFunds -> EntryFundsClaimed - claimEntryFunds -> claim -} - diff --git a/docs/graphs/registry/registry.png b/docs/graphs/registry/registry.png deleted file mode 100644 index ae2ec025..00000000 Binary files a/docs/graphs/registry/registry.png and /dev/null differ diff --git a/logo_chaigear_970.png b/docs/logo_chaigear_970.png similarity index 100% rename from logo_chaigear_970.png rename to docs/logo_chaigear_970.png diff --git a/docs/mermaid/contracts-chaingear_inheritance.svg b/docs/mermaid/contracts-chaingear_inheritance.svg index db0c583f..ac8c189b 100644 --- a/docs/mermaid/contracts-chaingear_inheritance.svg +++ b/docs/mermaid/contracts-chaingear_inheritance.svg @@ -1,4 +1,4 @@ -
IChaingear
Chaingear
OpenZeppelin.ERC721Token
OpenZeppelin.SplitPayment
OpenZeppelin.Pausable
OpenZeppelin.SupportsInterfaceWithLookup
OpenZeppelin.ERC165
OpenZeppelin.Ownable
OpenZeppelin.ERC721
OpenZeppelin.ERC721BasicToken
OpenZeppelin.ERC721Basic
OpenZeppelin.ERC721Enumerable
OpenZeppelin.ERC721Metadata
\ No newline at end of file diff --git a/docs/mermaid/contracts-database_inheritance.svg b/docs/mermaid/contracts-database_inheritance.svg new file mode 100644 index 00000000..0d076048 --- /dev/null +++ b/docs/mermaid/contracts-database_inheritance.svg @@ -0,0 +1,4 @@ +
IDatabase
DatabaseV1
OpenZeppelin.ERC721Token
OpenZeppelin.SplitPayment
DatabasePermissionControl
OpenZeppelin.SupportsInterfaceWithLookup
OpenZeppelin.ERC165
OpenZeppelin.Pausable
OpenZeppelin.Ownable
OpenZeppelin.ERC721
OpenZeppelin.ERC721BasicToken
OpenZeppelin.ERC721Basic
OpenZeppelin.ERC721Enumerable
OpenZeppelin.ERC721Metadata
\ No newline at end of file diff --git a/docs/mermaid/contracts-registry_inheritance.svg b/docs/mermaid/contracts-registry_inheritance.svg deleted file mode 100644 index 9643b9c4..00000000 --- a/docs/mermaid/contracts-registry_inheritance.svg +++ /dev/null @@ -1,4 +0,0 @@ -
RegistryInterface
Registry
Chaingeareable
ERC721Token/OZ
SplitPaymentChangeable
SplitPayment/OZ
RegistryPermissionControl
Pausable/OZ
Ownable/OZ
\ No newline at end of file diff --git a/docs/mermaid/origin/build_flows.sh b/docs/mermaid/origin/build_flows.sh new file mode 100755 index 00000000..56f5c73d --- /dev/null +++ b/docs/mermaid/origin/build_flows.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +mmdc -i pipelines-general_pipeline.mmd -o ../pipelines-general_pipeline.svg +mmdc -i contracts-database_inheritance.mmd -o ../contracts-database_inheritance.svg +mmdc -i contracts-chaingear_inheritance.mmd -o ../contracts-chaingear_inheritance.svg +mmdc -i pipelines-chaingear_tokenized.mmd -o ../pipelines-chaingear_tokenized.svg +mmdc -i pipelines-database_crud.mmd -o ../pipelines-database_crud.svg \ No newline at end of file diff --git a/docs/mermaid/origin/contracts-chaingear_inheritance.mmd b/docs/mermaid/origin/contracts-chaingear_inheritance.mmd index c9a0cda9..95c6c216 100644 --- a/docs/mermaid/origin/contracts-chaingear_inheritance.mmd +++ b/docs/mermaid/origin/contracts-chaingear_inheritance.mmd @@ -1,9 +1,16 @@ graph TD; - ERC721Token/OZ-->Chaingear; - SplitPaymentChangeable-->Chaingear; - ChaingearCore-->Chaingear; - SplitPayment/OZ-->SplitPaymentChangeable; - Ownable/OZ-->SplitPaymentChangeable; - RegistryBase-->ChaingearCore; - Destructible/OZ-->ChaingearCore; - Pausable/OZ-->ChaingearCore; + IChaingear-->Chaingear; + OpenZeppelin.ERC721Token-->Chaingear; + OpenZeppelin.SplitPayment-->Chaingear; + OpenZeppelin.Pausable-->Chaingear; + OpenZeppelin.SupportsInterfaceWithLookup-->Chaingear; + OpenZeppelin.ERC165-->OpenZeppelin.SupportsInterfaceWithLookup; + OpenZeppelin.Ownable-->OpenZeppelin.SplitPayment; + OpenZeppelin.Ownable-->OpenZeppelin.Pausable; + OpenZeppelin.Ownable-->Chaingear; + OpenZeppelin.ERC721-->OpenZeppelin.ERC721Token; + OpenZeppelin.ERC721BasicToken-->OpenZeppelin.ERC721Token; + OpenZeppelin.ERC721Basic-->OpenZeppelin.ERC721BasicToken; + OpenZeppelin.ERC721Basic-->OpenZeppelin.ERC721; + OpenZeppelin.ERC721Enumerable-->OpenZeppelin.ERC721; + OpenZeppelin.ERC721Metadata-->OpenZeppelin.ERC721; diff --git a/docs/mermaid/origin/contracts-database_inheritance.mmd b/docs/mermaid/origin/contracts-database_inheritance.mmd new file mode 100644 index 00000000..be08bf95 --- /dev/null +++ b/docs/mermaid/origin/contracts-database_inheritance.mmd @@ -0,0 +1,18 @@ +graph TD; + IDatabase-->DatabaseV1; + OpenZeppelin.ERC721Token-->DatabaseV1; + OpenZeppelin.SplitPayment-->DatabaseV1; + DatabasePermissionControl-->DatabaseV1; + OpenZeppelin.SupportsInterfaceWithLookup-->DatabaseV1; + OpenZeppelin.ERC165-->OpenZeppelin.SupportsInterfaceWithLookup; + OpenZeppelin.Pausable-->DatabasePermissionControl; + OpenZeppelin.Ownable-->DatabasePermissionControl; + OpenZeppelin.Ownable-->OpenZeppelin.Pausable; + OpenZeppelin.Ownable-->DatabaseV1; + OpenZeppelin.Ownable-->OpenZeppelin.SplitPayment; + OpenZeppelin.ERC721-->OpenZeppelin.ERC721Token; + OpenZeppelin.ERC721BasicToken-->OpenZeppelin.ERC721Token; + OpenZeppelin.ERC721Basic-->OpenZeppelin.ERC721BasicToken; + OpenZeppelin.ERC721Basic-->OpenZeppelin.ERC721; + OpenZeppelin.ERC721Enumerable-->OpenZeppelin.ERC721; + OpenZeppelin.ERC721Metadata-->OpenZeppelin.ERC721; diff --git a/docs/mermaid/origin/contracts-registry_inheritance.mmd b/docs/mermaid/origin/contracts-registry_inheritance.mmd deleted file mode 100644 index 8c17d3ce..00000000 --- a/docs/mermaid/origin/contracts-registry_inheritance.mmd +++ /dev/null @@ -1,10 +0,0 @@ -graph TD; - RegistryInterface-->Registry; - Chaingeareable-->Registry; - ERC721Token/OZ-->Registry; - SplitPaymentChangeable-->Registry; - SplitPayment/OZ-->SplitPaymentChangeable; - RegistryPermissionControl-->Chaingeareable; - - Pausable/OZ-->RegistryPermissionControl; - Ownable/OZ-->SplitPaymentChangeable; diff --git a/docs/mermaid/origin/pipelines-chaingear_tokenized.mmd b/docs/mermaid/origin/pipelines-chaingear_tokenized.mmd index ea69a933..2d0c855d 100644 --- a/docs/mermaid/origin/pipelines-chaingear_tokenized.mmd +++ b/docs/mermaid/origin/pipelines-chaingear_tokenized.mmd @@ -2,28 +2,28 @@ sequenceDiagram participant 721 as Chaingear's ERC721 participant U1 as User 1 participant CC as Chaingear - participant R as Registry + participant R as Database, ID 0 participant U2 as User 2 - U1->>+CC: registerRegistry - CC-->721: mint ID=0 to=User1 - CC-->>-U1: returns Registry address, Registry Token ID ID=0 - Note over 721, CC: Initializing ERC721 Registry token for User 1 in Chaingear,
creates new Registry and sets User 1 as Registry administrator + U1->>+CC: createDatabase + CC-->721: mint token ID = 0 to = User1 + CC-->>-U1: return Database address, Database Token ID = 0 + Note over 721, CC: Initializing ERC721 Database token for User 1 in Chaingear,
creates new Database and sets User 1 as Database administrator - U1->>+CC: transferFrom to=User2 - CC-->>R: transferAdminRights to=User2 + U1->>+CC: transferFrom to = User2 + CC-->>R: transferAdminRights to = User2 CC-->721: removeTokenFrom User1 CC-->-721: addTokenTo User2 - Note over 721, R: Chaingear transfers token from User 1 to User 2 and also as owner of Registry sets
User 2 as administrator + Note over 721, R: Chaingear transfers token from User 1 to User 2 and also sets User 2 as administrator - U2->>+CC: registryInfo ID=0 - CC-->>-U2: returns Registry metainfromation + U2->>+CC: getDatabase ID = 0 + CC-->>-U2: returns Database metainfromation U2->>+R: updateEntryCreationFee - Note over U2, R: User 2 as admin now may set fees
for entry creation in Registry + Note over U2, R: User 2 as admin now may set fees
for entry creation in Database - U2->>+CC: unregisterRegistry ID=0 - CC-->>R: transferOwnership to=User2 - CC-->>-721: burn ID=0 - Note over 721, U2: User unregisters registry from chaingear and burns their token and getting after that owner control to Registry contract.
Chaingear only deletes associated structure, burns token and transfers ownership. + U2->>+CC: deleteDatabase ID = 0 + CC-->>R: transferOwnership to = User2 + CC-->>-721: burn ID = 0 + Note over 721, U2: User deletes Database from chaingear and burns their token and getting after that owner control to Database contract.
Chaingear only deletes associated structure, burns token and transfers ownership. diff --git a/docs/mermaid/origin/pipelines-database_crud.mmd b/docs/mermaid/origin/pipelines-database_crud.mmd new file mode 100644 index 00000000..74ab6342 --- /dev/null +++ b/docs/mermaid/origin/pipelines-database_crud.mmd @@ -0,0 +1,54 @@ +sequenceDiagram + participant A as Admin + participant S as Database's Safe + participant R as Database + participant EC as Storage + participant U1 as User 1 + participant 721 as Database's ERC721 + participant U2 as User 2 + participant U3 as User 3/Funder + + A->>+R: initializeDatabase + R-->>EC: constructor + R-->>-A: returns EntryCore address + Note over A, EC: User sets smart-contract with their custom Schema for Database, should implements ISchema + + A->>R: updateCreateEntryPermissionGroup + Note over A, R: Available OnlyAdmin, Whitelist, AllUsers groups + + U1->>+R: createEntry + R-->>EC: createEntry ID = 0 + R-->721: mint ID = 0 + R-->>-U1: returns entryID ID = 0 + Note over U1, R: Creates new entry object and entry meta and initializes
associated token + + U1->>EC: updateEntry ID = 0 + Note over U2, EC: User 1 as token owner sets fields of Entry object
with provided EntryID + + U1->>+EC: entryInfo ID=0 + EC-->>-U1: returns entry information + + U1->>+R: transferFrom FROM = U1 TO = U2 ID = 0 + R-->721: removeTokenFrom ID = 0 FROM = U1 + R-->-721: addTokenTo ID = 0 TO = U2 + Note over U1, R: Transfer token to new owner + + U2->>EC: updateEntry ID = 0 + Note over U2, EC: User 2 as token owner sets fields of Entry object
with provided EntryID + + U3->>+EC: entryInfo ID = 0 + EC-->>-U3: returns entry information + + U3->>+R: fundEntry ID = 0 funds = 1ETH + R-->>-S: transfer = 1ETH + Note over S, U2: Funded ETHs goes to Database's Safe contract, ETHs adds to balance and amount for accounting stores in Database in EntryMeta. + + U2->>+R: claimEntryFund claim = 1ETH + R-->>S: claim = 1ETH + S-->>-U2: transfer = 1ETH + Note over S, U2: Owner of Entry claim funds and Database checks balance for existing claim amount, subtract them in Entry meta, calls
Database's Safe to send funds to User. + + U2->>+R: deleteEntry ID = 0 + R-->721: burn ID = 0 + R-->>-EC: deleteEntry ID = 0 + Note over R, U2: Database burns associated to Entry NFT token and deletes entry object in EntryCore. diff --git a/docs/mermaid/origin/pipelines-general_pipeline.mmd b/docs/mermaid/origin/pipelines-general_pipeline.mmd index 8e566f46..bbe76cb0 100644 --- a/docs/mermaid/origin/pipelines-general_pipeline.mmd +++ b/docs/mermaid/origin/pipelines-general_pipeline.mmd @@ -2,15 +2,15 @@ sequenceDiagram participant C721 as Chaingear's ERC721 participant O as Chaingear Owner participant CC as Chaingear Contract - participant RC as Registry Creator + participant RC as Database Builder participant U1 as User 1 - participant R as Registry - participant S as Registry Safe - participant EC as Entry Core - participant R721 as Registry's ERC721 + participant R as Database + participant S as Database's Safe + participant EC as Database's Storage + participant R721 as Database's ERC721 O->>RC: constructor - Note over O, RC: Initializing with Registry V1 smart-contract + Note over O, RC: Initializing with DatabaseV1 smart-contract O->>CC: constructor Note over O, RC: Also Initializing of ERC721 and SplitPayment @@ -18,27 +18,27 @@ sequenceDiagram O->>RC: setBuilder Note over O, RC: Set chaingear's contract address as builder - O->>CC: addRegistryCreatorVersion - Note over O, CC: Add RegistryCreator address to inner
library of creators + O->>CC: addDatabaseBuilderVersion + Note over O, CC: Add DatabaseBuilderV1 address to
list of database builders - U1->>+CC: registerRegistry + U1->>+CC: createDatabase CC-->>RC: create RC-->>R: constructor - RC-->>CC: returns Registry address + RC-->>CC: returns Database address R-->>S: new - CC-->C721: mint ID=0 - CC-->>-U1: returns Registry address, Registry Token ID ID=0 - Note over R, CC: Initializing ERC721 Registry token for User, creates Registry and sets User as Registry admin + CC-->C721: mint ID = 0 + CC-->>-U1: returns Database address, Database Token ID ID =0 + Note over R, CC: Initializing ERC721 Database token for User, creates Database and sets User as Database admin - U1->>+R: initializeRegistry + U1->>+R: initializeDatabase R-->>EC: constructor - R-->>-U1: returns EntryCore address - Note over U1, EC: User sets smart-contract with their custom data structure for registry, should implements
RegistryInterface + R-->>-U1: returns Storage address + Note over U1, EC: User sets smart-contract with their custom Schema for Database, should implements
ISchema U1->>+R: createEntry R-->>EC: createEntry - R-->R721: mint ID=0 - R-->>-U1: returns entryID ID=0 + R-->R721: mint ID = 0 + R-->>-U1: returns entryID ID = 0 Note over U1, EC: Initializing ERC721 Entry token for User, creates empty structured object U1->>EC: updateEntry ID=0 diff --git a/docs/mermaid/origin/pipelines-registry_crud.mmd b/docs/mermaid/origin/pipelines-registry_crud.mmd deleted file mode 100644 index 596ddd02..00000000 --- a/docs/mermaid/origin/pipelines-registry_crud.mmd +++ /dev/null @@ -1,56 +0,0 @@ -sequenceDiagram - participant A as Admin - participant S as Registry Safe - participant R as Registry - participant EC as Entry Core - participant U1 as User 1 - participant 721 as Registry's ERC721 - participant U2 as User 2 - participant U3 as User 3/Funder - - A->>+R: initializeRegistry - R-->>EC: constructor - R-->>-A: returns EntryCore address - Note over A, EC: User sets smart-contract with their custom data structure for registry, should
implements RegistryInterface - - A->>R: updateCreateEntryPermissionGroup - Note over A, R: Available OnlyAdmin, Whitelist*, AllUsers groups - - U1->>+R: createEntry - R-->>EC: createEntry - R-->721: mint ID=0 - R-->>-U1: returns entryID ID=0 - Note over U1, R: Creates new entry object and entry meta and initializes
associated token - - U1->>EC: updateEntry ID=0 - Note over U2, EC: User 1 as token owner sets fields of Entry object
with provided EntryID - - U1->>+EC: entryInfo ID=0 - EC-->>-U1: returns entry information - - U1->>+R: transferFrom ID=0 - R-->721: removeTokenFrom ID=0 - R-->-721: addTokenTo ID=0 - Note over U1, R: Transfer token to new owner - - U2->>EC: updateEntry ID=0 - Note over U2, EC: User 1 as token owner sets fields of Entry object
with provided EntryID - - U3->>+EC: entryInfo ID=0 - EC-->>-U3: returns entry information - - U3->>+R: fundEntry ID=0 funds=1ETH - R-->>EC: updateEntryFund +1ETH - R-->>-S: transfer =1ETH - Note over S, U2: Funded ETHs goes to Registry Safe contract, ETHs adds to balance and amount for accounting stores in Registry. - - U2->>+R: claimEntryFund claim=1ETH - R-->>EC: claimEntryFund -1ETH - R-->>S: claim =1ETH - S-->>-U2: transfer =1ETH - Note over S, U2: Owner of Entry claim funds and registry checks balance for existing claim amount, subtract them, calls Registry Safe
to send funds to User. - - U2->>+R: deleteEntry - R-->721: burn ID=0 - R-->>-EC: deleteEntry - Note over R, U2: Registry burns associated to Entry NFT token and deletes entry object in EntryCore. diff --git a/docs/mermaid/pipelines-chaingear_tokenized.svg b/docs/mermaid/pipelines-chaingear_tokenized.svg index 4740131d..2036b826 100644 --- a/docs/mermaid/pipelines-chaingear_tokenized.svg +++ b/docs/mermaid/pipelines-chaingear_tokenized.svg @@ -1,4 +1,4 @@ -Chaingear's ERC721User 1ChaingearDatabase, ID 0User 2createDatabasemint token ID = 0 to = User1return Database address, Database Token ID = 0Initializing ERC721 Database token for User 1 in Chaingear, creates new Database and sets User 1 as Database administratortransferFrom to = User2transferAdminRights to = User2removeTokenFrom User1addTokenTo User2Chaingear transfers token from User 1 to User 2 and also sets User 2 as administratorgetDatabase ID = 0returns Database metainfromationupdateEntryCreationFeeUser 2 as admin now may set fees for entry creation in DatabasedeleteDatabase ID = 0transferOwnership to = User2burn ID = 0User deletes Database from chaingear and burns their token and getting after that owner control to Database contract. Chaingear only deletes associated structure, burns token and transfers ownership.Chaingear's ERC721User 1ChaingearDatabase, ID 0User 2 \ No newline at end of file diff --git a/docs/mermaid/pipelines-database_crud.svg b/docs/mermaid/pipelines-database_crud.svg new file mode 100644 index 00000000..316fff33 --- /dev/null +++ b/docs/mermaid/pipelines-database_crud.svg @@ -0,0 +1,4 @@ +Database's ERC721AdminDatabase's SafeDatabaseStorageUser 1User 2User 3/FunderinitializeDatabaseconstructorreturns EntryCore addressUser sets smart-contract with their custom Schema for Database, should implements ISchemaupdateCreateEntryPermissionGroupAvailable OnlyAdmin, Whitelist, AllUsers groupscreateEntrycreateEntry ID = 0mint ID = 0returns entryID ID = 0Creates new entry object and entry meta and initializes associated tokenupdateEntry ID = 0User 1 as token owner sets fields of Entry object with provided EntryIDentryInfo ID=0returns entry informationtransferFrom FROM = U1 TO = U2 ID = 0removeTokenFrom ID = 0 FROM = U1addTokenTo ID = 0 TO = U2Transfer token to new ownerupdateEntry ID = 0User 2 as token owner sets fields of Entry object with provided EntryIDentryInfo ID = 0returns entry informationfundEntry ID = 0 funds = 1ETHtransfer = 1ETHFunded ETHs goes to Database's Safe contract, ETHs adds to balance and amount for accounting stores in Database in EntryMeta.claimEntryFund claim = 1ETHclaim = 1ETHtransfer = 1ETHOwner of Entry claim funds and Database checks balance for existing claim amount, subtract them in Entry meta, calls Database's Safe to send funds to User.deleteEntry ID = 0burn ID = 0deleteEntry ID = 0Database burns associated to Entry NFT token and deletes entry object in EntryCore.Database's ERC721AdminDatabase's SafeDatabaseStorageUser 1User 2User 3/Funder \ No newline at end of file diff --git a/docs/mermaid/pipelines-general_pipeline.svg b/docs/mermaid/pipelines-general_pipeline.svg index 8b7648c6..40304b79 100644 --- a/docs/mermaid/pipelines-general_pipeline.svg +++ b/docs/mermaid/pipelines-general_pipeline.svg @@ -1,4 +1,4 @@ -Chaingear's ERC721Chaingear OwnerChaingear ContractDatabase BuilderUser 1DatabaseDatabase's SafeDatabase's StorageDatabase's ERC721 constructorInitializing with DatabaseV1 smart-contractconstructorAlso Initializing of ERC721 and SplitPaymentsetBuilderSet chaingear's contract address as builderaddDatabaseBuilderVersionAdd DatabaseBuilderV1 address to list of database builderscreateDatabasecreateconstructorreturns Database addressnewmint ID = 0returns Database address, Database Token ID ID =0Initializing ERC721 Database token for User, creates Database and sets User as Database admininitializeDatabaseconstructorreturns Storage addressUser sets smart-contract with their custom Schema for Database, should implements ISchemacreateEntrycreateEntrymint ID = 0returns entryID ID = 0Initializing ERC721 Entry token for User, creates empty structured objectupdateEntry ID=0User as token owner sets fields of Entry object with provided EntryIDentryInfo ID=0returns entry informationChaingear's ERC721Chaingear OwnerChaingear ContractDatabase BuilderUser 1DatabaseDatabase's SafeDatabase's StorageDatabase's ERC721 \ No newline at end of file diff --git a/docs/mermaid/pipelines-registry_crud.svg b/docs/mermaid/pipelines-registry_crud.svg deleted file mode 100644 index 979b44ea..00000000 --- a/docs/mermaid/pipelines-registry_crud.svg +++ /dev/null @@ -1,4 +0,0 @@ -Registry's ERC721AdminRegistry SafeRegistryEntry CoreUser 1User 2User 3/FunderinitializeRegistryconstructorreturns EntryCore addressUser sets smart-contract with their custom data structure for registry, should implements RegistryInterfaceupdateCreateEntryPermissionGroupAvailable OnlyAdmin, Whitelist*, AllUsers groupscreateEntrycreateEntrymint ID=0returns entryID ID=0Creates new entry object and entry meta and initializes associated tokenupdateEntry ID=0User 1 as token owner sets fields of Entry object with provided EntryIDentryInfo ID=0returns entry informationtransferFrom ID=0removeTokenFrom ID=0addTokenTo ID=0Transfer token to new ownerupdateEntry ID=0User 1 as token owner sets fields of Entry object with provided EntryIDentryInfo ID=0returns entry informationfundEntry ID=0 funds=1ETHupdateEntryFund +1ETHtransfer =1ETHFunded ETHs goes to Registry Safe contract, ETHs adds to balance and amount for accounting stores in Registry.claimEntryFund claim=1ETHclaimEntryFund -1ETHclaim =1ETHtransfer =1ETHOwner of Entry claim funds and registry checks balance for existing claim amount, subtract them, calls Registry Safe to send funds to User.deleteEntryburn ID=0deleteEntryRegistry burns associated to Entry NFT token and deletes entry object in EntryCore.Registry's ERC721AdminRegistry SafeRegistryEntry CoreUser 1User 2User 3/Funder \ No newline at end of file diff --git a/docs/overview.md b/docs/overview.md index a52341dc..dbd0ae5d 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -1,23 +1,23 @@ # Overview -This project allows you to create your own Registry of general purpose entries on Ethereum blockchain. +This project allows you to create your own Database of general purpose entries on Ethereum blockchain. Entry type is defined during creation, so you can put into entry any custom logic you want (validation, entry-level permission control). Entries are tokenized as NFT. -Your creating your registry in Chaingear - metaregistry, which are one point of access to all registries. Registries on chaingear level are tokenized as NFT. Chaingear is most expensive registry, so you should pay for your registry creation. +Your creating your database in Chaingear - metadatabase, which are one point of access to all databases. Databases on chaingear level are tokenized as NFT. Chaingear is most expensive database, so you should pay for your database and entry creation. # Features #### Chaingear -1. Metaregistry with Registries entries, where each entry are ERC721 token -2. Fee-based Registry creation -3. Creating Registries with different functionality -4. Token-based ownership/administration for Registry -5. Funding in ETH for Registries +1. Metadatabase with Databases entries, where each entry are ERC721 token +2. Fee-based Database creation +3. Creating Databases with different functionality +4. Token-based ownership/administration for Database +5. Funding in ETH for Database -#### Custom registry +#### Custom database -1. Custom data structure for Registry (EntryCore) +1. Custom data structure for Database (Schema) 2. Each Entry is ERC721 token 3. Fee-based Entry creation 4. Token-based ownership Entry management @@ -27,6 +27,6 @@ Your creating your registry in Chaingear - metaregistry, which are one point of 1. Web3/Metamask/Truffle/IPFS based 2. Full Chaingear control interface -3. Full custom Registry control interface -4. Simple smart-contract EntryCore code generation in client -5. Registries ABI and metainformation savings in IPFS +3. Full custom Database control interface +4. Schema smart-contract code generation and deploying on client +5. Databases ABI and metainformation savings in IPFS diff --git a/docs/pipelines.md b/docs/pipelines.md index fc1c659a..c9e51026 100644 --- a/docs/pipelines.md +++ b/docs/pipelines.md @@ -1,8 +1,8 @@ -## General Chaingear/Registry pipeline +## General Chaingear/Database pipeline ![general_pipeline](mermaid/pipelines-general_pipeline.svg) -## Registry CRUD/tokenized Entry/Funds pipeline -![registry_crud](mermaid/pipelines-registry_crud.svg) +## Database CRUD/tokenized Entry/Funds pipeline +![registry_crud](mermaid/pipelines-database_crud.svg) -## Chaingear tokenized Registries pipeline +## Chaingear tokenized Database pipeline ![chaingear_tokenized](mermaid/pipelines-chaingear_tokenized.svg) diff --git a/docs/remix/concat_contracts.sh b/docs/remix/concat_contracts.sh index 5881d390..019d6e7c 100755 --- a/docs/remix/concat_contracts.sh +++ b/docs/remix/concat_contracts.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -truffle-flattener ../../contracts/registry/Registry.sol ../../contracts/chaingear/Chaingear.sol ../../contracts/registry/EntryCore.sol > contracts_full.sol +truffle-flattener ../../contracts/databases/DatabaseV1.sol ../../contracts/chaingear/Chaingear.sol ../../contracts/schemas/TeamSchema.sol ../../contracts/builders/DatabaseBuilderV1.sol > contracts_full.sol diff --git a/docs/remix/contracts_full.sol b/docs/remix/contracts_full.sol index f4a8acee..13382f81 100644 --- a/docs/remix/contracts_full.sol +++ b/docs/remix/contracts_full.sol @@ -1,4 +1,76 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; + +// File: openzeppelin-solidity/contracts/introspection/ERC165.sol + +/** + * @title ERC165 + * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md + */ +interface ERC165 { + + /** + * @notice Query if a contract implements an interface + * @param _interfaceId The interface identifier, as specified in ERC-165 + * @dev Interface identification is specified in ERC-165. This function + * uses less than 30,000 gas. + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool); +} + +// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol + +/** + * @title SupportsInterfaceWithLookup + * @author Matt Condon (@shrugs) + * @dev Implements ERC165 using a lookup table. + */ +contract SupportsInterfaceWithLookup is ERC165 { + + bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; + /** + * 0x01ffc9a7 === + * bytes4(keccak256('supportsInterface(bytes4)')) + */ + + /** + * @dev a mapping of interface id to whether or not it's supported + */ + mapping(bytes4 => bool) internal supportedInterfaces; + + /** + * @dev A contract implementing SupportsInterfaceWithLookup + * implement ERC165 itself + */ + constructor() + public + { + _registerInterface(InterfaceId_ERC165); + } + + /** + * @dev implement supportsInterface(bytes4) using a lookup table + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool) + { + return supportedInterfaces[_interfaceId]; + } + + /** + * @dev private method for registering an interface + */ + function _registerInterface(bytes4 _interfaceId) + internal + { + require(_interfaceId != 0xffffffff); + supportedInterfaces[_interfaceId] = true; + } +} // File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol @@ -6,23 +78,76 @@ pragma solidity 0.4.24; * @title ERC721 Non-Fungible Token Standard basic interface * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721Basic { - event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); - event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); - event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); +contract ERC721Basic is ERC165 { + + bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd; + /* + * 0x80ac58cd === + * bytes4(keccak256('balanceOf(address)')) ^ + * bytes4(keccak256('ownerOf(uint256)')) ^ + * bytes4(keccak256('approve(address,uint256)')) ^ + * bytes4(keccak256('getApproved(uint256)')) ^ + * bytes4(keccak256('setApprovalForAll(address,bool)')) ^ + * bytes4(keccak256('isApprovedForAll(address,address)')) ^ + * bytes4(keccak256('transferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) + */ + + bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79; + /* + * 0x4f558e79 === + * bytes4(keccak256('exists(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63; + /** + * 0x780e9d63 === + * bytes4(keccak256('totalSupply()')) ^ + * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ + * bytes4(keccak256('tokenByIndex(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f; + /** + * 0x5b5e139f === + * bytes4(keccak256('name()')) ^ + * bytes4(keccak256('symbol()')) ^ + * bytes4(keccak256('tokenURI(uint256)')) + */ + + event Transfer( + address indexed _from, + address indexed _to, + uint256 indexed _tokenId + ); + event Approval( + address indexed _owner, + address indexed _approved, + uint256 indexed _tokenId + ); + event ApprovalForAll( + address indexed _owner, + address indexed _operator, + bool _approved + ); function balanceOf(address _owner) public view returns (uint256 _balance); function ownerOf(uint256 _tokenId) public view returns (address _owner); function exists(uint256 _tokenId) public view returns (bool _exists); function approve(address _to, uint256 _tokenId) public; - function getApproved(uint256 _tokenId) public view returns (address _operator); + function getApproved(uint256 _tokenId) + public view returns (address _operator); function setApprovalForAll(address _operator, bool _approved) public; - function isApprovedForAll(address _owner, address _operator) public view returns (bool); + function isApprovedForAll(address _owner, address _operator) + public view returns (bool); function transferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; + function safeTransferFrom(address _from, address _to, uint256 _tokenId) + public; + function safeTransferFrom( address _from, address _to, @@ -40,7 +165,14 @@ contract ERC721Basic { */ contract ERC721Enumerable is ERC721Basic { function totalSupply() public view returns (uint256); - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId); + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256 _tokenId); + function tokenByIndex(uint256 _index) public view returns (uint256); } @@ -50,8 +182,8 @@ contract ERC721Enumerable is ERC721Basic { * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Metadata is ERC721Basic { - function name() public view returns (string _name); - function symbol() public view returns (string _symbol); + function name() external view returns (string _name); + function symbol() external view returns (string _symbol); function tokenURI(uint256 _tokenId) public view returns (string); } @@ -68,29 +200,37 @@ contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers - * from ERC721 asset contracts. + * from ERC721 asset contracts. */ contract ERC721Receiver { /** * @dev Magic value to be returned upon successful reception of an NFT - * Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`, + * Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`, * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` */ - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; + bytes4 internal constant ERC721_RECEIVED = 0x150b7a02; /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient - * after a `safetransfer`. This function MAY throw to revert and reject the - * transfer. This function MUST use 50,000 gas or less. Return of other - * than the magic value MUST result in the transaction being reverted. - * Note: the contract address is always the message sender. - * @param _from The sending address - * @param _tokenId The NFT identifier which is being transfered + * after a `safetransfer`. This function MAY throw to revert and reject the + * transfer. Return of other than the magic value MUST result in the + * transaction being reverted. + * Note: the contract address is always the message sender. + * @param _operator The address which called `safeTransferFrom` function + * @param _from The address which previously owned the token + * @param _tokenId The NFT identifier which is being transferred * @param _data Additional data with no specified format - * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` + * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ - function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4); + function onERC721Received( + address _operator, + address _from, + uint256 _tokenId, + bytes _data + ) + public + returns(bytes4); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol @@ -104,39 +244,43 @@ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ - function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { - if (a == 0) { + function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + // Gas optimization: this is cheaper than asserting 'a' not being zero, but the + // benefit is lost if 'b' is also tested. + // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 + if (_a == 0) { return 0; } - c = a * b; - assert(c / a == b); + + c = _a * _b; + assert(c / _a == _b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ - function div(uint256 a, uint256 b) internal pure returns (uint256) { - // assert(b > 0); // Solidity automatically throws when dividing by 0 - // uint256 c = a / b; - // assert(a == b * c + a % b); // There is no case in which this doesn't hold - return a / b; + function div(uint256 _a, uint256 _b) internal pure returns (uint256) { + // assert(_b > 0); // Solidity automatically throws when dividing by 0 + // uint256 c = _a / _b; + // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold + return _a / _b; } /** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; + function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { + assert(_b <= _a); + return _a - _b; } /** * @dev Adds two numbers, throws on overflow. */ - function add(uint256 a, uint256 b) internal pure returns (uint256 c) { - c = a + b; - assert(c >= a); + function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + c = _a + _b; + assert(c >= _a); return c; } } @@ -151,11 +295,11 @@ library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, - * as the code is not actually created until after the constructor finishes. - * @param addr address to check + * as the code is not actually created until after the constructor finishes. + * @param _addr address to check * @return whether the target address is a contract */ - function isContract(address addr) internal view returns (bool) { + function isContract(address _addr) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. @@ -163,7 +307,8 @@ library AddressUtils { // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. - assembly { size := extcodesize(addr) } // solium-disable-line security/no-inline-assembly + // solium-disable-next-line security/no-inline-assembly + assembly { size := extcodesize(_addr) } return size > 0; } @@ -175,13 +320,14 @@ library AddressUtils { * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721BasicToken is ERC721Basic { +contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic { + using SafeMath for uint256; using AddressUtils for address; - // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` + // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; + bytes4 private constant ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) internal tokenOwner; @@ -195,22 +341,12 @@ contract ERC721BasicToken is ERC721Basic { // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) internal operatorApprovals; - /** - * @dev Guarantees msg.sender is owner of the given token - * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender - */ - modifier onlyOwnerOf(uint256 _tokenId) { - require(ownerOf(_tokenId) == msg.sender); - _; - } - - /** - * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator - * @param _tokenId uint256 ID of the token to validate - */ - modifier canTransfer(uint256 _tokenId) { - require(isApprovedOrOwner(msg.sender, _tokenId)); - _; + constructor() + public + { + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721); + _registerInterface(InterfaceId_ERC721Exists); } /** @@ -236,7 +372,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Returns whether the specified token exists - * @param _tokenId uint256 ID of the token to query the existance of + * @param _tokenId uint256 ID of the token to query the existence of * @return whether the token exists */ function exists(uint256 _tokenId) public view returns (bool) { @@ -246,9 +382,9 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Approves another address to transfer the given token ID - * @dev The zero address indicates there is no approved address. - * @dev There can only be one approved address per token at a given time. - * @dev Can only be called by the token owner or an approved operator. + * The zero address indicates there is no approved address. + * There can only be one approved address per token at a given time. + * Can only be called by the token owner or an approved operator. * @param _to address to be approved for the given token ID * @param _tokenId uint256 ID of the token to be approved */ @@ -257,16 +393,14 @@ contract ERC721BasicToken is ERC721Basic { require(_to != owner); require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); - if (getApproved(_tokenId) != address(0) || _to != address(0)) { - tokenApprovals[_tokenId] = _to; - emit Approval(owner, _to, _tokenId); - } + tokenApprovals[_tokenId] = _to; + emit Approval(owner, _to, _tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * @param _tokenId uint256 ID of the token to query the approval of - * @return address currently approved for a the given token ID + * @return address currently approved for the given token ID */ function getApproved(uint256 _tokenId) public view returns (address) { return tokenApprovals[_tokenId]; @@ -274,7 +408,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Sets or unsets the approval of a given operator - * @dev An operator is allowed to transfer all tokens of the sender on their behalf + * An operator is allowed to transfer all tokens of the sender on their behalf * @param _to operator address to set the approval * @param _approved representing the status of the approval to be set */ @@ -290,19 +424,33 @@ contract ERC721BasicToken is ERC721Basic { * @param _operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ - function isApprovedForAll(address _owner, address _operator) public view returns (bool) { + function isApprovedForAll( + address _owner, + address _operator + ) + public + view + returns (bool) + { return operatorApprovals[_owner][_operator]; } /** * @dev Transfers the ownership of a given token ID to another address - * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible - * @dev Requires the msg sender to be the owner, approved, or operator + * Usage of this method is discouraged, use `safeTransferFrom` whenever possible + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred */ - function transferFrom(address _from, address _to, uint256 _tokenId) public canTransfer(_tokenId) { + function transferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + { + require(isApprovedOrOwner(msg.sender, _tokenId)); require(_from != address(0)); require(_to != address(0)); @@ -315,11 +463,12 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred @@ -330,7 +479,6 @@ contract ERC721BasicToken is ERC721Basic { uint256 _tokenId ) public - canTransfer(_tokenId) { // solium-disable-next-line arg-overflow safeTransferFrom(_from, _to, _tokenId, ""); @@ -338,11 +486,11 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred @@ -355,7 +503,6 @@ contract ERC721BasicToken is ERC721Basic { bytes _data ) public - canTransfer(_tokenId) { transferFrom(_from, _to, _tokenId); // solium-disable-next-line arg-overflow @@ -369,14 +516,28 @@ contract ERC721BasicToken is ERC721Basic { * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ - function isApprovedOrOwner(address _spender, uint256 _tokenId) internal view returns (bool) { + function isApprovedOrOwner( + address _spender, + uint256 _tokenId + ) + internal + view + returns (bool) + { address owner = ownerOf(_tokenId); - return _spender == owner || getApproved(_tokenId) == _spender || isApprovedForAll(owner, _spender); + // Disable solium check because of + // https://github.com/duaraghav8/Solium/issues/175 + // solium-disable-next-line operator-whitespace + return ( + _spender == owner || + getApproved(_tokenId) == _spender || + isApprovedForAll(owner, _spender) + ); } /** * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists + * Reverts if the given token ID already exists * @param _to The address that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ @@ -388,7 +549,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist + * Reverts if the token does not exist * @param _tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address _owner, uint256 _tokenId) internal { @@ -399,7 +560,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to clear current approval of a given token ID - * @dev Reverts if the given address is not indeed the owner of the token + * Reverts if the given address is not indeed the owner of the token * @param _owner owner of the token * @param _tokenId uint256 ID of the token to be transferred */ @@ -407,7 +568,6 @@ contract ERC721BasicToken is ERC721Basic { require(ownerOf(_tokenId) == _owner); if (tokenApprovals[_tokenId] != address(0)) { tokenApprovals[_tokenId] = address(0); - emit Approval(_owner, address(0), _tokenId); } } @@ -435,7 +595,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to invoke `onERC721Received` on a target address - * @dev The call is not executed if the target address is not a contract + * The call is not executed if the target address is not a contract * @param _from address representing the previous owner of the given token ID * @param _to target address that will receive the tokens * @param _tokenId uint256 ID of the token to be transferred @@ -454,7 +614,8 @@ contract ERC721BasicToken is ERC721Basic { if (!_to.isContract()) { return true; } - bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data); + bytes4 retval = ERC721Receiver(_to).onERC721Received( + msg.sender, _from, _tokenId, _data); return (retval == ERC721_RECEIVED); } } @@ -467,7 +628,8 @@ contract ERC721BasicToken is ERC721Basic { * Moreover, it includes approve all functionality using operator terminology * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721Token is ERC721, ERC721BasicToken { +contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 { + // Token name string internal name_; @@ -475,7 +637,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { string internal symbol_; // Mapping from owner to list of owned token IDs - mapping (address => uint256[]) internal ownedTokens; + mapping(address => uint256[]) internal ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) internal ownedTokensIndex; @@ -492,16 +654,20 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Constructor function */ - function ERC721Token(string _name, string _symbol) public { + constructor(string _name, string _symbol) public { name_ = _name; symbol_ = _symbol; + + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721Enumerable); + _registerInterface(InterfaceId_ERC721Metadata); } /** * @dev Gets the token name * @return string representing the token name */ - function name() public view returns (string) { + function name() external view returns (string) { return name_; } @@ -509,13 +675,13 @@ contract ERC721Token is ERC721, ERC721BasicToken { * @dev Gets the token symbol * @return string representing the token symbol */ - function symbol() public view returns (string) { + function symbol() external view returns (string) { return symbol_; } /** * @dev Returns an URI for a given token ID - * @dev Throws if the token ID does not exist. May return an empty string. + * Throws if the token ID does not exist. May return an empty string. * @param _tokenId uint256 ID of the token to query */ function tokenURI(uint256 _tokenId) public view returns (string) { @@ -529,7 +695,14 @@ contract ERC721Token is ERC721, ERC721BasicToken { * @param _index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256) { + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256) + { require(_index < balanceOf(_owner)); return ownedTokens[_owner][_index]; } @@ -544,7 +717,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Gets the token ID at a given index of all the tokens in this contract - * @dev Reverts if the index is greater or equal to the total number of tokens + * Reverts if the index is greater or equal to the total number of tokens * @param _index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ @@ -555,7 +728,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Internal function to set the token URI for a given token - * @dev Reverts if the token ID does not exist + * Reverts if the token ID does not exist * @param _tokenId uint256 ID of the token to set its URI * @param _uri string URI to assign */ @@ -584,24 +757,27 @@ contract ERC721Token is ERC721, ERC721BasicToken { function removeTokenFrom(address _from, uint256 _tokenId) internal { super.removeTokenFrom(_from, _tokenId); + // To prevent a gap in the array, we store the last token in the index of the token to delete, and + // then delete the last slot. uint256 tokenIndex = ownedTokensIndex[_tokenId]; uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); uint256 lastToken = ownedTokens[_from][lastTokenIndex]; ownedTokens[_from][tokenIndex] = lastToken; - ownedTokens[_from][lastTokenIndex] = 0; + // This also deletes the contents at the last position of the array + ownedTokens[_from].length--; + // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping // the lastToken to the first position, and then dropping the element placed in the last position of the list - ownedTokens[_from].length--; ownedTokensIndex[_tokenId] = 0; ownedTokensIndex[lastToken] = tokenIndex; } /** * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists + * Reverts if the given token ID already exists * @param _to address the beneficiary that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ @@ -614,7 +790,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist + * Reverts if the token does not exist * @param _owner owner of the token to burn * @param _tokenId uint256 ID of the token being burned by the msg.sender */ @@ -661,7 +837,7 @@ contract SplitPayment { /** * @dev Constructor */ - function SplitPayment(address[] _payees, uint256[] _shares) public payable { + constructor(address[] _payees, uint256[] _shares) public payable { require(_payees.length == _shares.length); for (uint256 i = 0; i < _payees.length; i++) { @@ -672,7 +848,7 @@ contract SplitPayment { /** * @dev payable fallback */ - function () public payable {} + function () external payable {} /** * @dev Claim your share of the balance. @@ -683,7 +859,11 @@ contract SplitPayment { require(shares[payee] > 0); uint256 totalReceived = address(this).balance.add(totalReleased); - uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]); + uint256 payment = totalReceived.mul( + shares[payee]).div( + totalShares).sub( + released[payee] + ); require(payment != 0); require(address(this).balance >= payment); @@ -710,283 +890,419 @@ contract SplitPayment { } } -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol +// File: contracts/common/IDatabase.sol -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; +interface IDatabase { + + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns (address, address, uint256, uint256, uint256, uint256); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getInterfaceEntriesContract() external view returns (string); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function transferAdminRights(address) external; + function transferOwnership(address) external; + function getAdmin() external view returns (address); +} +// File: contracts/common/IDatabaseBuilder.sol - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); +interface IDatabaseBuilder { + + function deployDatabase( + address[], + uint256[], + string, + string + ) external returns (IDatabase); + function setChaingearAddress(address) external; + function getChaingearAddress() external view returns (address); + function getOwner() external view returns (address); +} +// File: contracts/common/IChaingear.sol - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - function Ownable() public { - owner = msg.sender; - } +interface IChaingear { + + function addDatabaseBuilderVersion( + string, + IDatabaseBuilder, + string, + string + ) external; + function updateDatabaseBuilderDescription(string, string) external; + function createDatabase( + string, + address[], + uint256[], + string, + string + ) external payable returns (address, uint256); + function deleteDatabase(uint256) external; + function fundDatabase(uint256) external payable; + function claimDatabaseFunds(uint256, uint256) external; + function updateCreationFee(uint256) external; + function getAmountOfBuilders() external view returns (uint256); + function getBuilderById(uint256) external view returns(string); + function getDatabaseBuilder(string) external view returns(address, string, string); + function getDatabasesIDs() external view returns (uint256[]); + function getDatabaseIDByAddress(address) external view returns (uint256); + function getDatabase(uint256) external view returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ); + function getDatabaseBalance(uint256) external view returns (uint256, uint256); + function getChaingearDescription() external pure returns (string); + function getSafeBalance() external view returns (uint256); + function getSafeAddress() external view returns (address); + function getNameExist(string) external view returns (bool); + function getSymbolExist(string) external view returns (bool); +} - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } +// File: contracts/common/ISchema.sol - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } +interface ISchema { + function createEntry() external; + function deleteEntry(uint256) external; } -// File: contracts/common/SplitPaymentChangeable.sol +// File: contracts/common/Safe.sol -contract SplitPaymentChangeable is SplitPayment, Ownable { +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract Safe { + + address private owner; - event PayeeAddressChanged( - uint payeeIndex, - address oldAddress, - address newAddress - ); + constructor() public + { + owner = msg.sender; + } - constructor( - address[] _payees, - uint256[] _shares - ) - public - payable - SplitPayment(_payees, _shares) - { } + function() external payable { + require(msg.sender == owner); + } - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) + function claim(address _entryOwner, uint256 _amount) external - onlyOwner { - address oldAddress = payees[_payeeIndex]; - - shares[_newAddress] = shares[oldAddress]; - released[_newAddress] = released[oldAddress]; - payees[_payeeIndex] = _newAddress; - - delete shares[oldAddress]; - delete released[oldAddress]; + require(msg.sender == owner); + require(_amount <= address(this).balance); + require(_entryOwner != address(0)); + + _entryOwner.transfer(_amount); + } - emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); + function getOwner() + external + view + returns(address) + { + return owner; } } -// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol +// File: openzeppelin-solidity/contracts/ownership/Ownable.sol /** - * @title Pausable - * @dev Base contract which allows children to implement an emergency stop mechanism. + * @title Ownable + * @dev The Ownable contract has an owner address, and provides basic authorization control + * functions, this simplifies the implementation of "user permissions". */ -contract Pausable is Ownable { - event Pause(); - event Unpause(); +contract Ownable { + address public owner; - bool public paused = false; + + event OwnershipRenounced(address indexed previousOwner); + event OwnershipTransferred( + address indexed previousOwner, + address indexed newOwner + ); /** - * @dev Modifier to make a function callable only when the contract is not paused. + * @dev The Ownable constructor sets the original `owner` of the contract to the sender + * account. */ - modifier whenNotPaused() { - require(!paused); - _; + constructor() public { + owner = msg.sender; } /** - * @dev Modifier to make a function callable only when the contract is paused. + * @dev Throws if called by any account other than the owner. */ - modifier whenPaused() { - require(paused); + modifier onlyOwner() { + require(msg.sender == owner); _; } /** - * @dev called by the owner to pause, triggers stopped state + * @dev Allows the current owner to relinquish control of the contract. + * @notice Renouncing to ownership will leave the contract without an owner. + * It will not be possible to call the functions with the `onlyOwner` + * modifier anymore. */ - function pause() onlyOwner whenNotPaused public { - paused = true; - emit Pause(); + function renounceOwnership() public onlyOwner { + emit OwnershipRenounced(owner); + owner = address(0); } /** - * @dev called by the owner to unpause, returns to normal state + * @dev Allows the current owner to transfer control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. */ - function unpause() onlyOwner whenPaused public { - paused = false; - emit Unpause(); + function transferOwnership(address _newOwner) public onlyOwner { + _transferOwnership(_newOwner); + } + + /** + * @dev Transfers control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function _transferOwnership(address _newOwner) internal { + require(_newOwner != address(0)); + emit OwnershipTransferred(owner, _newOwner); + owner = _newOwner; } } -// File: contracts/registry/RegistryPermissionControl.sol +// File: contracts/databases/DatabasePermissionControl.sol + +// import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; + + /** -* @title RegistryPermissionControl contract +* @title Chaingear - the novel Ethereum database framework * @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! +* @notice not audited, not recommend to use in mainnet */ -contract RegistryPermissionControl is Pausable { +contract DatabasePermissionControl is Ownable { /* * Storage */ - // @dev - address internal admin; + enum CreateEntryPermissionGroup {OnlyAdmin, Whitelist, AllUsers} + + address private admin; + bool public paused = false; + + mapping(address => bool) private whitelist; + + CreateEntryPermissionGroup private permissionGroup = CreateEntryPermissionGroup.OnlyAdmin; + + /* + * Modifiers + */ + + modifier whenNotPaused() { + require(!paused); + _; + } + + modifier whenPaused() { + require(paused); + _; + } + + /* + * Events + */ + + event Pause(); + event Unpause(); - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} + /* + * Constructor + */ - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; + constructor() + public + { } /* * Modifiers */ - // @dev Controls access granted only to admin modifier onlyAdmin() { require(msg.sender == admin); _; } - // @dev Controls access to entry creation granted by setted permission group modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { + if (permissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { require(msg.sender == admin); + } else if (permissionGroup == CreateEntryPermissionGroup.Whitelist) { + require(whitelist[msg.sender] == true || msg.sender == admin); } _; } /* - * View functions + * External functions */ - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() + function pause() external - view - returns (address) + onlyAdmin + whenNotPaused { - return admin; + paused = true; + emit Pause(); } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() + + function unpause() external - view - returns (uint8) + onlyAdmin + whenPaused { - return uint8(createEntryPermissionGroup); + paused = false; + emit Unpause(); } - /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) - */ - function transferAdminRights( - address _newAdmin - ) - public + function transferAdminRights(address _newAdmin) + external onlyOwner whenNotPaused { - require(_newAdmin != 0x0); + require(_newAdmin != address(0)); admin = _newAdmin; } - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup + CreateEntryPermissionGroup _newPermissionGroup ) - public + external + onlyAdmin + whenNotPaused + { + require(CreateEntryPermissionGroup.AllUsers >= _newPermissionGroup); + permissionGroup = _newPermissionGroup; + } + + function addToWhitelist(address _address) + external + onlyAdmin + whenNotPaused + { + whitelist[_address] = true; + } + + function removeFromWhitelist(address _address) + external onlyAdmin whenNotPaused { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); + whitelist[_address] = false; } + function getAdmin() + external + view + returns (address) + { + return admin; + } + + function getRegistryPermissions() + external + view + returns (CreateEntryPermissionGroup) + { + return permissionGroup; + } + + function checkWhitelisting(address _address) + external + view + returns (bool) + { + return whitelist[_address]; + } } -// File: contracts/registry/Chaingeareable.sol +// File: contracts/databases/DatabaseV1.sol /** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet */ -contract Chaingeareable is RegistryPermissionControl { +contract DatabaseV1 is IDatabase, DatabasePermissionControl, SupportsInterfaceWithLookup, SplitPayment, ERC721Token { + + using SafeMath for uint256; /* * Storage */ - // @dev entry creation fee - uint internal entryCreationFee; + bytes4 constant internal INTERFACE_SCHEMA_ID = 0x153366ed; + bytes4 constant internal INTERFACE_DATABASE_ID = 0xfdb63525; + + // @dev Metadata of entry, holds ownership data and funding info + struct EntryMeta { + address creator; + uint256 createdAt; + uint256 lastUpdateTime; + uint256 currentWei; + uint256 accumulatedWei; + } + + EntryMeta[] private entriesMeta; - // @dev registry description string - string internal registryDescription; + uint256 private headTokenID = 0; + uint256 private entryCreationFeeWei = 0; - // @dev registry tags - bytes32[] internal registryTags; + bytes32[] private databaseTags; + string private databaseDescription; - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; + string private linkToSchemaABI; // will be depricated + string private schemaDefinition; // and changed for this - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; + Safe private databaseSafe; + + ISchema private entriesStorage; + bool private databaseInitStatus = false; - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; - /* * Modifiers */ - - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); + + modifier onlyOwnerOf(uint256 _entryID){ + require(ownerOf(_entryID) == msg.sender); + _; + } + + modifier databaseInitialized { + require(databaseInitStatus == true); _; } @@ -994,1438 +1310,1158 @@ contract Chaingeareable is RegistryPermissionControl { * Events */ - // @dev Signals that new entry-token added to Registry event EntryCreated( - uint entryID, + uint256 entryID, address creator ); - // @dev Signals that entry-token changed owner event EntryChangedOwner( - uint entryID, + uint256 entryID, address newOwner ); - // @dev Signals that entry-token deleted event EntryDeleted( - uint entryID, + uint256 entryID, address owner ); - // @dev Signals that entry-token funded with given amount event EntryFunded( - uint entryID, + uint256 entryID, address funder, - uint amount + uint256 amount ); - // @dev Signals that entry-token funds claimed by owner with given amount event EntryFundsClaimed( - uint entryID, - address owner, - uint amount + uint256 entryID, + address claimer, + uint256 amount ); - /** - * External Functions + /* + * Constructor */ - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee + constructor( + address[] _beneficiaries, + uint256[] _shares, + string _name, + string _symbol ) + ERC721Token (_name, _symbol) + SplitPayment (_beneficiaries, _shares) + public + payable + { + _registerInterface(INTERFACE_DATABASE_ID); + databaseSafe = new Safe(); + } + + function() external payable {} + + /* + * External functions + */ + + function createEntry() external - onlyAdmin + databaseInitialized + onlyPermissionedToCreateEntries + whenNotPaused + payable + returns (uint256) + { + require(msg.value == entryCreationFeeWei); + + EntryMeta memory meta = (EntryMeta( + { + lastUpdateTime: block.timestamp, + createdAt: block.timestamp, + creator: msg.sender, + currentWei: 0, + accumulatedWei: 0 + })); + entriesMeta.push(meta); + + uint256 newTokenID = headTokenID; + super._mint(msg.sender, newTokenID); + headTokenID = headTokenID.add(1); + + emit EntryCreated(newTokenID, msg.sender); + + entriesStorage.createEntry(); + + return newTokenID; + } + + function auth(uint256 _entryID, address _caller) + external + whenNotPaused { - entryCreationFee = _fee; + require(msg.sender == address(entriesStorage)); + require(ownerOf(_entryID) == _caller); + uint256 entryIndex = allTokensIndex[_entryID]; + entriesMeta[entryIndex].lastUpdateTime = block.timestamp; } - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription - ) + function deleteEntry(uint256 _entryID) external - onlyAdmin + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused { - uint len = bytes(_registryDescription).length; - require(len <= 256); + uint256 entryIndex = allTokensIndex[_entryID]; + require(entriesMeta[entryIndex].currentWei == 0); + + uint256 lastEntryIndex = entriesMeta.length.sub(1); + EntryMeta memory lastEntry = entriesMeta[lastEntryIndex]; + + entriesMeta[entryIndex] = lastEntry; + delete entriesMeta[lastEntryIndex]; + entriesMeta.length--; + + super._burn(msg.sender, _entryID); + emit EntryDeleted(_entryID, msg.sender); + + entriesStorage.deleteEntry(entryIndex); + } - registryDescription = _registryDescription; + function fundEntry(uint256 _entryID) + external + databaseInitialized + whenNotPaused + payable + { + require(exists(_entryID) == true); + + uint256 entryIndex = allTokensIndex[_entryID]; + uint256 currentWei = entriesMeta[entryIndex].currentWei.add(msg.value); + entriesMeta[entryIndex].currentWei = currentWei; + + uint256 accumulatedWei = entriesMeta[entryIndex].accumulatedWei.add(msg.value); + entriesMeta[entryIndex].accumulatedWei = accumulatedWei; + + emit EntryFunded(_entryID, msg.sender, msg.value); + address(databaseSafe).transfer(msg.value); } - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) + function claimEntryFunds(uint256 _entryID, uint256 _amount) + external + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused + { + uint256 entryIndex = allTokensIndex[_entryID]; + + uint256 currentWei = entriesMeta[entryIndex].currentWei; + require(_amount <= currentWei); + entriesMeta[entryIndex].currentWei = currentWei.sub(_amount); + + emit EntryFundsClaimed(_entryID, msg.sender, _amount); + databaseSafe.claim(msg.sender, _amount); + } + + function updateEntryCreationFee(uint256 _newFee) external onlyAdmin + whenPaused { - require(_tag.length <= 16); - registryTags.push(_tag); + entryCreationFeeWei = _newFee; } - - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) + + function updateDatabaseDescription(string _newDescription) + external + onlyAdmin + { + databaseDescription = _newDescription; + } + + function addDatabaseTag(bytes32 _tag) external onlyAdmin { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); - - registryTags[_index] = _tag; + require(databaseTags.length < 16); + databaseTags.push(_tag); } - - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) + + function updateDatabaseTag(uint8 _index, bytes32 _tag) external onlyAdmin { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; + require(_index < databaseTags.length); + + databaseTags[_index] = _tag; + } - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; + function removeDatabaseTag(uint8 _index) + external + onlyAdmin + { + require(databaseTags.length > 0); + require(_index < databaseTags.length); + + uint256 lastTagIndex = databaseTags.length.sub(1); + bytes32 lastTag = databaseTags[lastTagIndex]; + + databaseTags[_index] = lastTag; + databaseTags[lastTagIndex] = ""; + databaseTags.length--; } - /** + /* * View functions */ - - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ + + function readEntryMeta(uint256 _entryID) + external + view + returns ( + address, + address, + uint256, + uint256, + uint256, + uint256 + ) + { + require(exists(_entryID) == true); + uint256 entryIndex = allTokensIndex[_entryID]; + + EntryMeta memory m = entriesMeta[entryIndex]; + return( + ownerOf(_entryID), + m.creator, + m.createdAt, + m.lastUpdateTime, + m.currentWei, + m.accumulatedWei + ); + } + + function getChaingearID() + external + view + returns(uint256) + { + return IChaingear(owner).getDatabaseIDByAddress(address(this)); + } + + function getEntriesIDs() + external + view + returns (uint256[]) + { + return allTokens; + } + + function getIndexByID(uint256 _entryID) + external + view + returns (uint256) + { + require(exists(_entryID) == true); + return allTokensIndex[_entryID]; + } + + function getEntryCreationFee() + external + view + returns (uint256) + { + return entryCreationFeeWei; + } + function getEntriesStorage() external view returns (address) { - return entriesStorage; + return address(entriesStorage); } - - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI - */ - function getInterfaceEntriesContract() + + function getInterfaceEntriesContract() // will be depricated external view returns (string) { - return linkToABIOfEntriesContract; + return linkToSchemaABI; } - - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() + + function getSchemaDefinition() // and migrated to this with determinated ABI external view - returns (uint) + returns (string) { - return address(this).balance; + return schemaDefinition; } - - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() + + function getDatabaseBalance() external view - returns (uint) + returns (uint256) { - return entryCreationFee; + return address(this).balance; } - - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() + + function getDatabaseDescription() external view returns (string) { - return registryDescription; + return databaseDescription; } - - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() + + function getDatabaseTags() external view returns (bytes32[]) { - return registryTags; + return databaseTags; } - - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() + + function getDatabaseSafe() external view returns (address) { - return registrySafe; + return databaseSafe; } - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ function getSafeBalance() external view - returns (uint balance) + returns (uint256) { - return address(registrySafe).balance; + return address(databaseSafe).balance; } - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() + function getDatabaseInitStatus() external view returns (bool) { - return registryInitStatus; + return databaseInitStatus; } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: contracts/common/RegistryInterface.sol - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} - -// File: contracts/common/Safe.sol - -/** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! -*/ -contract Safe { - address public owner; - - constructor() - public - payable - { - owner = msg.sender; - } - - /** - * @dev Allows direct send only by owner. - */ - function() - external - payable - { - require(msg.sender == owner); - } - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) - external - { - require(msg.sender == owner); - require(_amount <= address(this).balance); - require(_entryOwner != 0x0); - _entryOwner.transfer(_amount); - } - -} - -// File: contracts/registry/Registry.sol - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { - - using SafeMath for uint256; - - /* - * Storage + * Public functions */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; - } - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) + function initializeDatabase(string _linkToABI, bytes _schemaBytecode) public - payable + onlyAdmin + returns (address) { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } + require(databaseInitStatus == false); + address deployedAddress; + + assembly { + let s := mload(_schemaBytecode) + let p := add(_schemaBytecode, 0x20) + deployedAddress := create(0, p, s) + } - function() public payable {} + require(deployedAddress != address(0)); + require(SupportsInterfaceWithLookup(deployedAddress).supportsInterface(INTERFACE_SCHEMA_ID)); + entriesStorage = ISchema(deployedAddress); - /* - * External functions - */ + linkToSchemaABI = _linkToABI; + databaseInitStatus = true; - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() - external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) - { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); - - return newEntryID; + return deployedAddress; } - - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); - } - + function transferFrom( address _from, address _to, uint256 _tokenId ) public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) - external - registryInitialized + databaseInitialized whenNotPaused - payable { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); - } - - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ + super.transferFrom(_from, _to, _tokenId); + } - function getEntryMeta( - uint256 _entryID + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId ) - external - view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) + public + databaseInitialized + whenNotPaused { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH + super.safeTransferFrom( + _from, + _to, + _tokenId, + "" ); } - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) - external - view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data ) public - onlyAdmin - returns (address) + databaseInitialized + whenNotPaused { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; + transferFrom(_from, _to, _tokenId); + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); } - } -// File: openzeppelin-solidity/contracts/lifecycle/Destructible.sol +// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol /** - * @title Destructible - * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. + * @title Pausable + * @dev Base contract which allows children to implement an emergency stop mechanism. */ -contract Destructible is Ownable { +contract Pausable is Ownable { + event Pause(); + event Unpause(); + + bool public paused = false; - function Destructible() public payable { } /** - * @dev Transfers the current balance to the owner and terminates the contract. + * @dev Modifier to make a function callable only when the contract is not paused. */ - function destroy() onlyOwner public { - selfdestruct(owner); + modifier whenNotPaused() { + require(!paused); + _; } - function destroyAndSend(address _recipient) onlyOwner public { - selfdestruct(_recipient); + /** + * @dev Modifier to make a function callable only when the contract is paused. + */ + modifier whenPaused() { + require(paused); + _; + } + + /** + * @dev called by the owner to pause, triggers stopped state + */ + function pause() public onlyOwner whenNotPaused { + paused = true; + emit Pause(); + } + + /** + * @dev called by the owner to unpause, returns to normal state + */ + function unpause() public onlyOwner whenPaused { + paused = false; + emit Unpause(); } } -// File: contracts/chaingear/RegistryBase.sol +// File: contracts/chaingear/Chaingear.sol /** -* @title RegistryBase contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Contracts which holds logic and struct of data witch describes registry metainformation which -* associated with token, provides views function for registry metainformation. -* @notice not recommend to use before release! +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet */ +contract Chaingear is IChaingear, SupportsInterfaceWithLookup, Pausable, SplitPayment, ERC721Token { -//todo rename: we have RegistryBase and RegistryInterface -contract RegistryBase { + using SafeMath for uint256; /* * Storage */ - - // @dev Sctruct which describes registry metainformation with balance state and status - struct RegistryMeta { - address contractAddress; - address creator; - string version; - string linkABI; - uint registrationTimestamp; - uint256 currentRegistryBalanceETH; - uint256 accumulatedRegistryETH; + + struct DatabaseMeta { + IDatabase databaseContract; + address creatorOfDatabase; + string versionOfDatabase; + string linkABI; + uint256 createdTimestamp; + uint256 currentWei; + uint256 accumulatedWei; } + struct DatabaseBuilder { + IDatabaseBuilder builderAddress; + string linkToABI; + string description; + } + + DatabaseMeta[] private databases; + mapping(string => bool) private databasesNamesIndex; + mapping(string => bool) private databasesSymbolsIndex; - // @dev Array of registries data - RegistryMeta[] internal registries; + uint256 private headTokenID = 0; + mapping(address => uint256) private databasesIDsByAddressesIndex; + + uint256 private amountOfBuilders = 0; + mapping(uint256 => string) private buildersVersionIndex; + mapping(string => DatabaseBuilder) private buildersVersion; + + Safe private chaingearSafe; + uint256 private databaseCreationFeeWei = 1 finney; - /* - * Events - */ + string constant private CHAINGEAR_DESCRIPTION = "The novel Ethereum database framework"; + bytes4 constant internal INTERFACE_CHAINGEAR_ID = 0x2163c5ed; + bytes4 constant internal INTERFACE_DATABASE_ID = 0xfdb63525; + bytes4 constant internal INTERFACE_DATABASE_BUILDER_ID = 0xce8bbf93; + /* + * Events + */ - // @dev Events witch signals that new Registry registered - event RegistryRegistered( - string name, - address registryAddress, - address creator, - uint registryID + event DatabaseCreated( + string name, + address databaseAddress, + address creatorAddress, + uint256 databaseChaingearID ); - // @dev Events witch signals that Registry adminship transferred - // @notice that also means associated token transferred too - event RegistryChangedOwner( - address caller, - uint256 registyID, - address newOwner + event DatabaseFunded( + uint256 databaseID, + address sender, + uint256 amount ); - // @dev Events witch signals that Registry unregistered from Chaingear - // @notice adminship of Registry transfers from Chaingear to Admin - event RegistryUnregistered( - address admin, - string name + event DatabaseFundsClaimed( + uint256 databaseID, + address claimer, + uint256 amount ); - /* - * External Functions - */ - - /** - * @dev Registy metainfo getter - * @param _registryID uint256 Registry ID, associated ERC721 token ID - * @return string Registy name - * @return string Registy symbol - * @return address Registy address - * @return address Registy creator address - * @return string Registy version - * @return uint Registy creation timestamp - * @return address Registy admin address + /* + * Constructor */ - function registryInfo( - uint256 _registryID + + constructor( + address[] _beneficiaries, + uint256[] _shares ) - external - view - returns ( - string, - string, - address, - address, - string, - uint, - address - ) + public + ERC721Token ("CHAINGEAR", "CHG") + SplitPayment (_beneficiaries, _shares) { - address contractAddress = registries[_registryID].contractAddress; - - return ( - RegistryInterface(contractAddress).name(), - RegistryInterface(contractAddress).symbol(), - contractAddress, - registries[_registryID].creator, - registries[_registryID].version, - registries[_registryID].registrationTimestamp, - RegistryInterface(contractAddress).getAdmin() - ); + chaingearSafe = new Safe(); + _registerInterface(INTERFACE_CHAINGEAR_ID); } - /** - * @dev Registy funding stats getter - * @param _registryID uint256 Registry ID - * @return uint Registy current balance in wei, which stored in Safe - * @return uint Registy total accumulated balance in wei - */ - function registryBalanceInfo( - uint256 _registryID - ) - external - view - returns ( - uint256, - uint256 - ) - { - return ( - registries[_registryID].currentRegistryBalanceETH, - registries[_registryID].accumulatedRegistryETH - ); - } - - /** - * @dev Registies amount getter - * @return uint256 amounts of Registries + /* + * Fallback */ - function registriesAmount() - external - view - returns (uint256) - { - return registries.length; - } -} - -// File: contracts/chaingear/ChaingearCore.sol - -/** -* @title Chaingear core contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ - -contract ChaingearCore is RegistryBase, Destructible, Pausable { - - /* - * Storage - */ - - // @dev Mapping which allow control of name uniqueness in metaregistry - mapping(string => bool) internal registryNamesIndex; - // @dev Mapping which allow control of symbol uniqueness in metaregistry - mapping(string => bool) internal registrySymbolsIndex; - - // @dev Short Chaingear's description, less than 128 symbols - string internal chaingearDescription; - - // @dev Amount that registrys creator should pay for registry creation/registring - uint internal registryRegistrationFee; - - // @dev Address of contract where their funds allocates - address internal chaingearSafe; - - // @dev mapping with address of registry creators with different code base of registries - mapping (string => address) internal registryAddresses; - - // @dev mapping with ipfs links to json with ABI of different registries - mapping (string => string) internal registryABIsLinks; - - // @dev mapping description of different registries types/versions - mapping (string => string) internal registryDescriptions; + function() external payable {} /* - * Events + * Modifiers */ - - // @dev Signals that given Registry funded - event RegistryFunded( - uint registryID, - address sender, - uint amount - ); - // @dev Signals that given Registry funds claimed by their admin - event RegistryFundsClaimed( - uint registryID, - address claimer, - uint amout - ); + modifier onlyOwnerOf(uint256 _databaseID){ + require(ownerOf(_databaseID) == msg.sender); + _; + } /* - * External Functions - */ - - /** - * @dev Provides funcitonality for adding fabrics of different kind of registries - * @param _nameOfVersion string which represents name of registry type/version - * @param _addressRegistryCreator address of registry creator/fabric - * @param _link string which represents IPFS hash to JSON with ABI of registry - * @param _description string which resprent info about registry fabric type - * @notice Only owner of metaregistry/chaingear allowed to add fabrics + * External functions */ - function addRegistryCreatorVersion( - string _nameOfVersion, - address _addressRegistryCreator, - string _link, - string _description + + function addDatabaseBuilderVersion( + string _version, + IDatabaseBuilder _builderAddress, + string _linkToABI, + string _description ) external onlyOwner + whenNotPaused { - require(registryAddresses[_nameOfVersion] == 0x0); - registryAddresses[_nameOfVersion] = _addressRegistryCreator; - registryABIsLinks[_nameOfVersion] = _link; - registryDescriptions[_nameOfVersion] = _description; + require(buildersVersion[_version].builderAddress == address(0)); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_builderAddress); + require(support.supportsInterface(INTERFACE_DATABASE_BUILDER_ID)); + + buildersVersion[_version] = (DatabaseBuilder( + { + builderAddress: _builderAddress, + linkToABI: _linkToABI, + description: _description + })); + buildersVersionIndex[amountOfBuilders] = _version; + amountOfBuilders = amountOfBuilders.add(1); } - - /* - * External Functions - */ - - /** - * @dev Chaingear' registry creation/registration fee setter - * @param _newFee uint new fee amount - * @notice Only owner of metaregistry/chaingear allowed to set fee - */ - function updateRegistrationFee( - uint _newFee + + function updateDatabaseBuilderDescription( + string _version, + string _description ) external onlyOwner + whenNotPaused { - registryRegistrationFee = _newFee; + require(buildersVersion[_version].builderAddress != address(0)); + buildersVersion[_version].description = _description; } - /** - * @dev Chaingear' description setter - * @param _description string with new description - * @notice description should be less than 128 symbols - * @notice Only owner of metaregistry/chaingear allowed to change description - */ - function updateDescription( - string _description + function createDatabase( + string _version, + address[] _beneficiaries, + uint256[] _shares, + string _name, + string _symbol ) external - onlyOwner + payable + whenNotPaused + returns (address, uint256) { - uint len = bytes(_description).length; - require(len <= 256); + require(buildersVersion[_version].builderAddress != address(0)); + require(databaseCreationFeeWei == msg.value); + require(databasesNamesIndex[_name] == false); + require(databasesSymbolsIndex[_symbol] == false); - chaingearDescription = _description; + return deployDatabase( + _version, + _beneficiaries, + _shares, + _name, + _symbol + ); + } + + function deleteDatabase(uint256 _databaseID) + external + onlyOwnerOf(_databaseID) + whenNotPaused + { + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase database = databases[databaseIndex].databaseContract; + require(database.getSafeBalance() == uint256(0)); + + string memory databaseName = ERC721(database).name(); + string memory databaseSymbol = ERC721(database).symbol(); + databasesNamesIndex[databaseName] = false; + databasesSymbolsIndex[databaseSymbol] = false; + + uint256 lastDatabaseIndex = databases.length.sub(1); + DatabaseMeta memory lastDatabase = databases[lastDatabaseIndex]; + databases[databaseIndex] = lastDatabase; + delete databases[lastDatabaseIndex]; + databases.length--; + + super._burn(msg.sender, _databaseID); + database.transferOwnership(msg.sender); } + + function fundDatabase(uint256 _databaseID) + external + whenNotPaused + payable + { + require(exists(_databaseID) == true); + uint256 databaseIndex = allTokensIndex[_databaseID]; + + uint256 currentWei = databases[databaseIndex].currentWei.add(msg.value); + databases[databaseIndex].currentWei = currentWei; + + uint256 accumulatedWei = databases[databaseIndex].accumulatedWei.add(msg.value); + databases[databaseIndex].accumulatedWei = accumulatedWei; - /* - * View Functions - */ + emit DatabaseFunded(_databaseID, msg.sender, msg.value); + address(chaingearSafe).transfer(msg.value); + } + + function claimDatabaseFunds(uint256 _databaseID, uint256 _amount) + external + onlyOwnerOf(_databaseID) + whenNotPaused + { + uint256 databaseIndex = allTokensIndex[_databaseID]; + + uint256 currentWei = databases[databaseIndex].currentWei; + require(_amount <= currentWei); + + databases[databaseIndex].currentWei = currentWei.sub(_amount); + + emit DatabaseFundsClaimed(_databaseID, msg.sender, _amount); + chaingearSafe.claim(msg.sender, _amount); + } - /** - * @dev Allows get information about given version of registry fabric - * @param _nameOfVersion address which represents name of registry type - * @return _addressRegistryCreator address of registry fabric for this version - * @return _link string which represents IPFS hash to JSON with ABI of registry - * @return _description string which resprent info about this registry + function updateCreationFee(uint256 _newFee) + external + onlyOwner + whenPaused + { + databaseCreationFeeWei = _newFee; + } + + /* + * Views */ - function getRegistryCreatorInfo( - string _nameOfVersion - ) + + function getAmountOfBuilders() external view - returns ( - address _addressRegistryCreator, - string _link, - string _description - ) + returns(uint256) { - return( - registryAddresses[_nameOfVersion], - registryABIsLinks[_nameOfVersion], - registryDescriptions[_nameOfVersion] - ); + return amountOfBuilders; } - - /** - * @dev Chaingear description getter - * @return string description of Chaingear - */ - function getDescription() + + function getBuilderById(uint256 _id) external view - returns (string) + returns(string) { - return chaingearDescription; + return buildersVersionIndex[_id]; } - - /** - * @dev Chaingear registration fee getter - * @return uint amount of fee in wei - */ - function getRegistrationFee() + + function getDatabaseBuilder(string _version) external view - returns (uint) + returns ( + address, + string, + string + ) { - return registryRegistrationFee; + return( + buildersVersion[_version].builderAddress, + buildersVersion[_version].linkToABI, + buildersVersion[_version].description + ); } - /** - * @dev Safe balence getter - * @return uint amount of fee in wei - */ - function getSafeBalance() + function getDatabasesIDs() external view - returns (uint) + returns (uint256[]) { - return address(chaingearSafe).balance; + return allTokens; } - /** - * @dev Safe contract address getter - * @return uint amount of fee in wei - */ - function getSafe() + function getDatabaseIDByAddress(address _databaseAddress) external view - returns (address) + returns(uint256) + { + uint256 id = databasesIDsByAddressesIndex[_databaseAddress]; + require(exists(id) == true); + return id; + } + + function getDatabase(uint256 _databaseID) + external + view + returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ) { - return chaingearSafe; + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase databaseAddress = databases[databaseIndex].databaseContract; + + return ( + ERC721(databaseAddress).name(), + ERC721(databaseAddress).symbol(), + databaseAddress, + databases[databaseIndex].versionOfDatabase, + databases[databaseIndex].createdTimestamp, + databaseAddress.getAdmin(), + ERC721(databaseAddress).totalSupply() + ); } -} - -// File: contracts/chaingear/RegistryCreator.sol - -/** -* @title Registry Creator engine/fabric -* @author cyber•Congress -* @dev Allows to Chaingear contract as builder create new Registries -* @dev with codebase which imported and deployed with this fabric -* @notice not recommend to use before release! -*/ -contract RegistryCreator is Ownable { - /* - * @dev Storage - */ - - // @dev Holds address of contract which can call creation, means Chaingear - address internal builder; - - /* - * @dev Constructor - */ - - /** - * @dev Contructor of RegistryCreators - * @notice setting 0x0, then allows to owner to set builder/Chaingear - * @notice after deploying needs to set up builder/Chaingear address - */ - constructor() - public + function getDatabaseBalance(uint256 _databaseID) + external + view + returns (uint256, uint256) { - builder = 0x0; + uint256 databaseIndex = allTokensIndex[_databaseID]; + + return ( + databases[databaseIndex].currentWei, + databases[databaseIndex].accumulatedWei + ); } - /** - * @dev Disallows direct send by settings a default function without the `payable` flag. - */ - function() external {} - - /* - * @dev External Functions - */ - - /** - * @dev Allows chaingear (builder) create new registry - * @param _benefitiaries address[] array of beneficiaries addresses - * @param _shares uint256[] array of shares amont ot each beneficiary - * @param _name string name of Registry and token - * @param _symbol string symbol of Registry and token - * @return address Address of new initialized Registry - */ - function create( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) + function getChaingearDescription() external - returns (address) + pure + returns (string) { - require(msg.sender == builder); - - address registryContract = new Registry( - _benefitiaries, - _shares, - _name, - _symbol - ); - //Fabric as owner transfers ownership to Chaingear contract after creation - Registry(registryContract).transferOwnership(builder); - - return registryContract; + return CHAINGEAR_DESCRIPTION; } - /** - * @dev Registry builder setter, owners sets Chaingear address - * @param _builder address - */ - function setBuilder( - address _builder - ) + function getCreationFeeWei() external - onlyOwner + view + returns (uint256) { - require(_builder != 0x0); - builder = _builder; + return databaseCreationFeeWei; } - - /* - * View Functions - */ - - /** - * @dev RegistryCreator's builder getter - * @return address of setted Registry builder (Chaingear contract) - */ - function getRegistryBuilder() + + function getSafeBalance() external view - returns (address) + returns (uint256) { - return builder; + return address(chaingearSafe).balance; } -} - -// File: contracts/chaingear/Chaingear.sol - -/** -* @title Chaingear - the most expensive database -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Main metaregistry contract -* @notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries -* @notice where each registry are ERC721. -* @notice not recommend to use before release! -*/ -contract Chaingear is SplitPaymentChangeable, ChaingearCore, ERC721Token { - - using SafeMath for uint256; - - /* - * Constructor - */ - - /** - * @dev Chaingear constructor - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _description string description of Chaingear - * @param _registrationFee uint Fee for registry creation, wei - * @param _chaingearName string Chaingear's name, use for chaingear's ERC721 - * @param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721 - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _description, - uint _registrationFee, - string _chaingearName, - string _chaingearSymbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_chaingearName, _chaingearSymbol) - public + + function getSafeAddress() + external + view + returns (address) { - registryRegistrationFee = _registrationFee; - chaingearDescription = _description; - // Only chaingear as owner can transfer either to and out from Safe - chaingearSafe = new Safe(); + return chaingearSafe; } - function() public payable {} + function getNameExist(string _name) + external + view + returns (bool) + { + return databasesNamesIndex[_name]; + } - /* - * External functions - */ - - /** - * @dev Add and tokenize registry with specified parameters. - * @dev Registration fee is required to send with tx. - * @dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry - * @param _version version of registry from which Registry will be boostrapped - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function registerRegistry( - string _version, - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) + function getSymbolExist(string _symbol) external - payable - whenNotPaused - returns ( - address, - uint256 - ) + view + returns (bool) { - require(registryAddresses[_version] != 0x0); - require(registryRegistrationFee == msg.value); - - //checking uniqueness of name AND symbol of NFT in metaregistry - require(registryNamesIndex[_name] == false); - require(registrySymbolsIndex[_symbol] == false); - - return createRegistry( - _version, - _benefitiaries, - _shares, - _name, - _symbol - ); + return databasesSymbolsIndex[_symbol]; } + /* + * Public functions + */ + function transferFrom( address _from, address _to, uint256 _tokenId ) public - canTransfer(_tokenId) + whenNotPaused { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); + super.transferFrom(_from, _to, _tokenId); - address registryAddress = registries[_tokenId].contractAddress; - RegistryInterface(registryAddress).transferAdminRights(_to); - - emit Transfer(_from, _to, _tokenId); + uint256 databaseIndex = allTokensIndex[_tokenId]; + IDatabase databaseAddress = databases[databaseIndex].databaseContract; + databaseAddress.transferAdminRights(_to); } - - /** - * @dev Allows to unregister Registry from Chaingear - * @dev Only possible when safe of Registry is empty - * @dev Burns associated registry token and transfer Registry adminship to current token owner - * @param _registryID uint256 Registry-token ID - */ - function unregisterRegistry( - uint256 _registryID - ) - external - onlyOwnerOf(_registryID) - whenNotPaused - { - address registryAddress = registries[_registryID].contractAddress; - require(RegistryInterface(registryAddress).getSafeBalance() == 0); - - uint256 registryIndex = allTokensIndex[_registryID]; - uint256 lastRegistryIndex = registries.length.sub(1); - RegistryMeta storage lastRegistry = registries[lastRegistryIndex]; - - registries[registryIndex] = lastRegistry; - delete registries[lastRegistryIndex]; - registries.length--; - - _burn(msg.sender, _registryID); - - string memory registryName = RegistryInterface(registryAddress).name(); - emit RegistryUnregistered(msg.sender, registryName); - - //Sets current admin as owner of registry, transfers full control - RegistryInterface(registryAddress).transferOwnership(msg.sender); - } - /** - * @dev Gets funding and allocate funds of Registry to Chaingear's Safe - * @param _registryID uint256 Registry-token ID - */ - function fundRegistry( - uint256 _registryID + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId ) - external + public whenNotPaused - payable { - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.add(msg.value); - registries[_registryID].accumulatedRegistryETH = registries[_registryID].accumulatedRegistryETH.add(msg.value); - - emit RegistryFunded(_registryID, msg.sender, msg.value); - - chaingearSafe.transfer(msg.value); + super.safeTransferFrom( + _from, + _to, + _tokenId, + "" + ); } - /** - * @dev Gets funding and allocate funds of Registry to Safe - * @param _registryID uint256 Registry-token ID - * @param _amount uint256 Amount which admin of registry claims - */ - function claimEntryFunds( - uint256 _registryID, - uint256 _amount + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data ) - external - onlyOwnerOf(_registryID) + public whenNotPaused { - require(_amount <= registries[_registryID].currentRegistryBalanceETH); - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.sub(_amount); - - emit RegistryFundsClaimed(_registryID, msg.sender, _amount); + transferFrom(_from, _to, _tokenId); - Safe(chaingearSafe).claim(msg.sender, _amount); + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); } /* * Private functions */ - /** - * @dev Private function for registry creation - * @dev Pass Registry params and bytecode to RegistryCreator to current builder - * @param _version version of registry code which added to chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares to benefitiaries - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function createRegistry( - string _version, - address[] _benefitiaries, + function deployDatabase( + string _version, + address[] _beneficiaries, uint256[] _shares, - string _name, - string _symbol + string _name, + string _symbol ) private - returns ( - address, - uint256 - ) - { - address registryContract = RegistryCreator(registryAddresses[_version]).create( - _benefitiaries, + returns (address, uint256) + { + IDatabaseBuilder builder = buildersVersion[_version].builderAddress; + IDatabase databaseContract = builder.deployDatabase( + _beneficiaries, _shares, _name, _symbol ); - RegistryMeta memory registry = (RegistryMeta( + address databaseAddress = address(databaseContract); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(databaseAddress); + require(support.supportsInterface(INTERFACE_DATABASE_ID)); + require(support.supportsInterface(InterfaceId_ERC721)); + require(support.supportsInterface(InterfaceId_ERC721Metadata)); + require(support.supportsInterface(InterfaceId_ERC721Enumerable)); + + DatabaseMeta memory database = (DatabaseMeta( { - contractAddress: registryContract, - creator: msg.sender, - version: _version, - linkABI: registryABIsLinks[_version], - registrationTimestamp: block.timestamp, - currentRegistryBalanceETH: 0, - accumulatedRegistryETH: 0 + databaseContract: databaseContract, + creatorOfDatabase: msg.sender, + versionOfDatabase: _version, + linkABI: buildersVersion[_version].linkToABI, // delete this + createdTimestamp: block.timestamp, + currentWei: 0, + accumulatedWei: 0 })); - uint256 registryID = registries.push(registry) - 1; - _mint(msg.sender, registryID); + databases.push(database); - registryNamesIndex[_name] = true; - registrySymbolsIndex[_symbol] = true; + databasesNamesIndex[_name] = true; + databasesSymbolsIndex[_symbol] = true; - emit RegistryRegistered(_name, registryContract, msg.sender, registryID); + uint256 newTokenID = headTokenID; + databasesIDsByAddressesIndex[databaseAddress] = newTokenID; + super._mint(msg.sender, newTokenID); + headTokenID = headTokenID.add(1); - //Metaregistry as owner sets creator as admin of Registry - RegistryInterface(registryContract).transferAdminRights(msg.sender); - - return ( - registryContract, - registryID + emit DatabaseCreated( + _name, + databaseAddress, + msg.sender, + newTokenID ); + + databaseContract.transferAdminRights(msg.sender); + + return (databaseAddress, newTokenID); } } -// File: contracts/registry/EntryCore.sol +// File: contracts/schemas/TeamSchema.sol -//This is Example of EntryCore -contract EntryCore is EntryInterface, Ownable { +contract TeamSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 constant internal INTERFACE_SCHEMA_ID = 0x153366ed; struct Entry { - address expensiveAddress; - uint256 expensiveUint; - int128 expensiveInt; - string expensiveString; + string name; + address gitcoin; + address payouts; + string github; + string telegram; + string keybase; } - mapping(string => bool) internal entryExpensiveStringIndex; + Entry[] public entries; - Entry[] internal entries; + IDatabase internal database; - function() external {} + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_ID); + database = IDatabase(owner); + } + + function() external {} function createEntry() external onlyOwner - returns (uint256) { Entry memory m = (Entry( { - expensiveAddress: address(0), - expensiveUint: uint256(0), - expensiveInt: int128(0), - expensiveString: "" + name: "", + gitcoin: address(0), + payouts: address(0), + github: "", + telegram: "", + keybase: "" })); - uint256 newEntryID = entries.push(m) - 1; - - return newEntryID; + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + address, + address, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].gitcoin, + entries[entryIndex].payouts, + entries[entryIndex].github, + entries[entryIndex].telegram, + entries[entryIndex].keybase + ); } function updateEntry( - uint256 _entryID, - address _newAddress, - uint256 _newUint, - int128 _newInt, - string _newString + uint256 _entryID, + string _name, + address _gitcoin, + address _payouts, + string _github, + string _telegram, + string _keybase ) external { - require(owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender)); - - // for uniq check example - require(entryExpensiveStringIndex[_newString] == false); - // for uniq check example - entryExpensiveStringIndex[_newString] = true; - string storage lastIndexValue = entries[_entryID].expensiveString; - entryExpensiveStringIndex[lastIndexValue] = false; + database.auth(_entryID, msg.sender); + uint256 entryIndex = database.getIndexByID(_entryID); - Entry memory m = (Entry({ - expensiveAddress: _newAddress, - expensiveUint: _newUint, - expensiveInt: _newInt, - expensiveString: _newString + Entry memory m = (Entry( + { + name: _name, + gitcoin: _gitcoin, + payouts: _payouts, + github: _github, + telegram: _telegram, + keybase: _keybase })); - entries[_entryID] = m; - - require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID)); + entries[entryIndex] = m; } - function deleteEntry( - uint256 _entryIndex - ) + function deleteEntry(uint256 _entryIndex) external onlyOwner { uint256 lastEntryIndex = entries.length - 1; - Entry storage lastEntry = entries[lastEntryIndex]; - + Entry memory lastEntry = entries[lastEntryIndex]; + entries[_entryIndex] = lastEntry; delete entries[lastEntryIndex]; entries.length--; } - function entriesAmount() - external - view - returns (uint256 entryID) - { - return entries.length; +} + +// File: contracts/builders/DatabaseBuilderV1.sol + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabaseBuilderV1 is IDatabaseBuilder, SupportsInterfaceWithLookup { + + /* + * Storage + */ + + address private chaingear; + address private owner; + + bytes4 constant internal INTERFACE_CHAINGEAR_ID = 0x2163c5ed; + bytes4 constant internal INTERFACE_DATABASE_BUILDER_ID = 0xce8bbf93; + + /* + * Constructor + */ + + constructor() public { + chaingear = address(0); + owner = msg.sender; + + _registerInterface(INTERFACE_DATABASE_BUILDER_ID); } + + /* + * Fallback + */ + + function() external {} - function entryInfo( - uint256 _entryID + /* + * External Functions + */ + + function deployDatabase( + address[] _benefitiaries, + uint256[] _shares, + string _name, + string _symbol ) external - view - returns ( - address, - uint256, - int128, - string - ) + returns (IDatabase) { - return ( - entries[_entryID].expensiveAddress, - entries[_entryID].expensiveUint, - entries[_entryID].expensiveInt, - entries[_entryID].expensiveString + require(msg.sender == chaingear); + + IDatabase databaseContract = new DatabaseV1( + _benefitiaries, + _shares, + _name, + _symbol ); + + databaseContract.transferOwnership(chaingear); + + return databaseContract; } + + /* + * Views + */ + function setChaingearAddress(address _chaingear) + external + { + require(msg.sender == owner); + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_chaingear); + require(support.supportsInterface(INTERFACE_CHAINGEAR_ID)); + chaingear = _chaingear; + } + + function getChaingearAddress() + external + view + returns (address) + { + return chaingear; + } + + function getOwner() + external + view + returns (address) + { + return owner; + } } diff --git a/docs/remix/scenario.json b/docs/remix/scenario.json deleted file mode 100644 index ab166aef..00000000 --- a/docs/remix/scenario.json +++ /dev/null @@ -1,1351 +0,0 @@ -{ - "accounts": { - "account{0}": "0xca35b7d915458ef540ade6068dfe2f44e8fa733c" - }, - "linkReferences": {}, - "transactions": [ - { - "timestamp": 1536572895961, - "record": { - "value": "0", - "parameters": [ - [ - "0xe96e14a641ff16024668018e5cc70a3bcf6b3631", - "0x166029ee722ddad7279c8d61edd4986da71d2c0f" - ], - [ - 100, - 100 - ], - "Metaregistry for Creator Curated Registries", - "10000000", - "Chaingear", - "CHG" - ], - "abi": "0x2af357fc2ab2964b76482ec0fcac3b86f5aca1a8292676023c8b9ec392d821a0", - "contractName": "Chaingear", - "bytecode": "60806040526000805560006001556000600660146101000a81548160ff0219169083151502179055503480156200003557600080fd5b5060405162005fc538038062005fc5833981018060405281019080805182019291906020018051820192919060200180518201929190602001805190602001909291908051820192919060200180518201929190505050818187878181600081518351141515620000a557600080fd5b600090505b82518110156200010d57620000ff8382815181101515620000c757fe5b906020019060200201518383815181101515620000e057fe5b906020019060200201516200021b640100000000026401000000009004565b8080600101915050620000aa565b50505033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505081601390805190602001906200016b929190620003ad565b50806014908051906020019062000184929190620003ad565b50505082600a819055508360099080519060200190620001a6929190620003ad565b50620001b162000434565b604051809103906000f080158015620001ce573d6000803e3d6000fd5b50600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050506200046d565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200025857600080fd5b6000811115156200026857600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141515620002b757600080fd5b60048290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555062000386816000546200039064010000000002620044fe179091906401000000009004565b6000819055505050565b60008183019050828110151515620003a457fe5b80905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003f057805160ff191683800117855562000421565b8280016001018555821562000421579182015b828111156200042057825182559160200191906001019062000403565b5b50905062000430919062000445565b5090565b6040516102e38062005ce283390190565b6200046a91905b80821115620004665760008160009055506001016200044c565b5090565b90565b615865806200047d6000396000f300608060405260043610610230576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610232578063081812fc146102c25780630946e8071461032f578063095ea7b31461035a57806318160ddd146103a75780631a092541146103d25780631d6e86e21461046257806323b872dd146104af5780632a29fb8c1461051c5780632f745c591461053c57806337f5881c1461059d5780633a98ef39146107bb5780633f4ba83a146107e657806342842e0e146107fd5780634e71d92d1461086a5780634f558e79146108815780634f6ccce7146108c6578063529ab9d014610907578063557902ad146109dc5780635c975abb14610a0757806363037b0c14610a365780636352211e14610aa357806368bc573e14610b1057806370a0823114610b67578063791b4d4e14610bbe5780637b49376814610be957806383197ef014610c365780638456cb5914610c4d5780638da5cb5b14610c6457806395d89b4114610cbb5780639852595c14610d4b578063a22cb46514610da2578063a58017af14610df1578063acaff7d414610e1e578063af582c6b14610e66578063b88d4fde14610e93578063c87b56dd14610f46578063cb2428ca14610fec578063ce7c2ac21461113f578063d4af2ab814611196578063d7148535146111cd578063e33b7de314611258578063e735b48a14611283578063e985e9c5146112be578063f2fde38b14611339578063f5074f411461137c575b005b34801561023e57600080fd5b506102476113bf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561028757808201518184015260208101905061026c565b50505050905090810190601f1680156102b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ce57600080fd5b506102ed60048036038101908080359060200190929190505050611461565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561033b57600080fd5b5061034461149e565b6040518082815260200191505060405180910390f35b34801561036657600080fd5b506103a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114a8565b005b3480156103b357600080fd5b506103bc61166e565b6040518082815260200191505060405180910390f35b3480156103de57600080fd5b506103e761167b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561042757808201518184015260208101905061040c565b50505050905090810190601f1680156104545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046e57600080fd5b506104ad60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061171d565b005b3480156104bb57600080fd5b5061051a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611953565b005b61053a60048036038101908080359060200190929190505050611a6a565b005b34801561054857600080fd5b50610587600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c13565b6040518082815260200191505060405180910390f35b3480156105a957600080fd5b506105c860048036038101908080359060200190929190505050611c8a565b6040518080602001806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184810384528b818151815260200191508051906020019080838360005b838110156106ac578082015181840152602081019050610691565b50505050905090810190601f1680156106d95780820380516001836020036101000a031916815260200191505b5084810383528a818151815260200191508051906020019080838360005b838110156107125780820151818401526020810190506106f7565b50505050905090810190601f16801561073f5780820380516001836020036101000a031916815260200191505b50848103825287818151815260200191508051906020019080838360005b8381101561077857808201518184015260208101905061075d565b50505050905090810190601f1680156107a55780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b3480156107c757600080fd5b506107d061209c565b6040518082815260200191505060405180910390f35b3480156107f257600080fd5b506107fb6120a2565b005b34801561080957600080fd5b50610868600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612162565b005b34801561087657600080fd5b5061087f61219a565b005b34801561088d57600080fd5b506108ac60048036038101908080359060200190929190505050612409565b604051808215151515815260200191505060405180910390f35b3480156108d257600080fd5b506108f16004803603810190808035906020019092919050505061247b565b6040518082815260200191505060405180910390f35b6109936004803603810190808035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293908035906020019082018035906020019190919293919293905050506124b3565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b3480156109e857600080fd5b506109f16126eb565b6040518082815260200191505060405180910390f35b348015610a1357600080fd5b50610a1c6126f8565b604051808215151515815260200191505060405180910390f35b348015610a4257600080fd5b50610a616004803603810190808035906020019092919050505061270b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610aaf57600080fd5b50610ace60048036038101908080359060200190929190505050612749565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b1c57600080fd5b50610b256127c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b7357600080fd5b50610ba8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127f1565b6040518082815260200191505060405180910390f35b348015610bca57600080fd5b50610bd3612875565b6040518082815260200191505060405180910390f35b348015610bf557600080fd5b50610c3460048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128b6565b005b348015610c4257600080fd5b50610c4b612bd8565b005b348015610c5957600080fd5b50610c62612c6f565b005b348015610c7057600080fd5b50610c79612d30565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cc757600080fd5b50610cd0612d56565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d10578082015181840152602081019050610cf5565b50505050905090810190601f168015610d3d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d5757600080fd5b50610d8c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612df8565b6040518082815260200191505060405180910390f35b348015610dae57600080fd5b50610def600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612e10565b005b348015610dfd57600080fd5b50610e1c60048036038101908080359060200190929190505050612f4c565b005b348015610e2a57600080fd5b50610e4960048036038101908080359060200190929190505050613599565b604051808381526020018281526020019250505060405180910390f35b348015610e7257600080fd5b50610e91600480360381019080803590602001909291905050506135e7565b005b348015610e9f57600080fd5b50610f44600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061364d565b005b348015610f5257600080fd5b50610f716004803603810190808035906020019092919050505061368c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610fb1578082015181840152602081019050610f96565b50505050905090810190601f168015610fde5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610ff857600080fd5b50611025600480360381019080803590602001908201803590602001919091929391929390505050613755565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561109b578082015181840152602081019050611080565b50505050905090810190601f1680156110c85780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156111015780820151818401526020810190506110e6565b50505050905090810190601f16801561112e5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b34801561114b57600080fd5b50611180600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061392f565b6040518082815260200191505060405180910390f35b3480156111a257600080fd5b506111cb6004803603810190808035906020019092919080359060200190929190505050613947565b005b3480156111d957600080fd5b50611256600480360381019080803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001919091929391929390803590602001908201803590602001919091929391929390505050613b81565b005b34801561126457600080fd5b5061126d613d1e565b6040518082815260200191505060405180910390f35b34801561128f57600080fd5b506112bc600480360381019080803590602001908201803590602001919091929391929390505050613d24565b005b3480156112ca57600080fd5b5061131f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613db0565b604051808215151515815260200191505060405180910390f35b34801561134557600080fd5b5061137a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e44565b005b34801561138857600080fd5b506113bd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613f9c565b005b606060138054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114575780601f1061142c57610100808354040283529160200191611457565b820191906000526020600020905b81548152906001019060200180831161143a57829003601f168201915b5050505050905090565b60006010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a54905090565b60006114b382612749565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156114f057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611530575061152f8133613db0565b5b151561153b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff1661155c83611461565b73ffffffffffffffffffffffffffffffffffffffff161415806115ac5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561166957826010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b6000601780549050905090565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117135780601f106116e857610100808354040283529160200191611713565b820191906000526020600020905b8154815290600101906020018083116116f657829003601f168201915b5050505050905090565b6000823373ffffffffffffffffffffffffffffffffffffffff1661174082612749565b73ffffffffffffffffffffffffffffffffffffffff1614151561176257600080fd5b600660149054906101000a900460ff1615151561177e57600080fd5b60008373ffffffffffffffffffffffffffffffffffffffff16141515156117a457600080fd5b6117ae3385614011565b6117b88385614229565b7f34a8dcbde4bd85c0ea4e4cc00a97e7a1e24fb4243310506b1571d2ae5300e070338585604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a160058481548110151561186657fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663b5106add846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b5050505050505050565b8061195e3382614300565b151561196957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141515156119a557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156119e157600080fd5b6119eb8483614395565b6119f58483614011565b6119ff8383614229565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600660149054906101000a900460ff16151515611a8657600080fd5b611ab934600583815481101515611a9957fe5b9060005260206000209060070201600501546144fe90919063ffffffff16565b600582815481101515611ac857fe5b906000526020600020906007020160050181905550611b1034600583815481101515611af057fe5b9060005260206000209060070201600601546144fe90919063ffffffff16565b600582815481101515611b1f57fe5b9060005260206000209060070201600601819055507f6d44c7fc406a93af487f7a19d84cfda6be594ac4cc18c18b87045d6ccafe4679813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611c0f573d6000803e3d6000fd5b5050565b6000611c1e836127f1565b82101515611c2b57600080fd5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481101515611c7757fe5b9060005260206000200154905092915050565b60608060008060606000806000600589815481101515611ca657fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611d3e57600080fd5b505af1158015611d52573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611d7c57600080fd5b810190808051640100000000811115611d9457600080fd5b82810190506020810184811115611daa57600080fd5b8151856001820283011164010000000082111715611dc757600080fd5b50509291905050508173ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b158015611e3357600080fd5b505af1158015611e47573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611e7157600080fd5b810190808051640100000000811115611e8957600080fd5b82810190506020810184811115611e9f57600080fd5b8151856001820283011164010000000082111715611ebc57600080fd5b50509291905050508260058c815481101515611ed457fe5b906000526020600020906007020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660058d815481101515611f1557fe5b906000526020600020906007020160020160058e815481101515611f3557fe5b9060005260206000209060070201600401548673ffffffffffffffffffffffffffffffffffffffff16636e9960c36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015611fab57600080fd5b505af1158015611fbf573d6000803e3d6000fd5b505050506040513d6020811015611fd557600080fd5b8101908080519060200190929190505050828054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561207b5780601f106120505761010080835404028352916020019161207b565b820191906000526020600020905b81548152906001019060200180831161205e57829003601f168201915b50505050509250975097509750975097509750975050919395979092949650565b60005481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120fe57600080fd5b600660149054906101000a900460ff16151561211957600080fd5b6000600660146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b8061216d3382614300565b151561217857600080fd5b612194848484602060405190810160405280600081525061364d565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115156121f057600080fd5b61221c6001543073ffffffffffffffffffffffffffffffffffffffff16316144fe90919063ffffffff16565b91506122d5600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122c76000546122b9600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548761451a90919063ffffffff16565b61455290919063ffffffff16565b61456890919063ffffffff16565b9050600081141515156122e757600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561230d57600080fd5b61235f81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546144fe90919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506123b7816001546144fe90919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612403573d6000803e3d6000fd5b50505050565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600061248561166e565b8210151561249257600080fd5b6017828154811015156124a157fe5b90600052602060002001549050919050565b600080600660149054906101000a900460ff161515156124d257600080fd5b6000600c8d8d60405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561253d57600080fd5b34600a5414151561254d57600080fd5b600015156007878760405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff16151514151561259257600080fd5b600015156008858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff1615151415156125d757600080fd5b6126d88c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050508b8b808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050508a8a8080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505089898080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505088888080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050614581565b915091509a509a98505050505050505050565b6000600580549050905090565b600660149054906101000a900460ff1681565b60048181548110151561271a57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600f600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156127be57600080fd5b80915050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561282e57600080fd5b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561291457600080fd5b60048381548110151561292357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600484815481101515612a6657fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612c3457600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612ccb57600080fd5b600660149054906101000a900460ff16151515612ce757600080fd5b6001600660146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060148054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612dee5780601f10612dc357610100808354040283529160200191612dee565b820191906000526020600020905b815481529060010190602001808311612dd157829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612e4b57600080fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000806000806060853373ffffffffffffffffffffffffffffffffffffffff16612f7582612749565b73ffffffffffffffffffffffffffffffffffffffff16141515612f9757600080fd5b600660149054906101000a900460ff16151515612fb357600080fd5b600587815481101515612fc257fe5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16955060008673ffffffffffffffffffffffffffffffffffffffff1663791b4d4e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561305c57600080fd5b505af1158015613070573d6000803e3d6000fd5b505050506040513d602081101561308657600080fd5b81019080805190602001909291905050501415156130a357600080fd5b601860008881526020019081526020016000205494506130d2600160058054905061456890919063ffffffff16565b93506005848154811015156130e357fe5b906000526020600020906007020192508260058681548110151561310357fe5b90600052602060002090600702016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600282018160020190805460018160011615610100020316600290046132069291906154d8565b506003820181600301908054600181600116156101000203166002900461322e9291906154d8565b5060048201548160040155600582015481600501556006820154816006015590505060058481548110151561325f57fe5b9060005260206000209060070201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160006132cc919061555f565b6003820160006132dc919061555f565b6004820160009055600582016000905560068201600090555050600580548091906001900361330b91906155a7565b506133163388614d91565b8573ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561337a57600080fd5b505af115801561338e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060208110156133b857600080fd5b8101908080516401000000008111156133d057600080fd5b828101905060208101848111156133e657600080fd5b815185600182028301116401000000008211171561340357600080fd5b505092919050505091507fc87efb95ac06ce4ec97503af7cd49444f98c4100d49236dcd550a365f45153433383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156134a2578082015181840152602081019050613487565b50505050905090810190601f1680156134cf5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a18573ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561357857600080fd5b505af115801561358c573d6000803e3d6000fd5b5050505050505050505050565b6000806005838154811015156135ab57fe5b9060005260206000209060070201600501546005848154811015156135cc57fe5b90600052602060002090600702016006015491509150915091565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561364357600080fd5b80600a8190555050565b816136583382614300565b151561366357600080fd5b61366e858585611953565b61367a85858585614ec9565b151561368557600080fd5b5050505050565b606061369782612409565b15156136a257600080fd5b601960008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156137495780601f1061371e57610100808354040283529160200191613749565b820191906000526020600020905b81548152906001019060200180831161372c57829003601f168201915b50505050509050919050565b6000606080600c858560405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d8686604051808383808284378201915050925050509081526020016040518091039020600e8787604051808383808284378201915050925050509081526020016040518091039020818054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561387f5780601f106138545761010080835404028352916020019161387f565b820191906000526020600020905b81548152906001019060200180831161386257829003601f168201915b50505050509150808054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561391b5780601f106138f05761010080835404028352916020019161391b565b820191906000526020600020905b8154815290600101906020018083116138fe57829003601f168201915b505050505090509250925092509250925092565b60026020528060005260406000206000915090505481565b813373ffffffffffffffffffffffffffffffffffffffff1661396882612749565b73ffffffffffffffffffffffffffffffffffffffff1614151561398a57600080fd5b600660149054906101000a900460ff161515156139a657600080fd5b6005838154811015156139b557fe5b90600052602060002090600702016005015482111515156139d557600080fd5b613a08826005858154811015156139e857fe5b90600052602060002090600702016005015461456890919063ffffffff16565b600584815481101515613a1757fe5b9060005260206000209060070201600501819055507fcd195521b5866a88c295a8f1d2b7e034e0d0761acf72511922f81a85c8ae9f85833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015613b6457600080fd5b505af1158015613b78573d6000803e3d6000fd5b50505050505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613bdd57600080fd5b6000600c888860405180838380828437820191505092505050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613c4757600080fd5b84600c888860405180838380828437820191505092505050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508383600d89896040518083838082843782019150509250505090815260200160405180910390209190613cdf9291906155d9565b508181600e89896040518083838082843782019150509250505090815260200160405180910390209190613d149291906155d9565b5050505050505050565b60015481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613d8257600080fd5b8282905090506101008111151515613d9957600080fd5b828260099190613daa9291906155d9565b50505050565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613ea057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613edc57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613ff857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16ff5b600080600061402085856150b7565b6016600085815260200190815260200160002054925061408c6001601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061456890919063ffffffff16565b9150601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156140da57fe5b9060005260206000200154905080601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561413457fe5b90600052602060002001819055506000601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110151561419057fe5b9060005260206000200181905550601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036141f09190615659565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b600061423583836151e6565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806016600084815260200190815260200160002081905550505050565b60008061430c83612749565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061437b57508373ffffffffffffffffffffffffffffffffffffffff1661436384611461565b73ffffffffffffffffffffffffffffffffffffffff16145b8061438c575061438b8185613db0565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff166143b582612749565b73ffffffffffffffffffffffffffffffffffffffff161415156143d757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156144fa5760006010600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b6000818301905082811015151561451157fe5b80905092915050565b60008083141561452d576000905061454c565b818302905081838281151561453e57fe5b0414151561454857fe5b8090505b92915050565b6000818381151561455f57fe5b04905092915050565b600082821115151561457657fe5b818303905092915050565b600080600061458e615685565b6000600c8a6040518082805190602001908083835b6020831015156145c857805182526020820191506020810190506020830392506145a3565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663920d00868a8a8a8a6040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b838110156146b557808201518184015260208101905061469a565b50505050905001858103845288818151815260200191508051906020019060200280838360005b838110156146f75780820151818401526020810190506146dc565b50505050905001858103835287818151815260200191508051906020019080838360005b8381101561473657808201518184015260208101905061471b565b50505050905090810190601f1680156147635780820380516001836020036101000a031916815260200191505b50858103825286818151815260200191508051906020019080838360005b8381101561479c578082015181840152602081019050614781565b50505050905090810190601f1680156147c95780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156147ee57600080fd5b505af1158015614802573d6000803e3d6000fd5b505050506040513d602081101561481857600080fd5b8101908080519060200190929190505050925060e0604051908101604052808473ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018b8152602001600d8c6040518082805190602001908083835b6020831015156148ad5780518252602082019150602081019050602083039250614888565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156149745780601f1061494957610100808354040283529160200191614974565b820191906000526020600020905b81548152906001019060200180831161495757829003601f168201915b50505050508152602001428152602001600081526020016000815250915060016005839080600181540180825580915050906001820390600052602060002090600702016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190614a6c9291906156ef565b506060820151816003019080519060200190614a899291906156ef565b506080820151816004015560a0820151816005015560c082015181600601555050039050614ab73382615340565b60016007886040518082805190602001908083835b602083101515614af15780518252602082019150602081019050602083039250614acc565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555060016008876040518082805190602001908083835b602083101515614b755780518252602082019150602081019050602083039250614b50565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055507fd98034e5da8b5718635c8cce4df2965d7cbeeb60f90d84a427442fc79497cb838784338460405180806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825286818151815260200191508051906020019080838360005b83811015614c8e578082015181840152602081019050614c73565b50505050905090810190601f168015614cbb5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a18273ffffffffffffffffffffffffffffffffffffffff1663b5106add336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015614d6657600080fd5b505af1158015614d7a573d6000803e3d6000fd5b505050508281945094505050509550959350505050565b6000806000614da08585615397565b600060196000868152602001908152602001600020805460018160011615610100020316600290049050141515614df157601960008581526020019081526020016000206000614df0919061555f565b5b60186000858152602001908152602001600020549250614e20600160178054905061456890919063ffffffff16565b9150601782815481101515614e3157fe5b9060005260206000200154905080601784815481101515614e4e57fe5b90600052602060002001819055506000601783815481101515614e6d57fe5b90600052602060002001819055506017805480919060019003614e909190615659565b50600060186000868152602001908152602001600020819055508260186000838152602001908152602001600020819055505050505050565b600080614eeb8573ffffffffffffffffffffffffffffffffffffffff16615415565b1515614efa57600191506150ae565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614fbc578082015181840152602081019050614fa1565b50505050905090810190601f168015614fe95780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561500a57600080fd5b505af115801561501e573d6000803e3d6000fd5b505050506040513d602081101561503457600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b8173ffffffffffffffffffffffffffffffffffffffff166150d782612749565b73ffffffffffffffffffffffffffffffffffffffff161415156150f957600080fd5b61514c6001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461456890919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561525457600080fd5b81600f600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506152f96001601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546144fe90919063ffffffff16565b601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b61534a8282615428565b601780549050601860008381526020019081526020016000208190555060178190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6153a18282614395565b6153ab8282614011565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561546457600080fd5b61546e8282614229565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615511578054855561554e565b8280016001018555821561554e57600052602060002091601f016020900482015b8281111561554d578254825591600101919060010190615532565b5b50905061555b919061576f565b5090565b50805460018160011615610100020316600290046000825580601f1061558557506155a4565b601f0160209004906000526020600020908101906155a3919061576f565b5b50565b8154818355818111156155d4576007028160070283600052602060002091820191016155d39190615794565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061561a57803560ff1916838001178555615648565b82800160010185558215615648579182015b8281111561564757823582559160200191906001019061562c565b5b509050615655919061576f565b5090565b8154818355818111156156805781836000526020600020918201910161567f919061576f565b5b505050565b60e060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061573057805160ff191683800117855561575e565b8280016001018555821561575e579182015b8281111561575d578251825591602001919060010190615742565b5b50905061576b919061576f565b5090565b61579191905b8082111561578d576000816000905550600101615775565b5090565b90565b61583691905b8082111561583257600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600282016000615801919061555f565b600382016000615811919061555f565b6004820160009055600582016000905560068201600090555060070161579a565b5090565b905600a165627a7a723058201ca44e3c78b5610fbdfaf12df4115b8dbf66b09a7d8e814683298eb6ed8c562a00296080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610290806100536000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b146100a9578063aad3ec9614610100575b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100a757600080fd5b005b3480156100b557600080fd5b506100be61014d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010c57600080fd5b5061014b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610172565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cd57600080fd5b3073ffffffffffffffffffffffffffffffffffffffff163181111515156101f357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff161415151561021957600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561025f573d6000803e3d6000fd5b5050505600a165627a7a7230582029dc41abf9589aef7b9fca5cdef247e031a2ebb6fda9086bf6552632c70155e30029", - "linkReferences": {}, - "name": "", - "type": "constructor", - "from": "account{0}" - } - }, - { - "timestamp": 1536572906284, - "record": { - "value": "0", - "parameters": [], - "abi": "0x011b4d03dd8c01f1049143cf9c4c817e4b167f1d1b83e5c6f0f10d89ba1e7bce", - "contractName": "RegistryCreator", - "bytecode": "608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550615ea1806100a26000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806345efe2df1461007c5780636c6d6a17146100d35780638da5cb5b14610116578063920d00861461016d578063f2fde38b14610230575b34801561007957600080fd5b50005b34801561008857600080fd5b50610091610273565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100df57600080fd5b50610114600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061029d565b005b34801561012257600080fd5b5061012b610362565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017957600080fd5b506101ee600480360381019080803590602001908201803590602001919091929391929390803590602001908201803590602001919091929391929390803590602001908201803590602001919091929391929390803590602001908201803590602001919091929391929390505050610387565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023c57600080fd5b50610271600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610583565b005b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102f857600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561031e57600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103e657600080fd5b89898989898989896103f66106d8565b808060200180602001806020018060200185810385528d8d82818152602001925060200280828437820191505085810384528b8b82818152602001925060200280828437820191505085810383528989828181526020019250808284378201915050858103825287878281815260200192508082843782019150509c50505050505050505050505050604051809103906000f08015801561049b573d6000803e3d6000fd5b5090508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561055b57600080fd5b505af115801561056f573d6000803e3d6000fd5b505050508091505098975050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105de57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561061a57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60405161578d806106e983390190560060806040526000805560006001556000600560146101000a81548160ff0219169083151502179055506040516200578d3803806200578d833981018060405281019080805182019291906020018051820192919060200180518201929190602001805182019291905050508181858581816000815183511415156200008357600080fd5b600090505b8251811015620000eb57620000dd8382815181101515620000a557fe5b906020019060200201518383815181101515620000be57fe5b906020019060200201516200021f640100000000026401000000009004565b808060010191505062000088565b50505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050816011908051906020019062000149929190620003b1565b50806012908051906020019062000162929190620003b1565b5050506000600660146101000a81548160ff021916908360018111156200018557fe5b021790555060006007819055506200019c62000438565b604051809103906000f080158015620001b9573d6000803e3d6000fd5b50600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600c60146101000a81548160ff0219169083151502179055505050505062000471565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200025c57600080fd5b6000811115156200026c57600080fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141515620002bb57600080fd5b60048290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506200038a816000546200039464010000000002620046b6179091906401000000009004565b6000819055505050565b60008183019050828110151515620003a857fe5b80905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003f457805160ff191683800117855562000425565b8280016001018555821562000425579182015b828111156200042457825182559160200191906001019062000407565b5b50905062000434919062000449565b5090565b6040516102e380620054aa83390190565b6200046e91905b808211156200046a57600081600090555060010162000450565b5090565b90565b61502980620004816000396000f30060806040526004361061029e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301acad42146102a057806304c43781146102d057806306fdde03146102ee578063081812fc1461037e57806308ca5f90146103eb578063095ea7b31461041857806311f7516c14610465578063158b64281461049257806318160ddd146104bd578063189efc7c146104e85780631c5c1d971461051957806323b872dd146105585780632494bc16146105c55780632f745c59146106b45780633a98ef39146107155780633f10be99146107405780633f4ba83a1461077157806342842e0e146107885780634e71d92d146107f55780634f558e791461080c5780634f6ccce7146108515780635a3233af146108925780635c975abb1461094e57806363037b0c1461097d5780636352211e146109ea57806365e12b3214610a57578063683ae65b14610ae75780636e9960c314610b3457806370a0823114610b8b578063791b4d4e14610be25780637b49376814610c0d5780638456cb5914610c5a57806384da92a714610c715780638da5cb5b14610cac57806395d89b4114610d035780639852595c14610d935780639a40842414610dea578063a192c1fb14610e19578063a1f14b2714610e85578063a22cb46514610ec0578063afe6504414610f0f578063b5106add14610f66578063b88d4fde14610fa9578063bd03e11a1461105c578063c87b56dd146110c1578063ce7c2ac214611167578063d24f7076146111be578063d4af2ab8146111eb578063dc6b6a5f14611222578063dc6dcec914611253578063dcee8073146112e3578063e24ee6ba1461130e578063e33b7de314611365578063e540944014611390578063e985e9c5146113b0578063f2fde38b1461142b575b005b3480156102ac57600080fd5b506102ce600480360381019080803560ff16906020019092919050505061146e565b005b6102d861153a565b6040518082815260200191505060405180910390f35b3480156102fa57600080fd5b5061030361198c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610343578082015181840152602081019050610328565b50505050905090810190601f1680156103705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561038a57600080fd5b506103a960048036038101908080359060200190929190505050611a2e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103f757600080fd5b5061041660048036038101908080359060200190929190505050611a6b565b005b34801561042457600080fd5b50610463600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611aef565b005b34801561047157600080fd5b5061049060048036038101908080359060200190929190505050611cb5565b005b34801561049e57600080fd5b506104a761208a565b6040518082815260200191505060405180910390f35b3480156104c957600080fd5b506104d26120a9565b6040518082815260200191505060405180910390f35b3480156104f457600080fd5b5061051760048036038101908080356000191690602001909291905050506120b6565b005b34801561052557600080fd5b50610556600480360381019080803561ffff169060200190929190803560001916906020019092919050505061215b565b005b34801561056457600080fd5b506105c3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612210565b005b3480156105d157600080fd5b50610672600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050612327565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106c057600080fd5b506106ff600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612457565b6040518082815260200191505060405180910390f35b34801561072157600080fd5b5061072a6124ce565b6040518082815260200191505060405180910390f35b34801561074c57600080fd5b5061076f600480360381019080803561ffff1690602001909291905050506124d4565b005b34801561077d57600080fd5b506107866125be565b005b34801561079457600080fd5b506107f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061267e565b005b34801561080157600080fd5b5061080a6126b6565b005b34801561081857600080fd5b5061083760048036038101908080359060200190929190505050612925565b604051808215151515815260200191505060405180910390f35b34801561085d57600080fd5b5061087c60048036038101908080359060200190929190505050612997565b6040518082815260200191505060405180910390f35b34801561089e57600080fd5b506108bd600480360381019080803590602001909291905050506129cf565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001828152602001965050505050505060405180910390f35b34801561095a57600080fd5b50610963612af3565b604051808215151515815260200191505060405180910390f35b34801561098957600080fd5b506109a860048036038101908080359060200190929190505050612b06565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109f657600080fd5b50610a1560048036038101908080359060200190929190505050612b44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a6357600080fd5b50610a6c612bc2565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610aac578082015181840152602081019050610a91565b50505050905090810190601f168015610ad95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610af357600080fd5b50610b3260048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612c64565b005b348015610b4057600080fd5b50610b49612dee565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b9757600080fd5b50610bcc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612e18565b6040518082815260200191505060405180910390f35b348015610bee57600080fd5b50610bf7612e9c565b6040518082815260200191505060405180910390f35b348015610c1957600080fd5b50610c5860048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612edd565b005b348015610c6657600080fd5b50610c6f6131ff565b005b348015610c7d57600080fd5b50610caa6004803603810190808035906020019082018035906020019190919293919293905050506132c0565b005b348015610cb857600080fd5b50610cc1613332565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610d0f57600080fd5b50610d18613358565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d58578082015181840152602081019050610d3d565b50505050905090810190601f168015610d855780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d9f57600080fd5b50610dd4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133fa565b6040518082815260200191505060405180910390f35b348015610df657600080fd5b50610dff613412565b604051808215151515815260200191505060405180910390f35b348015610e2557600080fd5b50610e2e613429565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610e71578082015181840152602081019050610e56565b505050509050019250505060405180910390f35b348015610e9157600080fd5b50610ebe600480360381019080803590602001908201803590602001919091929391929390505050613485565b005b348015610ecc57600080fd5b50610f0d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613511565b005b348015610f1b57600080fd5b50610f2461364d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f7257600080fd5b50610fa7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613677565b005b348015610fb557600080fd5b5061105a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050613759565b005b34801561106857600080fd5b506110a760048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613798565b604051808215151515815260200191505060405180910390f35b3480156110cd57600080fd5b506110ec600480360381019080803590602001909291905050506137e2565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561112c578082015181840152602081019050611111565b50505050905090810190601f1680156111595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561117357600080fd5b506111a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506138ab565b6040518082815260200191505060405180910390f35b3480156111ca57600080fd5b506111e9600480360381019080803590602001909291905050506138c3565b005b3480156111f757600080fd5b506112206004803603810190808035906020019092919080359060200190929190505050613929565b005b34801561122e57600080fd5b50611237613b85565b604051808260ff1660ff16815260200191505060405180910390f35b34801561125f57600080fd5b50611268613ba7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156112a857808201518184015260208101905061128d565b50505050905090810190601f1680156112d55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156112ef57600080fd5b506112f8613c49565b6040518082815260200191505060405180910390f35b34801561131a57600080fd5b50611323613c53565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561137157600080fd5b5061137a613c7d565b6040518082815260200191505060405180910390f35b6113ae60048036038101908080359060200190929190505050613c83565b005b3480156113bc57600080fd5b50611411600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e4e565b604051808215151515815260200191505060405180910390f35b34801561143757600080fd5b5061146c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ee2565b005b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114ca57600080fd5b600560149054906101000a900460ff161515156114e657600080fd5b8060ff166001808111156114f657fe5b60ff161015151561150657600080fd5b8060ff16600181111561151557fe5b600660146101000a81548160ff0219169083600181111561153257fe5b021790555050565b6000611544614cf1565b60008060011515600c60149054906101000a900460ff16151514151561156957600080fd5b6000600181111561157657fe5b600660149054906101000a900460ff16600181111561159157fe5b14156115f457600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115f357600080fd5b5b600560149054906101000a900460ff1615151561161057600080fd5b6007543414151561162057600080fd5b60c0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815260200142815260200142815260200160008152602001600081525092506018839080600181540180825580915050906001820390600052602060002090600602016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020155606082015181600301556080820151816004015560a08201518160050155505050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637899b9f36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156117eb57600080fd5b505af11580156117ff573d6000803e3d6000fd5b505050506040513d602081101561181557600080fd5b810190808051906020019092919050505091506118306120a9565b8214151561183d57600080fd5b611847338361403a565b7facb3b3e38034857e82db5b66f66ba2dcaa615a3e197a0f2ad7643c030659d1a38233604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166304c437816040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561193857600080fd5b505af115801561194c573d6000803e3d6000fd5b505050506040513d602081101561196257600080fd5b81019080805190602001909291905050509050808214151561198357600080fd5b81935050505090565b606060118054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a245780601f106119f957610100808354040283529160200191611a24565b820191906000526020600020905b815481529060010190602001808311611a0757829003601f168201915b5050505050905090565b6000600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b42601882815481101515611a7b57fe5b9060005260206000209060060201600301819055503373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611aec57600080fd5b50565b6000611afa82612b44565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611b3757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611b775750611b768133613e4e565b5b1515611b8257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16611ba383611a2e565b73ffffffffffffffffffffffffffffffffffffffff16141580611bf35750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611cb05782600e600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b600080600060011515600c60149054906101000a900460ff161515141515611cdc57600080fd5b833373ffffffffffffffffffffffffffffffffffffffff16611cfd82612b44565b73ffffffffffffffffffffffffffffffffffffffff16141515611d1f57600080fd5b600560149054906101000a900460ff16151515611d3b57600080fd5b6000601886815481101515611d4c57fe5b906000526020600020906006020160040154141515611d6a57600080fd5b601660008681526020019081526020016000205493506001601880549050039250601883815481101515611d9a57fe5b9060005260206000209060060201915081601886815481101515611dba57fe5b90600052602060002090600602016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028201548160020155600382015481600301556004820154816004015560058201548160050155905050601883815481101515611ed057fe5b9060005260206000209060060201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600282016000905560038201600090556004820160009055600582016000905550506018805480919060019003611f649190614d54565b50611f6f3386614091565b7f29e038c505f950916f19dd7a5c3fb55c74715b22bac390335e5c84151ae3121c8533604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166311f7516c856040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561206b57600080fd5b505af115801561207f573d6000803e3d6000fd5b505050505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b6000601580549050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561211257600080fd5b6010602060ff161115151561212657600080fd5b600981908060018154018082558091505090600182039060005260206000200160009091929091909150906000191690555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156121b757600080fd5b6010602060ff16111515156121cb57600080fd5b6001600980549050038261ffff16111515156121e657600080fd5b8060098361ffff168154811015156121fa57fe5b9060005260206000200181600019169055505050565b8061221b33826141c9565b151561222657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561226257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561229e57600080fd5b6122a8848361425e565b6122b284836143c7565b6122bc83836145df565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561238657600080fd5b82516020840181816000f09250505060008173ffffffffffffffffffffffffffffffffffffffff16141515156123b857fe5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60146101000a81548160ff02191690831515021790555083600b908051906020019061242a929190614d86565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505092915050565b600061246283612e18565b8210151561246f57600080fd5b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156124bb57fe5b9060005260206000200154905092915050565b60005481565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561253357600080fd5b600160098054905003915060098281548110151561254d57fe5b906000526020600020015490508060098461ffff1681548110151561256e57fe5b906000526020600020018160001916905550600060098381548110151561259157fe5b90600052602060002001816000191690555060098054809190600190036125b89190614e06565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561261a57600080fd5b600560149054906101000a900460ff16151561263557600080fd5b6000600560146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b8061268933826141c9565b151561269457600080fd5b6126b08484846020604051908101604052806000815250613759565b50505050565b60008060003392506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411151561270c57600080fd5b6127386001543073ffffffffffffffffffffffffffffffffffffffff16316146b690919063ffffffff16565b91506127f1600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127e36000546127d5600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876146d290919063ffffffff16565b61470a90919063ffffffff16565b61472090919063ffffffff16565b90506000811415151561280357600080fd5b803073ffffffffffffffffffffffffffffffffffffffff16311015151561282957600080fd5b61287b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546146b690919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128d3816001546146b690919063ffffffff16565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561291f573d6000803e3d6000fd5b50505050565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b60006129a16120a9565b821015156129ae57600080fd5b6015828154811015156129bd57fe5b90600052602060002001549050919050565b6000806000806000806018878154811015156129e757fe5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601888815481101515612a2857fe5b906000526020600020906006020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601889815481101515612a6957fe5b90600052602060002090600602016002015460188a815481101515612a8a57fe5b90600052602060002090600602016003015460188b815481101515612aab57fe5b90600052602060002090600602016004015460188c815481101515612acc57fe5b90600052602060002090600602016005015495509550955095509550955091939550919395565b600560149054906101000a900460ff1681565b600481815481101515612b1557fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612bb957600080fd5b80915050919050565b606060088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612c5a5780601f10612c2f57610100808354040283529160200191612c5a565b820191906000526020600020905b815481529060010190602001808311612c3d57829003601f168201915b5050505050905090565b60011515600c60149054906101000a900460ff161515141515612c8657600080fd5b813373ffffffffffffffffffffffffffffffffffffffff16612ca782612b44565b73ffffffffffffffffffffffffffffffffffffffff16141515612cc957600080fd5b600560149054906101000a900460ff16151515612ce557600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff1614151515612d0b57600080fd5b81601884815481101515612d1b57fe5b906000526020600020906006020160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612d7433846143c7565b612d7e82846145df565b7fe93f305b235917d8ff8103ff4bb045df5935484b45bfd248c7fec5f04fecf92d8383604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612e5557600080fd5b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612f3b57600080fd5b600483815481101515612f4a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160048481548110151561308d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090557fa1982f3fe3fa9dba8ce5bc91687e2ab0850b0431cddacc1a249b2ae0390b912f838284604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561325b57600080fd5b600560149054906101000a900460ff1615151561327757600080fd5b6001600560146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561331c57600080fd5b81816011919061332d929190614e32565b505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060128054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156133f05780601f106133c5576101008083540402835291602001916133f0565b820191906000526020600020905b8154815290600101906020018083116133d357829003601f168201915b5050505050905090565b60036020528060005260406000206000915090505481565b6000600c60149054906101000a900460ff16905090565b6060600980548060200260200160405190810160405280929190818152602001828054801561347b57602002820191906000526020600020905b81546000191681526020019060010190808311613463575b5050505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156134e357600080fd5b82829050905061010081111515156134fa57600080fd5b82826008919061350b929190614e32565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561354c57600080fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156136d357600080fd5b600560149054906101000a900460ff161515156136ef57600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561371557600080fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8161376433826141c9565b151561376f57600080fd5b61377a858585612210565b61378685858585614739565b151561379157600080fd5b5050505050565b60008173ffffffffffffffffffffffffffffffffffffffff166137ba84612b44565b73ffffffffffffffffffffffffffffffffffffffff161415156137dc57600080fd5b92915050565b60606137ed82612925565b15156137f857600080fd5b601760008381526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561389f5780601f106138745761010080835404028352916020019161389f565b820191906000526020600020905b81548152906001019060200180831161388257829003601f168201915b50505050509050919050565b60026020528060005260406000206000915090505481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561391f57600080fd5b8060078190555050565b60011515600c60149054906101000a900460ff16151514151561394b57600080fd5b813373ffffffffffffffffffffffffffffffffffffffff1661396c82612b44565b73ffffffffffffffffffffffffffffffffffffffff1614151561398e57600080fd5b600560149054906101000a900460ff161515156139aa57600080fd5b6018838154811015156139b957fe5b90600052602060002090600602016004015482111515156139d957600080fd5b613a0c826018858154811015156139ec57fe5b90600052602060002090600602016004015461472090919063ffffffff16565b601884815481101515613a1b57fe5b9060005260206000209060060201600401819055507f4f04130f46dd1e00a82dae1ffa48c13a8cabe468b42b9cc102a766711bd63353833384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663aad3ec9633846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015613b6857600080fd5b505af1158015613b7c573d6000803e3d6000fd5b50505050505050565b6000600660149054906101000a900460ff166001811115613ba257fe5b905090565b6060600b8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015613c3f5780601f10613c1457610100808354040283529160200191613c3f565b820191906000526020600020905b815481529060010190602001808311613c2257829003601f168201915b5050505050905090565b6000600754905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60015481565b60011515600c60149054906101000a900460ff161515141515613ca557600080fd5b600560149054906101000a900460ff16151515613cc157600080fd5b613cf434601883815481101515613cd457fe5b9060005260206000209060060201600401546146b690919063ffffffff16565b601882815481101515613d0357fe5b906000526020600020906006020160040181905550613d4b34601883815481101515613d2b57fe5b9060005260206000209060060201600501546146b690919063ffffffff16565b601882815481101515613d5a57fe5b9060005260206000209060060201600501819055507f8224f1b739ab2f6fc47774cc8025858fee7ca386f44cb0c7657c36037f707d71813334604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015613e4a573d6000803e3d6000fd5b5050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613f3e57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515613f7a57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6140448282614927565b601580549050601660008381526020019081526020016000208190555060158190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b60008060006140a085856149d7565b6000601760008681526020019081526020016000208054600181600116156101000203166002900490501415156140f1576017600085815260200190815260200160002060006140f09190614eb2565b5b60166000858152602001908152602001600020549250614120600160158054905061472090919063ffffffff16565b915060158281548110151561413157fe5b906000526020600020015490508060158481548110151561414e57fe5b9060005260206000200181905550600060158381548110151561416d57fe5b906000526020600020018190555060158054809190600190036141909190614efa565b50600060166000868152602001908152602001600020819055508260166000838152602001908152602001600020819055505050505050565b6000806141d583612b44565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061424457508373ffffffffffffffffffffffffffffffffffffffff1661422c84611a2e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061425557506142548185613e4e565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff1661427e82612b44565b73ffffffffffffffffffffffffffffffffffffffff161415156142a057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156143c3576000600e600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b60008060006143d68585614a55565b601460008581526020019081526020016000205492506144426001601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061472090919063ffffffff16565b9150601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561449057fe5b9060005260206000200154905080601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020848154811015156144ea57fe5b90600052602060002001819055506000601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110151561454657fe5b9060005260206000200181905550601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036145a69190614efa565b50600060146000868152602001908152602001600020819055508260146000838152602001908152602001600020819055505050505050565b60006145eb8383614b84565b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806014600084815260200190815260200160002081905550505050565b600081830190508281101515156146c957fe5b80905092915050565b6000808314156146e55760009050614704565b81830290508183828115156146f657fe5b0414151561470057fe5b8090505b92915050565b6000818381151561471757fe5b04905092915050565b600082821115151561472e57fe5b818303905092915050565b60008061475b8573ffffffffffffffffffffffffffffffffffffffff16614cde565b151561476a576001915061491e565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561482c578082015181840152602081019050614811565b50505050905090810190601f1680156148595780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561487a57600080fd5b505af115801561488e573d6000803e3d6000fd5b505050506040513d60208110156148a457600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561496357600080fd5b61496d82826145df565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b6149e1828261425e565b6149eb82826143c7565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff16614a7582612b44565b73ffffffffffffffffffffffffffffffffffffffff16141515614a9757600080fd5b614aea6001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461472090919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515614bf257600080fd5b81600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550614c976001600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546146b690919063ffffffff16565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600080823b905060008111915050919050565b60c060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b815481835581811115614d8157600602816006028360005260206000209182019101614d809190614f26565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614dc757805160ff1916838001178555614df5565b82800160010185558215614df5579182015b82811115614df4578251825591602001919060010190614dd9565b5b509050614e029190614fb3565b5090565b815481835581811115614e2d57818360005260206000209182019101614e2c9190614fd8565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614e7357803560ff1916838001178555614ea1565b82800160010185558215614ea1579182015b82811115614ea0578235825591602001919060010190614e85565b5b509050614eae9190614fb3565b5090565b50805460018160011615610100020316600290046000825580601f10614ed85750614ef7565b601f016020900490600052602060002090810190614ef69190614fb3565b5b50565b815481835581811115614f2157818360005260206000209182019101614f209190614fb3565b5b505050565b614fb091905b80821115614fac57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600282016000905560038201600090556004820160009055600582016000905550600601614f2c565b5090565b90565b614fd591905b80821115614fd1576000816000905550600101614fb9565b5090565b90565b614ffa91905b80821115614ff6576000816000905550600101614fde565b5090565b905600a165627a7a7230582061857fa77b9c418a84775f036d3777c93845b7000cf61cf57ec7001db1434cd800296080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610290806100536000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b146100a9578063aad3ec9614610100575b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100a757600080fd5b005b3480156100b557600080fd5b506100be61014d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010c57600080fd5b5061014b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610172565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cd57600080fd5b3073ffffffffffffffffffffffffffffffffffffffff163181111515156101f357600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff161415151561021957600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561025f573d6000803e3d6000fd5b5050505600a165627a7a7230582029dc41abf9589aef7b9fca5cdef247e031a2ebb6fda9086bf6552632c70155e30029a165627a7a72305820ac1606f66a6b604a3c4f0e1b6d4ad7ae167e078b344012d30304a48bc1a6bf1c0029", - "linkReferences": {}, - "name": "", - "type": "constructor", - "from": "account{0}" - } - }, - { - "timestamp": 1536572913844, - "record": { - "value": "0", - "parameters": [ - "0x0dcd2f752394c41875e259e00bb44fd505297caf" - ], - "to": "created{1536572906284}", - "abi": "0x011b4d03dd8c01f1049143cf9c4c817e4b167f1d1b83e5c6f0f10d89ba1e7bce", - "name": "setBuilder", - "type": "function", - "from": "account{0}" - } - }, - { - "timestamp": 1536572984524, - "record": { - "value": "0", - "parameters": [ - "V1", - "0x5e72914535f202659083db3a02c984188fa26e9f", - "IPFS_HASH", - "Basic Version of Registry" - ], - "to": "created{1536572895961}", - "abi": "0x2af357fc2ab2964b76482ec0fcac3b86f5aca1a8292676023c8b9ec392d821a0", - "name": "addRegistryCreatorVersion", - "type": "function", - "from": "account{0}" - } - }, - { - "timestamp": 1536573047152, - "record": { - "value": "10000000", - "parameters": [ - "V1", - [ - "0xca35b7d915458ef540ade6068dfe2f44e8fa733c" - ], - [ - 100 - ], - "TEST42", - "T42" - ], - "to": "created{1536572895961}", - "abi": "0x2af357fc2ab2964b76482ec0fcac3b86f5aca1a8292676023c8b9ec392d821a0", - "name": "registerRegistry", - "type": "function", - "from": "account{0}" - } - }, - { - "timestamp": 1536573227768, - "record": { - "value": "0", - "parameters": [ - "IPFS_HASH", - "0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611037806100536000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806304c437811461009257806311f7516c146100bd57806339464884146100ea5780637899b9f3146101d75780638da5cb5b14610202578063e3b54fb614610259578063f2fde38b146102d5575b34801561008f57600080fd5b50005b34801561009e57600080fd5b506100a7610318565b6040518082815260200191505060405180910390f35b3480156100c957600080fd5b506100e8600480360381019080803590602001909291905050506104bc565b005b3480156100f657600080fd5b50610115600480360381019080803590602001909291905050506106ea565b604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183600f0b600f0b815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561019957808201518184015260208101905061017e565b50505050905090810190601f1680156101c65780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156101e357600080fd5b506101ec61084c565b6040518082815260200191505060405180910390f35b34801561020e57600080fd5b50610217610859565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026557600080fd5b506102d360048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035600f0b906020019092919080359060200190820180359060200191909192939192939050505061087e565b005b3480156102e157600080fd5b50610316600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c4d565b005b6000610322610da2565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561037f57600080fd5b608060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000600f0b81526020016020604051908101604052806000815250815250915060016002839080600181540180825580915050906001820390600052602060002090600402016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060608201518160030190805190602001906104ae929190610de4565b505050039050809250505090565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561051a57600080fd5b600160028054905003915060028281548110151561053457fe5b906000526020600020906004020190508060028481548110151561055457fe5b90600052602060002090600402016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600182015481600101556002820160009054906101000a9004600f0b8160020160006101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060038201816003019080546001816001161561010002031660029004610649929190610e64565b5090505060028281548110151561065c57fe5b9060005260206000209060040201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556003820160006106cd9190610eeb565b505060028054809190600190036106e49190610f33565b50505050565b6000806000606060028581548110151561070057fe5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660028681548110151561074157fe5b90600052602060002090600402016001015460028781548110151561076257fe5b906000526020600020906004020160020160009054906101000a9004600f0b60028881548110151561079057fe5b9060005260206000209060040201600301808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108365780601f1061080b57610100808354040283529160200191610836565b820191906000526020600020905b81548152906001019060200180831161081957829003601f168201915b5050505050905093509350935093509193509193565b6000600280549050905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610886610da2565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660405180807f636865636b417574682875696e743235362c2061646472657373290000000000815250601b01905060405180910390207c0100000000000000000000000000000000000000000000000000000000900488336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001925050506000604051808303816000875af192505050151561099e57600080fd5b600015156001848460405180838380828437820191505092505050908152602001604051809103902060009054906101000a900460ff1615151415156109e357600080fd5b6080604051908101604052808773ffffffffffffffffffffffffffffffffffffffff16815260200186815260200185600f0b815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050815250905080600288815481101515610a6257fe5b906000526020600020906004020160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff1602179055506060820151816003019080519060200190610b1f929190610de4565b50905050600180848460405180838380828437820191505092505050908152602001604051809103902060006101000a81548160ff0219169083151502179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660405180807f757064617465456e74727954696d657374616d702875696e7432353629000000815250601d01905060405180910390207c01000000000000000000000000000000000000000000000000000000009004886040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808281526020019150506000604051808303816000875af1925050501515610c4457600080fd5b50505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ca857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ce457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b608060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000600f0b8152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e2557805160ff1916838001178555610e53565b82800160010185558215610e53579182015b82811115610e52578251825591602001919060010190610e37565b5b509050610e609190610f65565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e9d5780548555610eda565b82800160010185558215610eda57600052602060002091601f016020900482015b82811115610ed9578254825591600101919060010190610ebe565b5b509050610ee79190610f65565b5090565b50805460018160011615610100020316600290046000825580601f10610f115750610f30565b601f016020900490600052602060002090810190610f2f9190610f65565b5b50565b815481835581811115610f6057600402816004028360005260206000209182019101610f5f9190610f8a565b5b505050565b610f8791905b80821115610f83576000816000905550600101610f6b565b5090565b90565b61100891905b8082111561100457600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160006101000a8154906fffffffffffffffffffffffffffffffff0219169055600382016000610ffb9190610eeb565b50600401610f90565b5090565b905600a165627a7a7230582030bd46d8a19cf0651e8504bb3c801e8da56fa5c4862a85e79b019a12e293cd180029" - ], - "to": "created{undefined}", - "name": "initializeRegistry", - "type": "function", - "from": "account{0}" - } - }, - { - "timestamp": 1536573236523, - "record": { - "value": "0", - "parameters": [], - "to": "created{undefined}", - "name": "createEntry", - "type": "function", - "from": "account{0}" - } - }, - { - "timestamp": 1536573314699, - "record": { - "value": "0", - "parameters": [ - "0", - "0xca35b7d915458ef540ade6068dfe2f44e8fa733c", - "42", - "-42", - "This is 42" - ], - "to": "created{undefined}", - "name": "updateEntry", - "type": "function", - "from": "account{0}" - } - } - ], - "abis": { - "0x2af357fc2ab2964b76482ec0fcac3b86f5aca1a8292676023c8b9ec392d821a0": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "admin", - "type": "address" - }, - { - "indexed": false, - "name": "name", - "type": "string" - } - ], - "name": "RegistryUnregistered", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "name": "_nameOfVersion", - "type": "string" - }, - { - "name": "_addressRegistryCreator", - "type": "address" - }, - { - "name": "_link", - "type": "string" - }, - { - "name": "_description", - "type": "string" - } - ], - "name": "addRegistryCreatorVersion", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_payeeIndex", - "type": "uint256" - }, - { - "name": "_newAddress", - "type": "address" - } - ], - "name": "changePayeeAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - }, - { - "name": "_amount", - "type": "uint256" - } - ], - "name": "claimEntryFunds", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "destroy", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_recipient", - "type": "address" - } - ], - "name": "destroyAndSend", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - } - ], - "name": "fundRegistry", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "pause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_version", - "type": "string" - }, - { - "name": "_benefitiaries", - "type": "address[]" - }, - { - "name": "_shares", - "type": "uint256[]" - }, - { - "name": "_name", - "type": "string" - }, - { - "name": "_symbol", - "type": "string" - } - ], - "name": "registerRegistry", - "outputs": [ - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "uint256" - } - ], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - }, - { - "name": "_data", - "type": "bytes" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - }, - { - "name": "_approved", - "type": "bool" - } - ], - "name": "setApprovalForAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "unpause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "registryID", - "type": "uint256" - }, - { - "indexed": false, - "name": "claimer", - "type": "address" - }, - { - "indexed": false, - "name": "amout", - "type": "uint256" - } - ], - "name": "RegistryFundsClaimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "registryID", - "type": "uint256" - }, - { - "indexed": false, - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "name": "amount", - "type": "uint256" - } - ], - "name": "RegistryFunded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_operator", - "type": "address" - }, - { - "indexed": false, - "name": "_approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - } - ], - "name": "unregisterRegistry", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "caller", - "type": "address" - }, - { - "indexed": false, - "name": "registyID", - "type": "uint256" - }, - { - "indexed": false, - "name": "newOwner", - "type": "address" - } - ], - "name": "RegistryChangedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "name", - "type": "string" - }, - { - "indexed": false, - "name": "registryAddress", - "type": "address" - }, - { - "indexed": false, - "name": "creator", - "type": "address" - }, - { - "indexed": false, - "name": "registryID", - "type": "uint256" - } - ], - "name": "RegistryRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "Unpause", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_approved", - "type": "address" - }, - { - "indexed": false, - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "payeeIndex", - "type": "uint256" - }, - { - "indexed": false, - "name": "oldAddress", - "type": "address" - }, - { - "indexed": false, - "name": "newAddress", - "type": "address" - } - ], - "name": "PayeeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "Pause", - "type": "event" - }, - { - "inputs": [ - { - "name": "_benefitiaries", - "type": "address[]" - }, - { - "name": "_shares", - "type": "uint256[]" - }, - { - "name": "_description", - "type": "string" - }, - { - "name": "_registrationFee", - "type": "uint256" - }, - { - "name": "_chaingearName", - "type": "string" - }, - { - "name": "_chaingearSymbol", - "type": "string" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "payable": true, - "stateMutability": "payable", - "type": "fallback" - }, - { - "constant": false, - "inputs": [ - { - "name": "_description", - "type": "string" - } - ], - "name": "updateDescription", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newFee", - "type": "uint256" - } - ], - "name": "updateRegistrationFee", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - }, - { - "name": "_newOwner", - "type": "address" - } - ], - "name": "updateRegistryOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "exists", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "getApproved", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getDescription", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getRegistrationFee", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_nameOfVersion", - "type": "string" - } - ], - "name": "getRegistryCreatorInfo", - "outputs": [ - { - "name": "_addressRegistryCreator", - "type": "address" - }, - { - "name": "_link", - "type": "string" - }, - { - "name": "_description", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getSafe", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getSafeBalance", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - }, - { - "name": "_operator", - "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "ownerOf", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "paused", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "payees", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "registriesAmount", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - } - ], - "name": "registryBalanceInfo", - "outputs": [ - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_registryID", - "type": "uint256" - } - ], - "name": "registryInfo", - "outputs": [ - { - "name": "", - "type": "string" - }, - { - "name": "", - "type": "string" - }, - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "string" - }, - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "released", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "shares", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_index", - "type": "uint256" - } - ], - "name": "tokenByIndex", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - }, - { - "name": "_index", - "type": "uint256" - } - ], - "name": "tokenOfOwnerByIndex", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "tokenURI", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalReleased", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalShares", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "0x011b4d03dd8c01f1049143cf9c4c817e4b167f1d1b83e5c6f0f10d89ba1e7bce": [ - { - "constant": false, - "inputs": [ - { - "name": "_benefitiaries", - "type": "address[]" - }, - { - "name": "_shares", - "type": "uint256[]" - }, - { - "name": "_name", - "type": "string" - }, - { - "name": "_symbol", - "type": "string" - } - ], - "name": "create", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "name": "_builder", - "type": "address" - } - ], - "name": "setBuilder", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "payable": false, - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "constant": true, - "inputs": [], - "name": "getRegistryBuilder", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ] - } -} diff --git a/docs/verification/Builder_full.sol b/docs/verification/Builder_full.sol new file mode 100644 index 00000000..daa29fea --- /dev/null +++ b/docs/verification/Builder_full.sol @@ -0,0 +1,1831 @@ +pragma solidity 0.4.25; + +// File: openzeppelin-solidity/contracts/introspection/ERC165.sol + +/** + * @title ERC165 + * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md + */ +interface ERC165 { + + /** + * @notice Query if a contract implements an interface + * @param _interfaceId The interface identifier, as specified in ERC-165 + * @dev Interface identification is specified in ERC-165. This function + * uses less than 30,000 gas. + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool); +} + +// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol + +/** + * @title SupportsInterfaceWithLookup + * @author Matt Condon (@shrugs) + * @dev Implements ERC165 using a lookup table. + */ +contract SupportsInterfaceWithLookup is ERC165 { + + bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; + /** + * 0x01ffc9a7 === + * bytes4(keccak256('supportsInterface(bytes4)')) + */ + + /** + * @dev a mapping of interface id to whether or not it's supported + */ + mapping(bytes4 => bool) internal supportedInterfaces; + + /** + * @dev A contract implementing SupportsInterfaceWithLookup + * implement ERC165 itself + */ + constructor() + public + { + _registerInterface(InterfaceId_ERC165); + } + + /** + * @dev implement supportsInterface(bytes4) using a lookup table + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool) + { + return supportedInterfaces[_interfaceId]; + } + + /** + * @dev private method for registering an interface + */ + function _registerInterface(bytes4 _interfaceId) + internal + { + require(_interfaceId != 0xffffffff); + supportedInterfaces[_interfaceId] = true; + } +} + +// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol + +/** + * @title ERC721 Non-Fungible Token Standard basic interface + * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721Basic is ERC165 { + + bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd; + /* + * 0x80ac58cd === + * bytes4(keccak256('balanceOf(address)')) ^ + * bytes4(keccak256('ownerOf(uint256)')) ^ + * bytes4(keccak256('approve(address,uint256)')) ^ + * bytes4(keccak256('getApproved(uint256)')) ^ + * bytes4(keccak256('setApprovalForAll(address,bool)')) ^ + * bytes4(keccak256('isApprovedForAll(address,address)')) ^ + * bytes4(keccak256('transferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) + */ + + bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79; + /* + * 0x4f558e79 === + * bytes4(keccak256('exists(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63; + /** + * 0x780e9d63 === + * bytes4(keccak256('totalSupply()')) ^ + * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ + * bytes4(keccak256('tokenByIndex(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f; + /** + * 0x5b5e139f === + * bytes4(keccak256('name()')) ^ + * bytes4(keccak256('symbol()')) ^ + * bytes4(keccak256('tokenURI(uint256)')) + */ + + event Transfer( + address indexed _from, + address indexed _to, + uint256 indexed _tokenId + ); + event Approval( + address indexed _owner, + address indexed _approved, + uint256 indexed _tokenId + ); + event ApprovalForAll( + address indexed _owner, + address indexed _operator, + bool _approved + ); + + function balanceOf(address _owner) public view returns (uint256 _balance); + function ownerOf(uint256 _tokenId) public view returns (address _owner); + function exists(uint256 _tokenId) public view returns (bool _exists); + + function approve(address _to, uint256 _tokenId) public; + function getApproved(uint256 _tokenId) + public view returns (address _operator); + + function setApprovalForAll(address _operator, bool _approved) public; + function isApprovedForAll(address _owner, address _operator) + public view returns (bool); + + function transferFrom(address _from, address _to, uint256 _tokenId) public; + function safeTransferFrom(address _from, address _to, uint256 _tokenId) + public; + + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + public; +} + +// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol + +/** + * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension + * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721Enumerable is ERC721Basic { + function totalSupply() public view returns (uint256); + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256 _tokenId); + + function tokenByIndex(uint256 _index) public view returns (uint256); +} + + +/** + * @title ERC-721 Non-Fungible Token Standard, optional metadata extension + * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721Metadata is ERC721Basic { + function name() external view returns (string _name); + function symbol() external view returns (string _symbol); + function tokenURI(uint256 _tokenId) public view returns (string); +} + + +/** + * @title ERC-721 Non-Fungible Token Standard, full implementation interface + * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { +} + +// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol + +/** + * @title ERC721 token receiver interface + * @dev Interface for any contract that wants to support safeTransfers + * from ERC721 asset contracts. + */ +contract ERC721Receiver { + /** + * @dev Magic value to be returned upon successful reception of an NFT + * Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`, + * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` + */ + bytes4 internal constant ERC721_RECEIVED = 0x150b7a02; + + /** + * @notice Handle the receipt of an NFT + * @dev The ERC721 smart contract calls this function on the recipient + * after a `safetransfer`. This function MAY throw to revert and reject the + * transfer. Return of other than the magic value MUST result in the + * transaction being reverted. + * Note: the contract address is always the message sender. + * @param _operator The address which called `safeTransferFrom` function + * @param _from The address which previously owned the token + * @param _tokenId The NFT identifier which is being transferred + * @param _data Additional data with no specified format + * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` + */ + function onERC721Received( + address _operator, + address _from, + uint256 _tokenId, + bytes _data + ) + public + returns(bytes4); +} + +// File: openzeppelin-solidity/contracts/math/SafeMath.sol + +/** + * @title SafeMath + * @dev Math operations with safety checks that throw on error + */ +library SafeMath { + + /** + * @dev Multiplies two numbers, throws on overflow. + */ + function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + // Gas optimization: this is cheaper than asserting 'a' not being zero, but the + // benefit is lost if 'b' is also tested. + // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 + if (_a == 0) { + return 0; + } + + c = _a * _b; + assert(c / _a == _b); + return c; + } + + /** + * @dev Integer division of two numbers, truncating the quotient. + */ + function div(uint256 _a, uint256 _b) internal pure returns (uint256) { + // assert(_b > 0); // Solidity automatically throws when dividing by 0 + // uint256 c = _a / _b; + // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold + return _a / _b; + } + + /** + * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). + */ + function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { + assert(_b <= _a); + return _a - _b; + } + + /** + * @dev Adds two numbers, throws on overflow. + */ + function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + c = _a + _b; + assert(c >= _a); + return c; + } +} + +// File: openzeppelin-solidity/contracts/AddressUtils.sol + +/** + * Utility library of inline functions on addresses + */ +library AddressUtils { + + /** + * Returns whether the target address is a contract + * @dev This function will return false if invoked during the constructor of a contract, + * as the code is not actually created until after the constructor finishes. + * @param _addr address to check + * @return whether the target address is a contract + */ + function isContract(address _addr) internal view returns (bool) { + uint256 size; + // XXX Currently there is no better way to check if there is a contract in an address + // than to check the size of the code at that address. + // See https://ethereum.stackexchange.com/a/14016/36603 + // for more details about how this works. + // TODO Check this again before the Serenity release, because all addresses will be + // contracts then. + // solium-disable-next-line security/no-inline-assembly + assembly { size := extcodesize(_addr) } + return size > 0; + } + +} + +// File: openzeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol + +/** + * @title ERC721 Non-Fungible Token Standard basic implementation + * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic { + + using SafeMath for uint256; + using AddressUtils for address; + + // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` + // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` + bytes4 private constant ERC721_RECEIVED = 0x150b7a02; + + // Mapping from token ID to owner + mapping (uint256 => address) internal tokenOwner; + + // Mapping from token ID to approved address + mapping (uint256 => address) internal tokenApprovals; + + // Mapping from owner to number of owned token + mapping (address => uint256) internal ownedTokensCount; + + // Mapping from owner to operator approvals + mapping (address => mapping (address => bool)) internal operatorApprovals; + + constructor() + public + { + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721); + _registerInterface(InterfaceId_ERC721Exists); + } + + /** + * @dev Gets the balance of the specified address + * @param _owner address to query the balance of + * @return uint256 representing the amount owned by the passed address + */ + function balanceOf(address _owner) public view returns (uint256) { + require(_owner != address(0)); + return ownedTokensCount[_owner]; + } + + /** + * @dev Gets the owner of the specified token ID + * @param _tokenId uint256 ID of the token to query the owner of + * @return owner address currently marked as the owner of the given token ID + */ + function ownerOf(uint256 _tokenId) public view returns (address) { + address owner = tokenOwner[_tokenId]; + require(owner != address(0)); + return owner; + } + + /** + * @dev Returns whether the specified token exists + * @param _tokenId uint256 ID of the token to query the existence of + * @return whether the token exists + */ + function exists(uint256 _tokenId) public view returns (bool) { + address owner = tokenOwner[_tokenId]; + return owner != address(0); + } + + /** + * @dev Approves another address to transfer the given token ID + * The zero address indicates there is no approved address. + * There can only be one approved address per token at a given time. + * Can only be called by the token owner or an approved operator. + * @param _to address to be approved for the given token ID + * @param _tokenId uint256 ID of the token to be approved + */ + function approve(address _to, uint256 _tokenId) public { + address owner = ownerOf(_tokenId); + require(_to != owner); + require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); + + tokenApprovals[_tokenId] = _to; + emit Approval(owner, _to, _tokenId); + } + + /** + * @dev Gets the approved address for a token ID, or zero if no address set + * @param _tokenId uint256 ID of the token to query the approval of + * @return address currently approved for the given token ID + */ + function getApproved(uint256 _tokenId) public view returns (address) { + return tokenApprovals[_tokenId]; + } + + /** + * @dev Sets or unsets the approval of a given operator + * An operator is allowed to transfer all tokens of the sender on their behalf + * @param _to operator address to set the approval + * @param _approved representing the status of the approval to be set + */ + function setApprovalForAll(address _to, bool _approved) public { + require(_to != msg.sender); + operatorApprovals[msg.sender][_to] = _approved; + emit ApprovalForAll(msg.sender, _to, _approved); + } + + /** + * @dev Tells whether an operator is approved by a given owner + * @param _owner owner address which you want to query the approval of + * @param _operator operator address which you want to query the approval of + * @return bool whether the given operator is approved by the given owner + */ + function isApprovedForAll( + address _owner, + address _operator + ) + public + view + returns (bool) + { + return operatorApprovals[_owner][_operator]; + } + + /** + * @dev Transfers the ownership of a given token ID to another address + * Usage of this method is discouraged, use `safeTransferFrom` whenever possible + * Requires the msg sender to be the owner, approved, or operator + * @param _from current owner of the token + * @param _to address to receive the ownership of the given token ID + * @param _tokenId uint256 ID of the token to be transferred + */ + function transferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + { + require(isApprovedOrOwner(msg.sender, _tokenId)); + require(_from != address(0)); + require(_to != address(0)); + + clearApproval(_from, _tokenId); + removeTokenFrom(_from, _tokenId); + addTokenTo(_to, _tokenId); + + emit Transfer(_from, _to, _tokenId); + } + + /** + * @dev Safely transfers the ownership of a given token ID to another address + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * + * Requires the msg sender to be the owner, approved, or operator + * @param _from current owner of the token + * @param _to address to receive the ownership of the given token ID + * @param _tokenId uint256 ID of the token to be transferred + */ + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + { + // solium-disable-next-line arg-overflow + safeTransferFrom(_from, _to, _tokenId, ""); + } + + /** + * @dev Safely transfers the ownership of a given token ID to another address + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * Requires the msg sender to be the owner, approved, or operator + * @param _from current owner of the token + * @param _to address to receive the ownership of the given token ID + * @param _tokenId uint256 ID of the token to be transferred + * @param _data bytes data to send along with a safe transfer check + */ + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + public + { + transferFrom(_from, _to, _tokenId); + // solium-disable-next-line arg-overflow + require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data)); + } + + /** + * @dev Returns whether the given spender can transfer a given token ID + * @param _spender address of the spender to query + * @param _tokenId uint256 ID of the token to be transferred + * @return bool whether the msg.sender is approved for the given token ID, + * is an operator of the owner, or is the owner of the token + */ + function isApprovedOrOwner( + address _spender, + uint256 _tokenId + ) + internal + view + returns (bool) + { + address owner = ownerOf(_tokenId); + // Disable solium check because of + // https://github.com/duaraghav8/Solium/issues/175 + // solium-disable-next-line operator-whitespace + return ( + _spender == owner || + getApproved(_tokenId) == _spender || + isApprovedForAll(owner, _spender) + ); + } + + /** + * @dev Internal function to mint a new token + * Reverts if the given token ID already exists + * @param _to The address that will own the minted token + * @param _tokenId uint256 ID of the token to be minted by the msg.sender + */ + function _mint(address _to, uint256 _tokenId) internal { + require(_to != address(0)); + addTokenTo(_to, _tokenId); + emit Transfer(address(0), _to, _tokenId); + } + + /** + * @dev Internal function to burn a specific token + * Reverts if the token does not exist + * @param _tokenId uint256 ID of the token being burned by the msg.sender + */ + function _burn(address _owner, uint256 _tokenId) internal { + clearApproval(_owner, _tokenId); + removeTokenFrom(_owner, _tokenId); + emit Transfer(_owner, address(0), _tokenId); + } + + /** + * @dev Internal function to clear current approval of a given token ID + * Reverts if the given address is not indeed the owner of the token + * @param _owner owner of the token + * @param _tokenId uint256 ID of the token to be transferred + */ + function clearApproval(address _owner, uint256 _tokenId) internal { + require(ownerOf(_tokenId) == _owner); + if (tokenApprovals[_tokenId] != address(0)) { + tokenApprovals[_tokenId] = address(0); + } + } + + /** + * @dev Internal function to add a token ID to the list of a given address + * @param _to address representing the new owner of the given token ID + * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address + */ + function addTokenTo(address _to, uint256 _tokenId) internal { + require(tokenOwner[_tokenId] == address(0)); + tokenOwner[_tokenId] = _to; + ownedTokensCount[_to] = ownedTokensCount[_to].add(1); + } + + /** + * @dev Internal function to remove a token ID from the list of a given address + * @param _from address representing the previous owner of the given token ID + * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address + */ + function removeTokenFrom(address _from, uint256 _tokenId) internal { + require(ownerOf(_tokenId) == _from); + ownedTokensCount[_from] = ownedTokensCount[_from].sub(1); + tokenOwner[_tokenId] = address(0); + } + + /** + * @dev Internal function to invoke `onERC721Received` on a target address + * The call is not executed if the target address is not a contract + * @param _from address representing the previous owner of the given token ID + * @param _to target address that will receive the tokens + * @param _tokenId uint256 ID of the token to be transferred + * @param _data bytes optional data to send along with the call + * @return whether the call correctly returned the expected magic value + */ + function checkAndCallSafeTransfer( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + internal + returns (bool) + { + if (!_to.isContract()) { + return true; + } + bytes4 retval = ERC721Receiver(_to).onERC721Received( + msg.sender, _from, _tokenId, _data); + return (retval == ERC721_RECEIVED); + } +} + +// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol + +/** + * @title Full ERC721 Token + * This implementation includes all the required and some optional functionality of the ERC721 standard + * Moreover, it includes approve all functionality using operator terminology + * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md + */ +contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 { + + // Token name + string internal name_; + + // Token symbol + string internal symbol_; + + // Mapping from owner to list of owned token IDs + mapping(address => uint256[]) internal ownedTokens; + + // Mapping from token ID to index of the owner tokens list + mapping(uint256 => uint256) internal ownedTokensIndex; + + // Array with all token ids, used for enumeration + uint256[] internal allTokens; + + // Mapping from token id to position in the allTokens array + mapping(uint256 => uint256) internal allTokensIndex; + + // Optional mapping for token URIs + mapping(uint256 => string) internal tokenURIs; + + /** + * @dev Constructor function + */ + constructor(string _name, string _symbol) public { + name_ = _name; + symbol_ = _symbol; + + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721Enumerable); + _registerInterface(InterfaceId_ERC721Metadata); + } + + /** + * @dev Gets the token name + * @return string representing the token name + */ + function name() external view returns (string) { + return name_; + } + + /** + * @dev Gets the token symbol + * @return string representing the token symbol + */ + function symbol() external view returns (string) { + return symbol_; + } + + /** + * @dev Returns an URI for a given token ID + * Throws if the token ID does not exist. May return an empty string. + * @param _tokenId uint256 ID of the token to query + */ + function tokenURI(uint256 _tokenId) public view returns (string) { + require(exists(_tokenId)); + return tokenURIs[_tokenId]; + } + + /** + * @dev Gets the token ID at a given index of the tokens list of the requested owner + * @param _owner address owning the tokens list to be accessed + * @param _index uint256 representing the index to be accessed of the requested tokens list + * @return uint256 token ID at the given index of the tokens list owned by the requested address + */ + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256) + { + require(_index < balanceOf(_owner)); + return ownedTokens[_owner][_index]; + } + + /** + * @dev Gets the total amount of tokens stored by the contract + * @return uint256 representing the total amount of tokens + */ + function totalSupply() public view returns (uint256) { + return allTokens.length; + } + + /** + * @dev Gets the token ID at a given index of all the tokens in this contract + * Reverts if the index is greater or equal to the total number of tokens + * @param _index uint256 representing the index to be accessed of the tokens list + * @return uint256 token ID at the given index of the tokens list + */ + function tokenByIndex(uint256 _index) public view returns (uint256) { + require(_index < totalSupply()); + return allTokens[_index]; + } + + /** + * @dev Internal function to set the token URI for a given token + * Reverts if the token ID does not exist + * @param _tokenId uint256 ID of the token to set its URI + * @param _uri string URI to assign + */ + function _setTokenURI(uint256 _tokenId, string _uri) internal { + require(exists(_tokenId)); + tokenURIs[_tokenId] = _uri; + } + + /** + * @dev Internal function to add a token ID to the list of a given address + * @param _to address representing the new owner of the given token ID + * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address + */ + function addTokenTo(address _to, uint256 _tokenId) internal { + super.addTokenTo(_to, _tokenId); + uint256 length = ownedTokens[_to].length; + ownedTokens[_to].push(_tokenId); + ownedTokensIndex[_tokenId] = length; + } + + /** + * @dev Internal function to remove a token ID from the list of a given address + * @param _from address representing the previous owner of the given token ID + * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address + */ + function removeTokenFrom(address _from, uint256 _tokenId) internal { + super.removeTokenFrom(_from, _tokenId); + + // To prevent a gap in the array, we store the last token in the index of the token to delete, and + // then delete the last slot. + uint256 tokenIndex = ownedTokensIndex[_tokenId]; + uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); + uint256 lastToken = ownedTokens[_from][lastTokenIndex]; + + ownedTokens[_from][tokenIndex] = lastToken; + // This also deletes the contents at the last position of the array + ownedTokens[_from].length--; + + // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to + // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping + // the lastToken to the first position, and then dropping the element placed in the last position of the list + + ownedTokensIndex[_tokenId] = 0; + ownedTokensIndex[lastToken] = tokenIndex; + } + + /** + * @dev Internal function to mint a new token + * Reverts if the given token ID already exists + * @param _to address the beneficiary that will own the minted token + * @param _tokenId uint256 ID of the token to be minted by the msg.sender + */ + function _mint(address _to, uint256 _tokenId) internal { + super._mint(_to, _tokenId); + + allTokensIndex[_tokenId] = allTokens.length; + allTokens.push(_tokenId); + } + + /** + * @dev Internal function to burn a specific token + * Reverts if the token does not exist + * @param _owner owner of the token to burn + * @param _tokenId uint256 ID of the token being burned by the msg.sender + */ + function _burn(address _owner, uint256 _tokenId) internal { + super._burn(_owner, _tokenId); + + // Clear metadata (if any) + if (bytes(tokenURIs[_tokenId]).length != 0) { + delete tokenURIs[_tokenId]; + } + + // Reorg all tokens array + uint256 tokenIndex = allTokensIndex[_tokenId]; + uint256 lastTokenIndex = allTokens.length.sub(1); + uint256 lastToken = allTokens[lastTokenIndex]; + + allTokens[tokenIndex] = lastToken; + allTokens[lastTokenIndex] = 0; + + allTokens.length--; + allTokensIndex[_tokenId] = 0; + allTokensIndex[lastToken] = tokenIndex; + } + +} + +// File: openzeppelin-solidity/contracts/payment/SplitPayment.sol + +/** + * @title SplitPayment + * @dev Base contract that supports multiple payees claiming funds sent to this contract + * according to the proportion they own. + */ +contract SplitPayment { + using SafeMath for uint256; + + uint256 public totalShares = 0; + uint256 public totalReleased = 0; + + mapping(address => uint256) public shares; + mapping(address => uint256) public released; + address[] public payees; + + /** + * @dev Constructor + */ + constructor(address[] _payees, uint256[] _shares) public payable { + require(_payees.length == _shares.length); + + for (uint256 i = 0; i < _payees.length; i++) { + addPayee(_payees[i], _shares[i]); + } + } + + /** + * @dev payable fallback + */ + function () external payable {} + + /** + * @dev Claim your share of the balance. + */ + function claim() public { + address payee = msg.sender; + + require(shares[payee] > 0); + + uint256 totalReceived = address(this).balance.add(totalReleased); + uint256 payment = totalReceived.mul( + shares[payee]).div( + totalShares).sub( + released[payee] + ); + + require(payment != 0); + require(address(this).balance >= payment); + + released[payee] = released[payee].add(payment); + totalReleased = totalReleased.add(payment); + + payee.transfer(payment); + } + + /** + * @dev Add a new payee to the contract. + * @param _payee The address of the payee to add. + * @param _shares The number of shares owned by the payee. + */ + function addPayee(address _payee, uint256 _shares) internal { + require(_payee != address(0)); + require(_shares > 0); + require(shares[_payee] == 0); + + payees.push(_payee); + shares[_payee] = _shares; + totalShares = totalShares.add(_shares); + } +} + +// File: openzeppelin-solidity/contracts/ownership/Ownable.sol + +/** + * @title Ownable + * @dev The Ownable contract has an owner address, and provides basic authorization control + * functions, this simplifies the implementation of "user permissions". + */ +contract Ownable { + address public owner; + + + event OwnershipRenounced(address indexed previousOwner); + event OwnershipTransferred( + address indexed previousOwner, + address indexed newOwner + ); + + + /** + * @dev The Ownable constructor sets the original `owner` of the contract to the sender + * account. + */ + constructor() public { + owner = msg.sender; + } + + /** + * @dev Throws if called by any account other than the owner. + */ + modifier onlyOwner() { + require(msg.sender == owner); + _; + } + + /** + * @dev Allows the current owner to relinquish control of the contract. + * @notice Renouncing to ownership will leave the contract without an owner. + * It will not be possible to call the functions with the `onlyOwner` + * modifier anymore. + */ + function renounceOwnership() public onlyOwner { + emit OwnershipRenounced(owner); + owner = address(0); + } + + /** + * @dev Allows the current owner to transfer control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function transferOwnership(address _newOwner) public onlyOwner { + _transferOwnership(_newOwner); + } + + /** + * @dev Transfers control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function _transferOwnership(address _newOwner) internal { + require(_newOwner != address(0)); + emit OwnershipTransferred(owner, _newOwner); + owner = _newOwner; + } +} + +// File: contracts/common/IDatabase.sol + +interface IDatabase { + + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns (address, address, uint256, uint256, uint256, uint256); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function transferAdminRights(address) external; + function transferOwnership(address) external; + function getAdmin() external view returns (address); + function getPaused() external view returns (bool); +} + +// File: contracts/common/IDatabaseBuilder.sol + +interface IDatabaseBuilder { + + function deployDatabase( + address[], + uint256[], + string, + string + ) external returns (IDatabase); + function setChaingearAddress(address) external; + function getChaingearAddress() external view returns (address); + function getOwner() external view returns (address); +} + +// File: contracts/common/IChaingear.sol + +interface IChaingear { + + function addDatabaseBuilderVersion( + string, + IDatabaseBuilder, + string, + string + ) external; + function updateDatabaseBuilderDescription(string, string) external; + function createDatabase( + string, + address[], + uint256[], + string, + string + ) external payable returns (address, uint256); + function deleteDatabase(uint256) external; + function fundDatabase(uint256) external payable; + function claimDatabaseFunds(uint256, uint256) external; + function updateCreationFee(uint256) external; + function getAmountOfBuilders() external view returns (uint256); + function getBuilderById(uint256) external view returns(string); + function getDatabaseBuilder(string) external view returns(address, string, string); + function getDatabasesIDs() external view returns (uint256[]); + function getDatabaseIDByAddress(address) external view returns (uint256); + function getDatabase(uint256) external view returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ); + function getDatabaseBalance(uint256) external view returns (uint256, uint256); + function getChaingearDescription() external pure returns (string); + function getSafeBalance() external view returns (uint256); + function getSafeAddress() external view returns (address); + function getNameExist(string) external view returns (bool); + function getSymbolExist(string) external view returns (bool); +} + +// File: contracts/common/ISchema.sol + +interface ISchema { + + function createEntry() external; + function deleteEntry(uint256) external; +} + +// File: contracts/common/Safe.sol + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract Safe { + + address private owner; + + constructor() public + { + owner = msg.sender; + } + + function() external payable { + require(msg.sender == owner); + } + + function claim(address _entryOwner, uint256 _amount) + external + { + require(msg.sender == owner); + require(_amount <= address(this).balance); + require(_entryOwner != address(0)); + + _entryOwner.transfer(_amount); + } + + function getOwner() + external + view + returns(address) + { + return owner; + } +} + +// File: contracts/databases/DatabasePermissionControl.sol + +// import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; + + + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabasePermissionControl is Ownable { + + /* + * Storage + */ + + enum CreateEntryPermissionGroup {OnlyAdmin, Whitelist, AllUsers} + + address private admin; + bool private paused = false; + + mapping(address => bool) private whitelist; + + CreateEntryPermissionGroup private permissionGroup = CreateEntryPermissionGroup.OnlyAdmin; + + /* + * Modifiers + */ + + modifier whenNotPaused() { + require(!paused); + _; + } + + modifier whenPaused() { + require(paused); + _; + } + + /* + * Events + */ + + event Pause(); + event Unpause(); + event PermissionGroupChanged(CreateEntryPermissionGroup id); + + /* + * Constructor + */ + + constructor() + public + { } + + /* + * Modifiers + */ + + modifier onlyAdmin() { + require(msg.sender == admin); + _; + } + + modifier onlyPermissionedToCreateEntries() { + if (permissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { + require(msg.sender == admin); + } else if (permissionGroup == CreateEntryPermissionGroup.Whitelist) { + require(whitelist[msg.sender] == true || msg.sender == admin); + } + _; + } + + /* + * External functions + */ + + function pause() + external + onlyAdmin + whenNotPaused + { + paused = true; + emit Pause(); + } + + function unpause() + external + onlyAdmin + whenPaused + { + paused = false; + emit Unpause(); + } + + function transferAdminRights(address _newAdmin) + external + onlyOwner + whenNotPaused + { + require(_newAdmin != address(0)); + admin = _newAdmin; + } + + function updateCreateEntryPermissionGroup( + CreateEntryPermissionGroup _newPermissionGroup + ) + external + onlyAdmin + whenPaused + { + require(CreateEntryPermissionGroup.AllUsers >= _newPermissionGroup); + permissionGroup = _newPermissionGroup; + emit PermissionGroupChanged(_newPermissionGroup); + } + + function addToWhitelist(address _address) + external + onlyAdmin + whenPaused + { + whitelist[_address] = true; + } + + function removeFromWhitelist(address _address) + external + onlyAdmin + whenPaused + { + whitelist[_address] = false; + } + + function getAdmin() + external + view + returns (address) + { + return admin; + } + + function getRegistryPermissions() + external + view + returns (CreateEntryPermissionGroup) + { + return permissionGroup; + } + + function checkWhitelisting(address _address) + external + view + returns (bool) + { + return whitelist[_address]; + } + + function getPaused() + external + view + returns (bool) + { + return paused; + } +} + +// File: contracts/databases/DatabaseV1.sol + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabaseV1 is IDatabase, Ownable, DatabasePermissionControl, SupportsInterfaceWithLookup, SplitPayment, ERC721Token { + + using SafeMath for uint256; + + /* + * Storage + */ + + bytes4 constant private INTERFACE_SCHEMA_ID = 0x153366ed; + bytes4 constant private INTERFACE_DATABASE_ID = 0xfdb63525; + + // @dev Metadata of entry, holds ownership data and funding info + struct EntryMeta { + address creator; + uint256 createdAt; + uint256 lastUpdateTime; + uint256 currentWei; + uint256 accumulatedWei; + } + + EntryMeta[] private entriesMeta; + + uint256 private headTokenID = 0; + uint256 private entryCreationFeeWei = 0; + + bytes32[] private databaseTags; + string private databaseDescription; + + string private schemaDefinition; + + Safe private databaseSafe; + + ISchema private entriesStorage; + bool private databaseInitStatus = false; + + /* + * Modifiers + */ + + modifier onlyOwnerOf(uint256 _entryID){ + require(ownerOf(_entryID) == msg.sender); + _; + } + + modifier databaseInitialized { + require(databaseInitStatus == true); + _; + } + + /** + * Events + */ + + event EntryCreated( + uint256 entryID, + address creator + ); + + event EntryDeleted( + uint256 entryID, + address owner + ); + + event EntryFunded( + uint256 entryID, + address funder, + uint256 amount + ); + + event EntryFundsClaimed( + uint256 entryID, + address claimer, + uint256 amount + ); + + event EntryCreationFeeUpdated( + uint256 newFees + ); + + event DescriptionUpdated( + string newDescription + ); + + event DatabaseInitialized(); + + /* + * Constructor + */ + + constructor( + address[] _beneficiaries, + uint256[] _shares, + string _name, + string _symbol + ) + ERC721Token (_name, _symbol) + SplitPayment (_beneficiaries, _shares) + public + payable + { + _registerInterface(INTERFACE_DATABASE_ID); + databaseSafe = new Safe(); + } + + function() external payable {} + + /* + * External functions + */ + + function createEntry() + external + databaseInitialized + onlyPermissionedToCreateEntries + whenNotPaused + payable + returns (uint256) + { + require(msg.value == entryCreationFeeWei); + + EntryMeta memory meta = (EntryMeta( + { + lastUpdateTime: block.timestamp, + createdAt: block.timestamp, + creator: msg.sender, + currentWei: 0, + accumulatedWei: 0 + })); + entriesMeta.push(meta); + + uint256 newTokenID = headTokenID; + super._mint(msg.sender, newTokenID); + headTokenID = headTokenID.add(1); + + emit EntryCreated(newTokenID, msg.sender); + + entriesStorage.createEntry(); + + return newTokenID; + } + + function auth(uint256 _entryID, address _caller) + external + whenNotPaused + { + require(msg.sender == address(entriesStorage)); + require(ownerOf(_entryID) == _caller); + uint256 entryIndex = allTokensIndex[_entryID]; + entriesMeta[entryIndex].lastUpdateTime = block.timestamp; + } + + function deleteEntry(uint256 _entryID) + external + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused + { + uint256 entryIndex = allTokensIndex[_entryID]; + require(entriesMeta[entryIndex].currentWei == 0); + + uint256 lastEntryIndex = entriesMeta.length.sub(1); + EntryMeta memory lastEntry = entriesMeta[lastEntryIndex]; + + entriesMeta[entryIndex] = lastEntry; + delete entriesMeta[lastEntryIndex]; + entriesMeta.length--; + + super._burn(msg.sender, _entryID); + emit EntryDeleted(_entryID, msg.sender); + + entriesStorage.deleteEntry(entryIndex); + } + + function fundEntry(uint256 _entryID) + external + databaseInitialized + whenNotPaused + payable + { + require(exists(_entryID) == true); + + uint256 entryIndex = allTokensIndex[_entryID]; + uint256 currentWei = entriesMeta[entryIndex].currentWei.add(msg.value); + entriesMeta[entryIndex].currentWei = currentWei; + + uint256 accumulatedWei = entriesMeta[entryIndex].accumulatedWei.add(msg.value); + entriesMeta[entryIndex].accumulatedWei = accumulatedWei; + + emit EntryFunded(_entryID, msg.sender, msg.value); + address(databaseSafe).transfer(msg.value); + } + + function claimEntryFunds(uint256 _entryID, uint256 _amount) + external + databaseInitialized + onlyOwnerOf(_entryID) + whenNotPaused + { + uint256 entryIndex = allTokensIndex[_entryID]; + + uint256 currentWei = entriesMeta[entryIndex].currentWei; + require(_amount <= currentWei); + entriesMeta[entryIndex].currentWei = currentWei.sub(_amount); + + emit EntryFundsClaimed(_entryID, msg.sender, _amount); + databaseSafe.claim(msg.sender, _amount); + } + + function updateEntryCreationFee(uint256 _newFee) + external + onlyAdmin + whenPaused + { + entryCreationFeeWei = _newFee; + emit EntryCreationFeeUpdated(_newFee); + } + + function updateDatabaseDescription(string _newDescription) + external + onlyAdmin + { + databaseDescription = _newDescription; + emit DescriptionUpdated(_newDescription); + } + + function addDatabaseTag(bytes32 _tag) + external + onlyAdmin + { + require(databaseTags.length < 16); + databaseTags.push(_tag); + } + + function updateDatabaseTag(uint8 _index, bytes32 _tag) + external + onlyAdmin + { + require(_index < databaseTags.length); + + databaseTags[_index] = _tag; + } + + function removeDatabaseTag(uint8 _index) + external + onlyAdmin + { + require(databaseTags.length > 0); + require(_index < databaseTags.length); + + uint256 lastTagIndex = databaseTags.length.sub(1); + bytes32 lastTag = databaseTags[lastTagIndex]; + + databaseTags[_index] = lastTag; + databaseTags[lastTagIndex] = ""; + databaseTags.length--; + } + + /* + * View functions + */ + + function readEntryMeta(uint256 _entryID) + external + view + returns ( + address, + address, + uint256, + uint256, + uint256, + uint256 + ) + { + require(exists(_entryID) == true); + uint256 entryIndex = allTokensIndex[_entryID]; + + EntryMeta memory m = entriesMeta[entryIndex]; + return( + ownerOf(_entryID), + m.creator, + m.createdAt, + m.lastUpdateTime, + m.currentWei, + m.accumulatedWei + ); + } + + function getChaingearID() + external + view + returns(uint256) + { + return IChaingear(owner).getDatabaseIDByAddress(address(this)); + } + + function getEntriesIDs() + external + view + returns (uint256[]) + { + return allTokens; + } + + function getIndexByID(uint256 _entryID) + external + view + returns (uint256) + { + require(exists(_entryID) == true); + return allTokensIndex[_entryID]; + } + + function getEntryCreationFee() + external + view + returns (uint256) + { + return entryCreationFeeWei; + } + + function getEntriesStorage() + external + view + returns (address) + { + return address(entriesStorage); + } + + function getSchemaDefinition() + external + view + returns (string) + { + return schemaDefinition; + } + + function getDatabaseBalance() + external + view + returns (uint256) + { + return address(this).balance; + } + + function getDatabaseDescription() + external + view + returns (string) + { + return databaseDescription; + } + + function getDatabaseTags() + external + view + returns (bytes32[]) + { + return databaseTags; + } + + function getDatabaseSafe() + external + view + returns (address) + { + return databaseSafe; + } + + function getSafeBalance() + external + view + returns (uint256) + { + return address(databaseSafe).balance; + } + + function getDatabaseInitStatus() + external + view + returns (bool) + { + return databaseInitStatus; + } + + function getPayeesCount() + external + view + returns (uint256) + { + return payees.length; + } + + /** + * Public functions + */ + + function initializeDatabase(string _schemaDefinition, bytes _schemaBytecode) + public + onlyAdmin + returns (address) + { + require(databaseInitStatus == false); + address deployedAddress; + + assembly { + let s := mload(_schemaBytecode) + let p := add(_schemaBytecode, 0x20) + deployedAddress := create(0, p, s) + } + + require(deployedAddress != address(0)); + require(SupportsInterfaceWithLookup(deployedAddress).supportsInterface(INTERFACE_SCHEMA_ID)); + entriesStorage = ISchema(deployedAddress); + + schemaDefinition = _schemaDefinition; + databaseInitStatus = true; + + emit DatabaseInitialized(); + return deployedAddress; + } + + function transferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + databaseInitialized + whenNotPaused + { + super.transferFrom(_from, _to, _tokenId); + } + + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + databaseInitialized + whenNotPaused + { + super.safeTransferFrom( + _from, + _to, + _tokenId, + "" + ); + } + + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data + ) + public + databaseInitialized + whenNotPaused + { + transferFrom(_from, _to, _tokenId); + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); + } +} + +// File: contracts/builders/DatabaseBuilderV1.sol + +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract DatabaseBuilderV1 is IDatabaseBuilder, SupportsInterfaceWithLookup { + + /* + * Storage + */ + + address private chaingear; + address private owner; + + bytes4 constant private INTERFACE_CHAINGEAR_ID = 0x2163c5ed; + bytes4 constant private INTERFACE_DATABASE_BUILDER_ID = 0xce8bbf93; + + /* + * Constructor + */ + + constructor() public { + chaingear = address(0); + owner = msg.sender; + + _registerInterface(INTERFACE_DATABASE_BUILDER_ID); + } + + /* + * Fallback + */ + + function() external {} + + /* + * External Functions + */ + + function deployDatabase( + address[] _benefitiaries, + uint256[] _shares, + string _name, + string _symbol + ) + external + returns (IDatabase) + { + require(msg.sender == chaingear); + + IDatabase databaseContract = new DatabaseV1( + _benefitiaries, + _shares, + _name, + _symbol + ); + + databaseContract.transferOwnership(chaingear); + + return databaseContract; + } + + /* + * Views + */ + + function setChaingearAddress(address _chaingear) + external + { + require(msg.sender == owner); + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_chaingear); + require(support.supportsInterface(INTERFACE_CHAINGEAR_ID)); + chaingear = _chaingear; + } + + function getChaingearAddress() + external + view + returns (address) + { + return chaingear; + } + + function getOwner() + external + view + returns (address) + { + return owner; + } +} diff --git a/docs/verification/Chaingear_full.sol b/docs/verification/Chaingear_full.sol index 4fbb2c3c..6a31b9dd 100644 --- a/docs/verification/Chaingear_full.sol +++ b/docs/verification/Chaingear_full.sol @@ -1,4 +1,76 @@ -pragma solidity 0.4.24; +pragma solidity 0.4.25; + +// File: openzeppelin-solidity/contracts/introspection/ERC165.sol + +/** + * @title ERC165 + * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md + */ +interface ERC165 { + + /** + * @notice Query if a contract implements an interface + * @param _interfaceId The interface identifier, as specified in ERC-165 + * @dev Interface identification is specified in ERC-165. This function + * uses less than 30,000 gas. + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool); +} + +// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol + +/** + * @title SupportsInterfaceWithLookup + * @author Matt Condon (@shrugs) + * @dev Implements ERC165 using a lookup table. + */ +contract SupportsInterfaceWithLookup is ERC165 { + + bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; + /** + * 0x01ffc9a7 === + * bytes4(keccak256('supportsInterface(bytes4)')) + */ + + /** + * @dev a mapping of interface id to whether or not it's supported + */ + mapping(bytes4 => bool) internal supportedInterfaces; + + /** + * @dev A contract implementing SupportsInterfaceWithLookup + * implement ERC165 itself + */ + constructor() + public + { + _registerInterface(InterfaceId_ERC165); + } + + /** + * @dev implement supportsInterface(bytes4) using a lookup table + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool) + { + return supportedInterfaces[_interfaceId]; + } + + /** + * @dev private method for registering an interface + */ + function _registerInterface(bytes4 _interfaceId) + internal + { + require(_interfaceId != 0xffffffff); + supportedInterfaces[_interfaceId] = true; + } +} // File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol @@ -6,23 +78,76 @@ pragma solidity 0.4.24; * @title ERC721 Non-Fungible Token Standard basic interface * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721Basic { - event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); - event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); - event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); +contract ERC721Basic is ERC165 { + + bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd; + /* + * 0x80ac58cd === + * bytes4(keccak256('balanceOf(address)')) ^ + * bytes4(keccak256('ownerOf(uint256)')) ^ + * bytes4(keccak256('approve(address,uint256)')) ^ + * bytes4(keccak256('getApproved(uint256)')) ^ + * bytes4(keccak256('setApprovalForAll(address,bool)')) ^ + * bytes4(keccak256('isApprovedForAll(address,address)')) ^ + * bytes4(keccak256('transferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^ + * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) + */ + + bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79; + /* + * 0x4f558e79 === + * bytes4(keccak256('exists(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63; + /** + * 0x780e9d63 === + * bytes4(keccak256('totalSupply()')) ^ + * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ + * bytes4(keccak256('tokenByIndex(uint256)')) + */ + + bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f; + /** + * 0x5b5e139f === + * bytes4(keccak256('name()')) ^ + * bytes4(keccak256('symbol()')) ^ + * bytes4(keccak256('tokenURI(uint256)')) + */ + + event Transfer( + address indexed _from, + address indexed _to, + uint256 indexed _tokenId + ); + event Approval( + address indexed _owner, + address indexed _approved, + uint256 indexed _tokenId + ); + event ApprovalForAll( + address indexed _owner, + address indexed _operator, + bool _approved + ); function balanceOf(address _owner) public view returns (uint256 _balance); function ownerOf(uint256 _tokenId) public view returns (address _owner); function exists(uint256 _tokenId) public view returns (bool _exists); function approve(address _to, uint256 _tokenId) public; - function getApproved(uint256 _tokenId) public view returns (address _operator); + function getApproved(uint256 _tokenId) + public view returns (address _operator); function setApprovalForAll(address _operator, bool _approved) public; - function isApprovedForAll(address _owner, address _operator) public view returns (bool); + function isApprovedForAll(address _owner, address _operator) + public view returns (bool); function transferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; + function safeTransferFrom(address _from, address _to, uint256 _tokenId) + public; + function safeTransferFrom( address _from, address _to, @@ -40,7 +165,14 @@ contract ERC721Basic { */ contract ERC721Enumerable is ERC721Basic { function totalSupply() public view returns (uint256); - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId); + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256 _tokenId); + function tokenByIndex(uint256 _index) public view returns (uint256); } @@ -50,8 +182,8 @@ contract ERC721Enumerable is ERC721Basic { * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Metadata is ERC721Basic { - function name() public view returns (string _name); - function symbol() public view returns (string _symbol); + function name() external view returns (string _name); + function symbol() external view returns (string _symbol); function tokenURI(uint256 _tokenId) public view returns (string); } @@ -68,29 +200,37 @@ contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers - * from ERC721 asset contracts. + * from ERC721 asset contracts. */ contract ERC721Receiver { /** * @dev Magic value to be returned upon successful reception of an NFT - * Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`, + * Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`, * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` */ - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; + bytes4 internal constant ERC721_RECEIVED = 0x150b7a02; /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient - * after a `safetransfer`. This function MAY throw to revert and reject the - * transfer. This function MUST use 50,000 gas or less. Return of other - * than the magic value MUST result in the transaction being reverted. - * Note: the contract address is always the message sender. - * @param _from The sending address - * @param _tokenId The NFT identifier which is being transfered + * after a `safetransfer`. This function MAY throw to revert and reject the + * transfer. Return of other than the magic value MUST result in the + * transaction being reverted. + * Note: the contract address is always the message sender. + * @param _operator The address which called `safeTransferFrom` function + * @param _from The address which previously owned the token + * @param _tokenId The NFT identifier which is being transferred * @param _data Additional data with no specified format - * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` + * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ - function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4); + function onERC721Received( + address _operator, + address _from, + uint256 _tokenId, + bytes _data + ) + public + returns(bytes4); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol @@ -104,39 +244,43 @@ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ - function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { - if (a == 0) { + function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + // Gas optimization: this is cheaper than asserting 'a' not being zero, but the + // benefit is lost if 'b' is also tested. + // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 + if (_a == 0) { return 0; } - c = a * b; - assert(c / a == b); + + c = _a * _b; + assert(c / _a == _b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ - function div(uint256 a, uint256 b) internal pure returns (uint256) { - // assert(b > 0); // Solidity automatically throws when dividing by 0 - // uint256 c = a / b; - // assert(a == b * c + a % b); // There is no case in which this doesn't hold - return a / b; + function div(uint256 _a, uint256 _b) internal pure returns (uint256) { + // assert(_b > 0); // Solidity automatically throws when dividing by 0 + // uint256 c = _a / _b; + // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold + return _a / _b; } /** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; + function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { + assert(_b <= _a); + return _a - _b; } /** * @dev Adds two numbers, throws on overflow. */ - function add(uint256 a, uint256 b) internal pure returns (uint256 c) { - c = a + b; - assert(c >= a); + function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) { + c = _a + _b; + assert(c >= _a); return c; } } @@ -151,11 +295,11 @@ library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, - * as the code is not actually created until after the constructor finishes. - * @param addr address to check + * as the code is not actually created until after the constructor finishes. + * @param _addr address to check * @return whether the target address is a contract */ - function isContract(address addr) internal view returns (bool) { + function isContract(address _addr) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. @@ -163,7 +307,8 @@ library AddressUtils { // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. - assembly { size := extcodesize(addr) } // solium-disable-line security/no-inline-assembly + // solium-disable-next-line security/no-inline-assembly + assembly { size := extcodesize(_addr) } return size > 0; } @@ -175,13 +320,14 @@ library AddressUtils { * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721BasicToken is ERC721Basic { +contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic { + using SafeMath for uint256; using AddressUtils for address; - // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` + // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; + bytes4 private constant ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) internal tokenOwner; @@ -195,22 +341,12 @@ contract ERC721BasicToken is ERC721Basic { // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) internal operatorApprovals; - /** - * @dev Guarantees msg.sender is owner of the given token - * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender - */ - modifier onlyOwnerOf(uint256 _tokenId) { - require(ownerOf(_tokenId) == msg.sender); - _; - } - - /** - * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator - * @param _tokenId uint256 ID of the token to validate - */ - modifier canTransfer(uint256 _tokenId) { - require(isApprovedOrOwner(msg.sender, _tokenId)); - _; + constructor() + public + { + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721); + _registerInterface(InterfaceId_ERC721Exists); } /** @@ -236,7 +372,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Returns whether the specified token exists - * @param _tokenId uint256 ID of the token to query the existance of + * @param _tokenId uint256 ID of the token to query the existence of * @return whether the token exists */ function exists(uint256 _tokenId) public view returns (bool) { @@ -246,9 +382,9 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Approves another address to transfer the given token ID - * @dev The zero address indicates there is no approved address. - * @dev There can only be one approved address per token at a given time. - * @dev Can only be called by the token owner or an approved operator. + * The zero address indicates there is no approved address. + * There can only be one approved address per token at a given time. + * Can only be called by the token owner or an approved operator. * @param _to address to be approved for the given token ID * @param _tokenId uint256 ID of the token to be approved */ @@ -257,16 +393,14 @@ contract ERC721BasicToken is ERC721Basic { require(_to != owner); require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); - if (getApproved(_tokenId) != address(0) || _to != address(0)) { - tokenApprovals[_tokenId] = _to; - emit Approval(owner, _to, _tokenId); - } + tokenApprovals[_tokenId] = _to; + emit Approval(owner, _to, _tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * @param _tokenId uint256 ID of the token to query the approval of - * @return address currently approved for a the given token ID + * @return address currently approved for the given token ID */ function getApproved(uint256 _tokenId) public view returns (address) { return tokenApprovals[_tokenId]; @@ -274,7 +408,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Sets or unsets the approval of a given operator - * @dev An operator is allowed to transfer all tokens of the sender on their behalf + * An operator is allowed to transfer all tokens of the sender on their behalf * @param _to operator address to set the approval * @param _approved representing the status of the approval to be set */ @@ -290,19 +424,33 @@ contract ERC721BasicToken is ERC721Basic { * @param _operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ - function isApprovedForAll(address _owner, address _operator) public view returns (bool) { + function isApprovedForAll( + address _owner, + address _operator + ) + public + view + returns (bool) + { return operatorApprovals[_owner][_operator]; } /** * @dev Transfers the ownership of a given token ID to another address - * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible - * @dev Requires the msg sender to be the owner, approved, or operator + * Usage of this method is discouraged, use `safeTransferFrom` whenever possible + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred */ - function transferFrom(address _from, address _to, uint256 _tokenId) public canTransfer(_tokenId) { + function transferFrom( + address _from, + address _to, + uint256 _tokenId + ) + public + { + require(isApprovedOrOwner(msg.sender, _tokenId)); require(_from != address(0)); require(_to != address(0)); @@ -315,11 +463,12 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred @@ -330,7 +479,6 @@ contract ERC721BasicToken is ERC721Basic { uint256 _tokenId ) public - canTransfer(_tokenId) { // solium-disable-next-line arg-overflow safeTransferFrom(_from, _to, _tokenId, ""); @@ -338,11 +486,11 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator + * If the target address is a contract, it must implement `onERC721Received`, + * which is called upon a safe transfer, and return the magic value + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, + * the transfer is reverted. + * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred @@ -355,7 +503,6 @@ contract ERC721BasicToken is ERC721Basic { bytes _data ) public - canTransfer(_tokenId) { transferFrom(_from, _to, _tokenId); // solium-disable-next-line arg-overflow @@ -369,14 +516,28 @@ contract ERC721BasicToken is ERC721Basic { * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ - function isApprovedOrOwner(address _spender, uint256 _tokenId) internal view returns (bool) { + function isApprovedOrOwner( + address _spender, + uint256 _tokenId + ) + internal + view + returns (bool) + { address owner = ownerOf(_tokenId); - return _spender == owner || getApproved(_tokenId) == _spender || isApprovedForAll(owner, _spender); + // Disable solium check because of + // https://github.com/duaraghav8/Solium/issues/175 + // solium-disable-next-line operator-whitespace + return ( + _spender == owner || + getApproved(_tokenId) == _spender || + isApprovedForAll(owner, _spender) + ); } /** * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists + * Reverts if the given token ID already exists * @param _to The address that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ @@ -388,7 +549,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist + * Reverts if the token does not exist * @param _tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address _owner, uint256 _tokenId) internal { @@ -399,7 +560,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to clear current approval of a given token ID - * @dev Reverts if the given address is not indeed the owner of the token + * Reverts if the given address is not indeed the owner of the token * @param _owner owner of the token * @param _tokenId uint256 ID of the token to be transferred */ @@ -407,7 +568,6 @@ contract ERC721BasicToken is ERC721Basic { require(ownerOf(_tokenId) == _owner); if (tokenApprovals[_tokenId] != address(0)) { tokenApprovals[_tokenId] = address(0); - emit Approval(_owner, address(0), _tokenId); } } @@ -435,7 +595,7 @@ contract ERC721BasicToken is ERC721Basic { /** * @dev Internal function to invoke `onERC721Received` on a target address - * @dev The call is not executed if the target address is not a contract + * The call is not executed if the target address is not a contract * @param _from address representing the previous owner of the given token ID * @param _to target address that will receive the tokens * @param _tokenId uint256 ID of the token to be transferred @@ -454,7 +614,8 @@ contract ERC721BasicToken is ERC721Basic { if (!_to.isContract()) { return true; } - bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data); + bytes4 retval = ERC721Receiver(_to).onERC721Received( + msg.sender, _from, _tokenId, _data); return (retval == ERC721_RECEIVED); } } @@ -467,7 +628,8 @@ contract ERC721BasicToken is ERC721Basic { * Moreover, it includes approve all functionality using operator terminology * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ -contract ERC721Token is ERC721, ERC721BasicToken { +contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 { + // Token name string internal name_; @@ -475,7 +637,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { string internal symbol_; // Mapping from owner to list of owned token IDs - mapping (address => uint256[]) internal ownedTokens; + mapping(address => uint256[]) internal ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) internal ownedTokensIndex; @@ -492,16 +654,20 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Constructor function */ - function ERC721Token(string _name, string _symbol) public { + constructor(string _name, string _symbol) public { name_ = _name; symbol_ = _symbol; + + // register the supported interfaces to conform to ERC721 via ERC165 + _registerInterface(InterfaceId_ERC721Enumerable); + _registerInterface(InterfaceId_ERC721Metadata); } /** * @dev Gets the token name * @return string representing the token name */ - function name() public view returns (string) { + function name() external view returns (string) { return name_; } @@ -509,13 +675,13 @@ contract ERC721Token is ERC721, ERC721BasicToken { * @dev Gets the token symbol * @return string representing the token symbol */ - function symbol() public view returns (string) { + function symbol() external view returns (string) { return symbol_; } /** * @dev Returns an URI for a given token ID - * @dev Throws if the token ID does not exist. May return an empty string. + * Throws if the token ID does not exist. May return an empty string. * @param _tokenId uint256 ID of the token to query */ function tokenURI(uint256 _tokenId) public view returns (string) { @@ -529,7 +695,14 @@ contract ERC721Token is ERC721, ERC721BasicToken { * @param _index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256) { + function tokenOfOwnerByIndex( + address _owner, + uint256 _index + ) + public + view + returns (uint256) + { require(_index < balanceOf(_owner)); return ownedTokens[_owner][_index]; } @@ -544,7 +717,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Gets the token ID at a given index of all the tokens in this contract - * @dev Reverts if the index is greater or equal to the total number of tokens + * Reverts if the index is greater or equal to the total number of tokens * @param _index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ @@ -555,7 +728,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Internal function to set the token URI for a given token - * @dev Reverts if the token ID does not exist + * Reverts if the token ID does not exist * @param _tokenId uint256 ID of the token to set its URI * @param _uri string URI to assign */ @@ -584,24 +757,27 @@ contract ERC721Token is ERC721, ERC721BasicToken { function removeTokenFrom(address _from, uint256 _tokenId) internal { super.removeTokenFrom(_from, _tokenId); + // To prevent a gap in the array, we store the last token in the index of the token to delete, and + // then delete the last slot. uint256 tokenIndex = ownedTokensIndex[_tokenId]; uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); uint256 lastToken = ownedTokens[_from][lastTokenIndex]; ownedTokens[_from][tokenIndex] = lastToken; - ownedTokens[_from][lastTokenIndex] = 0; + // This also deletes the contents at the last position of the array + ownedTokens[_from].length--; + // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping // the lastToken to the first position, and then dropping the element placed in the last position of the list - ownedTokens[_from].length--; ownedTokensIndex[_tokenId] = 0; ownedTokensIndex[lastToken] = tokenIndex; } /** * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists + * Reverts if the given token ID already exists * @param _to address the beneficiary that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ @@ -614,7 +790,7 @@ contract ERC721Token is ERC721, ERC721BasicToken { /** * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist + * Reverts if the token does not exist * @param _owner owner of the token to burn * @param _tokenId uint256 ID of the token being burned by the msg.sender */ @@ -661,7 +837,7 @@ contract SplitPayment { /** * @dev Constructor */ - function SplitPayment(address[] _payees, uint256[] _shares) public payable { + constructor(address[] _payees, uint256[] _shares) public payable { require(_payees.length == _shares.length); for (uint256 i = 0; i < _payees.length; i++) { @@ -672,7 +848,7 @@ contract SplitPayment { /** * @dev payable fallback */ - function () public payable {} + function () external payable {} /** * @dev Claim your share of the balance. @@ -683,7 +859,11 @@ contract SplitPayment { require(shares[payee] > 0); uint256 totalReceived = address(this).balance.add(totalReleased); - uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]); + uint256 payment = totalReceived.mul( + shares[payee]).div( + totalShares).sub( + released[payee] + ); require(payment != 0); require(address(this).balance >= payment); @@ -721,14 +901,18 @@ contract Ownable { address public owner; - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); + event OwnershipRenounced(address indexed previousOwner); + event OwnershipTransferred( + address indexed previousOwner, + address indexed newOwner + ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ - function Ownable() public { + constructor() public { owner = msg.sender; } @@ -741,139 +925,32 @@ contract Ownable { } /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. + * @dev Allows the current owner to relinquish control of the contract. + * @notice Renouncing to ownership will leave the contract without an owner. + * It will not be possible to call the functions with the `onlyOwner` + * modifier anymore. */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; + function renounceOwnership() public onlyOwner { + emit OwnershipRenounced(owner); + owner = address(0); } -} - -// File: contracts/common/SplitPaymentChangeable.sol - -contract SplitPaymentChangeable is SplitPayment, Ownable { - - event PayeeAddressChanged( - uint payeeIndex, - address oldAddress, - address newAddress - ); - - constructor( - address[] _payees, - uint256[] _shares - ) - public - payable - SplitPayment(_payees, _shares) - { } - - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) - external - onlyOwner - { - address oldAddress = payees[_payeeIndex]; - - shares[_newAddress] = shares[oldAddress]; - released[_newAddress] = released[oldAddress]; - payees[_payeeIndex] = _newAddress; - - delete shares[oldAddress]; - delete released[oldAddress]; - - emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); - } -} - -// File: contracts/common/RegistryInterface.sol - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} - -// File: contracts/common/Safe.sol - -/** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! -*/ -contract Safe { - - address public owner; - - constructor() - public - payable - { - owner = msg.sender; - } - - /** - * @dev Allows direct send only by owner. - */ - function() - external - payable - { - require(msg.sender == owner); - } - - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) - external - { - require(msg.sender == owner); - require(_amount <= address(this).balance); - require(_entryOwner != 0x0); - _entryOwner.transfer(_amount); - } - -} - -// File: openzeppelin-solidity/contracts/lifecycle/Destructible.sol - -/** - * @title Destructible - * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. - */ -contract Destructible is Ownable { - - function Destructible() public payable { } - /** - * @dev Transfers the current balance to the owner and terminates the contract. + * @dev Allows the current owner to transfer control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. */ - function destroy() onlyOwner public { - selfdestruct(owner); + function transferOwnership(address _newOwner) public onlyOwner { + _transferOwnership(_newOwner); } - function destroyAndSend(address _recipient) onlyOwner public { - selfdestruct(_recipient); + /** + * @dev Transfers control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function _transferOwnership(address _newOwner) internal { + require(_newOwner != address(0)); + emit OwnershipTransferred(owner, _newOwner); + owner = _newOwner; } } @@ -909,7 +986,7 @@ contract Pausable is Ownable { /** * @dev called by the owner to pause, triggers stopped state */ - function pause() onlyOwner whenNotPaused public { + function pause() public onlyOwner whenNotPaused { paused = true; emit Pause(); } @@ -917,1405 +994,669 @@ contract Pausable is Ownable { /** * @dev called by the owner to unpause, returns to normal state */ - function unpause() onlyOwner whenPaused public { + function unpause() public onlyOwner whenPaused { paused = false; emit Unpause(); } } -// File: contracts/chaingear/RegistryBase.sol - -/** -* @title RegistryBase contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Contracts which holds logic and struct of data witch describes registry metainformation which -* associated with token, provides views function for registry metainformation. -* @notice not recommend to use before release! -*/ - -//todo rename: we have RegistryBase and RegistryInterface -contract RegistryBase { - - /* - * Storage - */ +// File: contracts/common/IDatabase.sol - // @dev Sctruct which describes registry metainformation with balance state and status - struct RegistryMeta { - address contractAddress; - address creator; - string version; - string linkABI; - uint registrationTimestamp; - uint256 currentRegistryBalanceETH; - uint256 accumulatedRegistryETH; - } +interface IDatabase { + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns (address, address, uint256, uint256, uint256, uint256); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function transferAdminRights(address) external; + function transferOwnership(address) external; + function getAdmin() external view returns (address); + function getPaused() external view returns (bool); +} - // @dev Array of registries data - RegistryMeta[] internal registries; +// File: contracts/common/IDatabaseBuilder.sol - /* - * Events - */ +interface IDatabaseBuilder { + + function deployDatabase( + address[], + uint256[], + string, + string + ) external returns (IDatabase); + function setChaingearAddress(address) external; + function getChaingearAddress() external view returns (address); + function getOwner() external view returns (address); +} - // @dev Events witch signals that new Registry registered - event RegistryRegistered( - string name, - address registryAddress, - address creator, - uint registryID - ); +// File: contracts/common/Safe.sol - // @dev Events witch signals that Registry adminship transferred - // @notice that also means associated token transferred too - event RegistryChangedOwner( - address caller, - uint256 registyID, - address newOwner - ); +/** +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet +*/ +contract Safe { - // @dev Events witch signals that Registry unregistered from Chaingear - // @notice adminship of Registry transfers from Chaingear to Admin - event RegistryUnregistered( - address admin, - string name - ); + address private owner; - /* - * External Functions - */ - - /** - * @dev Registy metainfo getter - * @param _registryID uint256 Registry ID, associated ERC721 token ID - * @return string Registy name - * @return string Registy symbol - * @return address Registy address - * @return address Registy creator address - * @return string Registy version - * @return uint Registy creation timestamp - * @return address Registy admin address - */ - function registryInfo( - uint256 _registryID - ) - external - view - returns ( - string, - string, - address, - address, - string, - uint, - address - ) + constructor() public { - address contractAddress = registries[_registryID].contractAddress; - - return ( - RegistryInterface(contractAddress).name(), - RegistryInterface(contractAddress).symbol(), - contractAddress, - registries[_registryID].creator, - registries[_registryID].version, - registries[_registryID].registrationTimestamp, - RegistryInterface(contractAddress).getAdmin() - ); + owner = msg.sender; } - - /** - * @dev Registy funding stats getter - * @param _registryID uint256 Registry ID - * @return uint Registy current balance in wei, which stored in Safe - * @return uint Registy total accumulated balance in wei - */ - function registryBalanceInfo( - uint256 _registryID - ) + + function() external payable { + require(msg.sender == owner); + } + + function claim(address _entryOwner, uint256 _amount) external - view - returns ( - uint256, - uint256 - ) { - return ( - registries[_registryID].currentRegistryBalanceETH, - registries[_registryID].accumulatedRegistryETH - ); + require(msg.sender == owner); + require(_amount <= address(this).balance); + require(_entryOwner != address(0)); + + _entryOwner.transfer(_amount); } - /** - * @dev Registies amount getter - * @return uint256 amounts of Registries - */ - function registriesAmount() + function getOwner() external view - returns (uint256) + returns(address) { - return registries.length; + return owner; } } -// File: contracts/chaingear/ChaingearCore.sol +// File: contracts/common/IChaingear.sol + +interface IChaingear { + + function addDatabaseBuilderVersion( + string, + IDatabaseBuilder, + string, + string + ) external; + function updateDatabaseBuilderDescription(string, string) external; + function createDatabase( + string, + address[], + uint256[], + string, + string + ) external payable returns (address, uint256); + function deleteDatabase(uint256) external; + function fundDatabase(uint256) external payable; + function claimDatabaseFunds(uint256, uint256) external; + function updateCreationFee(uint256) external; + function getAmountOfBuilders() external view returns (uint256); + function getBuilderById(uint256) external view returns(string); + function getDatabaseBuilder(string) external view returns(address, string, string); + function getDatabasesIDs() external view returns (uint256[]); + function getDatabaseIDByAddress(address) external view returns (uint256); + function getDatabase(uint256) external view returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ); + function getDatabaseBalance(uint256) external view returns (uint256, uint256); + function getChaingearDescription() external pure returns (string); + function getSafeBalance() external view returns (uint256); + function getSafeAddress() external view returns (address); + function getNameExist(string) external view returns (bool); + function getSymbolExist(string) external view returns (bool); +} + +// File: contracts/chaingear/Chaingear.sol /** -* @title Chaingear core contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! +* @title Chaingear - the novel Ethereum database framework +* @author cyber•Congress, Valery litvin (@litvintech) +* @notice not audited, not recommend to use in mainnet */ +contract Chaingear is IChaingear, Ownable, SupportsInterfaceWithLookup, Pausable, SplitPayment, ERC721Token { -contract ChaingearCore is RegistryBase, Destructible, Pausable { + using SafeMath for uint256; - /* - * Storage - */ - - // @dev Mapping which allow control of name uniqueness in metaregistry - mapping(string => bool) internal registryNamesIndex; - - // @dev Mapping which allow control of symbol uniqueness in metaregistry - mapping(string => bool) internal registrySymbolsIndex; + /* + * Storage + */ - // @dev Short Chaingear's description, less than 128 symbols - string internal chaingearDescription; - - // @dev Amount that registrys creator should pay for registry creation/registring - uint internal registryRegistrationFee; - - // @dev Address of contract where their funds allocates - address internal chaingearSafe; - - // @dev mapping with address of registry creators with different code base of registries - mapping (string => address) internal registryAddresses; - - // @dev mapping with ipfs links to json with ABI of different registries - mapping (string => string) internal registryABIsLinks; - - // @dev mapping description of different registries types/versions - mapping (string => string) internal registryDescriptions; + struct DatabaseMeta { + IDatabase databaseContract; + address creatorOfDatabase; + string versionOfDatabase; + string linkABI; + uint256 createdTimestamp; + uint256 currentWei; + uint256 accumulatedWei; + } + + struct DatabaseBuilder { + IDatabaseBuilder builderAddress; + string linkToABI; + string description; + } + + DatabaseMeta[] private databases; + mapping(string => bool) private databasesNamesIndex; + mapping(string => bool) private databasesSymbolsIndex; + + uint256 private headTokenID = 0; + mapping(address => uint256) private databasesIDsByAddressesIndex; + mapping(uint256 => string) private databasesSymbolsByIDIndex; + mapping(string => uint256) private databasesIDsBySymbolIndex; + + uint256 private amountOfBuilders = 0; + mapping(uint256 => string) private buildersVersionIndex; + mapping(string => DatabaseBuilder) private buildersVersion; + Safe private chaingearSafe; + uint256 private databaseCreationFeeWei = 1 finney; + + string constant private CHAINGEAR_DESCRIPTION = "The novel Ethereum database framework"; + bytes4 constant private INTERFACE_CHAINGEAR_ID = 0x2163c5ed; + bytes4 constant private INTERFACE_DATABASE_ID = 0xfdb63525; + bytes4 constant private INTERFACE_DATABASE_BUILDER_ID = 0xce8bbf93; /* * Events */ - // @dev Signals that given Registry funded - event RegistryFunded( - uint registryID, + event DatabaseCreated( + string name, + address databaseAddress, + address creatorAddress, + uint256 databaseChaingearID + ); + + event DatabaseFunded( + uint256 databaseID, address sender, - uint amount + uint256 amount ); - - // @dev Signals that given Registry funds claimed by their admin - event RegistryFundsClaimed( - uint registryID, + + event DatabaseFundsClaimed( + uint256 databaseID, address claimer, - uint amout + uint256 amount ); - + /* - * External Functions + * Constructor */ - /** - * @dev Provides funcitonality for adding fabrics of different kind of registries - * @param _nameOfVersion string which represents name of registry type/version - * @param _addressRegistryCreator address of registry creator/fabric - * @param _link string which represents IPFS hash to JSON with ABI of registry - * @param _description string which resprent info about registry fabric type - * @notice Only owner of metaregistry/chaingear allowed to add fabrics - */ - function addRegistryCreatorVersion( - string _nameOfVersion, - address _addressRegistryCreator, - string _link, - string _description - ) - external - onlyOwner - { - require(registryAddresses[_nameOfVersion] == 0x0); - registryAddresses[_nameOfVersion] = _addressRegistryCreator; - registryABIsLinks[_nameOfVersion] = _link; - registryDescriptions[_nameOfVersion] = _description; - } - - /* - * External Functions - */ - - /** - * @dev Chaingear' registry creation/registration fee setter - * @param _newFee uint new fee amount - * @notice Only owner of metaregistry/chaingear allowed to set fee - */ - function updateRegistrationFee( - uint _newFee + constructor( + address[] _beneficiaries, + uint256[] _shares ) - external - onlyOwner + public + ERC721Token ("CHAINGEAR", "CHG") + SplitPayment (_beneficiaries, _shares) { - registryRegistrationFee = _newFee; + chaingearSafe = new Safe(); + _registerInterface(INTERFACE_CHAINGEAR_ID); } - /** - * @dev Chaingear' description setter - * @param _description string with new description - * @notice description should be less than 128 symbols - * @notice Only owner of metaregistry/chaingear allowed to change description + /* + * Fallback */ - function updateDescription( - string _description - ) - external - onlyOwner - { - uint len = bytes(_description).length; - require(len <= 256); - chaingearDescription = _description; - } + function() external payable {} - /* - * View Functions - */ - - /** - * @dev Allows get information about given version of registry fabric - * @param _nameOfVersion address which represents name of registry type - * @return _addressRegistryCreator address of registry fabric for this version - * @return _link string which represents IPFS hash to JSON with ABI of registry - * @return _description string which resprent info about this registry - */ - function getRegistryCreatorInfo( - string _nameOfVersion - ) - external - view - returns ( - address _addressRegistryCreator, - string _link, - string _description - ) - { - return( - registryAddresses[_nameOfVersion], - registryABIsLinks[_nameOfVersion], - registryDescriptions[_nameOfVersion] - ); - } - - /** - * @dev Chaingear description getter - * @return string description of Chaingear - */ - function getDescription() - external - view - returns (string) - { - return chaingearDescription; - } - - /** - * @dev Chaingear registration fee getter - * @return uint amount of fee in wei - */ - function getRegistrationFee() - external - view - returns (uint) - { - return registryRegistrationFee; - } - - /** - * @dev Safe balence getter - * @return uint amount of fee in wei - */ - function getSafeBalance() - external - view - returns (uint) - { - return address(chaingearSafe).balance; - } - - /** - * @dev Safe contract address getter - * @return uint amount of fee in wei - */ - function getSafe() - external - view - returns (address) - { - return chaingearSafe; - } -} - -// File: contracts/registry/RegistryPermissionControl.sol - -/** -* @title RegistryPermissionControl contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! -*/ -contract RegistryPermissionControl is Pausable { - - /* - * Storage - */ - - // @dev - address internal admin; - - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} - - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; - /* * Modifiers */ - - // @dev Controls access granted only to admin - modifier onlyAdmin() { - require(msg.sender == admin); - _; - } - // @dev Controls access to entry creation granted by setted permission group - modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { - require(msg.sender == admin); - } + modifier onlyOwnerOf(uint256 _databaseID){ + require(ownerOf(_databaseID) == msg.sender); _; } - - /* - * View functions - */ - - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() - external - view - returns (address) - { - return admin; - } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() - external - view - returns (uint8) - { - return uint8(createEntryPermissionGroup); - } - + /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) + * External functions */ - function transferAdminRights( - address _newAdmin - ) - public - onlyOwner - whenNotPaused - { - require(_newAdmin != 0x0); - admin = _newAdmin; - } - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ - function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup + function addDatabaseBuilderVersion( + string _version, + IDatabaseBuilder _builderAddress, + string _linkToABI, + string _description ) - public - onlyAdmin + external + onlyOwner whenNotPaused { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); - } - -} - -// File: contracts/registry/Chaingeareable.sol - -/** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ -contract Chaingeareable is RegistryPermissionControl { - - /* - * Storage - */ - - // @dev entry creation fee - uint internal entryCreationFee; - - // @dev registry description string - string internal registryDescription; - - // @dev registry tags - bytes32[] internal registryTags; - - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; - - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; - - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; + require(buildersVersion[_version].builderAddress == address(0)); - /* - * Modifiers - */ + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(_builderAddress); + require(support.supportsInterface(INTERFACE_DATABASE_BUILDER_ID)); - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); - _; + buildersVersion[_version] = (DatabaseBuilder( + { + builderAddress: _builderAddress, + linkToABI: _linkToABI, + description: _description + })); + buildersVersionIndex[amountOfBuilders] = _version; + amountOfBuilders = amountOfBuilders.add(1); } - - /** - * Events - */ - - // @dev Signals that new entry-token added to Registry - event EntryCreated( - uint entryID, - address creator - ); - - // @dev Signals that entry-token changed owner - event EntryChangedOwner( - uint entryID, - address newOwner - ); - - // @dev Signals that entry-token deleted - event EntryDeleted( - uint entryID, - address owner - ); - // @dev Signals that entry-token funded with given amount - event EntryFunded( - uint entryID, - address funder, - uint amount - ); - - // @dev Signals that entry-token funds claimed by owner with given amount - event EntryFundsClaimed( - uint entryID, - address owner, - uint amount - ); - - /** - * External Functions - */ - - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee + function updateDatabaseBuilderDescription( + string _version, + string _description ) external - onlyAdmin + onlyOwner + whenNotPaused { - entryCreationFee = _fee; + require(buildersVersion[_version].builderAddress != address(0)); + buildersVersion[_version].description = _description; } - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription + function createDatabase( + string _version, + address[] _beneficiaries, + uint256[] _shares, + string _name, + string _symbol ) external - onlyAdmin + payable + whenNotPaused + returns (address, uint256) { - uint len = bytes(_registryDescription).length; - require(len <= 256); + require(buildersVersion[_version].builderAddress != address(0)); + require(databaseCreationFeeWei == msg.value); + require(databasesNamesIndex[_name] == false); + require(databasesSymbolsIndex[_symbol] == false); - registryDescription = _registryDescription; + return deployDatabase( + _version, + _beneficiaries, + _shares, + _name, + _symbol + ); } - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) + function deleteDatabase(uint256 _databaseID) external - onlyAdmin + onlyOwnerOf(_databaseID) + whenNotPaused { - require(_tag.length <= 16); - registryTags.push(_tag); + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase database = databases[databaseIndex].databaseContract; + require(database.getSafeBalance() == uint256(0)); + require(database.getPaused() == true); + + string memory databaseName = ERC721(database).name(); + string memory databaseSymbol = ERC721(database).symbol(); + databasesNamesIndex[databaseName] = false; + databasesSymbolsIndex[databaseSymbol] = false; + + databasesSymbolsByIDIndex[_databaseID] = ""; + + uint256 lastDatabaseIndex = databases.length.sub(1); + DatabaseMeta memory lastDatabase = databases[lastDatabaseIndex]; + databases[databaseIndex] = lastDatabase; + delete databases[lastDatabaseIndex]; + databases.length--; + + super._burn(msg.sender, _databaseID); + database.transferOwnership(msg.sender); } - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) + function fundDatabase(uint256 _databaseID) external - onlyAdmin + whenNotPaused + payable { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); + require(exists(_databaseID) == true); + uint256 databaseIndex = allTokensIndex[_databaseID]; - registryTags[_index] = _tag; + uint256 currentWei = databases[databaseIndex].currentWei.add(msg.value); + databases[databaseIndex].currentWei = currentWei; + + uint256 accumulatedWei = databases[databaseIndex].accumulatedWei.add(msg.value); + databases[databaseIndex].accumulatedWei = accumulatedWei; + + emit DatabaseFunded(_databaseID, msg.sender, msg.value); + address(chaingearSafe).transfer(msg.value); } - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) + function claimDatabaseFunds(uint256 _databaseID, uint256 _amount) external - onlyAdmin + onlyOwnerOf(_databaseID) + whenNotPaused { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; + uint256 databaseIndex = allTokensIndex[_databaseID]; + + uint256 currentWei = databases[databaseIndex].currentWei; + require(_amount <= currentWei); + + databases[databaseIndex].currentWei = currentWei.sub(_amount); - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; + emit DatabaseFundsClaimed(_databaseID, msg.sender, _amount); + chaingearSafe.claim(msg.sender, _amount); } - - /** - * View functions - */ - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ - function getEntriesStorage() + function updateCreationFee(uint256 _newFee) external - view - returns (address) + onlyOwner + whenPaused { - return entriesStorage; + databaseCreationFeeWei = _newFee; } - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI + /* + * Views */ - function getInterfaceEntriesContract() + + function getAmountOfBuilders() external view - returns (string) + returns(uint256) { - return linkToABIOfEntriesContract; + return amountOfBuilders; } - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() + function getBuilderById(uint256 _id) external view - returns (uint) + returns(string) { - return address(this).balance; + return buildersVersionIndex[_id]; } - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() + function getDatabaseBuilder(string _version) external view - returns (uint) + returns ( + address, + string, + string + ) { - return entryCreationFee; + return( + buildersVersion[_version].builderAddress, + buildersVersion[_version].linkToABI, + buildersVersion[_version].description + ); } - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() + function getDatabasesIDs() external view - returns (string) + returns (uint256[]) { - return registryDescription; + return allTokens; } - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() + function getDatabaseIDByAddress(address _databaseAddress) external view - returns (bytes32[]) + returns(uint256) { - return registryTags; + uint256 databaseID = databasesIDsByAddressesIndex[_databaseAddress]; + require(exists(databaseID) == true); + return databaseID; } - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() + function getDatabaseSymbolByID(uint256 _databaseID) external view - returns (address) + returns(string) { - return registrySafe; + require(exists(_databaseID) == true); + return databasesSymbolsByIDIndex[_databaseID]; } - - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ - function getSafeBalance() + + function getDatabaseIDBySymbol(string _symbol) external view - returns (uint balance) + returns(uint256) { - return address(registrySafe).balance; + return databasesIDsBySymbolIndex[_symbol]; } - - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() + + function getDatabase(uint256 _databaseID) external view - returns (bool) + returns ( + string, + string, + address, + string, + uint256, + address, + uint256 + ) { - return registryInitStatus; - } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: contracts/registry/Registry.sol - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { + uint256 databaseIndex = allTokensIndex[_databaseID]; + IDatabase databaseAddress = databases[databaseIndex].databaseContract; - using SafeMath for uint256; - - /* - * Storage - */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; + return ( + ERC721(databaseAddress).name(), + ERC721(databaseAddress).symbol(), + databaseAddress, + databases[databaseIndex].versionOfDatabase, + databases[databaseIndex].createdTimestamp, + databaseAddress.getAdmin(), + ERC721(databaseAddress).totalSupply() + ); } - - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) - public - payable - { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() + function getDatabaseBalance(uint256 _databaseID) external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) + view + returns (uint256, uint256) { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); + uint256 databaseIndex = allTokensIndex[_databaseID]; - return newEntryID; + return ( + databases[databaseIndex].currentWei, + databases[databaseIndex].accumulatedWei + ); } - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) + function getChaingearDescription() external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused + pure + returns (string) { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); + return CHAINGEAR_DESCRIPTION; } - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) + function getCreationFeeWei() external - registryInitialized - whenNotPaused - payable + view + returns (uint256) { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); + return databaseCreationFeeWei; } - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ - - function getEntryMeta( - uint256 _entryID - ) + function getSafeBalance() external view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) + returns (uint256) { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH - ); + return address(chaingearSafe).balance; } - - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) + + function getSafeAddress() external view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore - ) - public - onlyAdmin returns (address) { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; - } - -} - -// File: contracts/chaingear/RegistryCreator.sol - -/** -* @title Registry Creator engine/fabric -* @author cyber•Congress -* @dev Allows to Chaingear contract as builder create new Registries -* @dev with codebase which imported and deployed with this fabric -* @notice not recommend to use before release! -*/ -contract RegistryCreator is Ownable { - - /* - * @dev Storage - */ - - // @dev Holds address of contract which can call creation, means Chaingear - address internal builder; - - /* - * @dev Constructor - */ - - /** - * @dev Contructor of RegistryCreators - * @notice setting 0x0, then allows to owner to set builder/Chaingear - * @notice after deploying needs to set up builder/Chaingear address - */ - constructor() - public - { - builder = 0x0; + return chaingearSafe; } - - /** - * @dev Disallows direct send by settings a default function without the `payable` flag. - */ - function() external {} - /* - * @dev External Functions - */ - - /** - * @dev Allows chaingear (builder) create new registry - * @param _benefitiaries address[] array of beneficiaries addresses - * @param _shares uint256[] array of shares amont ot each beneficiary - * @param _name string name of Registry and token - * @param _symbol string symbol of Registry and token - * @return address Address of new initialized Registry - */ - function create( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) + function getNameExist(string _name) external - returns (address) + view + returns (bool) { - require(msg.sender == builder); - - address registryContract = new Registry( - _benefitiaries, - _shares, - _name, - _symbol - ); - //Fabric as owner transfers ownership to Chaingear contract after creation - Registry(registryContract).transferOwnership(builder); - - return registryContract; + return databasesNamesIndex[_name]; } - /** - * @dev Registry builder setter, owners sets Chaingear address - * @param _builder address - */ - function setBuilder( - address _builder - ) + function getSymbolExist(string _symbol) external - onlyOwner + view + returns (bool) { - require(_builder != 0x0); - builder = _builder; + return databasesSymbolsIndex[_symbol]; } - /* - * View Functions - */ - - /** - * @dev RegistryCreator's builder getter - * @return address of setted Registry builder (Chaingear contract) - */ - function getRegistryBuilder() + function getPayeesCount() external view - returns (address) + returns (uint256) { - return builder; + return payees.length; } -} - -// File: contracts/chaingear/Chaingear.sol - -/** -* @title Chaingear - the most expensive database -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Main metaregistry contract -* @notice Proof-of-Concept. Chaingear it's a metaregistry/fabric for Creator Curated Registries -* @notice where each registry are ERC721. -* @notice not recommend to use before release! -*/ -contract Chaingear is SplitPaymentChangeable, ChaingearCore, ERC721Token { - - using SafeMath for uint256; /* - * Constructor + * Public functions */ - /** - * @dev Chaingear constructor - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _description string description of Chaingear - * @param _registrationFee uint Fee for registry creation, wei - * @param _chaingearName string Chaingear's name, use for chaingear's ERC721 - * @param _chaingearSymbol string Chaingear's NFT symbol, use for chaingear's ERC721 - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _description, - uint _registrationFee, - string _chaingearName, - string _chaingearSymbol + function transferFrom( + address _from, + address _to, + uint256 _tokenId ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_chaingearName, _chaingearSymbol) public - { - registryRegistrationFee = _registrationFee; - chaingearDescription = _description; - // Only chaingear as owner can transfer either to and out from Safe - chaingearSafe = new Safe(); - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Add and tokenize registry with specified parameters. - * @dev Registration fee is required to send with tx. - * @dev Tx sender become Creator/Admin of Registry, Chaingear become Owner of Registry - * @param _version version of registry from which Registry will be boostrapped - * @param _benefitiaries address[] addresses of Chaingear benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function registerRegistry( - string _version, - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - external - payable whenNotPaused - returns ( - address, - uint256 - ) { - require(registryAddresses[_version] != 0x0); - require(registryRegistrationFee == msg.value); - - //checking uniqueness of name AND symbol of NFT in metaregistry - require(registryNamesIndex[_name] == false); - require(registrySymbolsIndex[_symbol] == false); + super.transferFrom(_from, _to, _tokenId); - return createRegistry( - _version, - _benefitiaries, - _shares, - _name, - _symbol - ); + uint256 databaseIndex = allTokensIndex[_tokenId]; + IDatabase databaseAddress = databases[databaseIndex].databaseContract; + databaseAddress.transferAdminRights(_to); } - - function transferFrom( + + function safeTransferFrom( address _from, address _to, uint256 _tokenId - ) - public - canTransfer(_tokenId) - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - address registryAddress = registries[_tokenId].contractAddress; - RegistryInterface(registryAddress).transferAdminRights(_to); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows to unregister Registry from Chaingear - * @dev Only possible when safe of Registry is empty - * @dev Burns associated registry token and transfer Registry adminship to current token owner - * @param _registryID uint256 Registry-token ID - */ - function unregisterRegistry( - uint256 _registryID ) - external - onlyOwnerOf(_registryID) - whenNotPaused - { - address registryAddress = registries[_registryID].contractAddress; - require(RegistryInterface(registryAddress).getSafeBalance() == 0); - - uint256 registryIndex = allTokensIndex[_registryID]; - uint256 lastRegistryIndex = registries.length.sub(1); - RegistryMeta storage lastRegistry = registries[lastRegistryIndex]; - - registries[registryIndex] = lastRegistry; - delete registries[lastRegistryIndex]; - registries.length--; - - _burn(msg.sender, _registryID); - - string memory registryName = RegistryInterface(registryAddress).name(); - emit RegistryUnregistered(msg.sender, registryName); - - //Sets current admin as owner of registry, transfers full control - RegistryInterface(registryAddress).transferOwnership(msg.sender); - } - - /** - * @dev Gets funding and allocate funds of Registry to Chaingear's Safe - * @param _registryID uint256 Registry-token ID - */ - function fundRegistry( - uint256 _registryID - ) - external + public whenNotPaused - payable { - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.add(msg.value); - registries[_registryID].accumulatedRegistryETH = registries[_registryID].accumulatedRegistryETH.add(msg.value); - - emit RegistryFunded(_registryID, msg.sender, msg.value); - - chaingearSafe.transfer(msg.value); + super.safeTransferFrom( + _from, + _to, + _tokenId, + "" + ); } - /** - * @dev Gets funding and allocate funds of Registry to Safe - * @param _registryID uint256 Registry-token ID - * @param _amount uint256 Amount which admin of registry claims - */ - function claimEntryFunds( - uint256 _registryID, - uint256 _amount + function safeTransferFrom( + address _from, + address _to, + uint256 _tokenId, + bytes _data ) - external - onlyOwnerOf(_registryID) + public whenNotPaused { - require(_amount <= registries[_registryID].currentRegistryBalanceETH); - registries[_registryID].currentRegistryBalanceETH = registries[_registryID].currentRegistryBalanceETH.sub(_amount); + transferFrom(_from, _to, _tokenId); - emit RegistryFundsClaimed(_registryID, msg.sender, _amount); - - Safe(chaingearSafe).claim(msg.sender, _amount); + require( + checkAndCallSafeTransfer( + _from, + _to, + _tokenId, + _data + )); } /* * Private functions */ - /** - * @dev Private function for registry creation - * @dev Pass Registry params and bytecode to RegistryCreator to current builder - * @param _version version of registry code which added to chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares to benefitiaries - * @param _name string, Registry name, use for registry ERC721 - * @param _symbol string, Registry NFT symbol, use for registry ERC721 - * @return address new Registry contract address - * @return uint256 new Registry ID in Chaingear contract, ERC721 NFT ID - */ - function createRegistry( - string _version, - address[] _benefitiaries, + function deployDatabase( + string _version, + address[] _beneficiaries, uint256[] _shares, - string _name, - string _symbol + string _name, + string _symbol ) private - returns ( - address, - uint256 - ) + returns (address, uint256) { - address registryContract = RegistryCreator(registryAddresses[_version]).create( - _benefitiaries, + IDatabaseBuilder builder = buildersVersion[_version].builderAddress; + IDatabase databaseContract = builder.deployDatabase( + _beneficiaries, _shares, _name, _symbol ); - - RegistryMeta memory registry = (RegistryMeta( + + address databaseAddress = address(databaseContract); + + SupportsInterfaceWithLookup support = SupportsInterfaceWithLookup(databaseAddress); + require(support.supportsInterface(INTERFACE_DATABASE_ID)); + require(support.supportsInterface(InterfaceId_ERC721)); + require(support.supportsInterface(InterfaceId_ERC721Metadata)); + require(support.supportsInterface(InterfaceId_ERC721Enumerable)); + + DatabaseMeta memory database = (DatabaseMeta( { - contractAddress: registryContract, - creator: msg.sender, - version: _version, - linkABI: registryABIsLinks[_version], - registrationTimestamp: block.timestamp, - currentRegistryBalanceETH: 0, - accumulatedRegistryETH: 0 + databaseContract: databaseContract, + creatorOfDatabase: msg.sender, + versionOfDatabase: _version, + linkABI: buildersVersion[_version].linkToABI, // delete this + createdTimestamp: block.timestamp, + currentWei: 0, + accumulatedWei: 0 })); - uint256 registryID = registries.push(registry) - 1; - _mint(msg.sender, registryID); - - registryNamesIndex[_name] = true; - registrySymbolsIndex[_symbol] = true; - - emit RegistryRegistered(_name, registryContract, msg.sender, registryID); - - //Metaregistry as owner sets creator as admin of Registry - RegistryInterface(registryContract).transferAdminRights(msg.sender); + databases.push(database); - return ( - registryContract, - registryID + databasesNamesIndex[_name] = true; + databasesSymbolsIndex[_symbol] = true; + + uint256 newTokenID = headTokenID; + databasesIDsByAddressesIndex[databaseAddress] = newTokenID; + super._mint(msg.sender, newTokenID); + databasesSymbolsByIDIndex[newTokenID] = _symbol; + databasesIDsBySymbolIndex[_symbol] = newTokenID; + headTokenID = headTokenID.add(1); + + emit DatabaseCreated( + _name, + databaseAddress, + msg.sender, + newTokenID ); + + databaseContract.transferAdminRights(msg.sender); + + return (databaseAddress, newTokenID); } - + } diff --git a/docs/verification/EntryCore_full.sol b/docs/verification/EntryCore_full.sol deleted file mode 100644 index 2b46bd19..00000000 --- a/docs/verification/EntryCore_full.sol +++ /dev/null @@ -1,162 +0,0 @@ -pragma solidity 0.4.24; - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); - - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - function Ownable() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } - -} - -// File: contracts/registry/EntryCore.sol - -//This is Example of EntryCore -contract EntryCore is EntryInterface, Ownable { - - struct Entry { - address expensiveAddress; - uint256 expensiveUint; - int128 expensiveInt; - string expensiveString; - } - - mapping(string => bool) internal entryExpensiveStringIndex; - - Entry[] internal entries; - - function() external {} - - function createEntry() - external - onlyOwner - returns (uint256) - { - Entry memory m = (Entry( - { - expensiveAddress: address(0), - expensiveUint: uint256(0), - expensiveInt: int128(0), - expensiveString: "" - })); - - uint256 newEntryID = entries.push(m) - 1; - - return newEntryID; - } - - function updateEntry( - uint256 _entryID, - address _newAddress, - uint256 _newUint, - int128 _newInt, - string _newString - ) - external - { - require(owner.call(bytes4(keccak256("checkAuth(uint256, address)")), _entryID, msg.sender)); - - // for uniq check example - require(entryExpensiveStringIndex[_newString] == false); - // for uniq check example - entryExpensiveStringIndex[_newString] = true; - string storage lastIndexValue = entries[_entryID].expensiveString; - entryExpensiveStringIndex[lastIndexValue] = false; - - - Entry memory m = (Entry({ - expensiveAddress: _newAddress, - expensiveUint: _newUint, - expensiveInt: _newInt, - expensiveString: _newString - })); - entries[_entryID] = m; - - require(owner.call(bytes4(keccak256("updateEntryTimestamp(uint256)")), _entryID)); - } - - function deleteEntry( - uint256 _entryIndex - ) - external - onlyOwner - { - uint256 lastEntryIndex = entries.length - 1; - Entry storage lastEntry = entries[lastEntryIndex]; - - entries[_entryIndex] = lastEntry; - delete entries[lastEntryIndex]; - entries.length--; - } - - function entriesAmount() - external - view - returns (uint256 entryID) - { - return entries.length; - } - - function entryInfo( - uint256 _entryID - ) - external - view - returns ( - address, - uint256, - int128, - string - ) - { - return ( - entries[_entryID].expensiveAddress, - entries[_entryID].expensiveUint, - entries[_entryID].expensiveInt, - entries[_entryID].expensiveString - ); - } - -} diff --git a/docs/verification/Registry_full.sol b/docs/verification/Registry_full.sol deleted file mode 100644 index e95013f3..00000000 --- a/docs/verification/Registry_full.sol +++ /dev/null @@ -1,1607 +0,0 @@ -pragma solidity 0.4.24; - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic interface - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Basic { - event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); - event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); - event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); - - function balanceOf(address _owner) public view returns (uint256 _balance); - function ownerOf(uint256 _tokenId) public view returns (address _owner); - function exists(uint256 _tokenId) public view returns (bool _exists); - - function approve(address _to, uint256 _tokenId) public; - function getApproved(uint256 _tokenId) public view returns (address _operator); - - function setApprovalForAll(address _operator, bool _approved) public; - function isApprovedForAll(address _owner, address _operator) public view returns (bool); - - function transferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public; -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol - -/** - * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Enumerable is ERC721Basic { - function totalSupply() public view returns (uint256); - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId); - function tokenByIndex(uint256 _index) public view returns (uint256); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, optional metadata extension - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Metadata is ERC721Basic { - function name() public view returns (string _name); - function symbol() public view returns (string _symbol); - function tokenURI(uint256 _tokenId) public view returns (string); -} - - -/** - * @title ERC-721 Non-Fungible Token Standard, full implementation interface - * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol - -/** - * @title ERC721 token receiver interface - * @dev Interface for any contract that wants to support safeTransfers - * from ERC721 asset contracts. - */ -contract ERC721Receiver { - /** - * @dev Magic value to be returned upon successful reception of an NFT - * Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`, - * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - */ - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - /** - * @notice Handle the receipt of an NFT - * @dev The ERC721 smart contract calls this function on the recipient - * after a `safetransfer`. This function MAY throw to revert and reject the - * transfer. This function MUST use 50,000 gas or less. Return of other - * than the magic value MUST result in the transaction being reverted. - * Note: the contract address is always the message sender. - * @param _from The sending address - * @param _tokenId The NFT identifier which is being transfered - * @param _data Additional data with no specified format - * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - */ - function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4); -} - -// File: openzeppelin-solidity/contracts/math/SafeMath.sol - -/** - * @title SafeMath - * @dev Math operations with safety checks that throw on error - */ -library SafeMath { - - /** - * @dev Multiplies two numbers, throws on overflow. - */ - function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { - if (a == 0) { - return 0; - } - c = a * b; - assert(c / a == b); - return c; - } - - /** - * @dev Integer division of two numbers, truncating the quotient. - */ - function div(uint256 a, uint256 b) internal pure returns (uint256) { - // assert(b > 0); // Solidity automatically throws when dividing by 0 - // uint256 c = a / b; - // assert(a == b * c + a % b); // There is no case in which this doesn't hold - return a / b; - } - - /** - * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). - */ - function sub(uint256 a, uint256 b) internal pure returns (uint256) { - assert(b <= a); - return a - b; - } - - /** - * @dev Adds two numbers, throws on overflow. - */ - function add(uint256 a, uint256 b) internal pure returns (uint256 c) { - c = a + b; - assert(c >= a); - return c; - } -} - -// File: openzeppelin-solidity/contracts/AddressUtils.sol - -/** - * Utility library of inline functions on addresses - */ -library AddressUtils { - - /** - * Returns whether the target address is a contract - * @dev This function will return false if invoked during the constructor of a contract, - * as the code is not actually created until after the constructor finishes. - * @param addr address to check - * @return whether the target address is a contract - */ - function isContract(address addr) internal view returns (bool) { - uint256 size; - // XXX Currently there is no better way to check if there is a contract in an address - // than to check the size of the code at that address. - // See https://ethereum.stackexchange.com/a/14016/36603 - // for more details about how this works. - // TODO Check this again before the Serenity release, because all addresses will be - // contracts then. - assembly { size := extcodesize(addr) } // solium-disable-line security/no-inline-assembly - return size > 0; - } - -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol - -/** - * @title ERC721 Non-Fungible Token Standard basic implementation - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721BasicToken is ERC721Basic { - using SafeMath for uint256; - using AddressUtils for address; - - // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` - // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` - bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; - - // Mapping from token ID to owner - mapping (uint256 => address) internal tokenOwner; - - // Mapping from token ID to approved address - mapping (uint256 => address) internal tokenApprovals; - - // Mapping from owner to number of owned token - mapping (address => uint256) internal ownedTokensCount; - - // Mapping from owner to operator approvals - mapping (address => mapping (address => bool)) internal operatorApprovals; - - /** - * @dev Guarantees msg.sender is owner of the given token - * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender - */ - modifier onlyOwnerOf(uint256 _tokenId) { - require(ownerOf(_tokenId) == msg.sender); - _; - } - - /** - * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator - * @param _tokenId uint256 ID of the token to validate - */ - modifier canTransfer(uint256 _tokenId) { - require(isApprovedOrOwner(msg.sender, _tokenId)); - _; - } - - /** - * @dev Gets the balance of the specified address - * @param _owner address to query the balance of - * @return uint256 representing the amount owned by the passed address - */ - function balanceOf(address _owner) public view returns (uint256) { - require(_owner != address(0)); - return ownedTokensCount[_owner]; - } - - /** - * @dev Gets the owner of the specified token ID - * @param _tokenId uint256 ID of the token to query the owner of - * @return owner address currently marked as the owner of the given token ID - */ - function ownerOf(uint256 _tokenId) public view returns (address) { - address owner = tokenOwner[_tokenId]; - require(owner != address(0)); - return owner; - } - - /** - * @dev Returns whether the specified token exists - * @param _tokenId uint256 ID of the token to query the existance of - * @return whether the token exists - */ - function exists(uint256 _tokenId) public view returns (bool) { - address owner = tokenOwner[_tokenId]; - return owner != address(0); - } - - /** - * @dev Approves another address to transfer the given token ID - * @dev The zero address indicates there is no approved address. - * @dev There can only be one approved address per token at a given time. - * @dev Can only be called by the token owner or an approved operator. - * @param _to address to be approved for the given token ID - * @param _tokenId uint256 ID of the token to be approved - */ - function approve(address _to, uint256 _tokenId) public { - address owner = ownerOf(_tokenId); - require(_to != owner); - require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); - - if (getApproved(_tokenId) != address(0) || _to != address(0)) { - tokenApprovals[_tokenId] = _to; - emit Approval(owner, _to, _tokenId); - } - } - - /** - * @dev Gets the approved address for a token ID, or zero if no address set - * @param _tokenId uint256 ID of the token to query the approval of - * @return address currently approved for a the given token ID - */ - function getApproved(uint256 _tokenId) public view returns (address) { - return tokenApprovals[_tokenId]; - } - - /** - * @dev Sets or unsets the approval of a given operator - * @dev An operator is allowed to transfer all tokens of the sender on their behalf - * @param _to operator address to set the approval - * @param _approved representing the status of the approval to be set - */ - function setApprovalForAll(address _to, bool _approved) public { - require(_to != msg.sender); - operatorApprovals[msg.sender][_to] = _approved; - emit ApprovalForAll(msg.sender, _to, _approved); - } - - /** - * @dev Tells whether an operator is approved by a given owner - * @param _owner owner address which you want to query the approval of - * @param _operator operator address which you want to query the approval of - * @return bool whether the given operator is approved by the given owner - */ - function isApprovedForAll(address _owner, address _operator) public view returns (bool) { - return operatorApprovals[_owner][_operator]; - } - - /** - * @dev Transfers the ownership of a given token ID to another address - * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function transferFrom(address _from, address _to, uint256 _tokenId) public canTransfer(_tokenId) { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - { - // solium-disable-next-line arg-overflow - safeTransferFrom(_from, _to, _tokenId, ""); - } - - /** - * @dev Safely transfers the ownership of a given token ID to another address - * @dev If the target address is a contract, it must implement `onERC721Received`, - * which is called upon a safe transfer, and return the magic value - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise, - * the transfer is reverted. - * @dev Requires the msg sender to be the owner, approved, or operator - * @param _from current owner of the token - * @param _to address to receive the ownership of the given token ID - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes data to send along with a safe transfer check - */ - function safeTransferFrom( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - public - canTransfer(_tokenId) - { - transferFrom(_from, _to, _tokenId); - // solium-disable-next-line arg-overflow - require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data)); - } - - /** - * @dev Returns whether the given spender can transfer a given token ID - * @param _spender address of the spender to query - * @param _tokenId uint256 ID of the token to be transferred - * @return bool whether the msg.sender is approved for the given token ID, - * is an operator of the owner, or is the owner of the token - */ - function isApprovedOrOwner(address _spender, uint256 _tokenId) internal view returns (bool) { - address owner = ownerOf(_tokenId); - return _spender == owner || getApproved(_tokenId) == _spender || isApprovedForAll(owner, _spender); - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to The address that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - require(_to != address(0)); - addTokenTo(_to, _tokenId); - emit Transfer(address(0), _to, _tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - clearApproval(_owner, _tokenId); - removeTokenFrom(_owner, _tokenId); - emit Transfer(_owner, address(0), _tokenId); - } - - /** - * @dev Internal function to clear current approval of a given token ID - * @dev Reverts if the given address is not indeed the owner of the token - * @param _owner owner of the token - * @param _tokenId uint256 ID of the token to be transferred - */ - function clearApproval(address _owner, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _owner); - if (tokenApprovals[_tokenId] != address(0)) { - tokenApprovals[_tokenId] = address(0); - emit Approval(_owner, address(0), _tokenId); - } - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - require(tokenOwner[_tokenId] == address(0)); - tokenOwner[_tokenId] = _to; - ownedTokensCount[_to] = ownedTokensCount[_to].add(1); - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - require(ownerOf(_tokenId) == _from); - ownedTokensCount[_from] = ownedTokensCount[_from].sub(1); - tokenOwner[_tokenId] = address(0); - } - - /** - * @dev Internal function to invoke `onERC721Received` on a target address - * @dev The call is not executed if the target address is not a contract - * @param _from address representing the previous owner of the given token ID - * @param _to target address that will receive the tokens - * @param _tokenId uint256 ID of the token to be transferred - * @param _data bytes optional data to send along with the call - * @return whether the call correctly returned the expected magic value - */ - function checkAndCallSafeTransfer( - address _from, - address _to, - uint256 _tokenId, - bytes _data - ) - internal - returns (bool) - { - if (!_to.isContract()) { - return true; - } - bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data); - return (retval == ERC721_RECEIVED); - } -} - -// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol - -/** - * @title Full ERC721 Token - * This implementation includes all the required and some optional functionality of the ERC721 standard - * Moreover, it includes approve all functionality using operator terminology - * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md - */ -contract ERC721Token is ERC721, ERC721BasicToken { - // Token name - string internal name_; - - // Token symbol - string internal symbol_; - - // Mapping from owner to list of owned token IDs - mapping (address => uint256[]) internal ownedTokens; - - // Mapping from token ID to index of the owner tokens list - mapping(uint256 => uint256) internal ownedTokensIndex; - - // Array with all token ids, used for enumeration - uint256[] internal allTokens; - - // Mapping from token id to position in the allTokens array - mapping(uint256 => uint256) internal allTokensIndex; - - // Optional mapping for token URIs - mapping(uint256 => string) internal tokenURIs; - - /** - * @dev Constructor function - */ - function ERC721Token(string _name, string _symbol) public { - name_ = _name; - symbol_ = _symbol; - } - - /** - * @dev Gets the token name - * @return string representing the token name - */ - function name() public view returns (string) { - return name_; - } - - /** - * @dev Gets the token symbol - * @return string representing the token symbol - */ - function symbol() public view returns (string) { - return symbol_; - } - - /** - * @dev Returns an URI for a given token ID - * @dev Throws if the token ID does not exist. May return an empty string. - * @param _tokenId uint256 ID of the token to query - */ - function tokenURI(uint256 _tokenId) public view returns (string) { - require(exists(_tokenId)); - return tokenURIs[_tokenId]; - } - - /** - * @dev Gets the token ID at a given index of the tokens list of the requested owner - * @param _owner address owning the tokens list to be accessed - * @param _index uint256 representing the index to be accessed of the requested tokens list - * @return uint256 token ID at the given index of the tokens list owned by the requested address - */ - function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256) { - require(_index < balanceOf(_owner)); - return ownedTokens[_owner][_index]; - } - - /** - * @dev Gets the total amount of tokens stored by the contract - * @return uint256 representing the total amount of tokens - */ - function totalSupply() public view returns (uint256) { - return allTokens.length; - } - - /** - * @dev Gets the token ID at a given index of all the tokens in this contract - * @dev Reverts if the index is greater or equal to the total number of tokens - * @param _index uint256 representing the index to be accessed of the tokens list - * @return uint256 token ID at the given index of the tokens list - */ - function tokenByIndex(uint256 _index) public view returns (uint256) { - require(_index < totalSupply()); - return allTokens[_index]; - } - - /** - * @dev Internal function to set the token URI for a given token - * @dev Reverts if the token ID does not exist - * @param _tokenId uint256 ID of the token to set its URI - * @param _uri string URI to assign - */ - function _setTokenURI(uint256 _tokenId, string _uri) internal { - require(exists(_tokenId)); - tokenURIs[_tokenId] = _uri; - } - - /** - * @dev Internal function to add a token ID to the list of a given address - * @param _to address representing the new owner of the given token ID - * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address - */ - function addTokenTo(address _to, uint256 _tokenId) internal { - super.addTokenTo(_to, _tokenId); - uint256 length = ownedTokens[_to].length; - ownedTokens[_to].push(_tokenId); - ownedTokensIndex[_tokenId] = length; - } - - /** - * @dev Internal function to remove a token ID from the list of a given address - * @param _from address representing the previous owner of the given token ID - * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address - */ - function removeTokenFrom(address _from, uint256 _tokenId) internal { - super.removeTokenFrom(_from, _tokenId); - - uint256 tokenIndex = ownedTokensIndex[_tokenId]; - uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); - uint256 lastToken = ownedTokens[_from][lastTokenIndex]; - - ownedTokens[_from][tokenIndex] = lastToken; - ownedTokens[_from][lastTokenIndex] = 0; - // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to - // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping - // the lastToken to the first position, and then dropping the element placed in the last position of the list - - ownedTokens[_from].length--; - ownedTokensIndex[_tokenId] = 0; - ownedTokensIndex[lastToken] = tokenIndex; - } - - /** - * @dev Internal function to mint a new token - * @dev Reverts if the given token ID already exists - * @param _to address the beneficiary that will own the minted token - * @param _tokenId uint256 ID of the token to be minted by the msg.sender - */ - function _mint(address _to, uint256 _tokenId) internal { - super._mint(_to, _tokenId); - - allTokensIndex[_tokenId] = allTokens.length; - allTokens.push(_tokenId); - } - - /** - * @dev Internal function to burn a specific token - * @dev Reverts if the token does not exist - * @param _owner owner of the token to burn - * @param _tokenId uint256 ID of the token being burned by the msg.sender - */ - function _burn(address _owner, uint256 _tokenId) internal { - super._burn(_owner, _tokenId); - - // Clear metadata (if any) - if (bytes(tokenURIs[_tokenId]).length != 0) { - delete tokenURIs[_tokenId]; - } - - // Reorg all tokens array - uint256 tokenIndex = allTokensIndex[_tokenId]; - uint256 lastTokenIndex = allTokens.length.sub(1); - uint256 lastToken = allTokens[lastTokenIndex]; - - allTokens[tokenIndex] = lastToken; - allTokens[lastTokenIndex] = 0; - - allTokens.length--; - allTokensIndex[_tokenId] = 0; - allTokensIndex[lastToken] = tokenIndex; - } - -} - -// File: openzeppelin-solidity/contracts/payment/SplitPayment.sol - -/** - * @title SplitPayment - * @dev Base contract that supports multiple payees claiming funds sent to this contract - * according to the proportion they own. - */ -contract SplitPayment { - using SafeMath for uint256; - - uint256 public totalShares = 0; - uint256 public totalReleased = 0; - - mapping(address => uint256) public shares; - mapping(address => uint256) public released; - address[] public payees; - - /** - * @dev Constructor - */ - function SplitPayment(address[] _payees, uint256[] _shares) public payable { - require(_payees.length == _shares.length); - - for (uint256 i = 0; i < _payees.length; i++) { - addPayee(_payees[i], _shares[i]); - } - } - - /** - * @dev payable fallback - */ - function () public payable {} - - /** - * @dev Claim your share of the balance. - */ - function claim() public { - address payee = msg.sender; - - require(shares[payee] > 0); - - uint256 totalReceived = address(this).balance.add(totalReleased); - uint256 payment = totalReceived.mul(shares[payee]).div(totalShares).sub(released[payee]); - - require(payment != 0); - require(address(this).balance >= payment); - - released[payee] = released[payee].add(payment); - totalReleased = totalReleased.add(payment); - - payee.transfer(payment); - } - - /** - * @dev Add a new payee to the contract. - * @param _payee The address of the payee to add. - * @param _shares The number of shares owned by the payee. - */ - function addPayee(address _payee, uint256 _shares) internal { - require(_payee != address(0)); - require(_shares > 0); - require(shares[_payee] == 0); - - payees.push(_payee); - shares[_payee] = _shares; - totalShares = totalShares.add(_shares); - } -} - -// File: openzeppelin-solidity/contracts/ownership/Ownable.sol - -/** - * @title Ownable - * @dev The Ownable contract has an owner address, and provides basic authorization control - * functions, this simplifies the implementation of "user permissions". - */ -contract Ownable { - address public owner; - - - event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); - - - /** - * @dev The Ownable constructor sets the original `owner` of the contract to the sender - * account. - */ - function Ownable() public { - owner = msg.sender; - } - - /** - * @dev Throws if called by any account other than the owner. - */ - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - /** - * @dev Allows the current owner to transfer control of the contract to a newOwner. - * @param newOwner The address to transfer ownership to. - */ - function transferOwnership(address newOwner) public onlyOwner { - require(newOwner != address(0)); - emit OwnershipTransferred(owner, newOwner); - owner = newOwner; - } - -} - -// File: contracts/common/SplitPaymentChangeable.sol - -contract SplitPaymentChangeable is SplitPayment, Ownable { - - event PayeeAddressChanged( - uint payeeIndex, - address oldAddress, - address newAddress - ); - - constructor( - address[] _payees, - uint256[] _shares - ) - public - payable - SplitPayment(_payees, _shares) - { } - - function changePayeeAddress( - uint _payeeIndex, - address _newAddress - ) - external - onlyOwner - { - address oldAddress = payees[_payeeIndex]; - - shares[_newAddress] = shares[oldAddress]; - released[_newAddress] = released[oldAddress]; - payees[_payeeIndex] = _newAddress; - - delete shares[oldAddress]; - delete released[oldAddress]; - - emit PayeeAddressChanged(_payeeIndex, oldAddress, _newAddress); - } -} - -// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol - -/** - * @title Pausable - * @dev Base contract which allows children to implement an emergency stop mechanism. - */ -contract Pausable is Ownable { - event Pause(); - event Unpause(); - - bool public paused = false; - - - /** - * @dev Modifier to make a function callable only when the contract is not paused. - */ - modifier whenNotPaused() { - require(!paused); - _; - } - - /** - * @dev Modifier to make a function callable only when the contract is paused. - */ - modifier whenPaused() { - require(paused); - _; - } - - /** - * @dev called by the owner to pause, triggers stopped state - */ - function pause() onlyOwner whenNotPaused public { - paused = true; - emit Pause(); - } - - /** - * @dev called by the owner to unpause, returns to normal state - */ - function unpause() onlyOwner whenPaused public { - paused = false; - emit Unpause(); - } -} - -// File: contracts/registry/RegistryPermissionControl.sol - -/** -* @title RegistryPermissionControl contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev Controls registry adminship logic and permission to entry management -* @notice Now support only OnlyAdmin/AllUsers permissions -* @notice not recommend to use before release! -*/ -contract RegistryPermissionControl is Pausable { - - /* - * Storage - */ - - // @dev - address internal admin; - - // @dev Holds supported permission to create entry rights - enum CreateEntryPermissionGroup {OnlyAdmin, AllUsers} - - // @dev Holds current permission group, onlyAdmin by default - CreateEntryPermissionGroup internal createEntryPermissionGroup; - - /* - * Modifiers - */ - - // @dev Controls access granted only to admin - modifier onlyAdmin() { - require(msg.sender == admin); - _; - } - - // @dev Controls access to entry creation granted by setted permission group - modifier onlyPermissionedToCreateEntries() { - if (createEntryPermissionGroup == CreateEntryPermissionGroup.OnlyAdmin) { - require(msg.sender == admin); - } - _; - } - - /* - * View functions - */ - - /** - * @dev Allows to get current admin address account - * @return address of admin - */ - function getAdmin() - external - view - returns (address) - { - return admin; - } - - /** - * @dev Allows to get current permission group - * @return uint8 index of current group - */ - function getRegistryPermissions() - external - view - returns (uint8) - { - return uint8(createEntryPermissionGroup); - } - - /* - * Public functions - */ - - /** - * @dev Allows owner (in main workflow - chaingear) transfer admin right - * @dev if previous admin transfer associated ERC721 token. - * @param _newAdmin address of new token holder/registry admin - * @notice triggers by chaingear in main workflow (when registry non-registered from CH) - */ - function transferAdminRights( - address _newAdmin - ) - public - onlyOwner - whenNotPaused - { - require(_newAdmin != 0x0); - admin = _newAdmin; - } - - /** - * @dev Allows admin to set new permission group granted to create entries - * @param _createEntryPermissionGroup uint8 index of needed group - */ - function updateCreateEntryPermissionGroup( - uint8 _createEntryPermissionGroup - ) - public - onlyAdmin - whenNotPaused - { - require(uint8(CreateEntryPermissionGroup.AllUsers) >= _createEntryPermissionGroup); - createEntryPermissionGroup = CreateEntryPermissionGroup(_createEntryPermissionGroup); - } - -} - -// File: contracts/registry/Chaingeareable.sol - -/** -* @title Chaingeareable -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Storage of core data and setters/getters -* @notice not recommend to use before release! -*/ -contract Chaingeareable is RegistryPermissionControl { - - /* - * Storage - */ - - // @dev entry creation fee - uint internal entryCreationFee; - - // @dev registry description string - string internal registryDescription; - - // @dev registry tags - bytes32[] internal registryTags; - - // @dev address of EntryCore contract, which specifies data schema and operations - address internal entriesStorage; - - // @dev link to IPFS hash to ABI of EntryCore contract - string internal linkToABIOfEntriesContract; - - // @dev address of Registry safe where funds store - address internal registrySafe; - - // @dev state of was registry initialized with EntryCore or not - bool internal registryInitStatus; - - /* - * Modifiers - */ - - // @dev don't allow to call registry entry functions before initialization - modifier registryInitialized { - require(registryInitStatus == true); - _; - } - - /** - * Events - */ - - // @dev Signals that new entry-token added to Registry - event EntryCreated( - uint entryID, - address creator - ); - - // @dev Signals that entry-token changed owner - event EntryChangedOwner( - uint entryID, - address newOwner - ); - - // @dev Signals that entry-token deleted - event EntryDeleted( - uint entryID, - address owner - ); - - // @dev Signals that entry-token funded with given amount - event EntryFunded( - uint entryID, - address funder, - uint amount - ); - - // @dev Signals that entry-token funds claimed by owner with given amount - event EntryFundsClaimed( - uint entryID, - address owner, - uint amount - ); - - /** - * External Functions - */ - - /** - * @dev Allows admin set new registration fee, which entry creators should pay - * @param _fee uint In wei which should be payed for creation/registration - */ - function updateEntryCreationFee( - uint _fee - ) - external - onlyAdmin - { - entryCreationFee = _fee; - } - - /** - * @dev Allows admin update registry description - * @param _registryDescription string Which represents description - * @notice Length of description should be less than 256 bytes - */ - function updateRegistryDescription( - string _registryDescription - ) - external - onlyAdmin - { - uint len = bytes(_registryDescription).length; - require(len <= 256); - - registryDescription = _registryDescription; - } - - /** - * @dev Allows admin to add tag to registry - * @param _tag bytes32 Tag - * @notice Tags amount should be less than 16 - */ - function addRegistryTag( - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - registryTags.push(_tag); - } - - /** - * @dev Allows admin to update update specified tag - * @param _index uint16 Index of tag to update - * @param _tag bytes32 New tag value - */ - function updateRegistryTag( - uint16 _index, - bytes32 _tag - ) - external - onlyAdmin - { - require(_tag.length <= 16); - require(_index <= registryTags.length-1); - - registryTags[_index] = _tag; - } - - /** - * @dev Remove registry tag - * @param _index uint16 Index of tag to delete - */ - function removeRegistryTag( - uint16 _index - ) - external - onlyAdmin - { - uint256 lastTagIndex = registryTags.length - 1; - bytes32 lastTag = registryTags[lastTagIndex]; - - registryTags[_index] = lastTag; - registryTags[lastTagIndex] = ""; - registryTags.length--; - } - - /** - * View functions - */ - - /** - * @dev Allows to get EntryCore contract which specified entry schema and operations - * @return address of that contract - */ - function getEntriesStorage() - external - view - returns (address) - { - return entriesStorage; - } - - /** - * @dev Allows to get link interface of EntryCore contract - * @return string with IPFS hash to JSON with ABI - */ - function getInterfaceEntriesContract() - external - view - returns (string) - { - return linkToABIOfEntriesContract; - } - - /** - * @dev Allows to get registry balance which represents accumulated fees for entry creations - * @return uint Amount in wei accumulated in Registry Contract - */ - function getRegistryBalance() - external - view - returns (uint) - { - return address(this).balance; - } - - /** - * @dev Allows to check which amount fee needed for entry creation/registration - * @return uint Current amount in wei needed for registration - */ - function getEntryCreationFee() - external - view - returns (uint) - { - return entryCreationFee; - } - - /** - * @dev Allows to get description of Registry - * @return string which represents description - */ - function getRegistryDescription() - external - view - returns (string) - { - return registryDescription; - } - - /** - * @dev Allows to get Registry Tags - * @return bytes32[] array of tags - */ - function getRegistryTags() - external - view - returns (bytes32[]) - { - return registryTags; - } - - /** - * @dev Allows to get address of Safe which Registry control (owns) - * @return address of Safe contract - */ - function getRegistrySafe() - external - view - returns (address) - { - return registrySafe; - } - - /** - * @dev Allows to get amount of funds aggregated in Safe - * @return uint Amount of funds in wei - */ - function getSafeBalance() - external - view - returns (uint balance) - { - return address(registrySafe).balance; - } - - /** - * @dev Allows to check state of Registry init with EntryCore - * @return bool Yes/No - */ - function getRegistryInitStatus() - external - view - returns (bool) - { - return registryInitStatus; - } -} - -// File: contracts/common/EntryInterface.sol - -contract EntryInterface { - - function entriesAmount() external view returns (uint256); - function createEntry() external returns (uint256); - function deleteEntry(uint256) external; -} - -// File: contracts/common/RegistryInterface.sol - -contract RegistryInterface { - function getSafeBalance() external view returns (uint256); - function getAdmin() external view returns (address); - function createEntry() external payable returns (uint256); - function deleteEntry(uint256 _entryId) external; - function fundEntry(uint256 _entryId) external payable; - function claimEntryFunds(uint256 _entryId, uint _amount) external; - function transferAdminRights(address _newOnwer) public; - function transferOwnership(address _newOwner) public; - function name() public view returns (string); - function symbol() public view returns (string); -} - -// File: contracts/common/Safe.sol - -/** -* @title Safe contract -* @author cyber•Congress, Valery Litvin (@litvintech) -* @dev Allows store etheirs which funded to Registry -* @dev and claim them by Registry/associated token via Chaingear -* @notice not recommend to use before release! -*/ -contract Safe { - - address public owner; - - constructor() - public - payable - { - owner = msg.sender; - } - - /** - * @dev Allows direct send only by owner. - */ - function() - external - payable - { - require(msg.sender == owner); - } - - /** - * @dev Allows owner (chaingear) claim funds and transfer them to Registry admin - * @param _entryOwner address transfer to, Registry-token admin - * @param _amount uint claimed amount by Registry-token admin - */ - function claim( - address _entryOwner, - uint256 _amount - ) - external - { - require(msg.sender == owner); - require(_amount <= address(this).balance); - require(_entryOwner != 0x0); - _entryOwner.transfer(_amount); - } - -} - -// File: contracts/registry/Registry.sol - -/** -* @title Registry First Type Contract -* @author cyber•Congress, Valery litvin (@litvintech) -* @dev This contract in current flow used for Registry creation throught fabric in Chaingear -* @dev Registry creates ERC721 for each entry, entry may be funded/funds claimed -* @dev Admin sets contracts (EntrCore) which defines entry schema -* @dev Entry creation/deletion/update permission are tokenized -* @notice not recommend to use before release! -*/ -contract Registry is RegistryInterface, Chaingeareable, SplitPaymentChangeable, ERC721Token { - - using SafeMath for uint256; - - /* - * Storage - */ - - // @dev Metadata of entry, holds ownership data and funding info - struct EntryMeta { - address creator; - uint createdAt; - uint lastUpdateTime; - uint256 currentEntryBalanceETH; - uint256 accumulatedOverallEntryETH; - } - - // @dev Array of associated to entry/token metadata - EntryMeta[] internal entriesMeta; - - /* - * Constructor - */ - - /** - * @dev Constructor of Registry, creates from fabric which triggers by chaingear - * @param _benefitiaries address[] addresses of Registry benefitiaries - * @param _shares uint256[] array with amount of shares by benefitiary - * @param _name string Registry name, use for Registry ERC721 - * @param _symbol string Registry NFT symbol, use for Registry ERC721 - * @notice sets default entry creation policy to onlyAdmin - * @notice sets default creation fee to zero - * @notice Registry are inactive till he is not initialized with schema (EntryCore) - */ - constructor( - address[] _benefitiaries, - uint256[] _shares, - string _name, - string _symbol - ) - SplitPaymentChangeable(_benefitiaries, _shares) - ERC721Token(_name, _symbol) - public - payable - { - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin; - entryCreationFee = 0; - registrySafe = new Safe(); - registryInitStatus = false; - } - - function() public payable {} - - /* - * External functions - */ - - /** - * @dev Creates ERC721 and init asscociated epmty entry in EntryCore - * @return uint256 ID of ERC721 token - * @notice Entry owner should to after token creation and entry init set - * @notice entry data throught EntryCore updateEntry() - * @notice This (and deletion) would work if EntryCore correctly written - * @notice otherwise nothing should happen with Registry - */ - function createEntry() - external - registryInitialized - onlyPermissionedToCreateEntries - whenNotPaused - payable - returns (uint256) - { - require(msg.value == entryCreationFee); - - EntryMeta memory meta = (EntryMeta( - { - lastUpdateTime: block.timestamp, - createdAt: block.timestamp, - creator: msg.sender, - currentEntryBalanceETH: 0, - accumulatedOverallEntryETH: 0 - })); - - entriesMeta.push(meta); - - //newEntryID equals current entriesAmount number, because token IDs starts from 0 - uint256 newEntryID = EntryInterface(entriesStorage).entriesAmount(); - require(newEntryID == totalSupply()); - - _mint(msg.sender, newEntryID); - emit EntryCreated(newEntryID, msg.sender); - - uint256 createdEntryID = EntryInterface(entriesStorage).createEntry(); - require(newEntryID == createdEntryID); - - return newEntryID; - } - - /** - * @dev Allow entry owner delete Entry-token and also Entry-data in EntryCore - * @param _entryID uint256 Entry-token ID - */ - function deleteEntry( - uint256 _entryID - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(entriesMeta[_entryID].currentEntryBalanceETH == 0); - - uint256 entryIndex = allTokensIndex[_entryID]; - - uint256 lastEntryIndex = entriesMeta.length - 1; - EntryMeta storage lastEntry = entriesMeta[lastEntryIndex]; - - entriesMeta[_entryID] = lastEntry; - delete entriesMeta[lastEntryIndex]; - entriesMeta.length--; - - _burn(msg.sender, _entryID); - emit EntryDeleted(_entryID, msg.sender); - - EntryInterface(entriesStorage).deleteEntry(entryIndex); - } - - function transferFrom( - address _from, - address _to, - uint256 _tokenId - ) - public - canTransfer(_tokenId) - registryInitialized - { - require(_from != address(0)); - require(_to != address(0)); - - clearApproval(_from, _tokenId); - removeTokenFrom(_from, _tokenId); - addTokenTo(_to, _tokenId); - - emit Transfer(_from, _to, _tokenId); - } - - /** - * @dev Allows anyone fund specified entry - * @param _entryID uint256 Entry-token ID - * @notice Funds tracks in EntryMeta, stores in Registry Safe - */ - function fundEntry( - uint256 _entryID - ) - external - registryInitialized - whenNotPaused - payable - { - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.add(msg.value); - entriesMeta[_entryID].accumulatedOverallEntryETH = entriesMeta[_entryID].accumulatedOverallEntryETH.add(msg.value); - emit EntryFunded(_entryID, msg.sender, msg.value); - - registrySafe.transfer(msg.value); - } - - /** - * @dev Allows entry token owner claim entry funds - * @param _entryID uint256 Entry-token ID - * @param _amount uint Amount in wei which token owner claims - * @notice Funds tracks in EntryMeta, transfers from Safe to claimer (owner) - */ - function claimEntryFunds( - uint256 _entryID, - uint _amount - ) - external - registryInitialized - onlyOwnerOf(_entryID) - whenNotPaused - { - require(_amount <= entriesMeta[_entryID].currentEntryBalanceETH); - entriesMeta[_entryID].currentEntryBalanceETH = entriesMeta[_entryID].currentEntryBalanceETH.sub(_amount); - - emit EntryFundsClaimed(_entryID, msg.sender, _amount); - - Safe(registrySafe).claim(msg.sender, _amount); - } - - /** - * @dev Allow to set last entry data update for entry-token meta - * @param _entryID uint256 Entry-token ID - * @notice Can be (should be) called only by EntryCore (updateEntry) - */ - function updateEntryTimestamp( - uint256 _entryID - ) - external - { - entriesMeta[_entryID].lastUpdateTime = block.timestamp; - require(entriesStorage == msg.sender); - } - - /* - * View functions - */ - - function getEntryMeta( - uint256 _entryID - ) - external - view - returns ( - address, - address, - uint, - uint, - uint256, - uint256 - ) - { - return( - ownerOf(_entryID), - entriesMeta[_entryID].creator, - entriesMeta[_entryID].createdAt, - entriesMeta[_entryID].lastUpdateTime, - entriesMeta[_entryID].currentEntryBalanceETH, - entriesMeta[_entryID].accumulatedOverallEntryETH - ); - } - - /** - * @dev Verification function which auth user to update specified entry data in EntryCore - * @param _entryID uint256 Entry-token ID - * @param _caller address of caller which trying to update entry throught EntryCore - * @return - */ - function checkAuth( - uint256 _entryID, - address _caller - ) - external - view - returns (bool) - { - require(ownerOf(_entryID) == _caller); - } - - /** - * @dev Allows update ERC721 token name (Registry Name) - * @param _name string which represents name - */ - function updateName( - string _name - ) - external - onlyAdmin - { - name_ = _name; - } - - /* - * Public functions - */ - - /** - * @dev Registry admin sets generated by them EntryCore contrats with thier schema and - * @dev needed supported entry-token logic - * @param _linkToABIOfEntriesContract string link to IPFS hash which holds EntryCore's ABI - * @param _entryCore bytes of contract which holds schema and accociated CRUD functions - * @return address of deployed EntryCore - */ - function initializeRegistry( - string _linkToABIOfEntriesContract, - bytes _entryCore - ) - public - onlyAdmin - returns (address) - { - address deployedAddress; - assembly { - let s := mload(_entryCore) - let p := add(_entryCore, 0x20) - deployedAddress := create(0, p, s) - } - - assert(deployedAddress != 0x0); - entriesStorage = deployedAddress; - registryInitStatus = true; - linkToABIOfEntriesContract = _linkToABIOfEntriesContract; - - return entriesStorage; - } - -} diff --git a/docs/verification/TeamSchema_full.sol b/docs/verification/TeamSchema_full.sol new file mode 100644 index 00000000..39cbd3e2 --- /dev/null +++ b/docs/verification/TeamSchema_full.sol @@ -0,0 +1,287 @@ +pragma solidity 0.4.25; + +// File: contracts/common/ISchema.sol + +interface ISchema { + + function createEntry() external; + function deleteEntry(uint256) external; +} + +// File: contracts/common/IDatabase.sol + +interface IDatabase { + + function createEntry() external payable returns (uint256); + function auth(uint256, address) external; + function deleteEntry(uint256) external; + function fundEntry(uint256) external payable; + function claimEntryFunds(uint256, uint256) external; + function updateEntryCreationFee(uint256) external; + function updateDatabaseDescription(string) external; + function addDatabaseTag(bytes32) external; + function updateDatabaseTag(uint8, bytes32) external; + function removeDatabaseTag(uint8) external; + function readEntryMeta(uint256) external view returns (address, address, uint256, uint256, uint256, uint256); + function getChaingearID() external view returns (uint256); + function getEntriesIDs() external view returns (uint256[]); + function getIndexByID(uint256) external view returns (uint256); + function getEntryCreationFee() external view returns (uint256); + function getEntriesStorage() external view returns (address); + function getSchemaDefinition() external view returns (string); + function getDatabaseBalance() external view returns (uint256); + function getDatabaseDescription() external view returns (string); + function getDatabaseTags() external view returns (bytes32[]); + function getDatabaseSafe() external view returns (address); + function getSafeBalance() external view returns (uint256); + function getDatabaseInitStatus() external view returns (bool); + function transferAdminRights(address) external; + function transferOwnership(address) external; + function getAdmin() external view returns (address); + function getPaused() external view returns (bool); +} + +// File: openzeppelin-solidity/contracts/ownership/Ownable.sol + +/** + * @title Ownable + * @dev The Ownable contract has an owner address, and provides basic authorization control + * functions, this simplifies the implementation of "user permissions". + */ +contract Ownable { + address public owner; + + + event OwnershipRenounced(address indexed previousOwner); + event OwnershipTransferred( + address indexed previousOwner, + address indexed newOwner + ); + + + /** + * @dev The Ownable constructor sets the original `owner` of the contract to the sender + * account. + */ + constructor() public { + owner = msg.sender; + } + + /** + * @dev Throws if called by any account other than the owner. + */ + modifier onlyOwner() { + require(msg.sender == owner); + _; + } + + /** + * @dev Allows the current owner to relinquish control of the contract. + * @notice Renouncing to ownership will leave the contract without an owner. + * It will not be possible to call the functions with the `onlyOwner` + * modifier anymore. + */ + function renounceOwnership() public onlyOwner { + emit OwnershipRenounced(owner); + owner = address(0); + } + + /** + * @dev Allows the current owner to transfer control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function transferOwnership(address _newOwner) public onlyOwner { + _transferOwnership(_newOwner); + } + + /** + * @dev Transfers control of the contract to a newOwner. + * @param _newOwner The address to transfer ownership to. + */ + function _transferOwnership(address _newOwner) internal { + require(_newOwner != address(0)); + emit OwnershipTransferred(owner, _newOwner); + owner = _newOwner; + } +} + +// File: openzeppelin-solidity/contracts/introspection/ERC165.sol + +/** + * @title ERC165 + * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md + */ +interface ERC165 { + + /** + * @notice Query if a contract implements an interface + * @param _interfaceId The interface identifier, as specified in ERC-165 + * @dev Interface identification is specified in ERC-165. This function + * uses less than 30,000 gas. + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool); +} + +// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol + +/** + * @title SupportsInterfaceWithLookup + * @author Matt Condon (@shrugs) + * @dev Implements ERC165 using a lookup table. + */ +contract SupportsInterfaceWithLookup is ERC165 { + + bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; + /** + * 0x01ffc9a7 === + * bytes4(keccak256('supportsInterface(bytes4)')) + */ + + /** + * @dev a mapping of interface id to whether or not it's supported + */ + mapping(bytes4 => bool) internal supportedInterfaces; + + /** + * @dev A contract implementing SupportsInterfaceWithLookup + * implement ERC165 itself + */ + constructor() + public + { + _registerInterface(InterfaceId_ERC165); + } + + /** + * @dev implement supportsInterface(bytes4) using a lookup table + */ + function supportsInterface(bytes4 _interfaceId) + external + view + returns (bool) + { + return supportedInterfaces[_interfaceId]; + } + + /** + * @dev private method for registering an interface + */ + function _registerInterface(bytes4 _interfaceId) + internal + { + require(_interfaceId != 0xffffffff); + supportedInterfaces[_interfaceId] = true; + } +} + +// File: contracts/schemas/TeamSchema.sol + +contract TeamSchema is ISchema, Ownable, SupportsInterfaceWithLookup { + + bytes4 constant internal INTERFACE_SCHEMA_ID = 0x153366ed; + + struct Entry { + string name; + address gitcoin; + address payouts; + string github; + string telegram; + string keybase; + } + + Entry[] public entries; + + IDatabase internal database; + + constructor() + public + { + _registerInterface(INTERFACE_SCHEMA_ID); + database = IDatabase(owner); + } + + function() external {} + + function createEntry() + external + onlyOwner + { + Entry memory m = (Entry( + { + name: "", + gitcoin: address(0), + payouts: address(0), + github: "", + telegram: "", + keybase: "" + })); + + entries.push(m); + } + + function readEntry(uint256 _entryID) + external + view + returns ( + string, + address, + address, + string, + string, + string + ) + { + uint256 entryIndex = database.getIndexByID(_entryID); + return ( + entries[entryIndex].name, + entries[entryIndex].gitcoin, + entries[entryIndex].payouts, + entries[entryIndex].github, + entries[entryIndex].telegram, + entries[entryIndex].keybase + ); + } + + function updateEntry( + uint256 _entryID, + string _name, + address _gitcoin, + address _payouts, + string _github, + string _telegram, + string _keybase + ) + external + { + database.auth(_entryID, msg.sender); + + uint256 entryIndex = database.getIndexByID(_entryID); + + Entry memory m = (Entry( + { + name: _name, + gitcoin: _gitcoin, + payouts: _payouts, + github: _github, + telegram: _telegram, + keybase: _keybase + })); + entries[entryIndex] = m; + } + + function deleteEntry(uint256 _entryIndex) + external + onlyOwner + { + uint256 lastEntryIndex = entries.length - 1; + Entry memory lastEntry = entries[lastEntryIndex]; + + entries[_entryIndex] = lastEntry; + delete entries[lastEntryIndex]; + entries.length--; + } + +} diff --git a/docs/verification/concat_contracts.sh b/docs/verification/concat_contracts.sh index a37fe989..b2942166 100755 --- a/docs/verification/concat_contracts.sh +++ b/docs/verification/concat_contracts.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash -truffle-flattener ../../contracts/registry/Registry.sol > Registry_full.sol +truffle-flattener ../../contracts/databases/DatabaseV1.sol > DatabaseV1_full.sol truffle-flattener ../../contracts/chaingear/Chaingear.sol > Chaingear_full.sol -truffle-flattener ../../contracts/registry/EntryCore.sol > EntryCore_full.sol +truffle-flattener ../../contracts/schemas/TeamSchema.sol > TeamSchema_full.sol +truffle-flattener ../../contracts/builders/DatabaseBuilderV1.sol > Builder_full.sol diff --git a/icon.png b/icon.png deleted file mode 100644 index eafd896b..00000000 Binary files a/icon.png and /dev/null differ diff --git a/infura_deploy_sample.json b/infura_deploy_sample.json new file mode 100644 index 00000000..8c2dddfb --- /dev/null +++ b/infura_deploy_sample.json @@ -0,0 +1,5 @@ +{ + "privateKey": "", + "fromAddress": "0x0000000000000000000", + "infuraUrl": "https://.infura.io/" +} diff --git a/manifest.json b/manifest.json deleted file mode 100644 index 34534797..00000000 --- a/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "id": "chaingear-test-app", - "name": "Chaingear REMOTE", - "iconUrl": "icon.png", - "description": "The most expensive database", - "version": "0.0.1", - "author": "cybercongress" -} diff --git a/migrations/2_deploy_registry_builder.js b/migrations/2_deploy_registry_builder.js new file mode 100644 index 00000000..04593a9e --- /dev/null +++ b/migrations/2_deploy_registry_builder.js @@ -0,0 +1,5 @@ +var DatabaseBuilderV1 = artifacts.require("./builders/DatabaseBuilderV1.sol"); + +module.exports = function(deployer) { + deployer.deploy(DatabaseBuilderV1); +}; diff --git a/migrations/2_deploy_registry_creator.js b/migrations/2_deploy_registry_creator.js deleted file mode 100644 index ee0f5840..00000000 --- a/migrations/2_deploy_registry_creator.js +++ /dev/null @@ -1,5 +0,0 @@ -var RegistryCreator = artifacts.require("./chaingear/RegistryCreator.sol"); - -module.exports = function(deployer) { - deployer.deploy(RegistryCreator); -}; diff --git a/migrations/3_deploy_chaingear.js b/migrations/3_deploy_chaingear.js deleted file mode 100644 index c6079332..00000000 --- a/migrations/3_deploy_chaingear.js +++ /dev/null @@ -1,41 +0,0 @@ -var Chaingear = artifacts.require("./chaingear/Chaingear.sol"); -var RegistryCreator = artifacts.require("./chaingear/RegistryCreator.sol"); - -module.exports = function(deployer, network, accounts) { - - let BUILDING_FEE, BENEFICIARIES, SHARES - var creator - - - if (network == 'live' || 'kovan') { - // TODO: adjust parameters - BUILDING_FEE = 0 - BENEFICIARIES = [] - SHARES = [] - } else { - BUILDING_FEE = 100000 - BENEFICIARIES = [accounts[0], accounts[1]] - SHARES = [50, 50] - } - - deployer.deploy( - Chaingear, - BENEFICIARIES, - SHARES, - "Most Expensive Registry", - BUILDING_FEE, - "CHAINGEAR", - "CHG" - ).then(() => RegistryCreator.deployed()) - .then(_creator => { - creator = _creator, - creator.setBuilder(Chaingear.address) - }) - .then(() => Chaingear.deployed()) - .then(chaingear => chaingear.addRegistryCreatorVersion( - "V1", - creator.address, - "IPFS_HASH_1", - "Test version of Registry" - )) -}; diff --git a/migrations/3_deploy_chaingear_and_add_builder.js b/migrations/3_deploy_chaingear_and_add_builder.js new file mode 100644 index 00000000..9ab9f7c6 --- /dev/null +++ b/migrations/3_deploy_chaingear_and_add_builder.js @@ -0,0 +1,51 @@ +var Chaingear = artifacts.require("./chaingear/Chaingear.sol"); +var DatabaseBuilderV1 = artifacts.require("./builders/DatabaseBuilderV1.sol"); +var DatabaseV1 = artifacts.require("./databases/DatabaseV1.sol"); +var Safe = artifacts.require("./common/Safe.sol"); + +var AppsSchema = artifacts.require("./schemas/AppsSchema.sol"); +var TeamSchema = artifacts.require("./schemas/TeamSchema.sol"); +var NodesSchema = artifacts.require("./schemas/NodesSchema.sol"); +var PortsSchema = artifacts.require("./schemas/PortsSchema.sol"); +var FeaturesSchema = artifacts.require("./schemas/FeaturesSchema.sol"); + +var IPFS = require('ipfs-api'); + + +module.exports = async function(deployer, network, accounts) { + + const ipfs = new IPFS({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }); + + let ids; + let databaseMeta; + let hash; + let database; + let BENEFICIARIES = ["0xE93984eC26Df9a71a094e3d159b4Ed05E6d73fb0"]; + let SHARES = [100]; + + const builder = await DatabaseBuilderV1.deployed(); + const chaingear = await deployer.deploy( + Chaingear, + BENEFICIARIES, + SHARES + ); + await builder.setChaingearAddress(chaingear.address); + hash = await ipfs.files.add(Buffer.from(JSON.stringify(DatabaseV1.abi))); + console.log("CID to DatabaseV1 ABI in IPFS: ", hash[0].path); + await chaingear.addDatabaseBuilderVersion( + "V1", + builder.address, + hash[0].path, + "Basic version of database" + ); + + const db = await deployer.deploy( + DatabaseV1, + BENEFICIARIES, + SHARES, + "verification-database", + "VRFD" + ); + + const safe = await deployer.deploy(Safe); +}; diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 0ee6a1e4..00000000 --- a/nginx.conf +++ /dev/null @@ -1,10 +0,0 @@ -server { - listen 80; - - root /dist; - - # Any route that doesn't have a file extension (e.g. /devices) - location / { - try_files $uri /index.html; - } -} diff --git a/openzeppelin-solidity b/openzeppelin-solidity new file mode 120000 index 00000000..fb10c306 --- /dev/null +++ b/openzeppelin-solidity @@ -0,0 +1 @@ +node_modules/openzeppelin-solidity/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 651fedbb..00000000 --- a/package-lock.json +++ /dev/null @@ -1,16400 +0,0 @@ -{ - "name": "chaingear", - "version": "0.1.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@types/concat-stream": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.0.tgz", - "integrity": "sha1-OU2+C7X+5Gs42JZzXoto7yOQ0A0=", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/form-data": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", - "integrity": "sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/node": { - "version": "9.6.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.22.tgz", - "integrity": "sha512-RIg9EkxzVMkNH0M4sLRngK23f5QiigJC0iODQmu4nopzstt8AjegYund3r82iMrd2BNCjcZVnklaItvKHaGfBA==", - "dev": true - }, - "@types/qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-mNhVdZHdtKHMMxbqzNK3RzkBcN1cux3AvuCYGTvjEIQT2uheH3eCAyYsbMbh2Bq8nXkeOWs1kyDiF7geWRFQ4Q==", - "dev": true - }, - "@zeit/schemas": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.6.0.tgz", - "integrity": "sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg==", - "dev": true - }, - "JSONStream": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.3.tgz", - "integrity": "sha512-3Sp6WZZ/lXl+nTDoGpGWHEpTnnC6X5fnkolYZR6nwIfzbxxvA8utPWe1gCt7i0m9uVGsSz2IS8K8mJ7HmlduMg==", - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "abi-decoder": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/abi-decoder/-/abi-decoder-1.1.0.tgz", - "integrity": "sha512-nvLArBx0XOJufWyaghMKtIofZDBwEMdVZoqcetQOIe1qYeKZk4+kRYGPEJ5lt7dD3MLulw//amUzOJLM8eW5RA==", - "dev": true, - "requires": { - "babel-core": "^6.23.1", - "babel-loader": "^6.3.2", - "babel-plugin-add-module-exports": "^0.2.1", - "babel-plugin-transform-es2015-modules-amd": "^6.22.0", - "babel-plugin-transform-runtime": "^6.23.0", - "babel-preset-es2015": "^6.22.0", - "chai": "^3.5.0", - "web3": "^0.18.4", - "webpack": "^2.7.0" - }, - "dependencies": { - "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", - "dev": true, - "requires": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" - } - }, - "babel-loader": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-6.4.1.tgz", - "integrity": "sha1-CzQRLVsHSKjc2/Uaz2+b1C1QuMo=", - "dev": true, - "requires": { - "find-cache-dir": "^0.1.1", - "loader-utils": "^0.2.16", - "mkdirp": "^0.5.1", - "object-assign": "^4.0.1" - } - }, - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "dev": true - }, - "chai": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", - "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", - "dev": true, - "requires": { - "assertion-error": "^1.0.1", - "deep-eql": "^0.1.3", - "type-detect": "^1.0.0" - } - }, - "deep-eql": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", - "dev": true, - "requires": { - "type-detect": "0.1.1" - }, - "dependencies": { - "type-detect": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true - } - } - }, - "find-cache-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", - "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "mkdirp": "^0.5.1", - "pkg-dir": "^1.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "pkg-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", - "dev": true, - "requires": { - "find-up": "^1.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - }, - "type-detect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", - "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", - "dev": true - }, - "web3": { - "version": "0.18.4", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.18.4.tgz", - "integrity": "sha1-gewXhBRUkfLqqJVbMcBgSeB8Xn0=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xhr2": "*", - "xmlhttprequest": "*" - } - }, - "webpack": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.7.0.tgz", - "integrity": "sha512-MjAA0ZqO1ba7ZQJRnoCdbM56mmFpipOPUv/vQpwwfSI42p5PVDdoiuK2AL2FwFUVgT859Jr43bFZXRg/LNsqvg==", - "dev": true, - "requires": { - "acorn": "^5.0.0", - "acorn-dynamic-import": "^2.0.0", - "ajv": "^4.7.0", - "ajv-keywords": "^1.1.1", - "async": "^2.1.2", - "enhanced-resolve": "^3.3.0", - "interpret": "^1.0.0", - "json-loader": "^0.5.4", - "json5": "^0.5.1", - "loader-runner": "^2.3.0", - "loader-utils": "^0.2.16", - "memory-fs": "~0.4.1", - "mkdirp": "~0.5.0", - "node-libs-browser": "^2.0.0", - "source-map": "^0.5.3", - "supports-color": "^3.1.0", - "tapable": "~0.2.5", - "uglify-js": "^2.8.27", - "watchpack": "^1.3.1", - "webpack-sources": "^1.0.1", - "yargs": "^6.0.0" - } - }, - "yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^4.2.0" - } - }, - "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - } - } - } - }, - "abstract-leveldown": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz", - "integrity": "sha512-2++wDf/DYqkPR3o5tbfdhF96EfMApo1GpPfzOsR/ZYXdkSmELlvOOEAl9iKkRsktMPHdGjO4rtkBpf2I7TiTeA==", - "requires": { - "xtend": "~4.0.0" - } - }, - "accepts": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", - "requires": { - "mime-types": "~2.1.18", - "negotiator": "0.6.1" - } - }, - "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==" - }, - "acorn-dynamic-import": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", - "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", - "dev": true, - "requires": { - "acorn": "^4.0.3" - }, - "dependencies": { - "acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", - "dev": true - } - } - }, - "acorn-node": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.5.2.tgz", - "integrity": "sha512-krFKvw/d1F17AN3XZbybIUzEY4YEPNiGo05AfP3dBlfVKrMHETKpgjpuZkSF8qDNt9UkQcqj7am8yJLseklCMg==", - "dev": true, - "requires": { - "acorn": "^5.7.1", - "acorn-dynamic-import": "^3.0.0", - "xtend": "^4.0.1" - }, - "dependencies": { - "acorn-dynamic-import": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", - "integrity": "sha512-zVWV8Z8lislJoOKKqdNMOB+s6+XV5WERty8MnKBeFgwA+19XJjJHs2RP5dzM57FftIs+jQnRToLiWazKr6sSWg==", - "dev": true, - "requires": { - "acorn": "^5.0.0" - } - } - } - }, - "aes-js": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-0.2.4.tgz", - "integrity": "sha1-lLiBq3FyhtAV+iGeCPtmcJ3aWj0=" - }, - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "ajv-keywords": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", - "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", - "dev": true - }, - "align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - } - }, - "alphanum-sort": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", - "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", - "dev": true - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" - }, - "ansi-align": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", - "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", - "dev": true, - "requires": { - "string-width": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "ansi-html": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", - "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", - "dev": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "arch": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/arch/-/arch-2.1.1.tgz", - "integrity": "sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==", - "dev": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", - "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "arg": { - "version": "2.0.0", - "resolved": "http://registry.npmjs.org/arg/-/arg-2.0.0.tgz", - "integrity": "sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w==", - "dev": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-filter": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", - "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=", - "dev": true - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" - }, - "array-includes": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz", - "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.7.0" - } - }, - "array-map": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", - "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=", - "dev": true - }, - "array-reduce": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", - "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" - }, - "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" - }, - "asn1.js": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.0.1.tgz", - "integrity": "sha512-aO8EaEgbgqq77IEw+1jfx5c9zTbzvkfuRBuZsSsPnTHMkmd5AI4J6OtITLZFa381jReeaQL67J0GBTUu0+ZTVw==", - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "assert": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", - "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", - "dev": true, - "requires": { - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "ast-types": { - "version": "0.9.6", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz", - "integrity": "sha1-ECyenpAF0+fjgpvwxPok7oYu6bk=" - }, - "async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", - "requires": { - "lodash": "^4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" - } - } - }, - "async-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", - "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", - "dev": true - }, - "async-eventemitter": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz", - "integrity": "sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw==", - "requires": { - "async": "^2.4.0" - } - }, - "async-foreach": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", - "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", - "dev": true - }, - "async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "atob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=", - "dev": true - }, - "autoprefixer": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.1.4.tgz", - "integrity": "sha512-MB1XybOJqu1uAwpfSilAa1wSURNc4W310CFKvMj1fNaJBFxr1PGgz72vZaPr9ryKGqs2vYZ6jDyJ0aiGELjsoA==", - "dev": true, - "requires": { - "browserslist": "^2.4.0", - "caniuse-lite": "^1.0.30000726", - "normalize-range": "^0.1.2", - "num2fraction": "^1.2.2", - "postcss": "^6.0.11", - "postcss-value-parser": "^3.2.3" - } - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" - }, - "aws4": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==" - }, - "axios": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.16.2.tgz", - "integrity": "sha1-uk+S8XFn37q0CYN4VFS5rBScPG0=", - "requires": { - "follow-redirects": "^1.2.3", - "is-buffer": "^1.1.5" - } - }, - "babel": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel/-/babel-6.23.0.tgz", - "integrity": "sha1-0NHn2APpdHZb7qMjLU4VPA77kPQ=", - "dev": true - }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.0", - "debug": "^2.6.8", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.7", - "slash": "^1.0.0", - "source-map": "^0.5.6" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "babel-helper-bindify-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", - "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-builder-binary-assignment-operator-visitor": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", - "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", - "dev": true, - "requires": { - "babel-helper-explode-assignable-expression": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-builder-react-jsx": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz", - "integrity": "sha1-Of+DE7dci2Xc7/HzHTg+D/KkCKA=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "esutils": "^2.0.2" - } - }, - "babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-define-map": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", - "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-helper-explode-assignable-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", - "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-explode-class": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", - "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", - "dev": true, - "requires": { - "babel-helper-bindify-decorators": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", - "dev": true, - "requires": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-optimise-call-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", - "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-helper-remap-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", - "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-replace-supers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", - "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", - "dev": true, - "requires": { - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-loader": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.2.tgz", - "integrity": "sha512-jRwlFbINAeyDStqK6Dd5YuY0k5YuzQUvlz2ZamuXrXmxav3pNqe9vfJ402+2G+OmlJSXxCOpB6Uz0INM7RQe2A==", - "dev": true, - "requires": { - "find-cache-dir": "^1.0.0", - "loader-utils": "^1.0.2", - "mkdirp": "^0.5.1" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - } - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-add-module-exports": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz", - "integrity": "sha1-mumh9KjcZ/DN7E9K7aHkOl/2XiU=", - "dev": true - }, - "babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-syntax-async-functions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", - "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", - "dev": true - }, - "babel-plugin-syntax-async-generators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", - "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", - "dev": true - }, - "babel-plugin-syntax-class-properties": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", - "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", - "dev": true - }, - "babel-plugin-syntax-decorators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", - "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", - "dev": true - }, - "babel-plugin-syntax-dynamic-import": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", - "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", - "dev": true - }, - "babel-plugin-syntax-exponentiation-operator": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", - "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", - "dev": true - }, - "babel-plugin-syntax-flow": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz", - "integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=", - "dev": true - }, - "babel-plugin-syntax-jsx": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", - "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=", - "dev": true - }, - "babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", - "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", - "dev": true - }, - "babel-plugin-transform-async-generator-functions": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", - "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-generators": "^6.5.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", - "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-functions": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-class-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", - "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-plugin-syntax-class-properties": "^6.8.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", - "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", - "dev": true, - "requires": { - "babel-helper-explode-class": "^6.24.1", - "babel-plugin-syntax-decorators": "^6.13.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-decorators-legacy": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.4.tgz", - "integrity": "sha1-dBtY9sW86eYCfgiC2cmU8E82aSU=", - "dev": true, - "requires": { - "babel-plugin-syntax-decorators": "^6.1.18", - "babel-runtime": "^6.2.0", - "babel-template": "^6.3.0" - } - }, - "babel-plugin-transform-es2015-arrow-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", - "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-block-scoped-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", - "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-block-scoping": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", - "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-plugin-transform-es2015-classes": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", - "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", - "dev": true, - "requires": { - "babel-helper-define-map": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-helper-replace-supers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-computed-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", - "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-duplicate-keys": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", - "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-for-of": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", - "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", - "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-modules-amd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", - "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", - "dev": true, - "requires": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" - } - }, - "babel-plugin-transform-es2015-modules-systemjs": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", - "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-modules-umd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", - "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-object-super": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", - "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", - "dev": true, - "requires": { - "babel-helper-replace-supers": "^6.24.1", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", - "dev": true, - "requires": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-shorthand-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", - "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-template-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", - "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-typeof-symbol": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", - "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" - } - }, - "babel-plugin-transform-exponentiation-operator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", - "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", - "dev": true, - "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", - "babel-plugin-syntax-exponentiation-operator": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-flow-strip-types": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz", - "integrity": "sha1-hMtnKTXUNxT9wyvOhFaNh0Qc988=", - "dev": true, - "requires": { - "babel-plugin-syntax-flow": "^6.18.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-object-rest-spread": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", - "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", - "dev": true, - "requires": { - "babel-plugin-syntax-object-rest-spread": "^6.8.0", - "babel-runtime": "^6.26.0" - } - }, - "babel-plugin-transform-react-display-name": { - "version": "6.25.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz", - "integrity": "sha1-Z+K/Hx6ck6sI25Z5LgU5K/LMKNE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-react-jsx": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz", - "integrity": "sha1-hAoCjn30YN/DotKfDA2R9jduZqM=", - "dev": true, - "requires": { - "babel-helper-builder-react-jsx": "^6.24.1", - "babel-plugin-syntax-jsx": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-react-jsx-self": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz", - "integrity": "sha1-322AqdomEqEh5t3XVYvL7PBuY24=", - "dev": true, - "requires": { - "babel-plugin-syntax-jsx": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-react-jsx-source": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz", - "integrity": "sha1-ZqwSFT9c0tF7PBkmj0vwGX9E7NY=", - "dev": true, - "requires": { - "babel-plugin-syntax-jsx": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-regenerator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", - "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", - "dev": true, - "requires": { - "regenerator-transform": "^0.10.0" - } - }, - "babel-plugin-transform-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz", - "integrity": "sha1-iEkNRGUC6puOfvsP4J7E2ZR5se4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "requires": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" - } - }, - "babel-preset-env": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz", - "integrity": "sha512-W6VIyA6Ch9ePMI7VptNn2wBM6dbG0eSz25HEiL40nQXCsXGTGZSTZu1Iap+cj3Q0S5a7T9+529l/5Bkvd+afNA==", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-to-generator": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.23.0", - "babel-plugin-transform-es2015-classes": "^6.23.0", - "babel-plugin-transform-es2015-computed-properties": "^6.22.0", - "babel-plugin-transform-es2015-destructuring": "^6.23.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", - "babel-plugin-transform-es2015-for-of": "^6.23.0", - "babel-plugin-transform-es2015-function-name": "^6.22.0", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.22.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-umd": "^6.23.0", - "babel-plugin-transform-es2015-object-super": "^6.22.0", - "babel-plugin-transform-es2015-parameters": "^6.23.0", - "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", - "babel-plugin-transform-exponentiation-operator": "^6.22.0", - "babel-plugin-transform-regenerator": "^6.22.0", - "browserslist": "^2.1.2", - "invariant": "^2.2.2", - "semver": "^5.3.0" - } - }, - "babel-preset-es2015": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", - "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.24.1", - "babel-plugin-transform-es2015-classes": "^6.24.1", - "babel-plugin-transform-es2015-computed-properties": "^6.24.1", - "babel-plugin-transform-es2015-destructuring": "^6.22.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", - "babel-plugin-transform-es2015-for-of": "^6.22.0", - "babel-plugin-transform-es2015-function-name": "^6.24.1", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-plugin-transform-es2015-object-super": "^6.24.1", - "babel-plugin-transform-es2015-parameters": "^6.24.1", - "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.22.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", - "babel-plugin-transform-regenerator": "^6.24.1" - } - }, - "babel-preset-flow": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz", - "integrity": "sha1-5xIYiHCFrpoktb5Baa/7WZgWxJ0=", - "dev": true, - "requires": { - "babel-plugin-transform-flow-strip-types": "^6.22.0" - } - }, - "babel-preset-react": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-react/-/babel-preset-react-6.24.1.tgz", - "integrity": "sha1-umnfrqRfw+xjm2pOzqbhdwLJE4A=", - "dev": true, - "requires": { - "babel-plugin-syntax-jsx": "^6.3.13", - "babel-plugin-transform-react-display-name": "^6.23.0", - "babel-plugin-transform-react-jsx": "^6.24.1", - "babel-plugin-transform-react-jsx-self": "^6.22.0", - "babel-plugin-transform-react-jsx-source": "^6.22.0", - "babel-preset-flow": "^6.23.0" - } - }, - "babel-preset-stage-2": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", - "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", - "dev": true, - "requires": { - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-decorators": "^6.24.1", - "babel-preset-stage-3": "^6.24.1" - } - }, - "babel-preset-stage-3": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", - "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", - "dev": true, - "requires": { - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-generator-functions": "^6.24.1", - "babel-plugin-transform-async-to-generator": "^6.24.1", - "babel-plugin-transform-exponentiation-operator": "^6.24.1", - "babel-plugin-transform-object-rest-spread": "^6.22.0" - } - }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", - "dev": true, - "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - } - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "base62": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/base62/-/base62-1.2.8.tgz", - "integrity": "sha512-V6YHUbjLxN1ymqNLb1DPHoU1CpfdL7d2YTIp5W3U4hhoG4hhxNmsFDs66M9EXxBiSEke5Bt5dwdfMwwZF70iLA==" - }, - "base64-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", - "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", - "dev": true - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "optional": true - } - } - }, - "big.js": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" - }, - "bignumber.js": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-5.0.0.tgz", - "integrity": "sha512-KWTu6ZMVk9sxlDJQh2YH1UOnfDP8O8TpxUxgQG/vKASoSnEjK9aVuOueFaPcQEYQ5fyNXNTOYwYw3099RYebWg==" - }, - "binary-extensions": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", - "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", - "dev": true - }, - "bindings": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", - "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==" - }, - "bip39": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/bip39/-/bip39-2.5.0.tgz", - "integrity": "sha512-xwIx/8JKoT2+IPJpFEfXoWdYwP7UVAoUxxLNfGCfVowaJE7yg1Y5B1BVPqlUNsBq5/nGwmFkwRJ8xDW4sX8OdA==", - "requires": { - "create-hash": "^1.1.0", - "pbkdf2": "^3.0.9", - "randombytes": "^2.0.1", - "safe-buffer": "^5.0.1", - "unorm": "^1.3.3" - } - }, - "bip66": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", - "integrity": "sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI=", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "bl": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", - "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", - "requires": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "blakejs": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.1.0.tgz", - "integrity": "sha1-ad+S75U6qIylGjLfarHFShVfx6U=" - }, - "block-stream": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", - "dev": true, - "requires": { - "inherits": "~2.0.0" - } - }, - "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "body-parser": { - "version": "1.18.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", - "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", - "requires": { - "bytes": "3.0.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "~1.6.3", - "iconv-lite": "0.4.23", - "on-finished": "~2.3.0", - "qs": "6.5.2", - "raw-body": "2.3.3", - "type-is": "~1.6.16" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - } - } - }, - "bonjour": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", - "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", - "dev": true, - "requires": { - "array-flatten": "^2.1.0", - "deep-equal": "^1.0.1", - "dns-equal": "^1.0.0", - "dns-txt": "^2.0.2", - "multicast-dns": "^6.0.1", - "multicast-dns-service-types": "^1.1.0" - }, - "dependencies": { - "array-flatten": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.1.tgz", - "integrity": "sha1-Qmu52oQJDBg42BLIFQryCoMx4pY=", - "dev": true - } - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "boom": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-7.2.0.tgz", - "integrity": "sha1-K/8kpVVldn/ehp7ICDF+sQxI6WY=", - "requires": { - "hoek": "5.x.x" - } - }, - "boxen": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", - "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", - "dev": true, - "requires": { - "ansi-align": "^2.0.0", - "camelcase": "^4.0.0", - "chalk": "^2.0.1", - "cli-boxes": "^1.0.0", - "string-width": "^2.0.0", - "term-size": "^1.2.0", - "widest-line": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" - }, - "browser-pack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", - "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "combine-source-map": "~0.8.0", - "defined": "^1.0.0", - "safe-buffer": "^5.1.1", - "through2": "^2.0.0", - "umd": "^3.0.0" - } - }, - "browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", - "dev": true, - "requires": { - "resolve": "1.1.7" - }, - "dependencies": { - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - } - } - }, - "browser-stdout": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", - "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", - "dev": true - }, - "browserify": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-13.3.0.tgz", - "integrity": "sha1-tanJAgJD8McORnW+yCI7xifkFc4=", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^1.11.0", - "browserify-zlib": "~0.1.2", - "buffer": "^4.1.0", - "cached-path-relative": "^1.0.0", - "concat-stream": "~1.5.1", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.0", - "domain-browser": "~1.1.0", - "duplexer2": "~0.1.2", - "events": "~1.1.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "~0.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.0.0", - "labeled-stream-splicer": "^2.0.0", - "module-deps": "^4.0.8", - "os-browserify": "~0.1.1", - "parents": "^1.0.1", - "path-browserify": "~0.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^2.0.0", - "stream-http": "^2.0.0", - "string_decoder": "~0.10.0", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "~0.0.0", - "url": "~0.11.0", - "util": "~0.10.1", - "vm-browserify": "~0.0.1", - "xtend": "^4.0.0" - }, - "dependencies": { - "browserify-zlib": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", - "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", - "dev": true, - "requires": { - "pako": "~0.2.0" - } - }, - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "~2.0.0", - "typedarray": "~0.0.5" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "string_decoder": "~0.10.x", - "util-deprecate": "~1.0.1" - } - } - } - }, - "domain-browser": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", - "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", - "dev": true - }, - "https-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", - "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", - "dev": true - }, - "os-browserify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.1.2.tgz", - "integrity": "sha1-ScoCk+CxlZCl9d4Qx/JlphfY/lQ=", - "dev": true - }, - "pako": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", - "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", - "dev": true - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "process-nextick-args": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", - "dev": true - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", - "dev": true, - "requires": { - "process": "~0.11.0" - } - } - } - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.1.tgz", - "integrity": "sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1" - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sha3": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/browserify-sha3/-/browserify-sha3-0.0.1.tgz", - "integrity": "sha1-P/NKMAbvFcD7NWflQbkaI0ASPRE=", - "requires": { - "js-sha3": "^0.3.1" - } - }, - "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, - "browserslist": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", - "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30000792", - "electron-to-chromium": "^1.3.30" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "^3.0.2" - } - }, - "bs58check": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-1.3.4.tgz", - "integrity": "sha1-xSVABzdJEXcU+gQsMEfrj5FRy/g=", - "requires": { - "bs58": "^3.1.0", - "create-hash": "^1.1.0" - }, - "dependencies": { - "base-x": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-1.1.0.tgz", - "integrity": "sha1-QtPXF0dPnqAiB/bRqh9CaRPut6w=" - }, - "bs58": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-3.1.0.tgz", - "integrity": "sha1-1MJjiL9IBMrHFBQbGUWqR+XrJI4=", - "requires": { - "base-x": "^1.1.0" - } - } - } - }, - "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "buffer-alloc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", - "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "requires": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" - } - }, - "buffer-alloc-unsafe": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" - }, - "buffer-fill": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" - }, - "buffer-from": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", - "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==" - }, - "buffer-indexof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", - "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", - "dev": true - }, - "buffer-loader": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/buffer-loader/-/buffer-loader-0.0.1.tgz", - "integrity": "sha1-TWd8qS3YiTEIeLAqL7z6txICTPI=" - }, - "buffer-to-arraybuffer": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", - "integrity": "sha1-YGSkD6dutDxyOrqe+PbhIW0QURo=" - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" - }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" - }, - "cacache": { - "version": "10.0.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", - "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", - "dev": true, - "requires": { - "bluebird": "^3.5.1", - "chownr": "^1.0.1", - "glob": "^7.1.2", - "graceful-fs": "^4.1.11", - "lru-cache": "^4.1.1", - "mississippi": "^2.0.0", - "mkdirp": "^0.5.1", - "move-concurrently": "^1.0.1", - "promise-inflight": "^1.0.1", - "rimraf": "^2.6.2", - "ssri": "^5.2.4", - "unique-filename": "^1.1.0", - "y18n": "^4.0.0" - }, - "dependencies": { - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - } - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "cached-path-relative": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz", - "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=", - "dev": true - }, - "camel-case": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", - "integrity": "sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M=", - "dev": true, - "requires": { - "no-case": "^2.2.0", - "upper-case": "^1.1.1" - } - }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" - }, - "camelcase-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", - "dev": true, - "requires": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - } - } - }, - "caniuse-api": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-1.6.1.tgz", - "integrity": "sha1-tTTnxzTE+B7F++isoq0kNUuWLGw=", - "dev": true, - "requires": { - "browserslist": "^1.3.6", - "caniuse-db": "^1.0.30000529", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - }, - "dependencies": { - "browserslist": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", - "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", - "dev": true, - "requires": { - "caniuse-db": "^1.0.30000639", - "electron-to-chromium": "^1.2.7" - } - } - } - }, - "caniuse-db": { - "version": "1.0.30000862", - "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000862.tgz", - "integrity": "sha1-bB4pb4u+Xl6kbwQhXouQ7Y+52o0=", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30000862", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000862.tgz", - "integrity": "sha512-e9DBeH0Oby7EbUQN3DRWKxgbpEJO3KAZUhP0xDmPA23Qr6PmvXI7Ojy8ZthsOsz+1iSoaV9G7eWJXUOyryJ6NA==", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" - }, - "center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chai": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz", - "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", - "requires": { - "assertion-error": "^1.0.1", - "check-error": "^1.0.1", - "deep-eql": "^3.0.0", - "get-func-name": "^2.0.0", - "pathval": "^1.0.0", - "type-detect": "^4.0.0" - } - }, - "chai-as-promised": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", - "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", - "requires": { - "check-error": "^1.0.2" - } - }, - "chai-bignumber": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/chai-bignumber/-/chai-bignumber-2.0.2.tgz", - "integrity": "sha512-BIdRNjRaoRj4bMsZLKbIZPMNKqmwnzNiyxqBYDSs6dFOCs9w8OHPuUE8e1bH60i1IhOzT0NjLtCD+lKEWB1KTQ==" - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=" - }, - "checkpoint-store": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/checkpoint-store/-/checkpoint-store-1.1.0.tgz", - "integrity": "sha1-BOTLUWuRQziTWB5tRgGnjpVS6gY=", - "requires": { - "functional-red-black-tree": "^1.0.1" - } - }, - "chokidar": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", - "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.0", - "braces": "^2.3.0", - "fsevents": "^1.2.2", - "glob-parent": "^3.1.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "lodash.debounce": "^4.0.8", - "normalize-path": "^2.1.1", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0", - "upath": "^1.0.5" - } - }, - "chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", - "dev": true - }, - "cids": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/cids/-/cids-0.5.3.tgz", - "integrity": "sha512-ujWbNP8SeLKg5KmGrxYZM4c+ttd+wwvegrdtgmbi2KNFUbQN4pqsGZaGQE3rhjayXTbKFq36bYDbKhsnD0eMsg==", - "requires": { - "multibase": "~0.4.0", - "multicodec": "~0.2.6", - "multihashes": "~0.4.13" - } - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "clap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", - "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", - "dev": true, - "requires": { - "chalk": "^1.1.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "classnames": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.5.tgz", - "integrity": "sha1-+zgB1FNGdknvNgPH1hoCvRKb3m0=" - }, - "clean-css": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.11.tgz", - "integrity": "sha1-Ls3xRaujj1R0DybO/Q/z4D4SXWo=", - "dev": true, - "requires": { - "source-map": "0.5.x" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "cli-boxes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", - "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", - "dev": true - }, - "cli-table3": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.0.tgz", - "integrity": "sha512-c7YHpUyO1SaKaO7kYtxd5NZ8FjAmSK3LpKkuzdwn+2CwpFxBpdoQLm+OAnnCfoEl7onKhN9PKQi1lsHuAIUqGQ==", - "dev": true, - "requires": { - "colors": "^1.1.2", - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "clipboardy": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-1.2.3.tgz", - "integrity": "sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA==", - "dev": true, - "requires": { - "arch": "^2.1.0", - "execa": "^0.8.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "execa": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz", - "integrity": "sha1-2NdrvBtVIX7RkP1t1J08d07PyNo=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - } - } - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "clone": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz", - "integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs=" - }, - "clone-deep": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-0.3.0.tgz", - "integrity": "sha1-NIxhrpzb4O3+BT2R/0zFIdeQ7eg=", - "dev": true, - "requires": { - "for-own": "^1.0.0", - "is-plain-object": "^2.0.1", - "kind-of": "^3.2.2", - "shallow-clone": "^0.1.2" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" - }, - "coa": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", - "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=", - "dev": true, - "requires": { - "q": "^1.1.2" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" - }, - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "dev": true - }, - "coinstring": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/coinstring/-/coinstring-2.3.0.tgz", - "integrity": "sha1-zbYzY6lhUCQEolr7gsLibV/2J6Q=", - "requires": { - "bs58": "^2.0.1", - "create-hash": "^1.1.1" - }, - "dependencies": { - "bs58": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-2.0.1.tgz", - "integrity": "sha1-VZCNWPGYKrogCPob7Y+RmYopv40=" - } - } - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz", - "integrity": "sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q=", - "dev": true, - "requires": { - "clone": "^1.0.2", - "color-convert": "^1.3.0", - "color-string": "^0.3.0" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - } - } - }, - "color-convert": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", - "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", - "dev": true, - "requires": { - "color-name": "1.1.1" - } - }, - "color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", - "dev": true - }, - "color-string": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", - "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", - "dev": true, - "requires": { - "color-name": "^1.0.0" - } - }, - "colormin": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colormin/-/colormin-1.1.2.tgz", - "integrity": "sha1-6i90IKcrlogaOKrlnsEkpvcpgTM=", - "dev": true, - "requires": { - "color": "^0.11.0", - "css-color-names": "0.0.4", - "has": "^1.0.1" - } - }, - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "dev": true - }, - "combine-source-map": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", - "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", - "dev": true, - "requires": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" - }, - "dependencies": { - "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", - "dev": true - }, - "lodash.memoize": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", - "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz", - "integrity": "sha512-sVXqklSaotK9at437sFlFpyOcJonxe0yST/AG9DkQKUdIE6IqGIMv4SfAQSKaJbSdVEJYItASCrBiVQHq1HQew==" - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "commoner": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/commoner/-/commoner-0.10.8.tgz", - "integrity": "sha1-NPw2cs0kOT6LtH5wyqApOBH08sU=", - "requires": { - "commander": "^2.5.0", - "detective": "^4.3.1", - "glob": "^5.0.15", - "graceful-fs": "^4.1.2", - "iconv-lite": "^0.4.5", - "mkdirp": "^0.5.0", - "private": "^0.1.6", - "q": "^1.1.2", - "recast": "^0.11.17" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "compressible": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.14.tgz", - "integrity": "sha1-MmxfUH+7BV9UEWeCuWmoG2einac=", - "dev": true, - "requires": { - "mime-db": ">= 1.34.0 < 2" - }, - "dependencies": { - "mime-db": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.34.0.tgz", - "integrity": "sha1-RS0Oz/XDA0am3B5kseruDTcZ/5o=", - "dev": true - } - } - }, - "compression": { - "version": "1.7.2", - "resolved": "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz", - "integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=", - "dev": true, - "requires": { - "accepts": "~1.3.4", - "bytes": "3.0.0", - "compressible": "~2.0.13", - "debug": "2.6.9", - "on-headers": "~1.0.1", - "safe-buffer": "5.1.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", - "dev": true - } - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "connect-history-api-fallback": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", - "integrity": "sha1-sGhzk0vF40T+9hGhlqb6rgruAVo=", - "dev": true - }, - "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "^0.1.4" - } - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "content-disposition": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" - }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" - }, - "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", - "dev": true - }, - "cookie": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", - "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" - }, - "copy-concurrently": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", - "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" - } - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "copy-webpack-plugin": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.2.3.tgz", - "integrity": "sha512-cL/Wl3Y1QmmKThl/mWeGB+HH3YH+25tn8nhqEGsZda4Yn7GqGnDZ+TbeKJ7A6zvrxyNhhuviYAxn/tCyyAqh8Q==", - "requires": { - "bluebird": "^3.5.1", - "glob": "^7.1.2", - "is-glob": "^4.0.0", - "loader-utils": "^0.2.15", - "lodash": "^4.3.0", - "minimatch": "^3.0.4" - } - }, - "core-js": { - "version": "2.5.7", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", - "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "cors": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.4.tgz", - "integrity": "sha1-K9OB8usgECAQXNUOpZ2mMJBpRoY=", - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "cosmiconfig": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.2.tgz", - "integrity": "sha512-GiNXLwAFPYHy25XmTPpafYvn3CLAkJ8FLsscq78MQd1Kh0OU6Yzhn4eV2MVF4G9WEQZoWEGltatdR+ntGPMl5A==", - "dev": true, - "requires": { - "is-directory": "^0.3.1", - "js-yaml": "^3.4.3", - "minimist": "^1.2.0", - "object-assign": "^4.1.0", - "os-homedir": "^1.0.1", - "parse-json": "^2.2.0", - "require-from-string": "^1.1.0" - } - }, - "cpr": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/cpr/-/cpr-0.4.3.tgz", - "integrity": "sha1-CiPktuwj87jMekBey1z9x3j33iU=", - "dev": true, - "requires": { - "graceful-fs": "~4.1.2", - "mkdirp": "~0.5.0", - "rimraf": "~2.4.3" - }, - "dependencies": { - "glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "rimraf": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", - "integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=", - "dev": true, - "requires": { - "glob": "^6.0.1" - } - } - } - }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "create-react-class": { - "version": "15.6.3", - "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", - "integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==", - "requires": { - "fbjs": "^0.8.9", - "loose-envify": "^1.3.1", - "object-assign": "^4.1.1" - } - }, - "cross-spawn": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", - "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - } - }, - "cryptiles": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", - "dev": true, - "requires": { - "boom": "2.x.x" - }, - "dependencies": { - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "dev": true, - "requires": { - "hoek": "2.x.x" - } - }, - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", - "dev": true - } - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "crypto-js": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.8.tgz", - "integrity": "sha1-cV8HC/YBTyrpkqmLOSkli3E/CNU=" - }, - "css-color-names": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", - "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", - "dev": true - }, - "css-loader": { - "version": "0.28.7", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.28.7.tgz", - "integrity": "sha512-GxMpax8a/VgcfRrVy0gXD6yLd5ePYbXX/5zGgTVYp4wXtJklS8Z2VaUArJgc//f6/Dzil7BaJObdSv8eKKCPgg==", - "dev": true, - "requires": { - "babel-code-frame": "^6.11.0", - "css-selector-tokenizer": "^0.7.0", - "cssnano": ">=2.6.1 <4", - "icss-utils": "^2.1.0", - "loader-utils": "^1.0.2", - "lodash.camelcase": "^4.3.0", - "object-assign": "^4.0.1", - "postcss": "^5.0.6", - "postcss-modules-extract-imports": "^1.0.0", - "postcss-modules-local-by-default": "^1.0.1", - "postcss-modules-scope": "^1.0.0", - "postcss-modules-values": "^1.1.0", - "postcss-value-parser": "^3.3.0", - "source-list-map": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "css-select": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", - "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", - "dev": true, - "requires": { - "boolbase": "~1.0.0", - "css-what": "2.1", - "domutils": "1.5.1", - "nth-check": "~1.0.1" - } - }, - "css-selector-tokenizer": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz", - "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=", - "dev": true, - "requires": { - "cssesc": "^0.1.0", - "fastparse": "^1.1.1", - "regexpu-core": "^1.0.0" - }, - "dependencies": { - "regexpu-core": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-1.0.0.tgz", - "integrity": "sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - } - } - }, - "css-what": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.0.tgz", - "integrity": "sha1-lGfQMsOM+u+58teVASUwYvh/ob0=", - "dev": true - }, - "cssesc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-0.1.0.tgz", - "integrity": "sha1-yBSQPkViM3GgR3tAEJqq++6t27Q=", - "dev": true - }, - "cssnano": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz", - "integrity": "sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg=", - "dev": true, - "requires": { - "autoprefixer": "^6.3.1", - "decamelize": "^1.1.2", - "defined": "^1.0.0", - "has": "^1.0.1", - "object-assign": "^4.0.1", - "postcss": "^5.0.14", - "postcss-calc": "^5.2.0", - "postcss-colormin": "^2.1.8", - "postcss-convert-values": "^2.3.4", - "postcss-discard-comments": "^2.0.4", - "postcss-discard-duplicates": "^2.0.1", - "postcss-discard-empty": "^2.0.1", - "postcss-discard-overridden": "^0.1.1", - "postcss-discard-unused": "^2.2.1", - "postcss-filter-plugins": "^2.0.0", - "postcss-merge-idents": "^2.1.5", - "postcss-merge-longhand": "^2.0.1", - "postcss-merge-rules": "^2.0.3", - "postcss-minify-font-values": "^1.0.2", - "postcss-minify-gradients": "^1.0.1", - "postcss-minify-params": "^1.0.4", - "postcss-minify-selectors": "^2.0.4", - "postcss-normalize-charset": "^1.1.0", - "postcss-normalize-url": "^3.0.7", - "postcss-ordered-values": "^2.1.0", - "postcss-reduce-idents": "^2.2.2", - "postcss-reduce-initial": "^1.0.0", - "postcss-reduce-transforms": "^1.0.3", - "postcss-svgo": "^2.1.1", - "postcss-unique-selectors": "^2.0.2", - "postcss-value-parser": "^3.2.3", - "postcss-zindex": "^2.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "autoprefixer": { - "version": "6.7.7", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", - "integrity": "sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ=", - "dev": true, - "requires": { - "browserslist": "^1.7.6", - "caniuse-db": "^1.0.30000634", - "normalize-range": "^0.1.2", - "num2fraction": "^1.2.2", - "postcss": "^5.2.16", - "postcss-value-parser": "^3.2.3" - } - }, - "browserslist": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", - "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", - "dev": true, - "requires": { - "caniuse-db": "^1.0.30000639", - "electron-to-chromium": "^1.2.7" - } - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "csso": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", - "integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=", - "dev": true, - "requires": { - "clap": "^1.0.9", - "source-map": "^0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "cyclist": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", - "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", - "dev": true - }, - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", - "dev": true, - "requires": { - "es5-ext": "^0.10.9" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", - "requires": { - "mimic-response": "^1.0.0" - } - }, - "deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "requires": { - "type-detect": "^4.0.0" - } - }, - "deep-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", - "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=" - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "default-gateway": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-2.7.2.tgz", - "integrity": "sha512-lAc4i9QJR0YHSDFdzeBQKfZ1SRDG3hsJNEkrpcZa8QhBfidLAilT60BDEIVUUGqosFp425KOgB3uYqcnQrWafQ==", - "dev": true, - "requires": { - "execa": "^0.10.0", - "ip-regex": "^2.1.0" - }, - "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "execa": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.10.0.tgz", - "integrity": "sha512-7XOMnz8Ynx1gGo/3hyV9loYNPWM94jG3+3T3Y8tsfSstFmETmENCMU/A/zj8Lyaj1lkgEepKepvd6240tBRvlw==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - } - } - }, - "deferred-leveldown": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/deferred-leveldown/-/deferred-leveldown-1.2.2.tgz", - "integrity": "sha512-uukrWD2bguRtXilKt6cAWKyoXrTSMo5m7crUdLfWQmu8kIm88w3QZoUL+6nhpfKVmhHANER6Re3sKoNoZ3IKMA==", - "requires": { - "abstract-leveldown": "~2.6.0" - } - }, - "define-properties": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", - "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", - "requires": { - "foreach": "^2.0.5", - "object-keys": "^1.0.8" - }, - "dependencies": { - "object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" - } - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=" - }, - "del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", - "dev": true, - "requires": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" - }, - "deps-sort": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz", - "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "shasum": "^1.0.0", - "subarg": "^1.0.0", - "through2": "^2.0.0" - } - }, - "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" - }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "detect-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", - "integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=" - }, - "detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", - "requires": { - "acorn": "^5.2.1", - "defined": "^1.0.0" - } - }, - "diff": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", - "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=" - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", - "dev": true - }, - "dns-packet": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz", - "integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==", - "dev": true, - "requires": { - "ip": "^1.1.0", - "safe-buffer": "^5.0.1" - } - }, - "dns-txt": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", - "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", - "dev": true, - "requires": { - "buffer-indexof": "^1.0.0" - } - }, - "dom-converter": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.1.4.tgz", - "integrity": "sha1-pF71cnuJDJv/5tfIduexnLDhfzs=", - "dev": true, - "requires": { - "utila": "~0.3" - }, - "dependencies": { - "utila": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", - "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=", - "dev": true - } - } - }, - "dom-serializer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", - "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", - "dev": true, - "requires": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" - }, - "dependencies": { - "domelementtype": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", - "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", - "dev": true - } - } - }, - "dom-walk": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz", - "integrity": "sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=" - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "domelementtype": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", - "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", - "dev": true - }, - "domhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.1.0.tgz", - "integrity": "sha1-0mRvXlf2w7qxHPbLBdPArPdBJZQ=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "domutils": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", - "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", - "dev": true, - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "drbg.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", - "integrity": "sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs=", - "requires": { - "browserify-aes": "^1.0.6", - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4" - } - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "duplexify": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", - "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, - "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", - "optional": true, - "requires": { - "jsbn": "~0.1.0" - } - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" - }, - "electron-to-chromium": { - "version": "1.3.51", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.51.tgz", - "integrity": "sha1-akK0nar38ipbN7mR2vlJ8029ubU=", - "dev": true - }, - "elliptic": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", - "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, - "emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" - }, - "encoding": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", - "requires": { - "iconv-lite": "~0.4.13" - } - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "requires": { - "once": "^1.4.0" - } - }, - "enhanced-resolve": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", - "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", - "object-assign": "^4.0.1", - "tapable": "^0.2.7" - } - }, - "entities": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", - "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", - "dev": true - }, - "errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", - "requires": { - "prr": "~1.0.1" - } - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", - "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", - "requires": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - } - }, - "es-to-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", - "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", - "requires": { - "is-callable": "^1.1.1", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.1" - } - }, - "es5-ext": { - "version": "0.10.45", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", - "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", - "dev": true, - "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.1", - "next-tick": "1" - } - }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==" - }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "es6-map": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", - "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-set": "~0.1.5", - "es6-symbol": "~3.1.1", - "event-emitter": "~0.3.5" - } - }, - "es6-set": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", - "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-symbol": "3.1.1", - "event-emitter": "~0.3.5" - } - }, - "es6-symbol": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "es6-weak-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", - "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" - }, - "escape-string-regexp": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz", - "integrity": "sha1-Tbwv5nTnGUnK8/smlc5/LcHZqNE=" - }, - "escope": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", - "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", - "dev": true, - "requires": { - "es6-map": "^0.1.3", - "es6-weak-map": "^2.0.1", - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "esprima-fb": { - "version": "15001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1.0-dev-harmony-fb.tgz", - "integrity": "sha1-MKlHMDxrjV6VW+4rmbHSMyBqaQE=" - }, - "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", - "dev": true, - "requires": { - "estraverse": "^4.1.0" - } - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" - }, - "eth-gas-reporter": { - "version": "0.1.9", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.1.9.tgz", - "integrity": "sha512-V/j5dzN/vDXsOFEw2lfiZBRH1fHN5E92I5uWL7X23+9uc/WItkBJtywe8uyB8znK4qa/CEBWyjsgk60ovzpCEQ==", - "dev": true, - "requires": { - "abi-decoder": "^1.0.8", - "cli-table3": "^0.5.0", - "colors": "^1.1.2", - "lodash": "^4.17.4", - "mocha": "^3.5.3", - "req-cwd": "^2.0.0", - "request": "^2.83.0", - "request-promise-native": "^1.0.5", - "shelljs": "^0.7.8", - "solidity-parser-antlr": "^0.2.10", - "sync-request": "^6.0.0" - }, - "dependencies": { - "commander": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", - "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", - "dev": true, - "requires": { - "graceful-readlink": ">= 1.0.0" - } - }, - "debug": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", - "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "diff": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", - "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "glob": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", - "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.2", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "mocha": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.3.tgz", - "integrity": "sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg==", - "dev": true, - "requires": { - "browser-stdout": "1.3.0", - "commander": "2.9.0", - "debug": "2.6.8", - "diff": "3.2.0", - "escape-string-regexp": "1.0.5", - "glob": "7.1.1", - "growl": "1.9.2", - "he": "1.1.1", - "json3": "3.3.2", - "lodash.create": "3.1.1", - "mkdirp": "0.5.1", - "supports-color": "3.1.2" - } - }, - "supports-color": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", - "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "eth-lib": { - "version": "0.1.27", - "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.1.27.tgz", - "integrity": "sha512-B8czsfkJYzn2UIEMwjc7Mbj+Cy72V+/OXH/tb44LV8jhrjizQJJ325xMOMyk3+ETa6r6oi0jsUY14+om8mQMWA==", - "requires": { - "bn.js": "^4.11.6", - "elliptic": "^6.4.0", - "keccakjs": "^0.2.1", - "nano-json-stream-parser": "^0.1.2", - "servify": "^0.1.12", - "ws": "^3.0.0", - "xhr-request-promise": "^0.1.2" - } - }, - "ether-pudding": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ether-pudding/-/ether-pudding-3.2.0.tgz", - "integrity": "sha1-0fncBOBSJTDY93GhAk/l7BfYxQ0=", - "dev": true, - "requires": { - "async": "^1.5.2", - "ethereumjs-testrpc": "^2.0.7", - "lodash": "^4.11.2", - "node-dir": "^0.1.11", - "solc": "^0.3.6", - "web3": "^0.15.3" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "dev": true - }, - "solc": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.3.6.tgz", - "integrity": "sha1-7hZ44URwH7wWNe+yEhPHlTzyu6k=", - "dev": true, - "requires": { - "memorystream": "^0.3.1", - "require-from-string": "^1.1.0", - "yargs": "^4.7.1" - } - }, - "web3": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.15.3.tgz", - "integrity": "sha1-+ZfM2kGfxSjA1sXY1TgiEr+nRig=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - } - } - }, - "ethereum-common": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.2.0.tgz", - "integrity": "sha512-XOnAR/3rntJgbCdGhqdaLIxDLWKLmsZOGhHdBKadEr6gEnJLH52k93Ou+TUdFaPN3hJc3isBZBal3U/XZ15abA==" - }, - "ethereumjs-abi": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.5.tgz", - "integrity": "sha1-WmN+8Wq0NHP6cqKa2QhxQFs/UkE=", - "requires": { - "bn.js": "^4.10.0", - "ethereumjs-util": "^4.3.0" - } - }, - "ethereumjs-account": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/ethereumjs-account/-/ethereumjs-account-2.0.5.tgz", - "integrity": "sha512-bgDojnXGjhMwo6eXQC0bY6UK2liSFUSMwwylOmQvZbSl/D7NXQ3+vrGO46ZeOgjGfxXmgIeVNDIiHw7fNZM4VA==", - "requires": { - "ethereumjs-util": "^5.0.0", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - } - } - }, - "ethereumjs-block": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-1.7.1.tgz", - "integrity": "sha512-B+sSdtqm78fmKkBq78/QLKJbu/4Ts4P2KFISdgcuZUPDm9x+N7qgBPIIFUGbaakQh8bzuquiRVbdmvPKqbILRg==", - "requires": { - "async": "^2.0.1", - "ethereum-common": "0.2.0", - "ethereumjs-tx": "^1.2.2", - "ethereumjs-util": "^5.0.0", - "merkle-patricia-tree": "^2.1.2" - }, - "dependencies": { - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - } - } - }, - "ethereumjs-testrpc": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/ethereumjs-testrpc/-/ethereumjs-testrpc-2.2.7.tgz", - "integrity": "sha1-/3Mv79s6GJ6C1fCbmZRr/xgUAiQ=", - "dev": true, - "requires": { - "async": "^1.5.0", - "bignumber.js": "^2.1.4", - "bip39": "^2.2.0", - "ethereumjs-account": "^2.0.4", - "ethereumjs-block": "^1.2.2", - "ethereumjs-tx": "^1.1.0", - "ethereumjs-util": "^4.5.0", - "ethereumjs-vm": "^1.3.0", - "ethereumjs-wallet": "^0.6.0", - "fake-merkle-patricia-tree": "^1.0.1", - "merkle-patricia-tree": "^2.1.2", - "seedrandom": "^2.4.2", - "shelljs": "^0.6.0", - "web3": "^0.16.0", - "web3-provider-engine": "^8.0.3", - "yargs": "^3.29.0" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "bignumber.js": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-2.4.0.tgz", - "integrity": "sha1-g4qZLan51zfg9LLbC+YrsJ3Qxeg=", - "dev": true - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - }, - "ethereum-common": { - "version": "0.0.16", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.0.16.tgz", - "integrity": "sha1-mh4Wnq00q3XgifUMpRK/0PvRJlU=", - "dev": true - }, - "ethereumjs-vm": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/ethereumjs-vm/-/ethereumjs-vm-1.4.1.tgz", - "integrity": "sha1-qMOjORfGLXYd4ZUAI5HWym0DjAk=", - "dev": true, - "requires": { - "async": "^1.4.2", - "async-eventemitter": "^0.2.2", - "ethereum-common": "0.0.16", - "ethereumjs-account": "^2.0.3", - "ethereumjs-block": "^1.2.2", - "ethereumjs-util": "^4.0.1", - "fake-merkle-patricia-tree": "^1.0.1", - "functional-red-black-tree": "^1.0.1", - "merkle-patricia-tree": "^2.1.2" - } - }, - "shelljs": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.6.1.tgz", - "integrity": "sha1-7GIRvtGSBEIIj+D3Cyg3Iy7SyKg=", - "dev": true - }, - "web3": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.16.0.tgz", - "integrity": "sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "dev": true - } - } - }, - "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=", - "dev": true - }, - "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "dev": true, - "requires": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" - } - } - } - }, - "ethereumjs-tx": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.6.tgz", - "integrity": "sha512-wzsEs0mCSLqdDjqSDg6AWh1hyL8H3R/pyZxehkcCXq5MJEFXWz+eJ2jSv+3yEaLy6tXrNP7dmqS3Kyb3zAONkg==", - "requires": { - "ethereum-common": "^0.0.18", - "ethereumjs-util": "^5.0.0" - }, - "dependencies": { - "ethereum-common": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.0.18.tgz", - "integrity": "sha1-L9w1dvIykDNYl26znaeDIT/5Uj8=" - }, - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - } - } - }, - "ethereumjs-util": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz", - "integrity": "sha1-PpQosxfuvaPXJg2FT93alUsfG8Y=", - "requires": { - "bn.js": "^4.8.0", - "create-hash": "^1.1.2", - "keccakjs": "^0.2.0", - "rlp": "^2.0.0", - "secp256k1": "^3.0.1" - } - }, - "ethereumjs-vm": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/ethereumjs-vm/-/ethereumjs-vm-2.3.5.tgz", - "integrity": "sha512-AJ7x44+xqyE5+UO3Nns19WkTdZfyqFZ+sEjIEpvme7Ipbe3iBU1uwCcHEdiu/yY9bdhr3IfSa/NfIKNeXPaRVQ==", - "requires": { - "async": "^2.1.2", - "async-eventemitter": "^0.2.2", - "ethereum-common": "0.2.0", - "ethereumjs-account": "^2.0.3", - "ethereumjs-block": "~1.7.0", - "ethereumjs-util": "^5.1.3", - "fake-merkle-patricia-tree": "^1.0.1", - "functional-red-black-tree": "^1.0.1", - "merkle-patricia-tree": "^2.1.2", - "rustbn.js": "~0.1.1", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - } - } - }, - "ethereumjs-wallet": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/ethereumjs-wallet/-/ethereumjs-wallet-0.6.0.tgz", - "integrity": "sha1-gnY7Fpfuenlr5xVdqd+0my+Yz9s=", - "requires": { - "aes-js": "^0.2.3", - "bs58check": "^1.0.8", - "ethereumjs-util": "^4.4.0", - "hdkey": "^0.7.0", - "scrypt.js": "^0.2.0", - "utf8": "^2.1.1", - "uuid": "^2.0.1" - } - }, - "ethjs-abi": { - "version": "0.1.9", - "resolved": "https://registry.npmjs.org/ethjs-abi/-/ethjs-abi-0.1.9.tgz", - "integrity": "sha1-UhHErcOiB5OtMZqdIgTkOAfnb+o=", - "dev": true, - "requires": { - "bn.js": "4.11.6", - "js-sha3": "0.5.5", - "number-to-bn": "1.7.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=", - "dev": true - }, - "js-sha3": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.5.tgz", - "integrity": "sha1-uvDA6MVK1ZA0R9+Wreekobynmko=", - "dev": true - } - } - }, - "ethjs-unit": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", - "integrity": "sha1-xmWSHkduh7ziqdWIpv4EBbLEFpk=", - "requires": { - "bn.js": "4.11.6", - "number-to-bn": "1.7.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" - } - } - }, - "ethjs-util": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", - "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", - "requires": { - "is-hex-prefixed": "1.0.0", - "strip-hex-prefix": "1.0.0" - } - }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "eventemitter3": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.0.tgz", - "integrity": "sha512-ivIvhpq/Y0uSjcHDcOIccjmYjGLcP09MFGE7ysAwkAvkXfpZlC985pH2/ui64DKazbTW/4kN3yqozUxlXzI6cA==", - "dev": true - }, - "events": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", - "dev": true - }, - "eventsource": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz", - "integrity": "sha1-Cs7ehJ7X3RzMMsgRuxG5RNTykjI=", - "dev": true, - "requires": { - "original": ">=0.0.5" - } - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - }, - "dependencies": { - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "express": { - "version": "4.16.3", - "resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz", - "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", - "requires": { - "accepts": "~1.3.5", - "array-flatten": "1.1.1", - "body-parser": "1.18.2", - "content-disposition": "0.5.2", - "content-type": "~1.0.4", - "cookie": "0.3.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.1.1", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.2", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.3", - "qs": "6.5.1", - "range-parser": "~1.2.0", - "safe-buffer": "5.1.1", - "send": "0.16.2", - "serve-static": "1.13.2", - "setprototypeof": "1.1.0", - "statuses": "~1.4.0", - "type-is": "~1.6.16", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "body-parser": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", - "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", - "requires": { - "bytes": "3.0.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.1", - "http-errors": "~1.6.2", - "iconv-lite": "0.4.19", - "on-finished": "~2.3.0", - "qs": "6.5.1", - "raw-body": "2.3.2", - "type-is": "~1.6.15" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" - }, - "qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" - }, - "raw-body": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", - "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", - "requires": { - "bytes": "3.0.0", - "http-errors": "1.6.2", - "iconv-lite": "0.4.19", - "unpipe": "1.0.0" - }, - "dependencies": { - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" - }, - "http-errors": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", - "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", - "requires": { - "depd": "1.1.1", - "inherits": "2.0.3", - "setprototypeof": "1.0.3", - "statuses": ">= 1.3.1 < 2" - } - }, - "setprototypeof": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", - "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" - } - } - }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" - }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" - } - } - }, - "extend": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" - }, - "fake-merkle-patricia-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fake-merkle-patricia-tree/-/fake-merkle-patricia-tree-1.0.1.tgz", - "integrity": "sha1-S4w6z7Ugr635hgsfFM2M40As3dM=", - "requires": { - "checkpoint-store": "^1.1.0" - } - }, - "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" - }, - "fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha1-9K8+qfNNiicc9YrSs3WfQx8LMY0=", - "dev": true, - "requires": { - "punycode": "^1.3.2" - } - }, - "fastparse": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz", - "integrity": "sha1-0eJkOzipTXWDtHkGDmxK/8lAcfg=", - "dev": true - }, - "faye-websocket": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", - "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fbjs": { - "version": "0.8.17", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz", - "integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=", - "requires": { - "core-js": "^1.0.0", - "isomorphic-fetch": "^2.1.1", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.18" - }, - "dependencies": { - "core-js": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", - "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" - }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "requires": { - "asap": "~2.0.3" - } - } - } - }, - "file-loader": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-0.11.2.tgz", - "integrity": "sha512-N+uhF3mswIFeziHQjGScJ/yHXYt3DiLBeC+9vWW+WjUBiClMSOlV1YrXQi+7KM2aA3Rn4Bybgv+uXFQbfkzpvg==", - "dev": true, - "requires": { - "loader-utils": "^1.0.2" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - } - } - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "dev": true - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "finalhandler": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", - "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.2", - "statuses": "~1.4.0", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" - } - } - }, - "find-cache-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", - "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^1.0.0", - "pkg-dir": "^2.0.0" - } - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "findup": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/findup/-/findup-0.1.5.tgz", - "integrity": "sha1-itkpozk7rGJ5V6fl3kYjsGsOLOs=", - "dev": true, - "requires": { - "colors": "~0.6.0-1", - "commander": "~2.1.0" - }, - "dependencies": { - "colors": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", - "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", - "dev": true - }, - "commander": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.1.0.tgz", - "integrity": "sha1-0SG7roYNmZKj1Re6lvVliOR8Z4E=", - "dev": true - } - } - }, - "flatmap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/flatmap/-/flatmap-0.0.3.tgz", - "integrity": "sha1-Hxik2TgVLUlZZfnJWNkjqy3WabQ=" - }, - "flatten": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.2.tgz", - "integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=", - "dev": true - }, - "flush-write-stream": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", - "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.4" - } - }, - "follow-redirects": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz", - "integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==", - "requires": { - "debug": "^3.1.0" - } - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" - }, - "form-data": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", - "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "1.0.6", - "mime-types": "^2.1.12" - } - }, - "forwarded": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", - "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" - }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, - "fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" - }, - "fs-extra": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", - "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0", - "path-is-absolute": "^1.0.0", - "rimraf": "^2.2.8" - } - }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", - "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "dev": true, - "optional": true, - "requires": { - "nan": "^2.9.2", - "node-pre-gyp": "^0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.21", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": "^2.1.0" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "minipass": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.1", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.0", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.1.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.1.10", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.5.1", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-buffer": { - "version": "5.1.1", - "bundled": true, - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.1", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "3.0.2", - "bundled": true, - "dev": true - } - } - }, - "fstream": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "inherits": "~2.0.0", - "mkdirp": ">=0.5 0", - "rimraf": "2" - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "gaze": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dev": true, - "requires": { - "globule": "^1.0.0" - } - }, - "get-assigned-identifiers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", - "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", - "dev": true - }, - "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" - }, - "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=" - }, - "get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw=", - "dev": true - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "glob-slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/glob-slash/-/glob-slash-1.0.0.tgz", - "integrity": "sha1-/lLvpDMjP3Si/mTHq7m8hIICq5U=", - "dev": true - }, - "global": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", - "integrity": "sha1-52mJJopsdMOJCLEwWxD8DjlOnQ8=", - "requires": { - "min-document": "^2.19.0", - "process": "~0.5.1" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "globule": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", - "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", - "dev": true, - "requires": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - } - } - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" - }, - "graceful-readlink": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", - "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", - "dev": true - }, - "graphlib": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.5.tgz", - "integrity": "sha512-XvtbqCcw+EM5SqQrIetIKKD+uZVNQtDPD1goIg7K73RuRZtVI5rYMdcCVSHm/AS1sCBZ7vt0p5WgXouucHQaOA==", - "dev": true, - "requires": { - "lodash": "^4.11.1" - } - }, - "growl": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", - "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=" - }, - "handle-thing": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", - "integrity": "sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ=", - "dev": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" - }, - "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", - "requires": { - "ajv": "^5.1.0", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "hash.js": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.4.tgz", - "integrity": "sha512-A6RlQvvZEtFS5fLU43IDu0QUmBy+fDO9VMdTXvufKwIkt/rFfvICAViCax5fbDO4zdNzaC3/27ZhKUok5bAJyw==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.0" - } - }, - "hawk": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", - "dev": true, - "requires": { - "boom": "2.x.x", - "cryptiles": "2.x.x", - "hoek": "2.x.x", - "sntp": "1.x.x" - }, - "dependencies": { - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "dev": true, - "requires": { - "hoek": "2.x.x" - } - }, - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", - "dev": true - } - } - }, - "hdkey": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/hdkey/-/hdkey-0.7.1.tgz", - "integrity": "sha1-yu5L6BqneSHpCbjSKN0PKayu5jI=", - "requires": { - "coinstring": "^2.0.0", - "secp256k1": "^3.0.1" - } - }, - "he": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", - "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", - "dev": true - }, - "highlight.js": { - "version": "9.12.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.12.0.tgz", - "integrity": "sha1-5tnb5Xy+/mB1HwKvM2GVhwyQwB4=" - }, - "history": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/history/-/history-3.0.0.tgz", - "integrity": "sha1-As/05vadxi3YEWEQSmP1uF6tDIU=", - "requires": { - "invariant": "^2.0.0", - "query-string": "^4.1.0", - "warning": "^2.0.0" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "hoek": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-5.0.3.tgz", - "integrity": "sha512-Bmr56pxML1c9kU+NS51SMFkiVQAb+9uFfXwyqR2tn4w2FPvmPt65eZ9aCcEfRXd9G74HkZnILC6p967pED4aiw==" - }, - "hoist-non-react-statics": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", - "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" - }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.1.tgz", - "integrity": "sha512-Ba4+0M4YvIDUUsprMjhVTU1yN9F2/LJSAl69ZpzaLT4l4j5mwTS6jqqW9Ojvj6lKz/veqPzpJBqGbXspOb533A==" - }, - "hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "html-comment-regex": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz", - "integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=", - "dev": true - }, - "html-entities": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", - "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=", - "dev": true - }, - "html-minifier": { - "version": "3.5.18", - "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.18.tgz", - "integrity": "sha512-sczoq/9zeXiKZMj8tsQzHJE7EyjrpMHvblTLuh9o8h5923a6Ts5uQ/3YdY+xIqJYRjzHQPlrHjfjh0BtwPJG0g==", - "dev": true, - "requires": { - "camel-case": "3.0.x", - "clean-css": "4.1.x", - "commander": "2.16.x", - "he": "1.1.x", - "param-case": "2.1.x", - "relateurl": "0.2.x", - "uglify-js": "3.4.x" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "uglify-js": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.3.tgz", - "integrity": "sha512-RbOgGjF04sFUNSi8xGOTB9AmtVmMmVVAL5a7lxIgJ8urejJen+priq0ooRIHHa8AXI/dSvNF9yYMz9OP4PhybQ==", - "dev": true, - "requires": { - "commander": "~2.16.0", - "source-map": "~0.6.1" - } - } - } - }, - "html-webpack-plugin": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-2.30.1.tgz", - "integrity": "sha1-f5xCG36pHsRg9WUn1430hO51N9U=", - "dev": true, - "requires": { - "bluebird": "^3.4.7", - "html-minifier": "^3.2.3", - "loader-utils": "^0.2.16", - "lodash": "^4.17.3", - "pretty-error": "^2.0.2", - "toposort": "^1.0.0" - } - }, - "htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", - "dev": true - }, - "htmlparser2": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.3.0.tgz", - "integrity": "sha1-zHDQWln2VC5D8OaFyYLhTJJKnv4=", - "dev": true, - "requires": { - "domelementtype": "1", - "domhandler": "2.1", - "domutils": "1.1", - "readable-stream": "1.0" - }, - "dependencies": { - "domutils": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.1.6.tgz", - "integrity": "sha1-vdw94Jm5ou+sxRxiPyj0FuzFdIU=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "http-basic": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-7.0.0.tgz", - "integrity": "sha1-gvClBr6UJzLsje6+6A50bvVzbbo=", - "dev": true, - "requires": { - "@types/concat-stream": "^1.6.0", - "@types/node": "^9.4.1", - "caseless": "~0.12.0", - "concat-stream": "^1.4.6", - "http-response-object": "^3.0.1", - "parse-cache-control": "^1.0.1" - } - }, - "http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", - "dev": true - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "http-parser-js": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.13.tgz", - "integrity": "sha1-O9bW/ebjFyyTNMOzO2wZPYD+ETc=", - "dev": true - }, - "http-proxy": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.17.0.tgz", - "integrity": "sha512-Taqn+3nNvYRfJ3bGvKfBSRwy1v6eePlm3oc/aWVxZp57DQr5Eq3xhKJi7Z4hZpS8PC3H4qI+Yly5EmFacGuA/g==", - "dev": true, - "requires": { - "eventemitter3": "^3.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - } - }, - "http-proxy-middleware": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz", - "integrity": "sha1-ZC6ISIUdZvCdTxJJEoRtuutBuDM=", - "dev": true, - "requires": { - "http-proxy": "^1.16.2", - "is-glob": "^3.1.0", - "lodash": "^4.17.2", - "micromatch": "^2.3.11" - }, - "dependencies": { - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - } - } - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - } - } - }, - "http-response-object": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.1.tgz", - "integrity": "sha512-6L0Fkd6TozA8kFSfh9Widst0wfza3U1Ex2RjJ6zNDK0vR1U1auUR6jY4Nn2Xl7CCy0ikFmxW1XcspVpb9RvwTg==", - "dev": true, - "requires": { - "@types/node": "^9.3.0" - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "icss-replace-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", - "integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=", - "dev": true - }, - "icss-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-2.1.0.tgz", - "integrity": "sha1-g/Cg7DeL8yRheLbCrZE28TWxyWI=", - "dev": true, - "requires": { - "postcss": "^6.0.1" - } - }, - "ieee754": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", - "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==", - "dev": true - }, - "iferr": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", - "dev": true - }, - "image-size": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", - "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=", - "dev": true, - "optional": true - }, - "immediate": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz", - "integrity": "sha1-0UD6j2FGWb1lQSMwl92qwlzdmRw=" - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "in-publish": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", - "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", - "dev": true - }, - "indent-string": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", - "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "indexes-of": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", - "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", - "dev": true - }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true - }, - "inline-source-map": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", - "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", - "dev": true, - "requires": { - "source-map": "~0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "insert-module-globals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.0.tgz", - "integrity": "sha512-VE6NlW+WGn2/AeOMd496AHFYmE7eLKkUY6Ty31k4og5vmA3Fjuwe9v6ifH6Xx/Hz27QvdoMoviw1/pqWRB09Sw==", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - }, - "dependencies": { - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - } - } - }, - "internal-ip": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-2.0.3.tgz", - "integrity": "sha512-XxJMiJOjXbb9LlwH6SVTsnUPymYACunXzKg3dqU+HIC+xYIkUhMyTiT/H6xxPmhlE4zHq50lKlx0CZlyN2C76Q==", - "dev": true, - "requires": { - "default-gateway": "^2.2.2", - "ipaddr.js": "^1.5.2" - } - }, - "interpret": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", - "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" - }, - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" - }, - "ip-regex": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", - "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", - "dev": true - }, - "ipaddr.js": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.6.0.tgz", - "integrity": "sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs=" - }, - "ipfs-api": { - "version": "18.2.1", - "resolved": "https://registry.npmjs.org/ipfs-api/-/ipfs-api-18.2.1.tgz", - "integrity": "sha512-ffT6tO4KkACztnA3wm2R1hanQLjyeYgTaaXLtoetMvdKTuI6JeOuwg7lv7HfLpIBRKfeYU98e2wzH7Vv7bhERw==", - "requires": { - "async": "^2.6.0", - "big.js": "^5.0.3", - "bs58": "^4.0.1", - "cids": "~0.5.3", - "concat-stream": "^1.6.2", - "detect-node": "^2.0.3", - "flatmap": "0.0.3", - "glob": "^7.1.2", - "ipfs-block": "~0.6.1", - "ipfs-unixfs": "~0.1.14", - "ipld-dag-pb": "~0.13.1", - "is-ipfs": "^0.3.2", - "is-stream": "^1.1.0", - "lru-cache": "^4.1.2", - "multiaddr": "^3.0.2", - "multihashes": "~0.4.13", - "ndjson": "^1.5.0", - "once": "^1.4.0", - "peer-id": "~0.10.6", - "peer-info": "~0.11.6", - "promisify-es6": "^1.0.3", - "pull-defer": "^0.2.2", - "pull-pushable": "^2.2.0", - "pump": "^3.0.0", - "qs": "^6.5.1", - "readable-stream": "^2.3.5", - "stream-http": "^2.8.1", - "stream-to-pull-stream": "^1.7.2", - "streamifier": "^0.1.1", - "tar-stream": "^1.5.5" - }, - "dependencies": { - "big.js": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.1.2.tgz", - "integrity": "sha512-qG6ZOc1lY84Bn8p/z9xvJisj9F4PRyo0pOGqGNYc7gS3p1WciS/3XcLuNI3Z/yYZpMNFhHeX3YNENwgrQq0NTA==" - } - } - }, - "ipfs-block": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/ipfs-block/-/ipfs-block-0.6.1.tgz", - "integrity": "sha512-28dgGsb2YsYnFs+To4cVBX8e/lTCb8eWDzGhN5csj3a/sHMOYrHeK8+Ez0IV67CI3lqKGuG/ZD01Cmd6JUvKrQ==", - "requires": { - "cids": "^0.5.2" - } - }, - "ipfs-unixfs": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-0.1.15.tgz", - "integrity": "sha512-fjtwBDsIlNags4btHIdAJtE02K4KqEMOhV9GEFVv1M2JO2STS23v2LAtX5qb1EOU5VrjtKlm/JIBH3XDRdAyGQ==", - "requires": { - "protons": "^1.0.0" - } - }, - "ipld-dag-pb": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.13.1.tgz", - "integrity": "sha512-HxybRQvpY8IQ9T0bImlT5v4LBR3jJAgEnFRA/ZU2UNIiBuRkbirI9+VSX03+WkiYooiFMoZz6Qp/xYMdoogNWg==", - "requires": { - "async": "^2.6.0", - "bs58": "^4.0.1", - "buffer-loader": "0.0.1", - "cids": "~0.5.2", - "ipfs-block": "~0.6.1", - "is-ipfs": "~0.3.2", - "multihashes": "~0.4.12", - "multihashing-async": "~0.4.7", - "protons": "^1.0.1", - "pull-stream": "^3.6.1", - "pull-traverse": "^1.0.3", - "stable": "^0.1.6" - } - }, - "is-absolute-url": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", - "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "requires": { - "builtin-modules": "^1.0.0" - } - }, - "is-callable": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==" - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-date-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=" - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true - }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-function": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.1.tgz", - "integrity": "sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU=" - }, - "is-glob": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", - "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-hex-prefixed": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", - "integrity": "sha1-fY035q135dEnFIkTxXPggtd39VQ=" - }, - "is-ipfs": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-0.3.2.tgz", - "integrity": "sha512-82V1j4LMkYy7H4seQQzOWqo7FiW3I64/1/ryo3dhtWKfOvm7ZolLMRQQfGKs4OXWauh5rAkPnamVcRISHwhmpQ==", - "requires": { - "bs58": "^4.0.1", - "cids": "~0.5.1", - "multihashes": "~0.4.9" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dev": true, - "requires": { - "is-path-inside": "^1.0.0" - } - }, - "is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, - "is-promise": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz", - "integrity": "sha1-MVc3YcBX4zwukaq56W2gjO++duU=" - }, - "is-regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "requires": { - "has": "^1.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" - }, - "is-svg": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz", - "integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=", - "dev": true, - "requires": { - "html-comment-regex": "^1.1.0" - } - }, - "is-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", - "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=" - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "isomorphic-fetch": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", - "requires": { - "node-fetch": "^1.0.1", - "whatwg-fetch": ">=0.10.0" - } - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" - }, - "jade": { - "version": "0.26.3", - "resolved": "https://registry.npmjs.org/jade/-/jade-0.26.3.tgz", - "integrity": "sha1-jxDXl32NefL2/4YqgbBRPMslaGw=", - "requires": { - "commander": "0.6.1", - "mkdirp": "0.3.0" - }, - "dependencies": { - "commander": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz", - "integrity": "sha1-+mihT2qUXVTbvlDYzbMyDp47GgY=" - }, - "mkdirp": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz", - "integrity": "sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=" - } - } - }, - "js-base64": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.5.tgz", - "integrity": "sha512-aUnNwqMOXw3yvErjMPSQu6qIIzUmT1e5KcU1OZxRDU1g/am6mzBvcrmLAYwzmB59BHPrh5/tKaiF4OPhqRWESQ==", - "dev": true - }, - "js-sha3": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", - "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=" - }, - "js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", - "dev": true - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" - }, - "js-yaml": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", - "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^2.6.0" - }, - "dependencies": { - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true - } - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "optional": true - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, - "jsmin": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/jsmin/-/jsmin-1.0.1.tgz", - "integrity": "sha1-570NzWSWw79IYyNb9GGj2YqjuYw=", - "dev": true - }, - "json-loader": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", - "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==" - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" - }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" - }, - "json3": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", - "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", - "dev": true - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "jstransform": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/jstransform/-/jstransform-11.0.3.tgz", - "integrity": "sha1-CaeJk+CuTU70SH9hVakfYZDLQiM=", - "requires": { - "base62": "^1.1.0", - "commoner": "^0.10.1", - "esprima-fb": "^15001.1.0-dev-harmony-fb", - "object-assign": "^2.0.0", - "source-map": "^0.4.2" - }, - "dependencies": { - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=" - } - } - }, - "jsx-loader": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/jsx-loader/-/jsx-loader-0.13.2.tgz", - "integrity": "sha1-l2f2Q5dcePXlq+upvFeIUpfnMtQ=", - "requires": { - "jstransform": "11", - "loader-utils": "^0.2.2" - } - }, - "keccak": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz", - "integrity": "sha512-eZVaCpblK5formjPjeTBik7TAg+pqnDrMHIffSvi9Lh7PQgM1+hSzakUeZFCk9DVVG0dacZJuaz2ntwlzZUIBw==", - "requires": { - "bindings": "^1.2.1", - "inherits": "^2.0.3", - "nan": "^2.2.1", - "safe-buffer": "^5.1.0" - } - }, - "keccakjs": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/keccakjs/-/keccakjs-0.2.1.tgz", - "integrity": "sha1-HWM6+QfvMFu/ny+mFtVsRFYd+k0=", - "requires": { - "browserify-sha3": "^0.0.1", - "sha3": "^1.1.0" - } - }, - "keypair": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/keypair/-/keypair-1.0.1.tgz", - "integrity": "sha1-dgNxknCvtlZO04oiCHoG/Jqk6hs=" - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "labeled-stream-splicer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz", - "integrity": "sha512-MC94mHZRvJ3LfykJlTUipBqenZz1pacOZEMhhQ8dMGcDHs0SBE5GbsavUXV7YtP3icBW17W0Zy1I0lfASmo9Pg==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "isarray": "^2.0.4", - "stream-splicer": "^2.0.0" - }, - "dependencies": { - "isarray": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.4.tgz", - "integrity": "sha512-GMxXOiUirWg1xTKRipM0Ek07rX+ubx4nNVElTJdNLYmNO/2YrDkgJGw9CljXn+r4EWiDQg/8lsRdHyg2PJuUaA==", - "dev": true - } - } - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "requires": { - "invert-kv": "^1.0.0" - } - }, - "less": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/less/-/less-2.7.2.tgz", - "integrity": "sha1-No1sxz4fsDmBGDKAkYdDxdz5s98=", - "dev": true, - "requires": { - "errno": "^0.1.1", - "graceful-fs": "^4.1.2", - "image-size": "~0.5.0", - "mime": "^1.2.11", - "mkdirp": "^0.5.0", - "promise": "^7.1.1", - "request": "^2.72.0", - "source-map": "^0.5.3" - }, - "dependencies": { - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dev": true, - "optional": true, - "requires": { - "asap": "~2.0.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "optional": true - } - } - }, - "less-loader": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-4.0.5.tgz", - "integrity": "sha1-rhVadAbKxqzSk9eFWH/P8PR4xN0=", - "dev": true, - "requires": { - "clone": "^2.1.1", - "loader-utils": "^1.1.0", - "pify": "^2.3.0" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - } - } - }, - "level-codec": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/level-codec/-/level-codec-7.0.1.tgz", - "integrity": "sha512-Ua/R9B9r3RasXdRmOtd+t9TCOEIIlts+TN/7XTT2unhDaL6sJn83S3rUyljbr6lVtw49N3/yA0HHjpV6Kzb2aQ==" - }, - "level-errors": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/level-errors/-/level-errors-1.0.5.tgz", - "integrity": "sha512-/cLUpQduF6bNrWuAC4pwtUKA5t669pCsCi2XbmojG2tFeOr9j6ShtdDCtFFQO1DRt+EVZhx9gPzP9G2bUaG4ig==", - "requires": { - "errno": "~0.1.1" - } - }, - "level-iterator-stream": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/level-iterator-stream/-/level-iterator-stream-1.3.1.tgz", - "integrity": "sha1-5Dt4sagUPm+pek9IXrjqUwNS8u0=", - "requires": { - "inherits": "^2.0.1", - "level-errors": "^1.0.3", - "readable-stream": "^1.0.33", - "xtend": "^4.0.0" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" - } - } - }, - "level-ws": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz", - "integrity": "sha1-Ny5RIXeSSgBCSwtDrvK7QkltIos=", - "requires": { - "readable-stream": "~1.0.15", - "xtend": "~2.1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" - }, - "xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=", - "requires": { - "object-keys": "~0.4.0" - } - } - } - }, - "levelup": { - "version": "1.3.9", - "resolved": "https://registry.npmjs.org/levelup/-/levelup-1.3.9.tgz", - "integrity": "sha512-VVGHfKIlmw8w1XqpGOAGwq6sZm2WwWLmlDcULkKWQXEA5EopA8OBNJ2Ck2v6bdk8HeEZSbCSEgzXadyQFm76sQ==", - "requires": { - "deferred-leveldown": "~1.2.1", - "level-codec": "~7.0.0", - "level-errors": "~1.0.3", - "level-iterator-stream": "~1.3.0", - "prr": "~1.0.1", - "semver": "~5.4.1", - "xtend": "~4.0.0" - }, - "dependencies": { - "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" - } - } - }, - "libp2p-crypto": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/libp2p-crypto/-/libp2p-crypto-0.12.1.tgz", - "integrity": "sha512-1/z8rxZ0DcQNreZhEsl7PnLr7DWOioSvYbKBLGkRwNRiNh1JJLgh0PdTySBb44wkrOGT+TxcGRd7iq3/X6Wxwg==", - "requires": { - "asn1.js": "^5.0.0", - "async": "^2.6.0", - "browserify-aes": "^1.1.1", - "bs58": "^4.0.1", - "keypair": "^1.0.1", - "libp2p-crypto-secp256k1": "~0.2.2", - "multihashing-async": "~0.4.7", - "node-forge": "^0.7.1", - "pem-jwk": "^1.5.1", - "protons": "^1.0.1", - "rsa-pem-to-jwk": "^1.1.3", - "tweetnacl": "^1.0.0", - "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" - } - }, - "libp2p-crypto-secp256k1": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/libp2p-crypto-secp256k1/-/libp2p-crypto-secp256k1-0.2.2.tgz", - "integrity": "sha1-DdUh8Yq8TjahUuJOmzYwewrpzwU=", - "requires": { - "async": "^2.5.0", - "multihashing-async": "~0.4.6", - "nodeify": "^1.0.1", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.3.0" - } - }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "loader-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", - "dev": true - }, - "loader-utils": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", - "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0", - "object-assign": "^4.0.1" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" - }, - "lodash-es": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.10.tgz", - "integrity": "sha512-iesFYPmxYYGTcmQK0sL8bX3TGHyM6b2qREaB4kamHfQyfPJP0xgoGxp19nsH16nsfquLdiyKyX3mQkfiSGV8Rg==" - }, - "lodash._baseassign": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", - "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", - "dev": true, - "requires": { - "lodash._basecopy": "^3.0.0", - "lodash.keys": "^3.0.0" - } - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", - "dev": true - }, - "lodash._basecreate": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", - "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", - "dev": true - }, - "lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", - "dev": true - }, - "lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", - "dev": true - }, - "lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" - }, - "lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", - "dev": true - }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.create": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", - "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", - "dev": true, - "requires": { - "lodash._baseassign": "^3.0.0", - "lodash._basecreate": "^3.0.0", - "lodash._isiterateecall": "^3.0.0" - } - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, - "lodash.filter": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz", - "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4=" - }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", - "dev": true - }, - "lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", - "dev": true - }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", - "dev": true, - "requires": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - } - }, - "lodash.map": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz", - "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=" - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", - "dev": true - }, - "lodash.merge": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", - "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==", - "dev": true - }, - "lodash.mergewith": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", - "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", - "dev": true - }, - "lodash.tail": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.tail/-/lodash.tail-4.1.1.tgz", - "integrity": "sha1-0jM6NtnncXyK0vfKyv7HwytERmQ=", - "dev": true - }, - "lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", - "dev": true - }, - "lodash.uniqby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", - "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=" - }, - "loglevel": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.1.tgz", - "integrity": "sha1-4PyVEztu8nbNyIh82vJKpvFW+Po=", - "dev": true - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true - }, - "looper": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/looper/-/looper-3.0.0.tgz", - "integrity": "sha1-LvpUw7HLq6m5Su4uWRSwvlf7t0k=" - }, - "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", - "requires": { - "js-tokens": "^3.0.0" - } - }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", - "dev": true, - "requires": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" - } - }, - "lower-case": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", - "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=", - "dev": true - }, - "lru-cache": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", - "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "ltgt": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ltgt/-/ltgt-2.2.1.tgz", - "integrity": "sha1-81ypHEk/e3PaDgdJUwTxezH4fuU=" - }, - "make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "dev": true, - "requires": { - "pify": "^3.0.0" - }, - "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - } - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "math-expression-evaluator": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz", - "integrity": "sha1-3oGf282E3M2PrlnGrreWFbnSZqw=", - "dev": true - }, - "math-random": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", - "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", - "dev": true - }, - "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" - }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "memdown": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/memdown/-/memdown-1.4.1.tgz", - "integrity": "sha1-tOThkhdGZP+65BNhqlAPMRnv4hU=", - "requires": { - "abstract-leveldown": "~2.7.1", - "functional-red-black-tree": "^1.0.1", - "immediate": "^3.2.3", - "inherits": "~2.0.1", - "ltgt": "~2.2.0", - "safe-buffer": "~5.1.1" - }, - "dependencies": { - "abstract-leveldown": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.7.2.tgz", - "integrity": "sha512-+OVvxH2rHVEhWLdbudP6p0+dNMXu8JA1CbhP19T8paTYAcX7oJ4OVjT+ZUVpv7mITxXHqDMej+GdqXBmXkw09w==", - "requires": { - "xtend": "~4.0.0" - } - } - } - }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - }, - "memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=" - }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", - "dev": true, - "requires": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" - } - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" - }, - "merkle-patricia-tree": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.3.1.tgz", - "integrity": "sha512-Qp9Mpb3xazznXzzGQBqHbqCpT2AR9joUOHYYPiQjYCarrdCPCnLWXo4BFv77y4xN26KR224xoU1n/qYY7RYYgw==", - "requires": { - "async": "^1.4.2", - "ethereumjs-util": "^5.0.0", - "level-ws": "0.0.0", - "levelup": "^1.2.1", - "memdown": "^1.0.0", - "readable-stream": "^2.0.0", - "rlp": "^2.0.0", - "semaphore": ">=1.0.1" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" - }, - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - } - } - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - } - }, - "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" - }, - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "requires": { - "mime-db": "~1.33.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "mimic-response": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.0.tgz", - "integrity": "sha1-3z02Uqc/3ta5sLJBRub9BSNTRY4=" - }, - "min-document": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", - "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=", - "requires": { - "dom-walk": "^0.1.0" - } - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" - }, - "mississippi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-2.0.0.tgz", - "integrity": "sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw==", - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^2.0.1", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mixin-object": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz", - "integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=", - "dev": true, - "requires": { - "for-in": "^0.1.3", - "is-extendable": "^0.1.1" - }, - "dependencies": { - "for-in": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz", - "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=", - "dev": true - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" - } - } - }, - "mocha": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-2.5.3.tgz", - "integrity": "sha1-FhvlvetJZ3HrmzV0UFC2IrWu/Fg=", - "requires": { - "commander": "2.3.0", - "debug": "2.2.0", - "diff": "1.4.0", - "escape-string-regexp": "1.0.2", - "glob": "3.2.11", - "growl": "1.9.2", - "jade": "0.26.3", - "mkdirp": "0.5.1", - "supports-color": "1.2.0", - "to-iso-string": "0.0.2" - }, - "dependencies": { - "commander": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.3.0.tgz", - "integrity": "sha1-/UMOiJgy7DU7ms0d4hfBHLPu+HM=" - }, - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "requires": { - "ms": "0.7.1" - } - }, - "glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", - "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", - "requires": { - "inherits": "2", - "minimatch": "0.3" - } - }, - "lru-cache": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=" - }, - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" - } - } - }, - "module-deps": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", - "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "browser-resolve": "^1.7.0", - "cached-path-relative": "^1.0.0", - "concat-stream": "~1.5.0", - "defined": "^1.0.0", - "detective": "^4.0.0", - "duplexer2": "^0.1.2", - "inherits": "^2.0.1", - "parents": "^1.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.3", - "stream-combiner2": "^1.1.1", - "subarg": "^1.0.0", - "through2": "^2.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "~2.0.0", - "typedarray": "~0.0.5" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "string_decoder": "~0.10.x", - "util-deprecate": "~1.0.1" - } - } - } - }, - "process-nextick-args": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", - "dev": true - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "moment": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", - "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==" - }, - "move-concurrently": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", - "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "multiaddr": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-3.1.0.tgz", - "integrity": "sha512-QhmsD/TufS5KB7brd1rkzLz2sJqybQlDT9prroiWacaw61DtHoe2X/vcAnOu8mZc7s7ZzevFPvY5tzv3yjBXlQ==", - "requires": { - "bs58": "^4.0.1", - "ip": "^1.1.5", - "lodash.filter": "^4.6.0", - "lodash.map": "^4.6.0", - "varint": "^5.0.0", - "xtend": "^4.0.1" - } - }, - "multibase": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.4.0.tgz", - "integrity": "sha512-fnYvZJWDn3eSJ7EeWvS8zbOpRwuyPHpDggSnqGXkQMvYED5NdO9nyqnZboGvAT+r/60J8KZ09tW8YJHkS22sFw==", - "requires": { - "base-x": "3.0.4" - } - }, - "multicast-dns": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", - "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", - "dev": true, - "requires": { - "dns-packet": "^1.3.1", - "thunky": "^1.0.2" - } - }, - "multicast-dns-service-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", - "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", - "dev": true - }, - "multicodec": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-0.2.7.tgz", - "integrity": "sha512-96xc9zs7bsclMW0Po9ERnRFqcsWHY8OZ8JW/I8DeHG58YYJZy3cBGI00Ze7hz9Ix56DNHMTSxEj9cgoZByruMg==", - "requires": { - "varint": "^5.0.0" - } - }, - "multihashes": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.13.tgz", - "integrity": "sha512-HwJGEKPCpLlNlgGQA56CYh/Wsqa+c4JAq8+mheIgw7OK5T4QvNJqgp6TH8gZ4q4l1aiWeNat/H/MrFXmTuoFfQ==", - "requires": { - "bs58": "^4.0.1", - "varint": "^5.0.0" - } - }, - "multihashing-async": { - "version": "0.4.8", - "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-0.4.8.tgz", - "integrity": "sha512-LCc4lfxmTJOHKIjZjFNgvmfB6nXS/ErLInT9uwU8udFrRm2PH+aTPk3mfCREKmCiSHOlCWiv2O8rlnBx+OjlMw==", - "requires": { - "async": "^2.6.0", - "blakejs": "^1.1.0", - "js-sha3": "^0.7.0", - "multihashes": "~0.4.13", - "murmurhash3js": "^3.0.1", - "nodeify": "^1.0.1" - }, - "dependencies": { - "js-sha3": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", - "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" - } - } - }, - "murmurhash3js": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/murmurhash3js/-/murmurhash3js-3.0.1.tgz", - "integrity": "sha1-Ppg+W0fCoG9DpxMXTn5DXKBEuZg=" - }, - "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" - }, - "nano-json-stream-parser": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz", - "integrity": "sha1-DMj20OK2IrR5xA1JnEbWS3Vcb18=" - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "ndjson": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/ndjson/-/ndjson-1.5.0.tgz", - "integrity": "sha1-rmA7NrE0vOw0e0UkIrC/mNWDLsg=", - "requires": { - "json-stringify-safe": "^5.0.1", - "minimist": "^1.2.0", - "split2": "^2.1.0", - "through2": "^2.0.3" - } - }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" - }, - "neo-async": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.1.tgz", - "integrity": "sha512-3KL3fvuRkZ7s4IFOMfztb7zJp3QaVWnBeGoJlgB38XnCRPj/0tLzzLG5IB8NYOHbJ8g8UGrgZv44GLDk6CxTxA==", - "dev": true - }, - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", - "dev": true - }, - "nice-try": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.4.tgz", - "integrity": "sha512-2NpiFHqC87y/zFke0fC0spBXL3bBsoh/p5H1EFhshxjCR5+0g2d6BiXbUFz9v1sAcxsk2htp2eQnNIci2dIYcA==", - "dev": true - }, - "no-case": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", - "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", - "dev": true, - "requires": { - "lower-case": "^1.1.1" - } - }, - "node-dir": { - "version": "0.1.17", - "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz", - "integrity": "sha1-X1Zl2TNRM1yqvvjxxVRRbPXx5OU=", - "dev": true, - "requires": { - "minimatch": "^3.0.2" - } - }, - "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "requires": { - "encoding": "^0.1.11", - "is-stream": "^1.0.1" - } - }, - "node-forge": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.5.tgz", - "integrity": "sha512-MmbQJ2MTESTjt3Gi/3yG1wGpIMhUfcIypUCGtTizFR9IiccFwxSpfp0vtIZlkFclEqERemxfnSdZEMR9VqqEFQ==" - }, - "node-gyp": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.7.0.tgz", - "integrity": "sha512-qDQE/Ft9xXP6zphwx4sD0t+VhwV7yFaloMpfbL2QnnDZcyaiakWlLdtFGGQfTAwpFHdpbRhRxVhIHN1OKAjgbg==", - "dev": true, - "requires": { - "fstream": "^1.0.0", - "glob": "^7.0.3", - "graceful-fs": "^4.1.2", - "mkdirp": "^0.5.0", - "nopt": "2 || 3", - "npmlog": "0 || 1 || 2 || 3 || 4", - "osenv": "0", - "request": ">=2.9.0 <2.82.0", - "rimraf": "2", - "semver": "~5.3.0", - "tar": "^2.0.0", - "which": "1" - }, - "dependencies": { - "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", - "dev": true, - "requires": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" - } - }, - "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", - "dev": true - }, - "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", - "dev": true - }, - "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.5", - "mime-types": "^2.1.12" - } - }, - "har-schema": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", - "dev": true - }, - "har-validator": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", - "dev": true, - "requires": { - "ajv": "^4.9.1", - "har-schema": "^1.0.5" - } - }, - "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", - "dev": true, - "requires": { - "assert-plus": "^0.2.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "performance-now": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", - "dev": true - }, - "qs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", - "dev": true - }, - "request": { - "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", - "dev": true, - "requires": { - "aws-sign2": "~0.6.0", - "aws4": "^1.2.1", - "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.0", - "forever-agent": "~0.6.1", - "form-data": "~2.1.1", - "har-validator": "~4.2.1", - "hawk": "~3.1.3", - "http-signature": "~1.1.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.7", - "oauth-sign": "~0.8.1", - "performance-now": "^0.2.0", - "qs": "~6.4.0", - "safe-buffer": "^5.0.1", - "stringstream": "~0.0.4", - "tough-cookie": "~2.3.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.0.0" - } - }, - "semver": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", - "dev": true - }, - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true - } - } - }, - "node-libs-browser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", - "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^1.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.0", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.10.3", - "vm-browserify": "0.0.4" - }, - "dependencies": { - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - } - } - }, - "node-sass": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz", - "integrity": "sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg=", - "dev": true, - "requires": { - "async-foreach": "^0.1.3", - "chalk": "^1.1.1", - "cross-spawn": "^3.0.0", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "in-publish": "^2.0.0", - "lodash.assign": "^4.2.0", - "lodash.clonedeep": "^4.3.2", - "lodash.mergewith": "^4.6.0", - "meow": "^3.7.0", - "mkdirp": "^0.5.1", - "nan": "^2.3.2", - "node-gyp": "^3.3.1", - "npmlog": "^4.0.0", - "request": "^2.79.0", - "sass-graph": "^2.1.1", - "stdout-stream": "^1.4.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "nodeify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/nodeify/-/nodeify-1.0.1.tgz", - "integrity": "sha1-ZKtpp7268DzhB7TwM1yHwLnpGx0=", - "requires": { - "is-promise": "~1.0.0", - "promise": "~1.3.0" - } - }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", - "dev": true, - "requires": { - "abbrev": "1" - } - }, - "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", - "requires": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true - }, - "normalize-url": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz", - "integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=", - "dev": true, - "requires": { - "object-assign": "^4.0.1", - "prepend-http": "^1.0.0", - "query-string": "^4.1.0", - "sort-keys": "^1.0.0" - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "nth-check": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.1.tgz", - "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=", - "dev": true, - "requires": { - "boolbase": "~1.0.0" - } - }, - "num2fraction": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", - "dev": true - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" - }, - "number-to-bn": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", - "integrity": "sha1-uzYjWS9+X54AMLGXe9QaDFP+HqA=", - "requires": { - "bn.js": "4.11.6", - "strip-hex-prefix": "1.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" - } - } - }, - "numeral": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz", - "integrity": "sha1-StCAk21EPCVhrtnyGX7//iX05QY=" - }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "object-inspect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", - "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==" - }, - "object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=" - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "requires": { - "isobject": "^3.0.0" - } - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - }, - "dependencies": { - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - } - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", - "dev": true - }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", - "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "openzeppelin-solidity": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/openzeppelin-solidity/-/openzeppelin-solidity-1.9.0.tgz", - "integrity": "sha512-MGI8clDbjrfWUg90AM82O+CHOaabtE2u9HyaUhBMKfWdIaO1urRUIgXIrEuloLvFEBHb5rtcgTARb5DkhUB4KQ==", - "dev": true - }, - "opn": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/opn/-/opn-5.3.0.tgz", - "integrity": "sha512-bYJHo/LOmoTd+pfiYhfZDnf9zekVJrY+cnS2a5F2x+w5ppvTqObojTP7WiFG+kVZs9Inw+qQ/lw7TroWwhdd2g==", - "dev": true, - "requires": { - "is-wsl": "^1.1.0" - } - }, - "optimist": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", - "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=", - "requires": { - "wordwrap": "~0.0.2" - } - }, - "original": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/original/-/original-1.0.1.tgz", - "integrity": "sha512-IEvtB5vM5ULvwnqMxWBLxkS13JIEXbakizMSo3yoPNPCIWzg8TG3Usn/UhXoZFM/m+FuEA20KdzPSFq/0rS+UA==", - "dev": true, - "requires": { - "url-parse": "~1.4.0" - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "requires": { - "lcid": "^1.0.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-map": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", - "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", - "dev": true - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "pako": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", - "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", - "dev": true - }, - "parallel-transform": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", - "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", - "dev": true, - "requires": { - "cyclist": "~0.2.2", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - } - }, - "param-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz", - "integrity": "sha1-35T9jPZTHs915r75oIWPvHK+Ikc=", - "dev": true, - "requires": { - "no-case": "^2.2.0" - } - }, - "parents": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", - "dev": true, - "requires": { - "path-platform": "~0.11.15" - } - }, - "parse-asn1": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz", - "integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==", - "dev": true, - "requires": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3" - }, - "dependencies": { - "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - } - } - }, - "parse-cache-control": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", - "integrity": "sha1-juqz5U+laSD+Fro493+iGqzC104=", - "dev": true - }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "parse-headers": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.1.tgz", - "integrity": "sha1-aug6eqJanZtwCswoaYzR8e1+lTY=", - "requires": { - "for-each": "^0.3.2", - "trim": "0.0.1" - } - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "requires": { - "error-ex": "^1.2.0" - } - }, - "parseurl": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", - "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", - "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" - }, - "path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", - "dev": true - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pathval": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", - "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=" - }, - "pbkdf2": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.16.tgz", - "integrity": "sha512-y4CXP3thSxqf7c0qmOF+9UeOTrifiVTIM+u7NWlq+PRsHbr7r7dpCmvzrZxa96JJUNi0Y5w9VqG5ZNeCVMoDcA==", - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "peer-id": { - "version": "0.10.7", - "resolved": "https://registry.npmjs.org/peer-id/-/peer-id-0.10.7.tgz", - "integrity": "sha512-VEpMFcL9q0NQijmR0jsj38OGbY4yzaWMEareVkDahopmlNT+Cpsot8btPgsgBBApP9NiZj2Enwvh8rZN30ocQw==", - "requires": { - "async": "^2.6.0", - "libp2p-crypto": "~0.12.1", - "lodash": "^4.17.5", - "multihashes": "~0.4.13" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" - } - } - }, - "peer-info": { - "version": "0.11.6", - "resolved": "https://registry.npmjs.org/peer-info/-/peer-info-0.11.6.tgz", - "integrity": "sha512-xrVNiAF1IhVJNGEg5P2UQN+subaEkszT8YkC3zdy06MK0vTH3cMHB+HH+ZURkoSLssc3HbK58ecXeKpQ/4zq5w==", - "requires": { - "lodash.uniqby": "^4.7.0", - "multiaddr": "^3.0.2", - "peer-id": "~0.10.5" - } - }, - "pegjs": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/pegjs/-/pegjs-0.10.0.tgz", - "integrity": "sha1-z4uvrm7d/0tafvsYUmnqr0YQ3b0=" - }, - "pem-jwk": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pem-jwk/-/pem-jwk-1.5.1.tgz", - "integrity": "sha1-eoY3/S9nqCflfAxC4cI8P9Us+wE=", - "requires": { - "asn1.js": "1.0.3" - }, - "dependencies": { - "asn1.js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-1.0.3.tgz", - "integrity": "sha1-KBuj7B8kSP52X5Kk7s+IP+E2S1Q=", - "requires": { - "bn.js": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "bn.js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-1.3.0.tgz", - "integrity": "sha1-DbTL+W+PI7dC9by50ap6mZSgXoM=", - "optional": true - } - } - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - } - } - }, - "portfinder": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.13.tgz", - "integrity": "sha1-uzLs2HwnEErm7kS1o8y/Drsa7ek=", - "dev": true, - "requires": { - "async": "^1.5.2", - "debug": "^2.2.0", - "mkdirp": "0.5.x" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "postcss": { - "version": "6.0.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", - "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", - "dev": true, - "requires": { - "chalk": "^2.4.1", - "source-map": "^0.6.1", - "supports-color": "^5.4.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "postcss-calc": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz", - "integrity": "sha1-d7rnypKK2FcW4v2kLyYb98HWW14=", - "dev": true, - "requires": { - "postcss": "^5.0.2", - "postcss-message-helpers": "^2.0.0", - "reduce-css-calc": "^1.2.6" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-colormin": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-2.2.2.tgz", - "integrity": "sha1-ZjFBfV8OkJo9fsJrJMio0eT5bks=", - "dev": true, - "requires": { - "colormin": "^1.0.5", - "postcss": "^5.0.13", - "postcss-value-parser": "^3.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-convert-values": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz", - "integrity": "sha1-u9hZPFwf0uPRwyK7kl3K6Nrk1i0=", - "dev": true, - "requires": { - "postcss": "^5.0.11", - "postcss-value-parser": "^3.1.2" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-discard-comments": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz", - "integrity": "sha1-vv6J+v1bPazlzM5Rt2uBUUvgDj0=", - "dev": true, - "requires": { - "postcss": "^5.0.14" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-discard-duplicates": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz", - "integrity": "sha1-uavye4isGIFYpesSq8riAmO5GTI=", - "dev": true, - "requires": { - "postcss": "^5.0.4" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-discard-empty": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz", - "integrity": "sha1-0rS9nVztXr2Nyt52QMfXzX9PkrU=", - "dev": true, - "requires": { - "postcss": "^5.0.14" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-discard-overridden": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz", - "integrity": "sha1-ix6vVU9ob7KIzYdMVWZ7CqNmjVg=", - "dev": true, - "requires": { - "postcss": "^5.0.16" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-discard-unused": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz", - "integrity": "sha1-vOMLLMWR/8Y0Mitfs0ZLbZNPRDM=", - "dev": true, - "requires": { - "postcss": "^5.0.14", - "uniqs": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-filter-plugins": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/postcss-filter-plugins/-/postcss-filter-plugins-2.0.3.tgz", - "integrity": "sha512-T53GVFsdinJhgwm7rg1BzbeBRomOg9y5MBVhGcsV0CxurUdVj1UlPdKtn7aqYA/c/QVkzKMjq2bSV5dKG5+AwQ==", - "dev": true, - "requires": { - "postcss": "^5.0.4" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-load-config": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-1.2.0.tgz", - "integrity": "sha1-U56a/J3chiASHr+djDZz4M5Q0oo=", - "dev": true, - "requires": { - "cosmiconfig": "^2.1.0", - "object-assign": "^4.1.0", - "postcss-load-options": "^1.2.0", - "postcss-load-plugins": "^2.3.0" - } - }, - "postcss-load-options": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/postcss-load-options/-/postcss-load-options-1.2.0.tgz", - "integrity": "sha1-sJixVZ3awt8EvAuzdfmaXP4rbYw=", - "dev": true, - "requires": { - "cosmiconfig": "^2.1.0", - "object-assign": "^4.1.0" - } - }, - "postcss-load-plugins": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz", - "integrity": "sha1-dFdoEWWZrKLwCfrUJrABdQSdjZI=", - "dev": true, - "requires": { - "cosmiconfig": "^2.1.1", - "object-assign": "^4.1.0" - } - }, - "postcss-loader": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-2.0.6.tgz", - "integrity": "sha512-HIq7yy1hh9KI472Y38iSRV4WupZUNy6zObkxQM/ZuInoaE2+PyX4NcO6jjP5HG5mXL7j5kcNEl0fAG4Kva7O9w==", - "dev": true, - "requires": { - "loader-utils": "^1.1.0", - "postcss": "^6.0.2", - "postcss-load-config": "^1.2.0", - "schema-utils": "^0.3.0" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - } - } - }, - "postcss-merge-idents": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz", - "integrity": "sha1-TFUwMTwI4dWzu/PSu8dH4njuonA=", - "dev": true, - "requires": { - "has": "^1.0.1", - "postcss": "^5.0.10", - "postcss-value-parser": "^3.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-merge-longhand": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz", - "integrity": "sha1-I9kM0Sewp3mUkVMyc5A0oaTz1lg=", - "dev": true, - "requires": { - "postcss": "^5.0.4" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-merge-rules": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz", - "integrity": "sha1-0d9d+qexrMO+VT8OnhDofGG19yE=", - "dev": true, - "requires": { - "browserslist": "^1.5.2", - "caniuse-api": "^1.5.2", - "postcss": "^5.0.4", - "postcss-selector-parser": "^2.2.2", - "vendors": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "browserslist": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", - "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", - "dev": true, - "requires": { - "caniuse-db": "^1.0.30000639", - "electron-to-chromium": "^1.2.7" - } - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-message-helpers": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz", - "integrity": "sha1-pPL0+rbk/gAvCu0ABHjN9S+bpg4=", - "dev": true - }, - "postcss-minify-font-values": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz", - "integrity": "sha1-S1jttWZB66fIR0qzUmyv17vey2k=", - "dev": true, - "requires": { - "object-assign": "^4.0.1", - "postcss": "^5.0.4", - "postcss-value-parser": "^3.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-minify-gradients": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz", - "integrity": "sha1-Xb2hE3NwP4PPtKPqOIHY11/15uE=", - "dev": true, - "requires": { - "postcss": "^5.0.12", - "postcss-value-parser": "^3.3.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-minify-params": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz", - "integrity": "sha1-rSzgcTc7lDs9kwo/pZo1jCjW8fM=", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.1", - "postcss": "^5.0.2", - "postcss-value-parser": "^3.0.2", - "uniqs": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-minify-selectors": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz", - "integrity": "sha1-ssapjAByz5G5MtGkllCBFDEXNb8=", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.2", - "has": "^1.0.1", - "postcss": "^5.0.14", - "postcss-selector-parser": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-modules-extract-imports": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz", - "integrity": "sha1-thTJcgvmgW6u41+zpfqh26agXds=", - "dev": true, - "requires": { - "postcss": "^6.0.1" - } - }, - "postcss-modules-local-by-default": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz", - "integrity": "sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk=", - "dev": true, - "requires": { - "css-selector-tokenizer": "^0.7.0", - "postcss": "^6.0.1" - } - }, - "postcss-modules-scope": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz", - "integrity": "sha1-1upkmUx5+XtipytCb75gVqGUu5A=", - "dev": true, - "requires": { - "css-selector-tokenizer": "^0.7.0", - "postcss": "^6.0.1" - } - }, - "postcss-modules-values": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz", - "integrity": "sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA=", - "dev": true, - "requires": { - "icss-replace-symbols": "^1.1.0", - "postcss": "^6.0.1" - } - }, - "postcss-normalize-charset": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz", - "integrity": "sha1-757nEhLX/nWceO0WL2HtYrXLk/E=", - "dev": true, - "requires": { - "postcss": "^5.0.5" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-normalize-url": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz", - "integrity": "sha1-EI90s/L82viRov+j6kWSJ5/HgiI=", - "dev": true, - "requires": { - "is-absolute-url": "^2.0.0", - "normalize-url": "^1.4.0", - "postcss": "^5.0.14", - "postcss-value-parser": "^3.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-ordered-values": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz", - "integrity": "sha1-7sbCpntsQSqNsgQud/6NpD+VwR0=", - "dev": true, - "requires": { - "postcss": "^5.0.4", - "postcss-value-parser": "^3.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-reduce-idents": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz", - "integrity": "sha1-wsbSDMlYKE9qv75j92Cb9AkFmtM=", - "dev": true, - "requires": { - "postcss": "^5.0.4", - "postcss-value-parser": "^3.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-reduce-initial": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz", - "integrity": "sha1-aPgGlfBF0IJjqHmtJA343WT2ROo=", - "dev": true, - "requires": { - "postcss": "^5.0.4" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-reduce-transforms": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz", - "integrity": "sha1-/3b02CEkN7McKYpC0uFEQCV3GuE=", - "dev": true, - "requires": { - "has": "^1.0.1", - "postcss": "^5.0.8", - "postcss-value-parser": "^3.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-selector-parser": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz", - "integrity": "sha1-+UN3iGBsPJrO4W/+jYsWKX8nu5A=", - "dev": true, - "requires": { - "flatten": "^1.0.2", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "postcss-svgo": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz", - "integrity": "sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0=", - "dev": true, - "requires": { - "is-svg": "^2.0.0", - "postcss": "^5.0.14", - "postcss-value-parser": "^3.2.3", - "svgo": "^0.7.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-unique-selectors": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz", - "integrity": "sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0=", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.1", - "postcss": "^5.0.4", - "uniqs": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-value-parser": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", - "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", - "dev": true - }, - "postcss-zindex": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz", - "integrity": "sha1-0hCd3AVbka9n/EyzsCWUZjnSryI=", - "dev": true, - "requires": { - "has": "^1.0.1", - "postcss": "^5.0.4", - "uniqs": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "prepend-http": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", - "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "pretty-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", - "integrity": "sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM=", - "dev": true, - "requires": { - "renderkid": "^2.0.1", - "utila": "~0.4" - } - }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" - }, - "process": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", - "integrity": "sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=" - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" - }, - "promise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-1.3.0.tgz", - "integrity": "sha1-5cyaTIJ45GZP/twBx9qEhCsEAXU=", - "requires": { - "is-promise": "~1" - } - }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", - "dev": true - }, - "promisify-es6": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/promisify-es6/-/promisify-es6-1.0.3.tgz", - "integrity": "sha512-N9iVG+CGJsI4b4ZGazjwLnxErD2d9Pe4DPvvXSxYA9tFNu8ymXME4Qs5HIQ0LMJpNM7zj+m0NlNnNeqFpKzqnA==" - }, - "prop-types": { - "version": "15.6.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", - "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", - "requires": { - "loose-envify": "^1.3.1", - "object-assign": "^4.1.1" - } - }, - "protocol-buffers-schema": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.3.2.tgz", - "integrity": "sha512-Xdayp8sB/mU+sUV4G7ws8xtYMGdQnxbeIfLjyO9TZZRJdztBGhlmbI5x1qcY4TG5hBkIKGnc28i7nXxaugu88w==" - }, - "protons": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/protons/-/protons-1.0.1.tgz", - "integrity": "sha512-+0ZKnfVs+4c43tbAQ5j0Mck8wPcLnlxUYzKQoB4iDW4ocdXGnN4P+0dDbgX1FTpoY9+7P2Tn2scJyHHqj+S/lQ==", - "requires": { - "protocol-buffers-schema": "^3.3.1", - "safe-buffer": "^5.1.1", - "signed-varint": "^2.0.1", - "varint": "^5.0.0" - } - }, - "proxy-addr": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.3.tgz", - "integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==", - "requires": { - "forwarded": "~0.1.2", - "ipaddr.js": "1.6.0" - } - }, - "prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=" - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" - }, - "public-encrypt": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz", - "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "pull-defer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/pull-defer/-/pull-defer-0.2.2.tgz", - "integrity": "sha1-CIew/7MK8ypW2+z6csFnInHwexM=" - }, - "pull-pushable": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/pull-pushable/-/pull-pushable-2.2.0.tgz", - "integrity": "sha1-Xy867UethpGfAbEqLpnW8b13ZYE=" - }, - "pull-stream": { - "version": "3.6.8", - "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.6.8.tgz", - "integrity": "sha512-wQUIptQBcM0rFsUhZoEpOT3vUn73DtTGVq3NQ86c4T7iMOSprDzeKWYq2ksXnbwiuExTKvt+8G9fzNLFQuiO+A==" - }, - "pull-traverse": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pull-traverse/-/pull-traverse-1.0.3.tgz", - "integrity": "sha1-dPtde+f6a9enjpeTPhmbeUWGaTg=" - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - }, - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" - }, - "qr.js": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/qr.js/-/qr.js-0.0.0.tgz", - "integrity": "sha1-ys6GOG9ZoNuAUPqQ2baw6IoeNk8=" - }, - "qrcode.react": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/qrcode.react/-/qrcode.react-0.8.0.tgz", - "integrity": "sha512-16wKpuFvLwciIq2YAsfmPUCnSR8GrYPsXRK5KVdcIuX0+W/MKZbBkFhl44ttRx4TWZHqRjfztoWOxdPF0Hb9JA==", - "requires": { - "prop-types": "^15.6.0", - "qr.js": "0.0.0" - } - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" - }, - "query-string": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", - "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", - "requires": { - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" - } - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "querystringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.0.0.tgz", - "integrity": "sha512-eTPo5t/4bgaMNZxyjWx6N2a6AuE0mq51KWvpc7nU/MAqixcI6v6KrGUKES0HaomdnolQBBXU/++X6/QQ9KL4tw==", - "dev": true - }, - "randomatic": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", - "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", - "dev": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "randombytes": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", - "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "randomhex": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/randomhex/-/randomhex-0.1.5.tgz", - "integrity": "sha1-us7vmCMpCRQA8qKRLGzQLxCU9YU=" - }, - "range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" - }, - "raw-body": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", - "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", - "requires": { - "bytes": "3.0.0", - "http-errors": "1.6.3", - "iconv-lite": "0.4.23", - "unpipe": "1.0.0" - } - }, - "raw-loader": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz", - "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=", - "dev": true - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "react": { - "version": "15.6.1", - "resolved": "https://registry.npmjs.org/react/-/react-15.6.1.tgz", - "integrity": "sha1-uqhDTsZ4C96ZfNw4C3nNM7ljk98=", - "requires": { - "create-react-class": "^15.6.0", - "fbjs": "^0.8.9", - "loose-envify": "^1.1.0", - "object-assign": "^4.1.0", - "prop-types": "^15.5.10" - } - }, - "react-click-outside": { - "version": "github:tj/react-click-outside#a833ddc5be47490307f9fcc6ed09d8c353108510", - "from": "github:tj/react-click-outside" - }, - "react-dom": { - "version": "15.6.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-15.6.1.tgz", - "integrity": "sha1-LLDtQZEDjlPCCes6eaI+Kkz5lHA=", - "requires": { - "fbjs": "^0.8.9", - "loose-envify": "^1.1.0", - "object-assign": "^4.1.0", - "prop-types": "^15.5.10" - } - }, - "react-redux": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-5.0.6.tgz", - "integrity": "sha512-8taaaGu+J7PMJQDJrk/xiWEYQmdo3mkXw6wPr3K3LxvXis3Fymiq7c13S+Tpls/AyNUAsoONkU81AP0RA6y6Vw==", - "requires": { - "hoist-non-react-statics": "^2.2.1", - "invariant": "^2.0.0", - "lodash": "^4.2.0", - "lodash-es": "^4.2.0", - "loose-envify": "^1.1.0", - "prop-types": "^15.5.10" - } - }, - "react-router": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-3.0.5.tgz", - "integrity": "sha1-w7eHN1gEWou8lWKu9P9LyMznwTY=", - "requires": { - "create-react-class": "^15.5.1", - "history": "^3.0.0", - "hoist-non-react-statics": "^1.2.0", - "invariant": "^2.2.1", - "loose-envify": "^1.2.0", - "prop-types": "^15.5.6", - "warning": "^3.0.0" - }, - "dependencies": { - "hoist-non-react-statics": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-1.2.0.tgz", - "integrity": "sha1-qkSM8JhtVcxAdzsXF0t90GbLfPs=" - }, - "warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", - "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", - "requires": { - "loose-envify": "^1.0.0" - } - } - } - }, - "read-only-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "minimatch": "^3.0.2", - "readable-stream": "^2.0.2", - "set-immediate-shim": "^1.0.1" - } - }, - "recast": { - "version": "0.11.23", - "resolved": "https://registry.npmjs.org/recast/-/recast-0.11.23.tgz", - "integrity": "sha1-RR/TAEqx5N+bTktmN2sqIZEkYtM=", - "requires": { - "ast-types": "0.9.6", - "esprima": "~3.1.0", - "private": "~0.1.5", - "source-map": "~0.5.0" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=" - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" - } - } - }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, - "requires": { - "resolve": "^1.1.6" - } - }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", - "dev": true, - "requires": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - } - }, - "reduce-css-calc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz", - "integrity": "sha1-dHyRTgSWFKTJz7umKYca0dKSdxY=", - "dev": true, - "requires": { - "balanced-match": "^0.4.2", - "math-expression-evaluator": "^1.2.14", - "reduce-function-call": "^1.0.1" - }, - "dependencies": { - "balanced-match": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", - "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", - "dev": true - } - } - }, - "reduce-function-call": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/reduce-function-call/-/reduce-function-call-1.0.2.tgz", - "integrity": "sha1-WiAL+S4ON3UXUv5FsKszD9S2vpk=", - "dev": true, - "requires": { - "balanced-match": "^0.4.2" - }, - "dependencies": { - "balanced-match": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", - "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", - "dev": true - } - } - }, - "redux": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/redux/-/redux-3.7.2.tgz", - "integrity": "sha512-pNqnf9q1hI5HHZRBkj3bAngGZW/JMCmexDlOxw4XagXY2o1327nHH54LoTjiPJ0gizoqPDRqWyX/00g0hD6w+A==", - "requires": { - "lodash": "^4.2.1", - "lodash-es": "^4.2.1", - "loose-envify": "^1.1.0", - "symbol-observable": "^1.0.3" - } - }, - "redux-form": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/redux-form/-/redux-form-7.0.4.tgz", - "integrity": "sha512-dGnzNCz2VY2W/UVBk3WbhjEq9hXzLvqndgml93vd3on+ZSOKWySsBgXXHSVwrmCZyK8fm/ew8GLYJa3HsR/XEw==", - "requires": { - "deep-equal": "^1.0.1", - "es6-error": "^4.0.0", - "hoist-non-react-statics": "^2.2.1", - "invariant": "^2.2.2", - "is-promise": "^2.1.0", - "lodash": "^4.17.3", - "lodash-es": "^4.17.3", - "prop-types": "^15.5.9" - }, - "dependencies": { - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=" - } - } - }, - "redux-thunk": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.2.0.tgz", - "integrity": "sha1-5hWhbha0ehmlFXZhM9Hj6Zt4UuU=" - }, - "regenerate": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=" - }, - "regenerator-transform": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", - "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", - "dev": true, - "requires": { - "babel-runtime": "^6.18.0", - "babel-types": "^6.19.0", - "private": "^0.1.6" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "dev": true, - "requires": { - "is-equal-shallow": "^0.1.3" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "registry-auth-token": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", - "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", - "dev": true, - "requires": { - "rc": "^1.1.6", - "safe-buffer": "^5.0.1" - } - }, - "registry-url": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", - "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", - "dev": true, - "requires": { - "rc": "^1.0.1" - } - }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", - "dev": true - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "renderkid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.1.tgz", - "integrity": "sha1-iYyr/Ivt5Le5ETWj/9Mj5YwNsxk=", - "dev": true, - "requires": { - "css-select": "^1.1.0", - "dom-converter": "~0.1", - "htmlparser2": "~3.3.0", - "strip-ansi": "^3.0.0", - "utila": "~0.3" - }, - "dependencies": { - "utila": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", - "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=", - "dev": true - } - } - }, - "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "req-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", - "integrity": "sha1-1AgrTURZgDZkD7c93qAe1T20nrw=", - "dev": true, - "requires": { - "req-from": "^2.0.0" - } - }, - "req-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-from/-/req-from-2.0.0.tgz", - "integrity": "sha1-10GI5H+TeW9Kpx327jWuaJ8+DnA=", - "dev": true, - "requires": { - "resolve-from": "^3.0.0" - } - }, - "request": { - "version": "2.87.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", - "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.6.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.1", - "forever-agent": "~0.6.1", - "form-data": "~2.3.1", - "har-validator": "~5.0.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.17", - "oauth-sign": "~0.8.2", - "performance-now": "^2.1.0", - "qs": "~6.5.1", - "safe-buffer": "^5.1.1", - "tough-cookie": "~2.3.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.1.0" - }, - "dependencies": { - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" - } - } - }, - "request-promise-core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", - "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", - "dev": true, - "requires": { - "lodash": "^4.13.1" - } - }, - "request-promise-native": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", - "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", - "dev": true, - "requires": { - "request-promise-core": "1.1.1", - "stealthy-require": "^1.1.0", - "tough-cookie": ">=2.3.3" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - }, - "require-from-string": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz", - "integrity": "sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg=" - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true - }, - "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", - "requires": { - "path-parse": "^1.0.5" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "resumer": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/resumer/-/resumer-0.0.0.tgz", - "integrity": "sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k=", - "requires": { - "through": "~2.3.4" - } - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "requires": { - "glob": "^7.0.5" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "rlp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.1.0.tgz", - "integrity": "sha512-93U7IKH5j7nmXFVg19MeNBGzQW5uXW1pmCuKY8veeKIhYTE32C2d0mOegfiIAfXcHOKJjjPlJisn8iHDF5AezA==", - "requires": { - "safe-buffer": "^5.1.1" - } - }, - "rsa-pem-to-jwk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/rsa-pem-to-jwk/-/rsa-pem-to-jwk-1.1.3.tgz", - "integrity": "sha1-JF52vbfnI0z+58oDLTG1TDj6uY4=", - "requires": { - "object-assign": "^2.0.0", - "rsa-unpack": "0.0.6" - }, - "dependencies": { - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=" - } - } - }, - "rsa-unpack": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/rsa-unpack/-/rsa-unpack-0.0.6.tgz", - "integrity": "sha1-9Q69VqYoN45jHylxYQJs6atO3bo=", - "requires": { - "optimist": "~0.3.5" - } - }, - "run-queue": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", - "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", - "dev": true, - "requires": { - "aproba": "^1.1.1" - } - }, - "rustbn.js": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/rustbn.js/-/rustbn.js-0.1.2.tgz", - "integrity": "sha512-bAkNqSHYdJdFsBC7Z11JgzYktL31HIpB2o70jZcGiL1U1TVtPyvaVhDrGWwS8uZtaqwW2k6NOPGZCqW/Dgh5Lg==" - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "sass-graph": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", - "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", - "dev": true, - "requires": { - "glob": "^7.0.0", - "lodash": "^4.0.0", - "scss-tokenizer": "^0.2.3", - "yargs": "^7.0.0" - }, - "dependencies": { - "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" - } - }, - "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - } - } - } - }, - "sass-loader": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-6.0.6.tgz", - "integrity": "sha512-c3/Zc+iW+qqDip6kXPYLEgsAu2lf4xz0EZDplB7EmSUMda12U1sGJPetH55B/j9eu0bTtKzKlNPWWyYC7wFNyQ==", - "dev": true, - "requires": { - "async": "^2.1.5", - "clone-deep": "^0.3.0", - "loader-utils": "^1.0.1", - "lodash.tail": "^4.1.1", - "pify": "^3.0.0" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - } - } - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, - "schema-utils": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", - "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", - "dev": true, - "requires": { - "ajv": "^5.0.0" - } - }, - "scrypt": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/scrypt/-/scrypt-6.0.3.tgz", - "integrity": "sha1-BOAUpWgrU/pQwtXM4WfXGcBthw0=", - "requires": { - "nan": "^2.0.8" - } - }, - "scrypt.js": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/scrypt.js/-/scrypt.js-0.2.0.tgz", - "integrity": "sha1-r40UZbcemZARC+38WTuUeeA6ito=", - "requires": { - "scrypt": "^6.0.2", - "scryptsy": "^1.2.1" - } - }, - "scryptsy": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/scryptsy/-/scryptsy-1.2.1.tgz", - "integrity": "sha1-oyJfpLJST4AnAHYeKFW987LZIWM=", - "requires": { - "pbkdf2": "^3.0.3" - } - }, - "scss-tokenizer": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", - "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", - "dev": true, - "requires": { - "js-base64": "^2.1.8", - "source-map": "^0.4.2" - } - }, - "secp256k1": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.0.tgz", - "integrity": "sha512-e5QIJl8W7Y4tT6LHffVcZAxJjvpgE5Owawv6/XCYPQljE9aP2NFFddQ8OYMKhdLshNu88FfL3qCN3/xYkXGRsA==", - "requires": { - "bindings": "^1.2.1", - "bip66": "^1.1.3", - "bn.js": "^4.11.3", - "create-hash": "^1.1.2", - "drbg.js": "^1.0.1", - "elliptic": "^6.2.3", - "nan": "^2.2.1", - "safe-buffer": "^5.1.0" - } - }, - "seedrandom": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz", - "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=", - "dev": true - }, - "select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", - "dev": true - }, - "selfsigned": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.3.tgz", - "integrity": "sha512-vmZenZ+8Al3NLHkWnhBQ0x6BkML1eCP2xEi3JE+f3D9wW9fipD9NNJHYtE9XJM4TsPaHGZJIamrSI6MTg1dU2Q==", - "dev": true, - "requires": { - "node-forge": "0.7.5" - } - }, - "semaphore": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/semaphore/-/semaphore-1.1.0.tgz", - "integrity": "sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA==" - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" - }, - "send": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", - "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.6.2", - "mime": "1.4.1", - "ms": "2.0.0", - "on-finished": "~2.3.0", - "range-parser": "~1.2.0", - "statuses": "~1.4.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" - } - } - }, - "serialize-javascript": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.5.0.tgz", - "integrity": "sha512-Ga8c8NjAAp46Br4+0oZ2WxJCwIzwP60Gq1YPgU+39PiTVxyed/iKE/zyZI6+UlVYH5Q4PaQdHhcegIFPZTUfoQ==", - "dev": true - }, - "serve": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/serve/-/serve-10.0.1.tgz", - "integrity": "sha512-tqEY5r354//sfhTnFwws9BF+YLy1rg9OYC/FGl2oqq/kvMpXml0frqVPIv8UxA0C8p3dhnbnNqzfpjqQdI/7zA==", - "dev": true, - "requires": { - "@zeit/schemas": "2.6.0", - "ajv": "6.5.3", - "arg": "2.0.0", - "boxen": "1.3.0", - "chalk": "2.4.1", - "clipboardy": "1.2.3", - "serve-handler": "5.0.0", - "update-check": "1.5.2" - }, - "dependencies": { - "ajv": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz", - "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } - } - }, - "serve-handler": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-5.0.0.tgz", - "integrity": "sha512-VbNr1Yk4cDMAdIyVr5J1vPtGuXUsuu0R8iht+reK0g8t48fSuGWqnsIYVh3xXFJynFDHMLbPQ9mll+/hhmuGEQ==", - "dev": true, - "requires": { - "bytes": "3.0.0", - "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", - "glob-slash": "1.0.0", - "mime-types": "2.1.18", - "minimatch": "3.0.4", - "path-is-inside": "1.0.2", - "path-to-regexp": "2.2.1", - "range-parser": "1.2.0" - }, - "dependencies": { - "path-to-regexp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", - "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==", - "dev": true - } - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", - "dev": true, - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "serve-static": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", - "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.2", - "send": "0.16.2" - } - }, - "servify": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/servify/-/servify-0.1.12.tgz", - "integrity": "sha512-/xE6GvsKKqyo1BAY+KxOWXcLpPsUUyji7Qg3bVD7hh1eRze5bR1uYiuDA/k3Gof1s9BTzQZEJK8sNcNGFIzeWw==", - "requires": { - "body-parser": "^1.16.0", - "cors": "^2.8.1", - "express": "^4.14.0", - "request": "^2.79.0", - "xhr": "^2.3.3" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" - }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "sha3": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/sha3/-/sha3-1.2.2.tgz", - "integrity": "sha1-pmxQmN5MJbyIM27ItIF9AFvKe6k=", - "requires": { - "nan": "2.10.0" - } - }, - "shallow-clone": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-0.1.2.tgz", - "integrity": "sha1-WQnodLp3EG1zrEFM/sH/yofZcGA=", - "dev": true, - "requires": { - "is-extendable": "^0.1.1", - "kind-of": "^2.0.1", - "lazy-cache": "^0.2.3", - "mixin-object": "^2.0.1" - }, - "dependencies": { - "kind-of": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-2.0.1.tgz", - "integrity": "sha1-AY7HpM5+OobLkUG+UZ0kyPqpgbU=", - "dev": true, - "requires": { - "is-buffer": "^1.0.2" - } - }, - "lazy-cache": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", - "integrity": "sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=", - "dev": true - } - } - }, - "shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", - "dev": true, - "requires": { - "json-stable-stringify": "~0.0.0", - "sha.js": "~2.4.4" - }, - "dependencies": { - "json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } - } - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "shell-quote": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", - "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", - "dev": true, - "requires": { - "array-filter": "~0.0.0", - "array-map": "~0.0.0", - "array-reduce": "~0.0.0", - "jsonify": "~0.0.0" - } - }, - "shelljs": { - "version": "0.7.8", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", - "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", - "dev": true, - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - } - }, - "sigmund": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=" - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "signed-varint": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/signed-varint/-/signed-varint-2.0.1.tgz", - "integrity": "sha1-UKmYnafJjCxh2tEZvJdHDvhSgSk=", - "requires": { - "varint": "~5.0.0" - } - }, - "simple-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", - "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=" - }, - "simple-get": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.1.tgz", - "integrity": "sha512-lSSHRSw3mQNUGPAYRqo7xy9dhKmxFXIjLjp4KHpf99GEH2VH7C3AM+Qfx6du6jhfUi6Vm7XnbEVEf7Wb6N8jRw==", - "requires": { - "decompress-response": "^3.3.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "requires": { - "kind-of": "^3.2.0" - } - }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", - "dev": true, - "requires": { - "hoek": "2.x.x" - }, - "dependencies": { - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", - "dev": true - } - } - }, - "sockjs": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.18.tgz", - "integrity": "sha1-2bKJMWyn33dZXvKZ4HXw+TfrQgc=", - "dev": true, - "requires": { - "faye-websocket": "^0.10.0", - "uuid": "^2.0.2" - } - }, - "sockjs-client": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.1.4.tgz", - "integrity": "sha1-W6vjhrd15M8U51IJEUUmVAFsixI=", - "dev": true, - "requires": { - "debug": "^2.6.6", - "eventsource": "0.1.6", - "faye-websocket": "~0.11.0", - "inherits": "^2.0.1", - "json3": "^3.3.2", - "url-parse": "^1.1.8" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "faye-websocket": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.1.tgz", - "integrity": "sha1-8O/hjE9W5PQK/H4Gxxn9XuYYjzg=", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - } - } - }, - "sol-digger": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/sol-digger/-/sol-digger-0.0.2.tgz", - "integrity": "sha1-QGxKnTHiaef4jrHC6hATGOXgkCU=", - "dev": true - }, - "sol-explore": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/sol-explore/-/sol-explore-1.6.2.tgz", - "integrity": "sha1-Q66MQZ/TrAVqBfip0fsQIs1B7MI=", - "dev": true - }, - "solc": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.4.24.tgz", - "integrity": "sha512-2xd7Cf1HeVwrIb6Bu1cwY2/TaLRodrppCq3l7rhLimFQgmxptXhTC3+/wesVLpB09F1A2kZgvbMOgH7wvhFnBQ==", - "requires": { - "fs-extra": "^0.30.0", - "memorystream": "^0.3.1", - "require-from-string": "^1.1.0", - "semver": "^5.3.0", - "yargs": "^4.7.1" - } - }, - "solidify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/solidify/-/solidify-3.0.0.tgz", - "integrity": "sha512-OiJxHlz2s35SIqMommRnpJjegt7glEr6CL12OeC/mBMYJZzivpwA6X9S3gD5kXxZMJ5nXJtbD7g9r1TJc72X5g==" - }, - "solidity-parser": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/solidity-parser/-/solidity-parser-0.4.0.tgz", - "integrity": "sha1-o0PxPac8kWgyeQNGgOgMSR3jQPo=", - "requires": { - "mocha": "^2.4.5", - "pegjs": "^0.10.0", - "yargs": "^4.6.0" - } - }, - "solidity-parser-antlr": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/solidity-parser-antlr/-/solidity-parser-antlr-0.2.15.tgz", - "integrity": "sha512-EzRI8/TR/ljTXkZAyAjb0w4G20wH2XM7pcNf87ifdV825AbUv7DkY7HmiZCTj6NeKtIx8Y1s0NZWPbj+JTp8Zw==", - "dev": true - }, - "solium": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/solium/-/solium-1.0.11.tgz", - "integrity": "sha512-2gHfQ5bviiamjl4+8tVqPQzFHpmbbRliwbKmwR+TD60ps07SDMiFfSHrLY2f/EuxhLw2Csv1xwtrnBMwvXSnYQ==", - "dev": true, - "requires": { - "ajv": "^5.2.2", - "chokidar": "^1.6.0", - "colors": "^1.1.2", - "commander": "^2.9.0", - "js-string-escape": "^1.0.1", - "lodash": "^4.14.2", - "sol-digger": "0.0.2", - "sol-explore": "^1.6.1", - "solium-plugin-security": "0.0.2", - "solparse": "2.0.2", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "dev": true, - "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "dev": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - } - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "diff": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", - "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "growl": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", - "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", - "dev": true - }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "mocha": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.1.0.tgz", - "integrity": "sha512-0RVnjg1HJsXY2YFDoTNzcc1NKhYuXKRrBAG2gDygmJJA136Cs2QlRliZG1mA0ap7cuaT30mw16luAeln+4RiNA==", - "dev": true, - "requires": { - "browser-stdout": "1.3.0", - "commander": "2.11.0", - "debug": "3.1.0", - "diff": "3.3.1", - "escape-string-regexp": "1.0.5", - "glob": "7.1.2", - "growl": "1.10.3", - "he": "1.1.1", - "mkdirp": "0.5.1", - "supports-color": "4.4.0" - }, - "dependencies": { - "commander": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", - "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", - "dev": true - } - } - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "solparse": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/solparse/-/solparse-2.0.2.tgz", - "integrity": "sha512-KJioOVhTN3XbX5O+8YuJZ/kQIXZyn3YFICBgHKvDaY5VzhO0RBs/EeE3AigEfoqCDn8/Ui6ugrmts1n3/m1kuQ==", - "dev": true, - "requires": { - "mocha": "^4.0.1", - "pegjs": "^0.10.0", - "yargs": "^10.0.3" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "supports-color": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", - "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", - "dev": true, - "requires": { - "has-flag": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "yargs": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz", - "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^8.1.0" - } - }, - "yargs-parser": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz", - "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - }, - "solium-plugin-security": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/solium-plugin-security/-/solium-plugin-security-0.0.2.tgz", - "integrity": "sha512-2xjJoAWeY1Ynz1ExxtCVSABAMPrDV/AqhjE/X6jXMHJ1ubT+j9kDt5HKaHNOCa2MWoTna281HzcZlTioR1/ObA==", - "dev": true - }, - "sort-keys": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", - "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", - "dev": true, - "requires": { - "is-plain-obj": "^1.0.0" - } - }, - "source-list-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", - "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", - "dev": true - }, - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "requires": { - "amdefine": ">=0.0.4" - } - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "spawn-args": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/spawn-args/-/spawn-args-0.1.0.tgz", - "integrity": "sha1-PgIyoFcbOHkH+LP1RKpTHGIkhIw=", - "dev": true - }, - "spdx-correct": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", - "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==" - }, - "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", - "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==" - }, - "spdy": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz", - "integrity": "sha1-Qv9B7OXMD5mjpsKKq7c/XDsDrLw=", - "dev": true, - "requires": { - "debug": "^2.6.8", - "handle-thing": "^1.2.5", - "http-deceiver": "^1.2.7", - "safe-buffer": "^5.0.1", - "select-hose": "^2.0.0", - "spdy-transport": "^2.0.18" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "spdy-transport": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-2.1.0.tgz", - "integrity": "sha512-bpUeGpZcmZ692rrTiqf9/2EUakI6/kXX1Rpe0ib/DyOzbiexVfXkw6GnvI9hVGvIwVaUhkaBojjCZwLNRGQg1g==", - "dev": true, - "requires": { - "debug": "^2.6.8", - "detect-node": "^2.0.3", - "hpack.js": "^2.1.6", - "obuf": "^1.1.1", - "readable-stream": "^2.2.9", - "safe-buffer": "^5.0.1", - "wbuf": "^1.7.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", - "requires": { - "through2": "^2.0.2" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "sshpk": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", - "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "optional": true - } - } - }, - "ssri": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-5.3.0.tgz", - "integrity": "sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.1" - } - }, - "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" - }, - "stdout-stream": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", - "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", - "dev": true - }, - "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", - "dev": true, - "requires": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } - }, - "stream-each": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.2.tgz", - "integrity": "sha512-mc1dbFhGBxvTM3bIWmAAINbqiuAk9TATcfIQC8P+/+HJefgaiTlMn2dHvkX8qlI12KeYKSQ1Ua9RrIqrn1VPoA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, - "stream-splicer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", - "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-to-pull-stream": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/stream-to-pull-stream/-/stream-to-pull-stream-1.7.2.tgz", - "integrity": "sha1-dXYJrhzr0zx0MtSvvjH/eGULnd4=", - "requires": { - "looper": "^3.0.0", - "pull-stream": "^3.2.3" - } - }, - "streamifier": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", - "integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=" - }, - "strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string.prototype.trim": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", - "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.0", - "function-bind": "^1.0.2" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "stringstream": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", - "integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA==", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "strip-hex-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", - "integrity": "sha1-DF8VX+8RUTczd96du1iNoFUA428=", - "requires": { - "is-hex-prefixed": "1.0.0" - } - }, - "strip-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "style-loader": { - "version": "0.18.2", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.18.2.tgz", - "integrity": "sha512-WPpJPZGUxWYHWIUMNNOYqql7zh85zGmr84FdTVWq52WTIkqlW9xSxD3QYWi/T31cqn9UNSsietVEgGn2aaSCzw==", - "dev": true, - "requires": { - "loader-utils": "^1.0.2", - "schema-utils": "^0.3.0" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - } - } - }, - "subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", - "dev": true, - "requires": { - "minimist": "^1.1.0" - } - }, - "supports-color": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-1.2.0.tgz", - "integrity": "sha1-/x7R5hFp0Gs88tWI4YixjYhH4X4=" - }, - "svgo": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", - "integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=", - "dev": true, - "requires": { - "coa": "~1.0.1", - "colors": "~1.1.2", - "csso": "~2.3.1", - "js-yaml": "~3.7.0", - "mkdirp": "~0.5.1", - "sax": "~1.2.1", - "whet.extend": "~0.9.9" - } - }, - "symbol-observable": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", - "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==" - }, - "sync-request": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-6.0.0.tgz", - "integrity": "sha512-jGNIAlCi9iU4X3Dm4oQnNQshDD3h0/1A7r79LyqjbjUnj69sX6mShAXlhRXgImsfVKtTcnra1jfzabdZvp+Lmw==", - "dev": true, - "requires": { - "http-response-object": "^3.0.1", - "sync-rpc": "^1.2.1", - "then-request": "^6.0.0" - } - }, - "sync-rpc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.4.tgz", - "integrity": "sha512-Iug+t1ICVFenUcTnDu8WXFnT+k8IVoLKGh8VA3eXUtl2Rt9SjKX3YEv33OenABqpTPL9QEaHv1+CNn2LK8vMow==", - "dev": true, - "requires": { - "get-port": "^3.1.0" - } - }, - "syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "requires": { - "acorn-node": "^1.2.0" - } - }, - "tapable": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", - "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", - "dev": true - }, - "tape": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/tape/-/tape-4.9.1.tgz", - "integrity": "sha512-6fKIXknLpoe/Jp4rzHKFPpJUHDHDqn8jus99IfPnHIjyz78HYlefTGD3b5EkbQzuLfaEvmfPK3IolLgq2xT3kw==", - "requires": { - "deep-equal": "~1.0.1", - "defined": "~1.0.0", - "for-each": "~0.3.3", - "function-bind": "~1.1.1", - "glob": "~7.1.2", - "has": "~1.0.3", - "inherits": "~2.0.3", - "minimist": "~1.2.0", - "object-inspect": "~1.6.0", - "resolve": "~1.7.1", - "resumer": "~0.0.0", - "string.prototype.trim": "~1.1.2", - "through": "~2.3.8" - } - }, - "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", - "dev": true, - "requires": { - "block-stream": "*", - "fstream": "^1.0.2", - "inherits": "2" - } - }, - "tar-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.1.tgz", - "integrity": "sha512-IFLM5wp3QrJODQFPm6/to3LJZrONdBY/otxcvDIQzu217zKye6yVR3hhi9lAjrC2Z+m/j5oDxMPb1qcd8cIvpA==", - "requires": { - "bl": "^1.0.0", - "buffer-alloc": "^1.1.0", - "end-of-stream": "^1.0.0", - "fs-constants": "^1.0.0", - "readable-stream": "^2.3.0", - "to-buffer": "^1.1.0", - "xtend": "^4.0.0" - } - }, - "temp": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz", - "integrity": "sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k=", - "dev": true, - "requires": { - "os-tmpdir": "^1.0.0", - "rimraf": "~2.2.6" - }, - "dependencies": { - "rimraf": { - "version": "2.2.8", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", - "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", - "dev": true - } - } - }, - "term-size": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", - "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", - "dev": true, - "requires": { - "execa": "^0.7.0" - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "then-request": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.0.tgz", - "integrity": "sha512-xA+7uEMc+jsQIoyySJ93Ad08Kuqnik7u6jLS5hR91Z3smAoCfL3M8/MqMlobAa9gzBfO9pA88A/AntfepkkMJQ==", - "dev": true, - "requires": { - "@types/concat-stream": "^1.6.0", - "@types/form-data": "0.0.33", - "@types/node": "^8.0.0", - "@types/qs": "^6.2.31", - "caseless": "~0.12.0", - "concat-stream": "^1.6.0", - "form-data": "^2.2.0", - "http-basic": "^7.0.0", - "http-response-object": "^3.0.1", - "promise": "^8.0.0", - "qs": "^6.4.0" - }, - "dependencies": { - "@types/node": { - "version": "8.10.20", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.20.tgz", - "integrity": "sha512-M7x8+5D1k/CuA6jhiwuSCmE8sbUWJF0wYsjcig9WrXvwUI5ArEoUBdOXpV4JcEMrLp02/QbDjw+kI+vQeKyQgg==", - "dev": true - }, - "promise": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.0.1.tgz", - "integrity": "sha1-5F1osAoXZHttpxG/he1u1HII9FA=", - "dev": true, - "requires": { - "asap": "~2.0.3" - } - } - } - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" - }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", - "requires": { - "readable-stream": "^2.1.5", - "xtend": "~4.0.1" - } - }, - "thunky": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.0.2.tgz", - "integrity": "sha1-qGLgGOP7HqLsP85dVWBc9X8kc3E=", - "dev": true - }, - "time-stamp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", - "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=", - "dev": true - }, - "timed-out": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", - "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" - }, - "timers-browserify": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", - "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" - } - }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=" - }, - "to-buffer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", - "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - }, - "to-iso-string": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/to-iso-string/-/to-iso-string-0.0.2.tgz", - "integrity": "sha1-TcGeZk38y+Jb2NtQiwDG2hWCVdE=" - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "toposort": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/toposort/-/toposort-1.0.7.tgz", - "integrity": "sha1-LmhELZ9k7HILjMieZEOsbKqVACk=", - "dev": true - }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "requires": { - "punycode": "^1.4.1" - } - }, - "trim": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", - "integrity": "sha1-WFhUf2spB1fulczMZm+1AITEYN0=" - }, - "trim-newlines": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", - "dev": true - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, - "truffle": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/truffle/-/truffle-2.1.2.tgz", - "integrity": "sha1-HuYbnXhfby7bQoAVeeMfFbZsN0Y=", - "dev": true, - "requires": { - "async": "^1.4.2", - "babel-polyfill": "^6.7.4", - "babel-preset-es2015": "^6.3.13", - "babel-preset-stage-2": "^6.3.13", - "babel-register": "^6.7.2", - "chai": "^3.3.0", - "chokidar": "^1.4.2", - "colors": "^1.1.2", - "cpr": "^0.4.3", - "del": "^2.2.0", - "ether-pudding": "^3.1.2", - "finalhandler": "^0.4.0", - "find-up": "^1.1.2", - "graphlib": "^2.0.0", - "jsmin": "^1.0.1", - "lodash": "^4.5.1", - "mkdirp": "^0.5.1", - "mocha": "^2.3.3", - "node-dir": "^0.1.10", - "serve-static": "^1.10.0", - "solc": "0.4.8", - "solidity-parser": "^0.1.1", - "spawn-args": "^0.1.0", - "temp": "^0.8.3", - "truffle-default-builder": "^1.0.3", - "web3": "^0.16.0", - "yargs": "^3.27.0" - }, - "dependencies": { - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "dev": true, - "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "dev": true - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - }, - "chai": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", - "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", - "dev": true, - "requires": { - "assertion-error": "^1.0.1", - "deep-eql": "^0.1.3", - "type-detect": "^1.0.0" - } - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "dev": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - } - }, - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "deep-eql": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", - "dev": true, - "requires": { - "type-detect": "0.1.1" - }, - "dependencies": { - "type-detect": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true - } - } - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "finalhandler": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.1.tgz", - "integrity": "sha1-haF8bFmpRxfSYtYSMNSw6+PUoU0=", - "dev": true, - "requires": { - "debug": "~2.2.0", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "unpipe": "~1.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "pegjs": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/pegjs/-/pegjs-0.9.0.tgz", - "integrity": "sha1-9q76LjzlYWkgjlIXnf5B+JFBo2k=", - "dev": true - }, - "solc": { - "version": "0.4.8", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.4.8.tgz", - "integrity": "sha1-lqu+4SZjQa6X+0vcOrzJvBtQUqs=", - "dev": true, - "requires": { - "fs-extra": "^0.30.0", - "memorystream": "^0.3.1", - "require-from-string": "^1.1.0", - "semver": "^5.3.0", - "yargs": "^4.7.1" - }, - "dependencies": { - "yargs": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", - "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", - "dev": true, - "requires": { - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "lodash.assign": "^4.0.3", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.1", - "which-module": "^1.0.0", - "window-size": "^0.2.0", - "y18n": "^3.2.1", - "yargs-parser": "^2.4.1" - } - } - } - }, - "solidity-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/solidity-parser/-/solidity-parser-0.1.1.tgz", - "integrity": "sha1-D7O2Ze1wQb70V1li7kJufNnQqQo=", - "dev": true, - "requires": { - "mocha": "^2.4.5", - "pegjs": "^0.9.0", - "yargs": "^4.6.0" - }, - "dependencies": { - "yargs": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", - "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", - "dev": true, - "requires": { - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "lodash.assign": "^4.0.3", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.1", - "which-module": "^1.0.0", - "window-size": "^0.2.0", - "y18n": "^3.2.1", - "yargs-parser": "^2.4.1" - } - } - } - }, - "type-detect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", - "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", - "dev": true - }, - "web3": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.16.0.tgz", - "integrity": "sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - }, - "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "dev": true, - "requires": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" - }, - "dependencies": { - "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=", - "dev": true - } - } - } - } - }, - "truffle-blockchain-utils": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/truffle-blockchain-utils/-/truffle-blockchain-utils-0.0.1.tgz", - "integrity": "sha1-B6WOVbsFVaZCCMkRnAsE/+FGSqQ=", - "dev": true, - "requires": { - "web3": "^0.18.0" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "dev": true - }, - "web3": { - "version": "0.18.4", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.18.4.tgz", - "integrity": "sha1-gewXhBRUkfLqqJVbMcBgSeB8Xn0=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xhr2": "*", - "xmlhttprequest": "*" - } - } - } - }, - "truffle-contract": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/truffle-contract/-/truffle-contract-1.1.8.tgz", - "integrity": "sha1-xHGCcU3Wr0Nz/I4vTj4mp1jnWFc=", - "dev": true, - "requires": { - "ethjs-abi": "^0.1.8", - "truffle-blockchain-utils": "0.0.1", - "truffle-contract-schema": "0.0.5", - "web3": "^0.16.0" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "dev": true - }, - "web3": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.16.0.tgz", - "integrity": "sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - } - } - }, - "truffle-contract-schema": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/truffle-contract-schema/-/truffle-contract-schema-0.0.5.tgz", - "integrity": "sha1-Xp0gvQvyon/pQxB0gknUhO7kmWE=", - "dev": true, - "requires": { - "crypto-js": "^3.1.9-1" - }, - "dependencies": { - "crypto-js": { - "version": "3.1.9-1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz", - "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg=", - "dev": true - } - } - }, - "truffle-default-builder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/truffle-default-builder/-/truffle-default-builder-1.0.3.tgz", - "integrity": "sha1-q1V/WaHJyES9s8T/v5iGQEur8ZQ=", - "dev": true, - "requires": { - "async": "^1.5.2", - "babel-core": "^6.4.0", - "babel-plugin-syntax-jsx": "^6.3.13", - "babel-plugin-transform-react-jsx": "^6.4.0", - "babel-preset-es2015": "^6.3.13", - "babel-preset-react": "^6.3.13", - "babel-preset-stage-2": "^6.3.13", - "bluebird": "^3.1.1", - "browserify": "^13.0.1", - "coffee-script": "^1.10.0", - "colors": "^1.1.2", - "cpr": "^1.0.0", - "ether-pudding": "^3.0.0", - "lodash": "^4.0.0", - "mkdirp": "^0.5.1", - "node-sass": "^3.4.2", - "temp": "^0.8.3", - "uglify-js": "^2.6.1", - "web3": "^0.16.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "cpr": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cpr/-/cpr-1.1.2.tgz", - "integrity": "sha1-Oef5Y8X/TdUuIdAL/Tg3QBV5LWg=", - "dev": true, - "requires": { - "graceful-fs": "~4.1.2", - "mkdirp": "~0.5.0", - "rimraf": "~2.4.3" - } - }, - "glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "node-sass": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-3.13.1.tgz", - "integrity": "sha1-ckD7v/I5YwS0IjUn7TAgWJwAT8I=", - "dev": true, - "requires": { - "async-foreach": "^0.1.3", - "chalk": "^1.1.1", - "cross-spawn": "^3.0.0", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "in-publish": "^2.0.0", - "lodash.assign": "^4.2.0", - "lodash.clonedeep": "^4.3.2", - "meow": "^3.7.0", - "mkdirp": "^0.5.1", - "nan": "^2.3.2", - "node-gyp": "^3.3.1", - "npmlog": "^4.0.0", - "request": "^2.61.0", - "sass-graph": "^2.1.1" - }, - "dependencies": { - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "rimraf": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", - "integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=", - "dev": true, - "requires": { - "glob": "^6.0.1" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "web3": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.16.0.tgz", - "integrity": "sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - } - } - }, - "truffle-hdwallet-provider": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/truffle-hdwallet-provider/-/truffle-hdwallet-provider-0.0.3.tgz", - "integrity": "sha1-Dh3gIQS3PTh14c9wkzBbTqii2EM=", - "requires": { - "bip39": "^2.2.0", - "ethereumjs-wallet": "^0.6.0", - "web3": "^0.18.2", - "web3-provider-engine": "^8.4.0" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2" - }, - "web3": { - "version": "0.18.4", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.18.4.tgz", - "integrity": "sha1-gewXhBRUkfLqqJVbMcBgSeB8Xn0=", - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xhr2": "*", - "xmlhttprequest": "*" - } - } - } - }, - "truffle-solidity-loader": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/truffle-solidity-loader/-/truffle-solidity-loader-0.0.8.tgz", - "integrity": "sha1-XTTfC1lrhYWeMbrw6b4F+WE9H3Y=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "ether-pudding": "^3.2.0", - "find-up": "^1.1.2", - "findup": "^0.1.5", - "lodash.merge": "^4.6.0", - "solidity-parser": "^0.1.0", - "temp": "^0.8.3", - "truffle": "^2.0.8", - "web3": "^0.17.0-alpha" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "pegjs": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/pegjs/-/pegjs-0.9.0.tgz", - "integrity": "sha1-9q76LjzlYWkgjlIXnf5B+JFBo2k=", - "dev": true - }, - "solidity-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/solidity-parser/-/solidity-parser-0.1.1.tgz", - "integrity": "sha1-D7O2Ze1wQb70V1li7kJufNnQqQo=", - "dev": true, - "requires": { - "mocha": "^2.4.5", - "pegjs": "^0.9.0", - "yargs": "^4.6.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "web3": { - "version": "0.17.0-beta", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.17.0-beta.tgz", - "integrity": "sha1-V684JFv/ejIJn3zleA+tW7wA2ls=", - "dev": true, - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - } - } - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", - "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" - }, - "type-is": { - "version": "1.6.16", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", - "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.18" - } - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" - }, - "ua-parser-js": { - "version": "0.7.18", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.18.tgz", - "integrity": "sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA==" - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true - }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true - }, - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true - }, - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": true - }, - "uglifyjs-webpack-plugin": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.2.2.tgz", - "integrity": "sha512-CG/NvzXfemUAm5Y4Guh5eEaJYHtkG7kKNpXEJHp9QpxsFVB5/qKvYWoMaq4sa99ccZ0hM3MK8vQV9XPZB4357A==", - "dev": true, - "requires": { - "cacache": "^10.0.1", - "find-cache-dir": "^1.0.0", - "schema-utils": "^0.4.2", - "serialize-javascript": "^1.4.0", - "source-map": "^0.6.1", - "uglify-es": "^3.3.4", - "webpack-sources": "^1.1.0", - "worker-farm": "^1.5.2" - }, - "dependencies": { - "ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" - } - }, - "ajv-keywords": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", - "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", - "dev": true - }, - "commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", - "dev": true - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.5.tgz", - "integrity": "sha512-yYrjb9TX2k/J1Y5UNy3KYdZq10xhYcF8nMpAW6o3hy6Q8WSIEf9lJHG/ePnOBfziPM3fvQwfOwa13U/Fh8qTfA==", - "dev": true, - "requires": { - "ajv": "^6.1.0", - "ajv-keywords": "^3.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "uglify-es": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", - "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", - "dev": true, - "requires": { - "commander": "~2.13.0", - "source-map": "~0.6.1" - } - } - } - }, - "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" - }, - "umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true - }, - "undeclared-identifiers": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz", - "integrity": "sha512-13EaeocO4edF/3JKime9rD7oB6QI8llAGhgn5fKOPyfkJbRb6NFv9pYV6dFEmpa4uRjKeBqLZP8GpuzqHlKDMQ==", - "dev": true, - "requires": { - "acorn-node": "^1.3.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - } - }, - "underscore": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", - "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "uniq": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", - "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", - "dev": true - }, - "uniqs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", - "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", - "dev": true - }, - "unique-filename": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", - "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", - "dev": true, - "requires": { - "unique-slug": "^2.0.0" - } - }, - "unique-slug": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", - "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" - } - }, - "unorm": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz", - "integrity": "sha1-NkIA1fE2RsqLzURJAnEzVhR5IwA=" - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - } - } - }, - "upath": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", - "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==", - "dev": true - }, - "update-check": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/update-check/-/update-check-1.5.2.tgz", - "integrity": "sha512-1TrmYLuLj/5ZovwUS7fFd1jMH3NnFDN1y1A8dboedIDt7zs/zJMo6TwwlhYKkSeEwzleeiSBV5/3c9ufAQWDaQ==", - "dev": true, - "requires": { - "registry-auth-token": "3.3.2", - "registry-url": "3.1.0" - } - }, - "upper-case": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", - "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=", - "dev": true - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "url-loader": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-0.5.9.tgz", - "integrity": "sha512-B7QYFyvv+fOBqBVeefsxv6koWWtjmHaMFT6KZWti4KRw8YUD/hOU+3AECvXuzyVawIBx3z7zQRejXCDSO5kk1Q==", - "dev": true, - "requires": { - "loader-utils": "^1.0.2", - "mime": "1.3.x" - }, - "dependencies": { - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - }, - "mime": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz", - "integrity": "sha1-WR2E02U6awtKO5343lqoEI5y5eA=", - "dev": true - } - } - }, - "url-parse": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.1.tgz", - "integrity": "sha512-x95Td74QcvICAA0+qERaVkRpTGKyBHHYdwL2LXZm5t/gBtCB9KQSO/0zQgSTYEV1p0WcvSg79TLNPSvd5IDJMQ==", - "dev": true, - "requires": { - "querystringify": "^2.0.0", - "requires-port": "^1.0.0" - } - }, - "url-set-query": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", - "integrity": "sha1-AW6M/Xwg7gXK/neV6JK9BwL6ozk=" - }, - "use": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", - "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "utf8": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.2.tgz", - "integrity": "sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY=" - }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", - "dev": true - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" - }, - "uuid": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", - "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=" - }, - "validate-npm-package-license": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", - "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "varint": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.0.tgz", - "integrity": "sha1-2Ca4n3SQcy+rwMDtaT7Uddyynr8=" - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" - }, - "vendors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.2.tgz", - "integrity": "sha512-w/hry/368nO21AN9QljsaIhb9ZiZtZARoVH5f3CsFbawdLdayCgKRPup7CggujvySMxx0I91NOyxdVENohprLQ==", - "dev": true - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "vm-browserify": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", - "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", - "dev": true, - "requires": { - "indexof": "0.0.1" - } - }, - "warning": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/warning/-/warning-2.1.0.tgz", - "integrity": "sha1-ISINnGOvx3qMkhEeARr3Bc4MaQE=", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", - "dev": true, - "requires": { - "chokidar": "^2.0.2", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" - } - }, - "wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dev": true, - "requires": { - "minimalistic-assert": "^1.0.0" - } - }, - "web3": { - "version": "0.20.3", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.20.3.tgz", - "integrity": "sha1-yqRDc9yIFayHZ73ba6cwc5ZMqos=", - "requires": { - "bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xhr2": "*", - "xmlhttprequest": "*" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934", - "from": "bignumber.js@git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934" - } - } - }, - "web3-provider-engine": { - "version": "8.6.1", - "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-8.6.1.tgz", - "integrity": "sha1-TYbhnjDKr5ffNRUR7A9gE25bMOs=", - "requires": { - "async": "^2.1.2", - "clone": "^2.0.0", - "ethereumjs-block": "^1.2.2", - "ethereumjs-tx": "^1.2.0", - "ethereumjs-util": "^5.0.1", - "ethereumjs-vm": "^2.0.2", - "isomorphic-fetch": "^2.2.0", - "request": "^2.67.0", - "semaphore": "^1.0.3", - "solc": "^0.4.2", - "tape": "^4.4.0", - "web3": "^0.16.0", - "xhr": "^2.2.0", - "xtend": "^4.0.1" - }, - "dependencies": { - "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "from": "bignumber.js@git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9" - }, - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } - }, - "web3": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-0.16.0.tgz", - "integrity": "sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk=", - "requires": { - "bignumber.js": "git+https://github.com/debris/bignumber.js.git#c7a38de919ed75e6fb6ba38051986e294b328df9", - "crypto-js": "^3.1.4", - "utf8": "^2.1.1", - "xmlhttprequest": "*" - } - } - } - }, - "web3-utils": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.0.0-beta.34.tgz", - "integrity": "sha1-lBH8OarvOcpOBhafdiKX2f8CCXA=", - "requires": { - "bn.js": "4.11.6", - "eth-lib": "0.1.27", - "ethjs-unit": "0.1.6", - "number-to-bn": "1.7.0", - "randomhex": "0.1.5", - "underscore": "1.8.3", - "utf8": "2.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" - }, - "utf8": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.1.tgz", - "integrity": "sha1-LgHbAvfY0JRPdxBPFgnrDDBM92g=" - } - } - }, - "webcrypto-shim": { - "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", - "from": "webcrypto-shim@github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" - }, - "webpack": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.6.0.tgz", - "integrity": "sha512-OsHT3D0W0KmPPh60tC7asNnOmST6bKTiR90UyEdT9QYoaJ4OYN4Gg7WK1k3VxHK07ZoiYWPsKvlS/gAjwL/vRA==", - "dev": true, - "requires": { - "acorn": "^5.0.0", - "acorn-dynamic-import": "^2.0.0", - "ajv": "^5.1.5", - "ajv-keywords": "^2.0.0", - "async": "^2.1.2", - "enhanced-resolve": "^3.4.0", - "escope": "^3.6.0", - "interpret": "^1.0.0", - "json-loader": "^0.5.4", - "json5": "^0.5.1", - "loader-runner": "^2.3.0", - "loader-utils": "^1.1.0", - "memory-fs": "~0.4.1", - "mkdirp": "~0.5.0", - "node-libs-browser": "^2.0.0", - "source-map": "^0.5.3", - "supports-color": "^4.2.1", - "tapable": "^0.2.7", - "uglifyjs-webpack-plugin": "^0.4.6", - "watchpack": "^1.4.0", - "webpack-sources": "^1.0.1", - "yargs": "^8.0.2" - }, - "dependencies": { - "ajv-keywords": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", - "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", - "dev": true - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "load-json-file": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", - "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "strip-bom": "^3.0.0" - } - }, - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0" - } - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "path-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", - "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", - "dev": true, - "requires": { - "pify": "^2.0.0" - } - }, - "read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", - "dev": true, - "requires": { - "load-json-file": "^2.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" - } - }, - "read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", - "dev": true, - "requires": { - "find-up": "^2.0.0", - "read-pkg": "^2.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "supports-color": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", - "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", - "dev": true, - "requires": { - "has-flag": "^2.0.0" - } - }, - "uglifyjs-webpack-plugin": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", - "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", - "dev": true, - "requires": { - "source-map": "^0.5.6", - "uglify-js": "^2.8.29", - "webpack-sources": "^1.0.1" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "yargs": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", - "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", - "dev": true, - "requires": { - "camelcase": "^4.1.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "read-pkg-up": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^7.0.0" - } - }, - "yargs-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", - "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - }, - "webpack-dev-middleware": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz", - "integrity": "sha512-FCrqPy1yy/sN6U/SaEZcHKRXGlqU0DUaEBL45jkUYoB8foVb6wCnbIJ1HKIx+qUFTW+3JpVcCJCxZ8VATL4e+A==", - "dev": true, - "requires": { - "memory-fs": "~0.4.1", - "mime": "^1.5.0", - "path-is-absolute": "^1.0.0", - "range-parser": "^1.0.3", - "time-stamp": "^2.0.0" - }, - "dependencies": { - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - } - } - }, - "webpack-dev-server": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-2.8.2.tgz", - "integrity": "sha512-wD9bs+Z1uwvf3Jc+8ZkyMI0Xi+aJJYjC2UZplOWoo/vStelK5Mv62X2uXYEYIQEjy9wJQMzC0fEFqQsg7vVEIg==", - "dev": true, - "requires": { - "ansi-html": "0.0.7", - "array-includes": "^3.0.3", - "bonjour": "^3.5.0", - "chokidar": "^1.6.0", - "compression": "^1.5.2", - "connect-history-api-fallback": "^1.3.0", - "del": "^3.0.0", - "express": "^4.13.3", - "html-entities": "^1.2.0", - "http-proxy-middleware": "~0.17.4", - "internal-ip": "^2.0.2", - "ip": "^1.1.5", - "loglevel": "^1.4.1", - "opn": "^5.1.0", - "portfinder": "^1.0.9", - "selfsigned": "^1.9.1", - "serve-index": "^1.7.2", - "sockjs": "0.3.18", - "sockjs-client": "1.1.4", - "spdy": "^3.4.1", - "strip-ansi": "^3.0.1", - "supports-color": "^4.2.1", - "webpack-dev-middleware": "^1.11.0", - "yargs": "^6.6.0" - }, - "dependencies": { - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "dev": true, - "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "dev": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - } - }, - "del": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", - "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", - "dev": true, - "requires": { - "globby": "^6.1.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "p-map": "^1.1.1", - "pify": "^3.0.0", - "rimraf": "^2.2.8" - } - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "supports-color": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", - "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", - "dev": true, - "requires": { - "has-flag": "^2.0.0" - } - }, - "yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^4.2.0" - } - }, - "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - } - } - } - }, - "webpack-sources": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", - "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", - "dev": true, - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "websocket-driver": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", - "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", - "dev": true, - "requires": { - "http-parser-js": ">=0.4.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", - "dev": true - }, - "whatwg-fetch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", - "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" - }, - "whet.extend": { - "version": "0.9.9", - "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", - "integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=" - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "widest-line": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.0.tgz", - "integrity": "sha1-AUKk6KJD+IgsAjOqDgKBqnYVInM=", - "dev": true, - "requires": { - "string-width": "^2.1.1" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "window-size": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", - "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=" - }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=" - }, - "worker-farm": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.6.0.tgz", - "integrity": "sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ==", - "dev": true, - "requires": { - "errno": "~0.1.7" - } - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } - }, - "xhr": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.5.0.tgz", - "integrity": "sha512-4nlO/14t3BNUZRXIXfXe+3N6w3s1KoxcJUUURctd64BLRe67E4gRwp4PjywtDY72fXpZ1y6Ch0VZQRY/gMPzzQ==", - "requires": { - "global": "~4.3.0", - "is-function": "^1.0.1", - "parse-headers": "^2.0.0", - "xtend": "^4.0.0" - } - }, - "xhr-request": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/xhr-request/-/xhr-request-1.1.0.tgz", - "integrity": "sha512-Y7qzEaR3FDtL3fP30k9wO/e+FBnBByZeybKOhASsGP30NIkRAAkKD/sCnLvgEfAIEC1rcmK7YG8f4oEnIrrWzA==", - "requires": { - "buffer-to-arraybuffer": "^0.0.5", - "object-assign": "^4.1.1", - "query-string": "^5.0.1", - "simple-get": "^2.7.0", - "timed-out": "^4.0.1", - "url-set-query": "^1.0.0", - "xhr": "^2.0.4" - }, - "dependencies": { - "query-string": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", - "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", - "requires": { - "decode-uri-component": "^0.2.0", - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" - } - } - } - }, - "xhr-request-promise": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/xhr-request-promise/-/xhr-request-promise-0.1.2.tgz", - "integrity": "sha1-NDxE0e53JrhkgGloLQ+EDIO0Jh0=", - "requires": { - "xhr-request": "^1.0.1" - } - }, - "xhr2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", - "integrity": "sha1-f4dliEdxbbUCYyOBL4GMras4el8=" - }, - "xmlhttprequest": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", - "integrity": "sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw=" - }, - "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" - }, - "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" - }, - "yargs": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", - "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", - "requires": { - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "lodash.assign": "^4.0.3", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.1", - "which-module": "^1.0.0", - "window-size": "^0.2.0", - "y18n": "^3.2.1", - "yargs-parser": "^2.4.1" - } - }, - "yargs-parser": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz", - "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=", - "requires": { - "camelcase": "^3.0.0", - "lodash.assign": "^4.0.6" - } - } - } -} diff --git a/package.json b/package.json index c2345e31..da7ec60d 100644 --- a/package.json +++ b/package.json @@ -1,97 +1,47 @@ { - "name": "@cybercongress/chaingear", - "version": "0.1.3", - "main": "app/src/main.jsx", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/cyberFund/chaingear.git" - }, - "author": "", - "dependencies": { - "argparse": "1.0.10", - "axios": "0.16.2", - "babel-polyfill": "6.26.0", - "bignumber.js": "^5.0.0", - "boom": "7.2.0", - "chai": "^4.1.2", - "chai-as-promised": "^7.1.1", - "chai-bignumber": "^2.0.2", - "classnames": "2.2.5", - "copy-webpack-plugin": "4.2.3", - "ethereumjs-abi": "^0.6.5", - "ethjs-unit": "0.1.6", - "highlight.js": "9.12.0", - "history": "3.0.0", - "ipfs-api": "18.2.1", - "json-loader": "0.5.7", - "jsx-loader": "0.13.2", - "lodash": "4.17.4", - "moment": "2.21.0", - "numeral": "2.0.6", - "qrcode.react": "0.8.0", - "react": "15.6.1", - "react-click-outside": "github:tj/react-click-outside", - "react-dom": "15.6.1", - "react-redux": "5.0.6", - "react-router": "3.0.5", - "redux": "3.7.2", - "redux-form": "7.0.4", - "redux-thunk": "2.2.0", - "semver": "5.5.0", - "solc": "^0.4.24", - "solidify": "3.0.0", - "solidity-parser": "0.4.0", - "truffle-hdwallet-provider": "0.0.3", - "web3": "0.20.3", - "web3-utils": "^1.0.0-beta.34" - }, - "devDependencies": { - "autoprefixer": "7.1.4", - "babel": "6.23.0", - "babel-core": "6.26.0", - "babel-loader": "7.1.2", - "babel-plugin-transform-class-properties": "6.24.1", - "babel-plugin-transform-decorators-legacy": "1.3.4", - "babel-polyfill": "6.26.0", - "babel-preset-env": "1.6.1", - "babel-preset-es2015": "6.24.1", - "babel-preset-react": "6.24.1", - "babel-preset-stage-2": "6.24.1", - "css-loader": "0.28.7", - "eth-gas-reporter": "^0.1.5", - "file-loader": "0.11.2", - "html-webpack-plugin": "2.30.1", - "less": "2.7.2", - "less-loader": "4.0.5", - "node-sass": "4.5.3", - "openzeppelin-solidity": "1.9.0", - "postcss-loader": "2.0.6", - "raw-loader": "0.5.1", - "sass-loader": "6.0.6", - "serve": "10.0.1", - "solium": "1.0.11", - "style-loader": "0.18.2", - "truffle-contract": "1.1.8", - "truffle-solidity-loader": "0.0.8", - "uglifyjs-webpack-plugin": "1.2.2", - "url-loader": "0.5.9", - "webpack": "3.6.0", - "webpack-dev-server": "2.8.2" - }, - "scripts": { - "prestart": "yarn install", - "start": "webpack-dev-server", - "build": "webpack --env.NODE_ENV production --env.SOURCE_MAP source-map", - "serve": "serve -s distribution" - }, - "description": "New Frontier of chaingear, registries grow here!", - "bugs": { - "url": "https://github.com/cyberFund/cyberchaingear/issues" - }, - "homepage": "https://github.com/cyberFund/cyberchaingear", - "keywords": [], - "license": "MIT", - "directories": { - "test": "test" - } + "name": "@cybercongress/chaingear", + "version": "0.2.4", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/cybercongress/chaingear.git" + }, + "author": "", + "dependencies": { + "bn-chai": "1.0.1", + "chai": "4.2.0", + "chai-as-promised": "7.1.1", + "ethjs-unit": "0.1.6", + "ethlint": "^1.2.2", + "ganache-cli": "6.2.1", + "ipfs-api": "18.2.1", + "mocha": "5.2.0", + "openzeppelin-solidity": "1.12.0", + "solc": "0.4.25", + "truffle": "5.0.1", + "truffle-hdwallet-provider": "1.0.0-web3one.1", + "web3": "1.0.0-beta.36" + }, + "description": "The Novel Ethereum Database Framework", + "bugs": { + "url": "https://github.com/cybercongress/chaingear/issues" + }, + "homepage": "https://github.com/cybercongress/chaingear", + "keywords": [ + "chaingear", + "web3", + "cyb", + "browser", + "ethereum", + "dapp", + "ERC721", + "registry" + ], + "license": "MIT", + "directories": { + "test": "test" + }, + "devDependencies": { + "eth-gas-reporter": "^0.1.12", + "solidity-coverage": "^0.5.11" + } } diff --git a/run_nginx.sh b/run_nginx.sh deleted file mode 100755 index b4dff018..00000000 --- a/run_nginx.sh +++ /dev/null @@ -1 +0,0 @@ -nginx -g "daemon off;" diff --git a/test/FeeSplitter/FeeSplitterChaingear.test.js b/test/FeeSplitter/FeeSplitterChaingear.test.js new file mode 100644 index 00000000..cacd6d4c --- /dev/null +++ b/test/FeeSplitter/FeeSplitterChaingear.test.js @@ -0,0 +1,97 @@ +const chai = require("chai"); +const bnChai = require("bn-chai"); +const expect = chai.expect; + +chai.use(bnChai(web3.utils.BN)); +chai.use(require('chai-as-promised')); +chai.should(); + +const {toWei, toBN, fromWei, BN} = web3.utils; + +const FeeSplitterChaingear = artifacts.require("FeeSplitterChaingear"); + +contract("FeeSplitterChaingear", (accounts) => { + + let splitter; + + const OWNER = accounts[0]; + const UNKNOWN = accounts[8]; + const BENEFICIARY_1 = accounts[1]; + const BENEFICIARY_2 = accounts[2]; + const BENEFICIARY_3 = accounts[3]; + const BENEFICIARY_4 = accounts[4]; + const BENEFICIARY_4_CHANGED = accounts[5]; + const BENEFICIARY_1_SHARES = toBN('125'); + const BENEFICIARY_2_SHARES = toBN('125'); + const BENEFICIARY_3_SHARES = toBN('250'); + const BENEFICIARY_4_SHARES = toBN('500'); + const BENEFICIARIES = [BENEFICIARY_1, BENEFICIARY_2, BENEFICIARY_3, BENEFICIARY_4]; + const BENEFICIARIES_SHARES = [BENEFICIARY_1_SHARES, BENEFICIARY_2_SHARES, BENEFICIARY_3_SHARES, BENEFICIARY_4_SHARES]; + + before(async () => { + splitter = await FeeSplitterChaingear.new( + BENEFICIARIES, + BENEFICIARIES_SHARES, + { from: OWNER } + ); + }) + + describe("when initialized", () => { + it("should accept payments", async () => { + let payment = toWei('1', 'ether'); + await splitter.sendTransaction({ value: payment, from: UNKNOWN }); + expect(await web3.eth.getBalance(splitter.address)).to.eq.BN(payment) + }); + + it("should have payees", async () => { + for (var i = 0; i < BENEFICIARIES.length; i++) { + (await splitter.getPayee(i)).should.be.equal(BENEFICIARIES[i]); + } + }); + + it("payess should have shares", async () => { + for (var i = 0; i < BENEFICIARIES.length; i++) { + expect(await splitter.getShares(BENEFICIARIES[i])).to.eq.BN(BENEFICIARIES_SHARES[i]); + } + }); + + it("should have correct total shares", async () => { + expect(await splitter.getTotalShares()).to.eq.BN(toBN('1000')); + }) + + it("should have correct total released", async () => { + expect(await splitter.getTotalReleased()).to.eq.BN(toBN('0')); + }) + + it("should have correct payess count", async () => { + expect(await splitter.getPayeesCount()).to.eq.BN(toBN('4')); + }) + }) + + describe("when releasing", () => { + it("should release correct amount", async () => { + let balanceBefore = new BN(await web3.eth.getBalance(BENEFICIARY_4)); + await splitter.release(BENEFICIARY_4, { from: UNKNOWN }).should.be.fulfilled; + let balanceAfter = new BN(await web3.eth.getBalance(BENEFICIARY_4)); + expect(balanceAfter.sub(balanceBefore)).to.eq.BN(toWei(new BN('500'), 'finney')); + }) + }) + + describe("when changing payee address", () => { + it("should change payee address", async () => { + (await splitter.getPayee(3)).should.be.equal(BENEFICIARY_4); + await splitter.changePayeeAddress(3, BENEFICIARY_4_CHANGED, { from: OWNER }).should.be.fulfilled; + (await splitter.getPayee(3)).should.be.equal(BENEFICIARY_4_CHANGED); + }) + + it("should allow release correct amount to changed address", async () => { + let payment = toWei('1', 'ether'); + await splitter.sendTransaction({ value: payment, from: UNKNOWN }); + + let balanceBefore = new BN(await web3.eth.getBalance(BENEFICIARY_4_CHANGED)); + await splitter.release(BENEFICIARY_4_CHANGED, { from: UNKNOWN }).should.be.fulfilled; + let balanceAfter = new BN(await web3.eth.getBalance(BENEFICIARY_4_CHANGED)); + expect(balanceAfter.sub(balanceBefore)).to.eq.BN(toWei(new BN('500'), 'finney')); + }) + }) +}) \ No newline at end of file diff --git a/test/FeeSplitter/FeeSplitterDatabase.test.js b/test/FeeSplitter/FeeSplitterDatabase.test.js new file mode 100644 index 00000000..ce385ce6 --- /dev/null +++ b/test/FeeSplitter/FeeSplitterDatabase.test.js @@ -0,0 +1,128 @@ +const chai = require("chai"); +const bnChai = require("bn-chai"); +const expect = chai.expect; + +chai.use(bnChai(web3.utils.BN)); +chai.use(require('chai-as-promised')); +chai.should(); + +const {toWei, toBN, fromWei, BN} = web3.utils; + +const FeeSplitterDatabase = artifacts.require("FeeSplitterDatabase"); + +contract("FeeSplitterDatabase", (accounts) => { + + let splitter; + + const OWNER = accounts[0]; + const ADMIN = accounts[9]; + const UNKNOWN = accounts[8]; + const BENEFICIARY_1 = accounts[1]; + const BENEFICIARY_2 = accounts[2]; + const BENEFICIARY_3 = accounts[3]; + const BENEFICIARY_4 = accounts[4]; + const BENEFICIARY_4_CHANGED = accounts[5]; + const BENEFICIARY_1_SHARES = toBN('125'); + const BENEFICIARY_2_SHARES = toBN('125'); + const BENEFICIARY_3_SHARES = toBN('250'); + const BENEFICIARY_4_SHARES = toBN('500'); + const BENEFICIARIES = [BENEFICIARY_1, BENEFICIARY_2, BENEFICIARY_3, BENEFICIARY_4]; + const BENEFICIARIES_SHARES = [BENEFICIARY_1_SHARES, BENEFICIARY_2_SHARES, BENEFICIARY_3_SHARES, BENEFICIARY_4_SHARES]; + + before(async () => { + splitter = await FeeSplitterDatabase.new( + BENEFICIARIES, + BENEFICIARIES_SHARES, + { from: OWNER } + ); + await splitter.transferAdminRights(ADMIN, { from: OWNER }); + await splitter.unpause({ from: ADMIN }); + }) + + describe("when initialized", () => { + it("should accept payments", async () => { + let payment = toWei('1', 'ether'); + await splitter.sendTransaction({ value: payment, from: UNKNOWN }); + expect(await web3.eth.getBalance(splitter.address)).to.eq.BN(payment) + }); + + it("should have payees", async () => { + for (var i = 0; i < BENEFICIARIES.length; i++) { + (await splitter.getPayee(i)).should.be.equal(BENEFICIARIES[i]); + } + }); + + it("payess should have shares", async () => { + for (var i = 0; i < BENEFICIARIES.length; i++) { + expect(await splitter.getShares(BENEFICIARIES[i])).to.eq.BN(BENEFICIARIES_SHARES[i]); + } + }); + + it("should have correct total shares", async () => { + expect(await splitter.getTotalShares()).to.eq.BN(toBN('1000')); + }) + + it("should have correct total released", async () => { + expect(await splitter.getTotalReleased()).to.eq.BN(toBN('0')); + }) + + it("should have correct payess count", async () => { + expect(await splitter.getPayeesCount()).to.eq.BN(toBN('4')); + }) + }) + + describe("when releasing", () => { + it("should release correct amount", async () => { + let balanceBefore = new BN(await web3.eth.getBalance(BENEFICIARY_4)); + await splitter.release(BENEFICIARY_4, { from: UNKNOWN }).should.be.fulfilled; + let balanceAfter = new BN(await web3.eth.getBalance(BENEFICIARY_4)); + expect(balanceAfter.sub(balanceBefore)).to.eq.BN(toWei(new BN('500'), 'finney')); + }) + }) + + describe("when changing payee address", () => { + it("should change payee address", async () => { + (await splitter.getPayee(3)).should.be.equal(BENEFICIARY_4); + await splitter.changePayeeAddress(3, BENEFICIARY_4_CHANGED, { from: BENEFICIARY_4 }).should.be.fulfilled; + (await splitter.getPayee(3)).should.be.equal(BENEFICIARY_4_CHANGED); + }) + + it("should allow release correct amount to changed address", async () => { + let payment = toWei('1', 'ether'); + await splitter.sendTransaction({ value: payment, from: UNKNOWN }); + + let balanceBefore = new BN(await web3.eth.getBalance(BENEFICIARY_4_CHANGED)); + await splitter.release(BENEFICIARY_4_CHANGED, { from: UNKNOWN }).should.be.fulfilled; + let balanceAfter = new BN(await web3.eth.getBalance(BENEFICIARY_4_CHANGED)); + expect(balanceAfter.sub(balanceBefore)).to.eq.BN(toWei(new BN('500'), 'finney')); + }) + }) + + describe("when transfering token and adminship", () => { + it("should correctly delete payess", async () => { + await splitter.pause({ from: ADMIN }).should.be.fulfilled; + await splitter.deletePayees({ from: OWNER }).should.be.fulfilled; + expect(await splitter.getTotalShares()).to.eq.BN(toBN('0')); + expect(await splitter.getTotalReleased()).to.eq.BN(toBN('0')); + expect(await splitter.getPayeesCount()).to.eq.BN(toBN('0')); + }) + + it("should allow init new set of payees", async () => { + let BENEFICIARIES_NEW = BENEFICIARIES.reverse(); + await splitter.setPayess( + BENEFICIARIES_NEW, + BENEFICIARIES_SHARES, + { from: ADMIN } + ).should.be.fulfilled; + expect(await splitter.getTotalShares()).to.eq.BN(toBN('1000')); + expect(await splitter.getTotalReleased()).to.eq.BN(toBN('0')); + expect(await splitter.getPayeesCount()).to.eq.BN(toBN('4')); + for (var i = 0; i < BENEFICIARIES_NEW.length; i++) { + (await splitter.getPayee(i)).should.be.equal(BENEFICIARIES_NEW[i]); + } + for (var i = 0; i < BENEFICIARIES_NEW.length; i++) { + expect(await splitter.getShares(BENEFICIARIES_NEW[i])).to.eq.BN(BENEFICIARIES_SHARES[i]); + } + }) + }) +}) \ No newline at end of file diff --git a/test/SplitPaymentChangeableTests.js b/test/SplitPaymentChangeableTests.js deleted file mode 100644 index f195aba2..00000000 --- a/test/SplitPaymentChangeableTests.js +++ /dev/null @@ -1,57 +0,0 @@ -const BigNumber = require("bignumber.js") -const chai = require("chai") -const utils = require("./utils.js") -chai.use(require("chai-bignumber")()) -chai.use(require("chai-as-promised")) -chai.should() - -const SplitPaymentChangeable = artifacts.require("SplitPaymentChangeable") - -contract("SplitPaymentChangeable", (accounts) => { - - let contract - - const OWNER = accounts[0] - const PAYEE1 = accounts[1] - const PAYEE2 = accounts[2] - const PAYEE3 = accounts[3] - const SHARE1 = 1 - const SHARE2 = 2 - const VALUE = web3.toWei(3, "ether") - - before(async () => { - contract = await SplitPaymentChangeable.new( - [PAYEE1, PAYEE2], - [SHARE1, SHARE2], - { from: OWNER, value: VALUE } - ) - }) - - it("#1 allow owner to change payee address", async () => { - await contract.changePayeeAddress(1, PAYEE3, {from: OWNER}) - - const newPayee = await contract.payees(1) - const newPayeeShare = new BigNumber(await contract.shares(PAYEE3)) - const oldPayeeShare = new BigNumber(await contract.shares(PAYEE2)) - - newPayee.should.be.equal(PAYEE3) - newPayeeShare.should.bignumber.equal(SHARE2) - oldPayeeShare.should.bignumber.equal(0) - }) - - it("#2 should distribute value accurately", async () => { - - const oldBalance1 = new BigNumber(web3.eth.getBalance(PAYEE1)) - const oldBalance2 = new BigNumber(web3.eth.getBalance(PAYEE3)) - - const res1 = await contract.claim({from:PAYEE1}) - const res2 = await contract.claim({from:PAYEE3}) - - const newBalance1 = new BigNumber(web3.eth.getBalance(PAYEE1)) - const newBalance2 = new BigNumber(web3.eth.getBalance(PAYEE3)) - - newBalance1.sub(oldBalance1).add(utils.weiUsedForGas(res1)).should.bignumber.equal(web3.toWei(1, "ether")) - newBalance2.sub(oldBalance2).add(utils.weiUsedForGas(res2)).should.bignumber.equal(web3.toWei(2, "ether")) - - }) -}) diff --git a/test/chaingear/Chaingear.test.js b/test/chaingear/Chaingear.test.js new file mode 100644 index 00000000..52505e46 --- /dev/null +++ b/test/chaingear/Chaingear.test.js @@ -0,0 +1,509 @@ +const chai = require("chai"); +const bnChai = require("bn-chai"); +const expect = chai.expect; + +chai.use(bnChai(web3.utils.BN)); +chai.use(require('chai-as-promised')); +chai.should(); + +const {toWei, toBN, fromWei, BN} = web3.utils; + +const Chaingear = artifacts.require("Chaingear"); +const DatabaseBuilderV1 = artifacts.require("DatabaseBuilderV1"); +const DatabaseV1 = artifacts.require("DatabaseV1"); + +contract("Chaingear", (accounts) => { + + let chaingear; + let builder; + + const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; + + const CHAINGEAR_OWNER = accounts[0] + const RANDOM_CREATOR_1 = accounts[3] + const RANDOM_CREATOR_2 = accounts[4] + const UNKNOWN = accounts[5] + + const CHAINGEAR_BENEFICIARY_1 = accounts[0] + const CHAINGEAR_BENEFICIARY_2 = accounts[1] + const CHAINGEAR_BENEFICIARIES = [CHAINGEAR_BENEFICIARY_1, CHAINGEAR_BENEFICIARY_2] + + const CHAINGEAR_BENEFICIARY_1_SHARES = toBN('50'); + const CHAINGEAR_BENEFICIARY_2_SHARES = toBN('100'); + const CHAINGEAR_BENEFICIARIES_SHARES = [CHAINGEAR_BENEFICIARY_1_SHARES, CHAINGEAR_BENEFICIARY_2_SHARES] + + const CHAINGEAR_DESCRIPTION = "The novel Ethereum database framework" + const CHAINGEAR_NAME = "CHAINGEAR" + const CHAINGEAR_SYMBOL = "CHG" + + const BUILDING_FEE = toWei(toBN(1), 'finney'); + + const DATABASE_BUILDER_1_VERSION = "V1" + const DATABASE_BUILDER_1_ABI_LINK = "QmS2F1UgmYHAekcvezFLCrBibEBjJezSDqwq8fuwF5Qqvi" + const DATABASE_BUILDER_1_DESCRIPTION = "Basic version of registry" + + const DATABASE_NAME_0 = "testregistry"; + const DATABASE_SYMBOL_0 = "TREG"; + + before(async () => { + + builder = await DatabaseBuilderV1.new({ from: CHAINGEAR_OWNER }); + + chaingear = await Chaingear.new( + CHAINGEAR_BENEFICIARIES, CHAINGEAR_BENEFICIARIES_SHARES, { from: CHAINGEAR_OWNER } + ); + + await builder.setChaingearAddress( + chaingear.address, { from: CHAINGEAR_OWNER } + ); + }) + + describe("when deployed", () => { + it("should accept payments", async () => { + let payment = toWei('1', 'ether'); + await chaingear.sendTransaction({ value: payment, from: UNKNOWN }); + expect(await web3.eth.getBalance(chaingear.address)).to.eq.BN(payment) + }); + + it("name should equal", async() => { + (await chaingear.name()).should.equal(CHAINGEAR_NAME); + }); + + it("token symbol should equal", async() => { + (await chaingear.symbol()).should.equal(CHAINGEAR_SYMBOL); + }); + + it("should have registration fee", async () => { + expect(await chaingear.getCreationFeeWei()).to.eq.BN(BUILDING_FEE); + }); + + it("should have description", async () => { + (await chaingear.getChaingearDescription()).should.be.equal(CHAINGEAR_DESCRIPTION); + }); + + it("should have safe", async () => { + (await chaingear.getSafeAddress()).should.be.not.equal(ZERO_ADDRESS); + }); + + it("safe should have zero balance", async () => { + expect(await web3.eth.getBalance(await chaingear.getSafeAddress())).to.eq.BN(toBN('0')); + }); + + it("should have payees", async () => { + for (var i = 0; i < CHAINGEAR_BENEFICIARIES.length; i++) { + (await chaingear.getPayee(i)).should.be.equal(CHAINGEAR_BENEFICIARIES[i]); + } + }); + + it("payess should have shares", async () => { + for (var i = 0; i < CHAINGEAR_BENEFICIARIES_SHARES.length; i++) { + expect(await chaingear.getShares(CHAINGEAR_BENEFICIARIES[i])).to.eq.BN(CHAINGEAR_BENEFICIARIES_SHARES[i]); + } + }); + + it("should have zero token supply", async () => { + expect(await chaingear.totalSupply()).to.eq.BN(toBN('0')); + }); + + it("shoud be not paused", async () => { + (await chaingear.paused()).should.be.equal(false); + }); + + it("should allow owner to update registration fee when paused", async () => { + await chaingear.pause({ from: CHAINGEAR_OWNER }); + await chaingear.updateCreationFee(BUILDING_FEE.mul(toBN('2')), { from: CHAINGEAR_OWNER }); + expect(await chaingear.getCreationFeeWei()).to.eq.BN(BUILDING_FEE.mul(toBN('2'))); + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + + await chaingear.pause({ from: CHAINGEAR_OWNER }); + await chaingear.updateCreationFee(BUILDING_FEE, { from: CHAINGEAR_OWNER }); + expect(await chaingear.getCreationFeeWei()).to.eq.BN(BUILDING_FEE); + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + }); + }) + + describe("when adding database builder", () => { + it("should allow owner to add builder", async () => { + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_1_VERSION, + builder.address, + DATABASE_BUILDER_1_ABI_LINK, + DATABASE_BUILDER_1_DESCRIPTION, + { from: CHAINGEAR_OWNER } + ).should.be.fulfilled; + + expect(await chaingear.getAmountOfBuilders()).to.eq.BN(toBN('1')); + (await chaingear.getBuilderByID(0)).should.be.equal(DATABASE_BUILDER_1_VERSION); + + let databaseBuilder = await chaingear.getDatabaseBuilder(DATABASE_BUILDER_1_VERSION); + (databaseBuilder[0]).should.be.equal(builder.address); + (databaseBuilder[1]).should.be.equal(DATABASE_BUILDER_1_ABI_LINK); + (databaseBuilder[2]).should.be.equal(DATABASE_BUILDER_1_DESCRIPTION); + }); + + it("should not allow owner to add builders with existed version", async () => { + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_1_VERSION, + builder.address, + DATABASE_BUILDER_1_ABI_LINK, + DATABASE_BUILDER_1_DESCRIPTION, + { from: CHAINGEAR_OWNER } + ).should.be.rejected; + }); + + it("should allow owner to update builder description", async () => { + let newDescription = "42" + await chaingear.updateDatabaseBuilderDescription( + DATABASE_BUILDER_1_VERSION, + newDescription, + { from: CHAINGEAR_OWNER } + ).should.be.fulfilled; + + let databaseBuilder = await chaingear.getDatabaseBuilder(DATABASE_BUILDER_1_VERSION); + (databaseBuilder[2]).should.be.equal(newDescription); + }); + + it("should not allow owner to add non-contract builder", async () => { + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_1_VERSION, + ZERO_ADDRESS, + DATABASE_BUILDER_1_ABI_LINK, + DATABASE_BUILDER_1_DESCRIPTION, + { from: CHAINGEAR_OWNER } + ).should.be.rejected; + }); + + it("should not allow non-owner to add builder", async () => { + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_1_VERSION, + builder.address, + DATABASE_BUILDER_1_ABI_LINK, + DATABASE_BUILDER_1_DESCRIPTION, + { from: UNKNOWN } + ).should.be.rejected; + }); + }) + + describe("when creating database", () => { + it("should allow to create database of existed version with expected creation fee", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + DATABASE_NAME_0, + DATABASE_SYMBOL_0, + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.fulfilled; + expect(await chaingear.totalSupply()).to.eq.BN(toBN('1')); + + let databaseMeta = await chaingear.getDatabase(0); + (databaseMeta[0]).should.be.equal(DATABASE_NAME_0); + (databaseMeta[1]).should.be.equal(DATABASE_SYMBOL_0); + (databaseMeta[3]).should.be.equal(DATABASE_BUILDER_1_VERSION); + (databaseMeta[5]).should.be.equal(RANDOM_CREATOR_1); + expect(databaseMeta[6]).to.eq.BN(toBN('0')); + expect(await chaingear.getDatabaseIDByAddress(databaseMeta[2])).to.eq.BN(toBN('0')); + expect((await chaingear.getDatabasesIDs())[0]).to.eq.BN(toBN('0')); + (await chaingear.getNameExist(DATABASE_NAME_0)).should.be.equal(true); + (await chaingear.getSymbolExist(DATABASE_SYMBOL_0)).should.be.equal(true); + (await chaingear.getDatabaseAddressByName(DATABASE_NAME_0)).should.be.equal(databaseMeta[2]); + + let database = await DatabaseV1.at(databaseMeta[2]); + (await database.getAdmin()).should.be.equal(RANDOM_CREATOR_1); + + }); + + // it("should allow admin to initialize", async () => { + // }); + + it("should not allow to create database of non-existed version", async () => { + await chaingear.createDatabase( + "RND", + [RANDOM_CREATOR_1], + [100], + DATABASE_NAME_0, + DATABASE_SYMBOL_0, + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + it("should not allow to create database with non-expected creation fee", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + DATABASE_NAME_0, + DATABASE_SYMBOL_0, + { + from: RANDOM_CREATOR_1, + value: toBN('0'), + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + it("should not allow to create database with existed name or/and symbol", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + DATABASE_NAME_0, + DATABASE_SYMBOL_0, + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + }) + + describe("when funding database", () => { + it("should allow to fund database when not paused", async () => { + let fund = toWei(toBN(1), 'ether'); + await chaingear.fundDatabase(0, + { + value: fund, + from: UNKNOWN + } + ).should.be.fulfilled; + let databaseBalance = await chaingear.getDatabaseBalance(0); + expect(databaseBalance[0]).to.eq.BN(fund); + expect(databaseBalance[1]).to.eq.BN(fund); + expect(await chaingear.getSafeBalance()).to.eq.BN(fund); + }); + + it("should not allow to fund database when not paused", async () => { + await chaingear.pause({ from: CHAINGEAR_OWNER }); + let fund = toWei(toBN(1), 'ether'); + await chaingear.fundDatabase(0, + { + value: fund, + from: UNKNOWN + } + ).should.be.rejected; + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + }); + + it("should not allow to fund non-existed database", async () => { + let fund = toWei(toBN(1), 'ether'); + await chaingear.fundDatabase(42, + { + value: fund, + from: UNKNOWN + } + ).should.be.rejected; + }); + }) + + describe("when claiming database's funds", () => { + it("should not allow database admin claim more funds then funded", async () => { + let claim = toWei(toBN(1), 'ether'); + await chaingear.claimDatabaseFunds(0, claim.mul(toBN('2')), + { + from: RANDOM_CREATOR_1 + } + ).should.be.rejected; + }); + + it("should not allow database admin claim their funds when paused", async () => { + await chaingear.pause({ from: CHAINGEAR_OWNER }); + let claim = toWei(toBN(1), 'ether'); + await chaingear.claimDatabaseFunds(0, claim, + { + from: RANDOM_CREATOR_1 + } + ).should.be.rejected; + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + }); + + it("should not allow database's non-admin claim funds", async () => { + let claim = toWei(toBN(1), 'ether'); + await chaingear.claimDatabaseFunds(0, claim, + { + from: UNKNOWN + } + ).should.be.rejected; + }); + + it("should allow database admin claim their funds when not paused", async () => { + let claim = toWei(toBN(1), 'ether'); + let databaseBalance = await chaingear.getDatabaseBalance(0); + expect(databaseBalance[0]).to.eq.BN(claim); + expect(databaseBalance[1]).to.eq.BN(claim); + await chaingear.claimDatabaseFunds(0, claim, + { + from: RANDOM_CREATOR_1 + } + ).should.be.fulfilled; + databaseBalance = await chaingear.getDatabaseBalance(0); + expect(databaseBalance[0]).to.eq.BN(toBN('0')); + expect(databaseBalance[1]).to.eq.BN(claim); + expect(await chaingear.getSafeBalance()).to.eq.BN(toBN('0')); + }); + }) + + describe("when transfering database adminship", () => { + it("should not allow database's admin transfer adminship when paused", async () => { + await chaingear.pause({ from: CHAINGEAR_OWNER }); + await chaingear.transferFrom(RANDOM_CREATOR_1, RANDOM_CREATOR_2, 0).should.be.rejected; + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + }); + + it("should not allow database's non-admin transfer adminship", async () => { + await chaingear.transferFrom(UNKNOWN, RANDOM_CREATOR_2, 0).should.be.rejected; + }); + + it("should not allow database's admin transfer adminship when there is balance on database", async () => { + let databaseMeta = await chaingear.getDatabase(0); + let database = await DatabaseV1.at(databaseMeta[2]); + await database.unpause({ from: RANDOM_CREATOR_1 }); + await database.sendTransaction({ value: toWei('1', 'ether'), from: UNKNOWN }); + await chaingear.transferFrom(RANDOM_CREATOR_1, RANDOM_CREATOR_2, 0, + { + from: RANDOM_CREATOR_1 + } + ).should.be.rejected; + }); + + it("should allow database admin transfer adminship when not paused", async () => { + let databaseMeta = await chaingear.getDatabase(0); + let database = await DatabaseV1.at(databaseMeta[2]); + await database.release(RANDOM_CREATOR_1, { from: RANDOM_CREATOR_1 }).should.be.fulfilled; + expect(await web3.eth.getBalance(database.address)).to.eq.BN(0) + await database.pause({ from: RANDOM_CREATOR_1 }); + + await chaingear.transferFrom(RANDOM_CREATOR_1, RANDOM_CREATOR_2, 0, + { + from: RANDOM_CREATOR_1 + } + ).should.be.fulfilled; + + // databaseMeta = await chaingear.getDatabase(0); + // (databaseMeta[5]).should.be.equal(RANDOM_CREATOR_2); + // (await database.getAdmin()).should.be.equal(RANDOM_CREATOR_2); + }); + }) + + + describe("when deleting database", () => { + it("should not allow non-owner delete database", async () => { + await chaingear.deleteDatabase(0, + { + from: UNKNOWN + } + ).should.be.rejected; + }); + + it("should allow owner delete his database", async () => { + let databaseMeta = await chaingear.getDatabase(0); + let database = await DatabaseV1.at(databaseMeta[2]); + (await database.getPaused()).should.be.equal(true); + await chaingear.deleteDatabase(0, + { + from: RANDOM_CREATOR_2 + } + ).should.be.fulfilled; + (await chaingear.getNameExist(DATABASE_NAME_0)).should.be.equal(false); + (await chaingear.getSymbolExist(DATABASE_SYMBOL_0)).should.be.equal(false); + expect(await chaingear.totalSupply()).to.eq.BN(toBN('0')); + (await database.owner()).should.be.equal(RANDOM_CREATOR_2); + }); + }) + + describe("when creating database with different name and symbol case", () => { + it("should not allow to create database with name in uppercase", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + "Helloword", + "HWRD", + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + it("should not allow to create database with symbol in lowercase", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + "helloword", + "hwrd", + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + it("should not allow to create database with minus symbol", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + "helloword", + "hwrd-", + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + it("should allow to create database with right name and symbol ", async () => { + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + "helloword-42", + "HWRD42", + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.fulfilled; + }); + }) + + describe("when deprecate database builder", () => { + it("should not allow to use builder when deprecated", async () => { + await chaingear.pause({ from: CHAINGEAR_OWNER }); + await chaingear.depricateDatabaseBuilder("V1", + { + from: CHAINGEAR_OWNER + } + ).should.be.fulfilled; + await chaingear.unpause({ from: CHAINGEAR_OWNER }); + + await chaingear.createDatabase( + DATABASE_BUILDER_1_VERSION, + [RANDOM_CREATOR_1], + [100], + "helloword", + "HWRD", + { + from: RANDOM_CREATOR_1, + value: BUILDING_FEE, + gas: toBN('5000000') + } + ).should.be.rejected; + }); + + }) +}) diff --git a/test/chaingear/ChaingearTests.js b/test/chaingear/ChaingearTests.js deleted file mode 100644 index cc16d9ce..00000000 --- a/test/chaingear/ChaingearTests.js +++ /dev/null @@ -1,357 +0,0 @@ -const BigNumber = require("bignumber.js") -const chai = require("chai") -chai.use(require("chai-bignumber")()) -chai.use(require("chai-as-promised")) -chai.should() - -const Registry = artifacts.require("Registry") -const Chaingear = artifacts.require("Chaingear") -const RegistryCreator = artifacts.require("RegistryCreator") -const EntryCore = artifacts.require("EntryCore") - -contract("Chaingear", (accounts) => { - - const PermissionTypeEntries = { - OnlyAdmin: 0, - AllUsers: 1 - } - - let chaingear, creator - - const CHAINGEAR_OWNER = accounts[0] - const CHAINGEAR_BENEFICIARY_1 = accounts[0] - const CHAINGEAR_BENEFICIARY_2 = accounts[1] - - const CHAINGEAR_BENEFICIARY_1_SHARES = 50; - const CHAINGEAR_BENEFICIARY_2_SHARES = 100; - - const RANDOM_CREATOR_1 = accounts[3] - const RANDOM_CREATOR_2 = accounts[4] - const UNKNOWN = accounts[5] - - const CHAINGEAR_BENEFICIARIES = [CHAINGEAR_BENEFICIARY_1, CHAINGEAR_BENEFICIARY_2] - const CHAINGEAR_BENEFICIARIES_SHARES = [CHAINGEAR_BENEFICIARY_1_SHARES, CHAINGEAR_BENEFICIARY_2_SHARES] - - const CHAINGEAR_DESCRIPTION = "MOST EXPENSIVE REGISTRY" - const CHAINGEAR_NAME = "CHAINGEAR" - const CHAINGEAR_SYMBOL = "CHG" - - const BUILDING_FEE = 1000000 - const CREATION_FEE_EQUAL = 1000000 - const CREATION_FEE_NOT_EQUAL = 100 - const CREATION_GAS = 7000000 - - const REGISTRY_FUNDING = 10000000 - - const REGISTRY_CREATOR_1_VERSION = "V1.0" - const NOT_EXISTED_REGISTRY_CREATOR_VERSION = "HELLO_WORLD" - const REGISTRY_CREATOR_1_ABI_LINK = "Q_IPFS_HASH_1" - const REGISTRY_CREATOR_1_DESCRIPTION = "TEST_REGISTRY_VERSION_1" - - const REGISTRY_NAME_1 = "EXPENSIVE_REGISTRY_1" - const REGISTRY_SYMBOL_1 = "EXP_1" - - before(async () => { - - creator = await RegistryCreator.new({ from: CHAINGEAR_OWNER }) - - chaingear = await Chaingear.new( - CHAINGEAR_BENEFICIARIES, - CHAINGEAR_BENEFICIARIES_SHARES, - CHAINGEAR_DESCRIPTION, - BUILDING_FEE, - CHAINGEAR_NAME, - CHAINGEAR_SYMBOL, - { - from: CHAINGEAR_OWNER, - gas: CREATION_GAS - } - ) - - await creator.setBuilder( - chaingear.address, - { - from: CHAINGEAR_OWNER - }) - - await chaingear.addRegistryCreatorVersion( - REGISTRY_CREATOR_1_VERSION, - creator.address, - REGISTRY_CREATOR_1_ABI_LINK, - REGISTRY_CREATOR_1_DESCRIPTION, - { - from: CHAINGEAR_OWNER - }) - - }) - - it("#1/1 should allow anyone to build new registry with right fee and existed registry version", async () => { - - await chaingear.registerRegistry( - REGISTRY_CREATOR_1_VERSION, - [RANDOM_CREATOR_1], - [100], - REGISTRY_NAME_1, - REGISTRY_SYMBOL_1, - { - from: RANDOM_CREATOR_1, - value: CREATION_FEE_EQUAL, - gas: CREATION_GAS - } - ) - - const entriesAmount = await chaingear.registriesAmount() - - const registryInfo = await chaingear.registryInfo(entriesAmount-1) - const createdAddress = registryInfo.toString().split(',')[2] - - const registry = Registry.at(createdAddress) - const name = await registry.name() - name.should.equal(REGISTRY_NAME_1) - - const registryAdmin = await registry.getAdmin() - const registryOwner = await registry.owner() - - registryAdmin.should.equal(RANDOM_CREATOR_1) - registryOwner.should.equal(chaingear.address) - - }) - - it("#1/2 should not allow anyone to build new registry with wrong fee and existed registry version", async () => { - - await chaingear.registerRegistry( - REGISTRY_CREATOR_1_VERSION, - [RANDOM_CREATOR_1], - [100], - REGISTRY_NAME_1, - REGISTRY_SYMBOL_1, - { - from: RANDOM_CREATOR_1, - value: CREATION_FEE_NOT_EQUAL, - gas: CREATION_GAS - } - ).should.be.rejected - - }) - - it("#1/3 should not allow anyone to build new registry with right fee and not existed registry version", async () => { - - await chaingear.registerRegistry( - NOT_EXISTED_REGISTRY_CREATOR_VERSION, - [RANDOM_CREATOR_1], - [100], - REGISTRY_NAME_1, - REGISTRY_SYMBOL_1, - { - from: RANDOM_CREATOR_1, - value: CREATION_FEE_EQUAL, - gas: CREATION_GAS - } - ).should.be.rejected - - }) - - it("#3/2 should allow registry_admin/token_owner to initialize registry", async () => { - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_1, 0) - - const registryInfo = await chaingear.registryInfo(ID.toNumber()) - const registryAddress = registryInfo.toString().split(',')[2] - - const registry = Registry.at(registryAddress) - - const registryInitializedBefore = await registry.getRegistryInitStatus(); - const registryEntryBaseBefore = await registry.getEntriesStorage() - - const registryEntryCoreAddress = await registry.initializeRegistry( - "Q_ABI_HASH", - EntryCore.bytecode, - { - from: RANDOM_CREATOR_1 - } - ) - const registryInitializedAfter = await registry.getRegistryInitStatus(); - registryInitializedBefore.should.not.equal(registryInitializedAfter) - - const registryEntryBaseAfter = await registry.getEntriesStorage() - registryEntryBaseBefore.should.not.equal(registryEntryBaseAfter) - - }) - - it("#3/3 should allow registry_admin/token_owner to transfer tokenized ownership", async () => { - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_1, 0) - - const registryInfo = await chaingear.registryInfo(ID.toNumber()) - const registryAddress = registryInfo.toString().split(',')[2] - - const registry = Registry.at(registryAddress) - - await chaingear.transferFrom( - RANDOM_CREATOR_1, - RANDOM_CREATOR_2, - ID.toNumber(), - { - from: RANDOM_CREATOR_1 - } - ) - - const registryAdmin = await registry.getAdmin() - registryAdmin.should.be.equal(RANDOM_CREATOR_2) - - const ID_2 = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_2, 0) - ID_2.toNumber().should.be.equal(ID.toNumber()) - - }) - - it("#3/4 should not allow unknown to transfer tokenized ownership for any registry", async () => { - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_2, 0) - - const registryInfo = await chaingear.registryInfo(ID.toNumber()) - const registryAddress = registryInfo.toString().split(',')[2] - - const registry = Registry.at(registryAddress) - - await chaingear.transferFrom( - RANDOM_CREATOR_2, - UNKNOWN, - ID.toNumber(), - { - from: UNKNOWN - } - ).should.be.rejected - - }) - - it("#4/1 should allow chaingear owner to add registry version to chaingear", async () => { - - await chaingear.addRegistryCreatorVersion( - "V_TEST", - "0x2", - "Q_HASH", - "THIS_IS_IT", - { - from: CHAINGEAR_OWNER - }) - - const newRegistryCreationVersionHash = await chaingear.getRegistryCreatorInfo("V_TEST") - newRegistryCreationVersionHash[1].should.be.equal("Q_HASH") - - }) - - it("#4/2 should not allow unknown to add registry version to chaingear", async () => { - - await chaingear.addRegistryCreatorVersion( - "V_TEST", - "0x2", - "Q_HASH", - "THIS_IS_IT", - { - from: UNKNOWN - }).should.be.rejected - - }) - - it("#5/1 should allow chaingear owner to change registration fee", async () => { - - await chaingear.updateRegistrationFee( - 7777777, - { - from: CHAINGEAR_OWNER - }) - - const newRegistrationFee = await chaingear.getRegistrationFee() - newRegistrationFee.toNumber().should.be.equal(7777777) - }) - - it("#5/2 should not allow unknown to change registration fee", async () => { - - await chaingear.updateRegistrationFee( - 88888888, - { - from: UNKNOWN - }).should.be.rejected - - }) - - it("#6/1 should allow chaingear owner to change description", async () => { - - await chaingear.updateDescription( - "MOST AWESOME REGISTRY", - { - from: CHAINGEAR_OWNER - }) - - const newChaingearDescription = await chaingear.getDescription() - newChaingearDescription.should.be.equal("MOST AWESOME REGISTRY") - }) - - it("#6/2 should not allow unknown to change description", async () => { - - await chaingear.updateDescription( - "MOST USELESSNESS REGISTRY", - { - from: UNKNOWN - }).should.be.rejected - - }) - - it("#7/1 funds from funded registry should be transfered to RegistrySafe", async () => { - - const registrySafeBalanceBefore = await chaingear.getSafeBalance() - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_2, 0) - - await chaingear.fundRegistry( - ID.toNumber(), - { - from: RANDOM_CREATOR_1, - value: REGISTRY_FUNDING - } - ) - - const registrySafeBalanceAfter = await chaingear.getSafeBalance() - const diff = registrySafeBalanceAfter.toNumber() - registrySafeBalanceBefore.toNumber() - - diff.should.be.equal(REGISTRY_FUNDING) - }) - - it("#7/2 owner of registry should can claim funds on balance of their Registry", async () => { - - const registrySafeBalanceBefore = await chaingear.getSafeBalance() - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_2, 0) - - // var balance = await chaingear.registryBalanceInfo(ID.toNumber()) - // console.log(balance.toString().split(',')[0]) - - await chaingear.claimEntryFunds( - ID.toNumber(), - REGISTRY_FUNDING, - { - from: RANDOM_CREATOR_2 - } - ) - - const registrySafeBalanceAfter = await chaingear.getSafeBalance() - const diff = registrySafeBalanceBefore.toNumber() - registrySafeBalanceAfter.toNumber() - diff.should.be.equal(REGISTRY_FUNDING) - }) - - it("#7/3 non-holder of registry token should not can claim tokens from registry balance", async () => { - - var ID = await chaingear.tokenOfOwnerByIndex(RANDOM_CREATOR_2, 0) - - await chaingear.claimEntryFunds( - ID.toNumber(), - REGISTRY_FUNDING, - { - from: RANDOM_CREATOR_1 - } - ).should.be.rejected - }) - - - // TODO writes test for uniqueness of registry names/symbols -}) diff --git a/test/databases/DatabaseV1.test.js b/test/databases/DatabaseV1.test.js new file mode 100644 index 00000000..239dd64f --- /dev/null +++ b/test/databases/DatabaseV1.test.js @@ -0,0 +1,360 @@ +const chai = require("chai"); +const bnChai = require("bn-chai"); +const expect = chai.expect; + +chai.use(bnChai(web3.utils.BN)); +chai.use(require('chai-as-promised')); +chai.should(); + +const {toWei, toBN, fromWei, BN} = web3.utils; +const { latestTime } = require('openzeppelin-solidity/test/helpers/latestTime'); + +const Chaingear = artifacts.require("Chaingear"); +const DatabaseBuilderV1 = artifacts.require("DatabaseBuilderV1"); +const DatabaseV1 = artifacts.require("DatabaseV1"); +const Schema = artifacts.require("AppsSchema"); + +contract("DatabaseV1", (accounts) => { + + let chaingear; + let builder; + let database; + let storage; + + const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; + + const CreateEntryPermissionGroup = { + OnlyAdmin: 0, + Whitelist: 1, + AllUsers: 2 + } + + const CHAINGEAR_OWNER = accounts[0] + const DATABASE_ADMIN = accounts[3] + const UNKNOWN = accounts[5] + const PIRATE = accounts[7] + + const DATABASE_BENEFICIARY_1 = accounts[3] + const DATABASE_BENEFICIARY_2 = accounts[4] + const DATABASE_BENEFICIARIES = [DATABASE_BENEFICIARY_1, DATABASE_BENEFICIARY_2] + + const DATABASE_BENEFICIARY_1_SHARES = toBN('50'); + const DATABASE_BENEFICIARY_2_SHARES = toBN('50'); + const DATABASE_BENEFICIARIES_SHARES = [DATABASE_BENEFICIARY_1_SHARES, DATABASE_BENEFICIARY_2_SHARES] + + const CHAINGEAR_BUILDING_FEE = toWei(toBN(1), 'finney'); + const CREATION_FEE = toWei(toBN(1), 'finney'); + const FUNDING = toWei(toBN(1), 'ether'); + + const DATABASE_BUILDER_VERSION = "V1" + + const DATABASE_NAME = "test-registry"; + const DATABASE_SYMBOL = "TREG"; + + before(async () => { + + builder = await DatabaseBuilderV1.new({ from: CHAINGEAR_OWNER }); + + chaingear = await Chaingear.new( + [accounts[8]], [100], { from: CHAINGEAR_OWNER } + ); + + await builder.setChaingearAddress( + chaingear.address, { from: CHAINGEAR_OWNER } + ); + + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_VERSION, + builder.address, + "", + "", + { from: CHAINGEAR_OWNER } + ).should.be.fulfilled; + + await chaingear.createDatabase( + DATABASE_BUILDER_VERSION, + DATABASE_BENEFICIARIES, + DATABASE_BENEFICIARIES_SHARES, + DATABASE_NAME, + DATABASE_SYMBOL, + { + from: DATABASE_ADMIN, + value: CHAINGEAR_BUILDING_FEE + } + ).should.be.fulfilled; + + let databaseMeta = await chaingear.getDatabase(0); + database = await DatabaseV1.at(databaseMeta[2]); + expect(await database.getChaingearID()).to.eq.BN(toBN('0')); + }) + + describe("when deployed", () => { + it("should not accept payments", async () => { + let payment = toWei('1', 'ether'); + await database.sendTransaction({ value: payment, from: UNKNOWN }).should.be.rejected; + }); + + it("name should equal", async() => { + (await database.name()).should.equal(DATABASE_NAME); + }); + + it("token symbol should equal", async() => { + (await database.symbol()).should.equal(DATABASE_SYMBOL); + }); + + it("should have creation fee", async () => { + expect(await database.getEntryCreationFee()).to.eq.BN(toBN('0')); + }); + + it("should have description", async () => { + (await database.getDatabaseDescription()).should.be.equal(""); + }); + + it("should have safe", async () => { + (await database.getDatabaseSafe()).should.be.not.equal(ZERO_ADDRESS); + }); + + it("safe should have zero balance", async () => { + expect(await web3.eth.getBalance(await database.getDatabaseSafe())).to.eq.BN(toBN('0')); + }); + + it("should have payees", async () => { + for (var i = 0; i < DATABASE_BENEFICIARIES.length; i++) { + (await database.getPayee(i)).should.be.equal(DATABASE_BENEFICIARIES[i]); + } + }); + + it("payess should have shares", async () => { + for (var i = 0; i < DATABASE_BENEFICIARIES.length; i++) { + expect(await database.getShares(DATABASE_BENEFICIARIES[i])).to.eq.BN(DATABASE_BENEFICIARIES_SHARES[i]); + } + }); + + it("should have zero token supply", async () => { + expect(await database.totalSupply()).to.eq.BN(toBN('0')); + }); + + it("should allow admin to update creation fee when paused", async () => { + await database.updateEntryCreationFee(CREATION_FEE, { from: DATABASE_ADMIN }); + expect(await database.getEntryCreationFee()).to.eq.BN(CREATION_FEE); + }); + }) + + describe("when initializing database", () => { + it("should not allow non-admin initialize database", async () => { + await database.initializeDatabase("", Schema.bytecode, { from: UNKNOWN }).should.be.rejected; + }); + + it("should not allow admin corrupt database", async () => { + await database.initializeDatabase("", "0x", { from: DATABASE_ADMIN }).should.be.rejected; + }); + + it("should allow admin initialize database", async () => { + (await database.getDatabaseInitStatus()).should.be.equal(false); + await database.initializeDatabase("", Schema.bytecode, { from: DATABASE_ADMIN }).should.be.fulfilled; + (await database.getDatabaseInitStatus()).should.be.equal(true); + + await database.initializeDatabase("", Schema.bytecode, { from: DATABASE_ADMIN }).should.be.rejected; + (await database.getEntriesStorage()).should.be.not.equal(ZERO_ADDRESS); + storage = await Schema.at(await database.getEntriesStorage()); + await database.unpause({ from: DATABASE_ADMIN }); + }); + }) + + describe("when creating entries", () => { + it("should not allow non-admin to add entries", async () => { + await database.createEntry({ value: CREATION_FEE, from: UNKNOWN }).should.be.rejected; + }); + + it("should not allow admin to add entries when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.createEntry({ value: CREATION_FEE, from: DATABASE_ADMIN }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should not allow admin to add entries with wrong creation fee", async () => { + await database.createEntry({ value: toWei('1'), from: DATABASE_ADMIN }).should.be.rejected; + }); + + it("should allow admin to add entries", async () => { + let databaseBalanceBefore = new BN(await web3.eth.getBalance(database.address)); + await database.createEntry({ value: CREATION_FEE, from: DATABASE_ADMIN }).should.be.fulfilled; + expect(await database.totalSupply()).to.eq.BN(toBN('1')); + let entryMeta = await database.readEntryMeta(0); + (entryMeta[0]).should.be.equal(DATABASE_ADMIN); + (entryMeta[1]).should.be.equal(DATABASE_ADMIN); + let databaseBalanceAfter = new BN(await web3.eth.getBalance(database.address)); + expect(databaseBalanceAfter.sub(databaseBalanceBefore)).to.eq.BN(CREATION_FEE); + (await database.getEntriesIDs()).length.should.be.equal(1); + + let entry = await storage.readEntry(0); + (entry[0]).should.be.equal(""); + (entry[1]).should.be.equal(""); + (entry[2]).should.be.equal(""); + (entry[3]).should.be.equal(""); + (entry[4]).should.be.equal(""); + expect(entryMeta[3]).to.eq.BN(await latestTime()); + }); + + it("should allow admin to whitelist new address", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.updateCreateEntryPermissionGroup(CreateEntryPermissionGroup.Whitelist, + { + from: DATABASE_ADMIN + } + ).should.be.fulfilled; + (await database.getDatabasePermissions()).toNumber().should.be.equal(CreateEntryPermissionGroup.Whitelist); + (await database.checkWhitelisting(UNKNOWN)).should.be.equal(false); + await database.addToWhitelist(UNKNOWN, { from: DATABASE_ADMIN }).should.be.fulfilled; + (await database.checkWhitelisting(UNKNOWN)).should.be.equal(true); + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should allow whitelisted unknown to add entries", async () => { + let databaseBalanceBefore = new BN(await web3.eth.getBalance(database.address)); + await database.createEntry({ value: CREATION_FEE, from: UNKNOWN }).should.be.fulfilled; + expect(await database.totalSupply()).to.eq.BN(toBN('2')); + let entryMeta = await database.readEntryMeta(1); + (entryMeta[0]).should.be.equal(UNKNOWN); + (entryMeta[1]).should.be.equal(UNKNOWN); + let databaseBalanceAfter = new BN(await web3.eth.getBalance(database.address)); + expect(databaseBalanceAfter.sub(databaseBalanceBefore)).to.eq.BN(CREATION_FEE); + (await database.getEntriesIDs()).length.should.be.equal(2); + }); + + it("should allow admin to set global access to add entries", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.updateCreateEntryPermissionGroup(CreateEntryPermissionGroup.AllUsers, + { + from: DATABASE_ADMIN + } + ).should.be.fulfilled; + await database.unpause({ from: DATABASE_ADMIN }); + (await database.getDatabasePermissions()).toNumber().should.be.equal(CreateEntryPermissionGroup.AllUsers); + }); + + it("should allow unknown to add entries", async () => { + let databaseBalanceBefore = new BN(await web3.eth.getBalance(database.address)); + await database.createEntry({ value: CREATION_FEE, from: PIRATE }).should.be.fulfilled; + expect(await database.totalSupply()).to.eq.BN(toBN('3')); + let entryMeta = await database.readEntryMeta(2); + (entryMeta[0]).should.be.equal(PIRATE); + (entryMeta[1]).should.be.equal(PIRATE); + let databaseBalanceAfter = new BN(await web3.eth.getBalance(database.address)); + expect(databaseBalanceAfter.sub(databaseBalanceBefore)).to.eq.BN(CREATION_FEE); + (await database.getEntriesIDs()).length.should.be.equal(3); + }); + }) + + describe("when funding entries", () => { + it("should not allow to fund when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.fundEntry(2, { value: FUNDING, from: PIRATE }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should not allow to fund non-existed entry", async () => { + await database.fundEntry(3, { value: FUNDING, from: PIRATE }).should.be.rejected; + }); + + it("should allow to fund entry", async () => { + await database.fundEntry(2, { value: FUNDING, from: PIRATE }).should.be.fulfilled; + await database.fundEntry(2, { value: FUNDING, from: UNKNOWN }).should.be.fulfilled; + await database.fundEntry(2, { value: FUNDING, from: DATABASE_ADMIN }).should.be.fulfilled; + let entryMeta = await database.readEntryMeta(2); + expect(entryMeta[4]).to.eq.BN(FUNDING.mul(toBN('3'))); + expect(entryMeta[5]).to.eq.BN(FUNDING.mul(toBN('3'))); + expect(await web3.eth.getBalance(await database.getDatabaseSafe())).to.eq.BN(FUNDING.mul(toBN('3'))); + }); + }) + + describe("when claiming entries funds", () => { + it("should not allow non-owner of entry to claim funds", async () => { + await database.claimEntryFunds(2, FUNDING, { from: UNKNOWN }).should.be.rejected; + }); + + it("should not allow owner of entry to claim funds when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.claimEntryFunds(2, FUNDING, { from: PIRATE }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should not allow owner of entry to claim funds more then funded", async () => { + await database.claimEntryFunds(2, FUNDING.mul(toBN('10')), { from: PIRATE }).should.be.rejected; + }); + + it("should allow owner of entry to claim funds", async () => { + await database.claimEntryFunds(2, FUNDING, { from: PIRATE }).should.be.fulfilled; + let entryMeta = await database.readEntryMeta(2); + expect(entryMeta[4]).to.eq.BN(FUNDING.mul(toBN('2'))); + expect(entryMeta[5]).to.eq.BN(FUNDING.mul(toBN('3'))); + expect(await web3.eth.getBalance(await database.getDatabaseSafe())).to.eq.BN(FUNDING.mul(toBN('2'))); + }); + }) + + describe("when transfering entries", () => { + it("should not allow non-owner of entry to transfer", async () => { + await database.transferFrom(UNKNOWN, PIRATE, 2, { from: UNKNOWN }).should.be.rejected; + }); + + it("should not allow owner of entry to transfer when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await database.transferFrom(PIRATE, UNKNOWN, 2, { from: PIRATE }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should allow owner of entry to transfer entry", async () => { + await database.transferFrom(PIRATE, UNKNOWN, 2, { from: PIRATE }).should.be.fulfilled; + let entryMeta = await database.readEntryMeta(2); + (entryMeta[0]).should.be.equal(UNKNOWN); + (entryMeta[1]).should.be.equal(PIRATE); + }); + }) + + describe("when editing entries", () => { + it("should not allow non-owner to update entry", async () => { + await storage.updateEntry(2, "1", "1", "1", "1", "1", { from: PIRATE }).should.be.rejected; + }); + + it("should not allow owner to update entry when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await storage.updateEntry(2, "1", "1", "1", "1", "1", { from: UNKNOWN }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should allow owner to update entry", async () => { + await storage.updateEntry(2, "1", "1", "1", "1", "1", { from: UNKNOWN }).should.be.fulfilled; + let entry = await storage.readEntry(2); + (entry[0]).should.be.equal("1"); + (entry[1]).should.be.equal("1"); + (entry[2]).should.be.equal("1"); + (entry[3]).should.be.equal("1"); + (entry[4]).should.be.equal("1"); + let entryMeta = await database.readEntryMeta(2); + expect(entryMeta[3]).to.eq.BN(await latestTime()); + }); + }) + + describe("when deleting entries", () => { + it("should not allow non-owner to delete entry", async () => { + await storage.deleteEntry(2, { from: PIRATE }).should.be.rejected; + }); + + it("should not allow owner to delete entry when paused", async () => { + await database.pause({ from: DATABASE_ADMIN }); + await storage.deleteEntry(2, { from: UNKNOWN }).should.be.rejected; + await database.unpause({ from: DATABASE_ADMIN }); + }); + + it("should allow owner to delete entry", async () => { + await database.claimEntryFunds(2, FUNDING.mul(toBN('2')), { from: UNKNOWN }).should.be.fulfilled; + let entryMeta = await database.readEntryMeta(2); + expect(entryMeta[4]).to.eq.BN(FUNDING.mul(toBN('0'))); + expect(entryMeta[5]).to.eq.BN(FUNDING.mul(toBN('3'))); + + await database.deleteEntry(2, { from: UNKNOWN }).should.be.fulfilled; + expect(await database.totalSupply()).to.eq.BN(toBN('2')); + (await database.getEntriesIDs()).length.should.be.equal(2); + }); + }) +}) diff --git a/test/registry/AllUsersRegistryEntryCrudTests.js b/test/registry/AllUsersRegistryEntryCrudTests.js deleted file mode 100644 index ce06d278..00000000 --- a/test/registry/AllUsersRegistryEntryCrudTests.js +++ /dev/null @@ -1,228 +0,0 @@ -const chai = require("chai") -chai.use(require("chai-as-promised")) -chai.should() - -const RegistryUtils = require('./RegistryUtils') -const EntryCore = artifacts.require("EntryCore") - -contract("All Users Registry Entry Crud Tests", (accounts) => { - - let registry - const REGISTRY_OWNER_ACCOUNT = accounts[0] - const REGISTRY_ADMIN_ACCOUNT = accounts[1] - const UNKNOWN_ACCOUNT = accounts[2] - const VERY_UNKNOWN_ACCOUNT = accounts[5] - - before(async () => { - registry = await RegistryUtils.createTestRegistry( - REGISTRY_OWNER_ACCOUNT, REGISTRY_ADMIN_ACCOUNT, 100000, - RegistryUtils.CreateEntryPermissionGroup.AllUsers - ) - }) - - /* -------------------------------- Create Entry ----------------------- */ - //todo discuss: value can be only equal defined fee - it("#1/1 should allow registry admin to add new entry with enough fee", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.createEntryPromise(REGISTRY_ADMIN_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - it("#1/2 should allow registry owner to add new entry with enough fee", async () => { - const newEntryId = await registry.createEntry(REGISTRY_OWNER_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - it("#1/3 should allow unknown to add new entry with enough fee", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - it("#1/4 should allow unknown to add new entry and update them", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - const entriesStorageAddress = await registry.getEntriesStorage() - const entryCore = EntryCore.at(entriesStorageAddress) - - await entryCore.updateEntry( - newEntryId, - UNKNOWN_ACCOUNT, - 42, - -42, - "42", - { - from: UNKNOWN_ACCOUNT - } - ).should.be.fulfilled - - const entryInfo = await entryCore.entryInfo(newEntryId.toNumber()) - const expensiveUint = entryInfo.toString().split(',')[1] - expensiveUint.should.be.equal("42") - }) - - it("#1/5 should not allow very unknown to update not his entry", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - const entriesStorageAddress = await registry.getEntriesStorage() - const entryCore = EntryCore.at(entriesStorageAddress) - - await entryCore.updateEntry( - newEntryId, - UNKNOWN_ACCOUNT, - 42, - -42, - "42", - { - from: VERY_UNKNOWN_ACCOUNT - } - ).should.be.rejected - }) - - it("#1/6 should not allow unknown add entry with non-uniq string (example in EntryCore)", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - const entriesStorageAddress = await registry.getEntriesStorage() - const entryCore = EntryCore.at(entriesStorageAddress) - - await entryCore.updateEntry( - newEntryId, - UNKNOWN_ACCOUNT, - 1, - -1, - "42", - { - from: UNKNOWN_ACCOUNT - } - ).should.be.rejected - }) - - //todo discuss: should admin be able to create entries without fee? - it("#2/1 should not allow admin to add new entry without enough fee", async () => { - await registry.createEntryPromise(REGISTRY_ADMIN_ACCOUNT, registry.fee - 1).should.be.rejected - }) - - it("#2/2 should not allow unknown to add new entry without enough fee", async () => { - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee - 1).should.be.rejected - }) - - /* -------------------------------- Delete Entry ----------------------- */ - it("#3/1 should allow registry admin to delete his entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_ADMIN_ACCOUNT, newEntryId).should.be.fulfilled - await registry.containsEntry(newEntryId).should.eventually.equal(false) - }) - - it("#3/2 should allow registry owner to delete entry if her is entry owner", async () => { - const newEntryId = await registry.createEntry(REGISTRY_OWNER_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_OWNER_ACCOUNT, newEntryId).should.be.fulfilled - await registry.containsEntry(newEntryId).should.eventually.equal(false) - }) - - it("#3/3 should not allow registry admin to delete entry if it's not his entry", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_ADMIN_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - it("#3/4 should not allow registry owner to delete entry if it's not his entry", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_OWNER_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - it("#3/5 should allow unknown to delete entry his entry", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.fulfilled - await registry.containsEntry(newEntryId).should.eventually.equal(false) - }) - - it("#3/6 should not allow unknown to delete entry if it's not his entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - it("#3/7 should not allow unknown to delete entry his entry if there is funds", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - const entrySafeBalanceBefore = await registry.contract.getSafeBalance() - - const entryFunding = 100000 - - await registry.contract.fundEntry( - newEntryId, - { - from: UNKNOWN_ACCOUNT, - value: entryFunding - } - ) - - const entrySafeBalanceAfter = await registry.contract.getSafeBalance() - const diff = entrySafeBalanceAfter.toNumber() - entrySafeBalanceBefore.toNumber() - diff.should.be.equal(100000) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - it("#3/8 should allow unknown to delete entry his entry if there is no funds", async () => { - const newEntryId = await registry.createEntry(UNKNOWN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - const entrySafeBalanceBefore = await registry.contract.getSafeBalance() - - const entryFunding = 100000 - - await registry.contract.fundEntry( - newEntryId, - { - from: UNKNOWN_ACCOUNT, - value: entryFunding - } - ) - - const entrySafeBalanceAfter = await registry.contract.getSafeBalance() - const diff = entrySafeBalanceAfter.toNumber() - entrySafeBalanceBefore.toNumber() - diff.should.be.equal(entryFunding) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.contract.claimEntryFunds( - newEntryId, - entryFunding, - { - from: UNKNOWN_ACCOUNT - } - ) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.fulfilled - await registry.containsEntry(newEntryId).should.eventually.equal(false) - }) - - - after(async() =>{ - registry = null - }) -}) diff --git a/test/registry/EntryCoreAuthTests.js b/test/registry/EntryCoreAuthTests.js deleted file mode 100644 index 6046ddb8..00000000 --- a/test/registry/EntryCoreAuthTests.js +++ /dev/null @@ -1,42 +0,0 @@ -// TODO - -// 1 not allow any user directly create entry -// 1 not allow any user directly delete entry - -const chai = require("chai") -chai.use(require("chai-as-promised")) -chai.should() - -const RegistryUtils = require('./RegistryUtils') -const EntryCore = artifacts.require("EntryCore") - -contract("Only Registry can CruD with EntryCore", (accounts) => { - - let registry - const REGISTRY_OWNER_ACCOUNT = accounts[0] - const REGISTRY_ADMIN_ACCOUNT = accounts[1] - const UNKNOWN_ACCOUNT = accounts[2] - - before(async () => { - registry = await RegistryUtils.createTestRegistry(REGISTRY_OWNER_ACCOUNT, REGISTRY_ADMIN_ACCOUNT) - }) - - it("#1/1 should not allow unknown to add new entry", async () => { - const entriesStorageAddress = await registry.getEntriesStorage() - const entryCore = EntryCore.at(entriesStorageAddress) - await entryCore.createEntry({from: UNKNOWN_ACCOUNT}).should.be.rejected - }) - - it("#1/2 should not allow unknown to delete entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT, registry.fee) - - const entriesStorageAddress = await registry.getEntriesStorage() - const entryCore = EntryCore.at(entriesStorageAddress) - await entryCore.deleteEntry(newEntryId, {from: UNKNOWN_ACCOUNT}).should.be.rejected - }) - - after(async() =>{ - registry = null - }) - -}) diff --git a/test/registry/OnlyAdminRegistryEntryCrudTests.js b/test/registry/OnlyAdminRegistryEntryCrudTests.js deleted file mode 100644 index 0d30c5c9..00000000 --- a/test/registry/OnlyAdminRegistryEntryCrudTests.js +++ /dev/null @@ -1,74 +0,0 @@ -const chai = require("chai") -chai.use(require("chai-as-promised")) -chai.should() - -const RegistryUtils = require('./RegistryUtils') - -contract("OnlyAdmin Registry Entry Crud Tests", (accounts) => { - - let registry - const REGISTRY_OWNER_ACCOUNT = accounts[0] - const REGISTRY_ADMIN_ACCOUNT = accounts[1] - const UNKNOWN_ACCOUNT = accounts[2] - - before(async () => { - registry = await RegistryUtils.createTestRegistry(REGISTRY_OWNER_ACCOUNT, REGISTRY_ADMIN_ACCOUNT) - }) - - /* -------------------------------- Create Entry ----------------------- */ - //todo discuss: value can be only equal defined fee - it("#1/1 should allow admin to add new entry with enough fee", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT, registry.fee) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.createEntryPromise(REGISTRY_ADMIN_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - it("#1/2 should not allow registry owner to add new entry with enough fee", async () => { - await registry.createEntryPromise(REGISTRY_OWNER_ACCOUNT, registry.fee).should.be.rejected - await registry.createEntryPromise(REGISTRY_OWNER_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - it("#1/3 should not allow unknown to add new entry with enough fee", async () => { - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee).should.be.rejected - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee + registry.fee).should.be.rejected - }) - - //todo discuss: should admin be able to create entries without fee? - it("#2/1 should not allow registry admin to add new entry without enough fee", async () => { - await registry.createEntryPromise(REGISTRY_ADMIN_ACCOUNT, registry.fee - 1).should.be.rejected - }) - - it("#2/2 should not allow unknown to add new entry without enough fee", async () => { - await registry.createEntryPromise(UNKNOWN_ACCOUNT, registry.fee - 1).should.be.rejected - }) - - /* -------------------------------- Delete Entry ----------------------- */ - it("#3/1 should allow registry admin-as-user to delete his entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_ADMIN_ACCOUNT, newEntryId).should.be.fulfilled - await registry.containsEntry(newEntryId).should.eventually.equal(false) - }) - - it("#3/2 should not allow registry owner to delete not his entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(REGISTRY_OWNER_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - it("#3/3 should not allow unknown to delete not his entry", async () => { - const newEntryId = await registry.createEntry(REGISTRY_ADMIN_ACCOUNT) - await registry.containsEntry(newEntryId).should.eventually.equal(true) - - await registry.deleteEntry(UNKNOWN_ACCOUNT, newEntryId).should.be.rejected - await registry.containsEntry(newEntryId).should.eventually.equal(true) - }) - - after(async() =>{ - registry = null - }) -}) diff --git a/test/registry/RegistryPermissionControlTests.js b/test/registry/RegistryPermissionControlTests.js deleted file mode 100644 index 6bcbc9b5..00000000 --- a/test/registry/RegistryPermissionControlTests.js +++ /dev/null @@ -1,96 +0,0 @@ -const chai = require("chai") -chai.should() -chai.use(require("chai-bignumber")()) -chai.use(require("chai-as-promised")) - -const RegistryCreateEntryPermissionGroup = require('./RegistryUtils').CreateEntryPermissionGroup -const RegistryPermissionControlTestContract = artifacts.require('RegistryPermissionControlTestContract'); - -contract("RegistryPermissionControlTestContract", (accounts) => { - - let contract; - const OWNER_ACCOUNT = accounts[0] - const ADMIN_ACCOUNT = accounts[1] - const UNKNOWN_ACCOUNT = accounts[2] - - before(async () => { - contract = await RegistryPermissionControlTestContract.new({from: OWNER_ACCOUNT}) - contract.transferAdminRights(ADMIN_ACCOUNT, {from: OWNER_ACCOUNT}) - }); - - it("#1/1 should allow registry admin to set entry creation permission group", async () => { - const currentPermissionGroup = await contract.getRegistryPermissions() - const newPermissionGroup = anotherCreateEntryPermissionGroup(currentPermissionGroup) - await contract.updateCreateEntryPermissionGroup(newPermissionGroup, {from: ADMIN_ACCOUNT}).should.be.fulfilled - const result = await contract.getRegistryPermissions() - result.should.bignumber.equal(newPermissionGroup) - }) - - it("#1/2 should not allow registry owner to set entry creation permission group", async () => { - const currentPermissionGroup = await contract.getRegistryPermissions() - const newPermissionGroup = anotherCreateEntryPermissionGroup(currentPermissionGroup) - await contract.updateCreateEntryPermissionGroup(newPermissionGroup, {from: OWNER_ACCOUNT}).should.be.rejected - const result = await contract.getRegistryPermissions() - result.should.bignumber.equal(currentPermissionGroup) - }) - - it("#1/3 should not allow unknown account to set entry creation permission group", async () => { - const currentPermissionGroup = await contract.getRegistryPermissions() - const newPermissionGroup = anotherCreateEntryPermissionGroup(currentPermissionGroup) - await contract.updateCreateEntryPermissionGroup(newPermissionGroup, {from: UNKNOWN_ACCOUNT}).should.be.rejected - const result = await contract.getRegistryPermissions() - result.should.bignumber.equal(currentPermissionGroup) - }) - - it("#2/1 should allow only admin to invoke methods with modifier 'onlyPermissionedToCreateEntries'", async () => { - - await contract.updateCreateEntryPermissionGroup( - RegistryCreateEntryPermissionGroup.OnlyAdmin, {from: ADMIN_ACCOUNT} - ).should.be.fulfilled - const value = await contract.uintValue_() - - await contract.testOnlyPermissionedToCreateEntries(value + 1, {from: ADMIN_ACCOUNT}).should.be.fulfilled - const result1 = await contract.uintValue_() - result1.should.bignumber.equal(value + 1) - - await contract.testOnlyPermissionedToCreateEntries(value + 2, {from: UNKNOWN_ACCOUNT}).should.be.rejected - const result2 = await contract.uintValue_() - result2.should.bignumber.not.equal(value + 2) - - await contract.testOnlyPermissionedToCreateEntries(value + 3, {from: OWNER_ACCOUNT}).should.be.rejected - const result3 = await contract.uintValue_() - result3.should.bignumber.not.equal(value + 3) - }) - - it("#2/2 should allow all to invoke methods with modifier 'onlyPermissionedToCreateEntries'", async () => { - - await contract.updateCreateEntryPermissionGroup( - RegistryCreateEntryPermissionGroup.AllUsers, {from: ADMIN_ACCOUNT} - ).should.be.fulfilled - const value = await contract.uintValue_() - - await contract.testOnlyPermissionedToCreateEntries(value + 1, {from: ADMIN_ACCOUNT}).should.be.fulfilled - const result1 = await contract.uintValue_() - result1.should.bignumber.equal(value + 1) - - await contract.testOnlyPermissionedToCreateEntries(value + 2, {from: UNKNOWN_ACCOUNT}).should.be.fulfilled - const result2 = await contract.uintValue_() - result2.should.bignumber.equal(value + 2) - - await contract.testOnlyPermissionedToCreateEntries(value + 3, {from: OWNER_ACCOUNT}).should.be.fulfilled - const result3 = await contract.uintValue_() - result3.should.bignumber.equal(value + 3) - }) - - after(async() =>{ - contract = null; - }) -}) - -function anotherCreateEntryPermissionGroup(registryCreateEntryPermissionGroup) { - if (registryCreateEntryPermissionGroup === RegistryCreateEntryPermissionGroup.OnlyAdmin) { - return RegistryCreateEntryPermissionGroup.AllUsers - } else { - return RegistryCreateEntryPermissionGroup.OnlyAdmin - } -} diff --git a/test/registry/RegistryUpdateSettingsTests.js b/test/registry/RegistryUpdateSettingsTests.js deleted file mode 100644 index a126b13c..00000000 --- a/test/registry/RegistryUpdateSettingsTests.js +++ /dev/null @@ -1,100 +0,0 @@ -const chai = require("chai") -chai.should() -chai.use(require("chai-bignumber")()) -chai.use(require("chai-as-promised")) - -const {createTestRegistry, CreateEntryPermissionGroup} = require('./RegistryUtils') - - -contract("Registry Update Settings Tests", (accounts) => { - - let registry - let registryDefaultDescription - const REGISTRY_OWNER_ACCOUNT = accounts[0] - const REGISTRY_ADMIN_ACCOUNT = accounts[1] - const UNKNOWN_ACCOUNT = accounts[2] - - before(async () => { - registry = await createTestRegistry( - REGISTRY_OWNER_ACCOUNT, REGISTRY_ADMIN_ACCOUNT, 100000, - CreateEntryPermissionGroup.AllUsers - ) - registryDefaultDescription = registry.name - }) - - /* -------------------------------- Entry Creation Fee ----------------- */ - it("#1/1 should allow registry admin to set entry creation fee", async () => { - - const newFee = registry.fee * 2 - await registry.updateEntryCreationFee(REGISTRY_ADMIN_ACCOUNT, newFee).should.be.fulfilled - const result = await registry.contract.getEntryCreationFee() - result.should.bignumber.equal(newFee) - }) - - it("#1/2 should not allow registry owner to set entry creation fee", async () => { - - const newFee = registry.fee * 2 - await registry.updateEntryCreationFee(REGISTRY_OWNER_ACCOUNT, newFee).should.be.rejected - const result = await registry.contract.getEntryCreationFee() - result.should.bignumber.equal(registry.fee) - }) - - it("#1/3 should not allow unknown account to set entry creation fee", async () => { - - const newFee = registry.fee * 2 - await registry.updateEntryCreationFee(UNKNOWN_ACCOUNT, newFee).should.be.rejected - const result = await registry.contract.getEntryCreationFee() - result.should.bignumber.equal(registry.fee) - }) - - /* -------------------------------- Registry Description ---------------------- */ - it("#2/1 should allow registry admin to set description", async () => { - - const newDescription = registryDefaultDescription + "1" - await registry.updateRegistryDescription(REGISTRY_ADMIN_ACCOUNT, newDescription).should.be.fulfilled - await registry.contract.getRegistryDescription().should.eventually.equal(newDescription) - }) - - it("#2/2 should not allow registry owner to set description", async () => { - - const currentDescription = await registry.contract.getRegistryDescription() - const newDescription = registryDefaultDescription + "2" - await registry.updateRegistryDescription(REGISTRY_OWNER_ACCOUNT, newDescription).should.be.rejected - await registry.contract.getRegistryDescription().should.eventually.equal(currentDescription) - }) - - it("#2/3 should not allow unknown account to set description", async () => { - - const currentDescription = await registry.contract.getRegistryDescription() - const newDescription = registryDefaultDescription + "3" - await registry.updateRegistryDescription(UNKNOWN_ACCOUNT, newDescription).should.be.rejected - await registry.contract.getRegistryDescription().should.eventually.equal(currentDescription) - }) - - it("#2/4 should not allow to set too long description", async () => { - - const currentDescription = await registry.contract.getRegistryDescription() - const newDescription = registryDefaultDescription + "42".repeat(128) - await registry.updateRegistryDescription(REGISTRY_ADMIN_ACCOUNT, newDescription).should.be.rejected - await registry.contract.getRegistryDescription().should.eventually.equal(currentDescription) - }) - - /* -------------------------------- Registry Name ---------------------- */ - it("#2/5 should allow registry admin to set new Registry name", async () => { - const newName = "NEW_NAME" - - await registry.contract.updateName( - newName, - { - from: REGISTRY_ADMIN_ACCOUNT - } - ).should.be.fulfilled - - await registry.contract.name().should.eventually.equal(newName) - }) - - after(async() =>{ - registry = null - registryDefaultDescription = null - }) -}) diff --git a/test/registry/RegistryUtils.js b/test/registry/RegistryUtils.js deleted file mode 100644 index ada33ffd..00000000 --- a/test/registry/RegistryUtils.js +++ /dev/null @@ -1,132 +0,0 @@ -const EntryCoreArtifacts = require("../../build/contracts/EntryCore.json") -const Registry = artifacts.require("Registry") -const BigNumber = require("bignumber.js") - - -const CreateEntryPermissionGroup = { - OnlyAdmin: 0, - AllUsers: 1 -} - -function isEntryCreatedEvent(log) { - return log.event === 'EntryCreated' -} - -const createTestRegistry = async function ( - ownerAccount, adminAccount, entryCreationFee = 100000, - createEntryPermissionGroup = CreateEntryPermissionGroup.OnlyAdmin -) { - - const registry = {} - registry.adminAccount = adminAccount - registry.ownerAccount = ownerAccount - registry.name = "EXPENSIVE_REGISTRY" - registry.description = "" - registry.symbol = "EXP" - registry.linkToABIOfEntriesContract = "IPFS_CID" - registry.fee = entryCreationFee - - registry.contract = await Registry.new( - [adminAccount], [100], registry.name, registry.symbol, - {from: ownerAccount, gas: 10000000} - ) - await registry.contract.transferAdminRights(adminAccount, {from: ownerAccount}) - - await registry.contract.updateCreateEntryPermissionGroup(createEntryPermissionGroup, {from: adminAccount}) - await registry.contract.updateEntryCreationFee(entryCreationFee, {from: adminAccount}) - await registry.contract.initializeRegistry(registry.linkToABIOfEntriesContract, EntryCoreArtifacts.bytecode, - {from: adminAccount}) - - /** - * @returns {Promise} - */ - registry.getEntriesStorage = async function () { - return await registry.contract.getEntriesStorage() - } - - /** - * @param entryId to check existence - * @returns {Promise} - */ - registry.containsEntry = async function (entryId) { - return await registry.contract.exists(entryId) - } - - /** - * @param account to be used for invoking function - * @param fee required by registry - * @param gas attached to tx - * @returns {*} execution result promise - */ - registry.createEntryPromise = function (account, fee = registry.fee, gas = 500000) { - return registry.contract.createEntry({from: account, value: fee, gas: gas}) - } - - /** - * @param account to be used for invoking function - * @param fee required by registry - * @param gas attached to tx - * @returns {Number} created entry tokenId - */ - registry.createEntry = async function (account, fee = registry.fee, gas = 500000) { - const executionResult = await registry.contract.createEntry( - { - from: account, - value: fee, - gas: gas - } - ) - return executionResult.logs.find(isEntryCreatedEvent).args.entryID - } - - /** - * @param account to be used for invoking function - * @param entryId to delete - * @returns {*} execution result promise - */ - registry.deleteEntry = function (account, entryId) { - return registry.contract.deleteEntry(entryId, {from: account}) - } - - /** - * @param account to be used for invoking function - * @param newDescription - * @returns {*} execution result promise - */ - registry.updateRegistryDescription = function (account, newDescription) { - return registry.contract.updateRegistryDescription(newDescription, {from: account}).then( - function (result) { - registry.description = newDescription - return result - } - ) - } - - /** - * @param account to be used for invoking function - * @param new name - * @returns {*} execution result promise - */ - registry.updateEntryCreationFee = function (account, newFee) { - return registry.contract.updateEntryCreationFee(newFee, {from: account}).then( - function (result) { - registry.fee = newFee - return result - } - ) - } - - /** - * @returns {Promise} entry creation permission group - */ - registry.registryCreateEntryPermissionGroup = async function () { - const permissionTypeEntries = await registry.contract.permissionsTypeEntries() - return permissionTypeEntries.toNumber() - } - - return registry -} - -module.exports.CreateEntryPermissionGroup = CreateEntryPermissionGroup -module.exports.createTestRegistry = createTestRegistry -module.exports.isEntryCreatedEvent = isEntryCreatedEvent diff --git a/test/schemas/TestSchema.test.js b/test/schemas/TestSchema.test.js new file mode 100644 index 00000000..450349c4 --- /dev/null +++ b/test/schemas/TestSchema.test.js @@ -0,0 +1,122 @@ +const chai = require("chai"); +const bnChai = require("bn-chai"); +const expect = chai.expect; + +chai.use(bnChai(web3.utils.BN)); +chai.use(require('chai-as-promised')); +chai.should(); + +const {toWei, toBN, fromWei, BN} = web3.utils; +const { latestTime } = require('openzeppelin-solidity/test/helpers/latestTime'); + +const Chaingear = artifacts.require("Chaingear"); +const DatabaseBuilderV1 = artifacts.require("DatabaseBuilderV1"); +const DatabaseV1 = artifacts.require("DatabaseV1"); +const Schema = artifacts.require("TestSchema"); + +contract("TestSchema", (accounts) => { + + let chaingear; + let builder; + let database; + let storage; + + const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; + + // const CreateEntryPermissionGroup = { + // OnlyAdmin: 0, + // Whitelist: 1, + // AllUsers: 2 + // } + + const CHAINGEAR_OWNER = accounts[0] + const DATABASE_ADMIN = accounts[3] + // const UNKNOWN = accounts[5] + // const PIRATE = accounts[7] + + const CHAINGEAR_BUILDING_FEE = toWei(toBN(1), 'finney'); + // const CREATION_FEE = toWei(toBN(1), 'finney'); + // const FUNDING = toWei(toBN(1), 'ether'); + + const DATABASE_BUILDER_VERSION = "V1" + + const DATABASE_NAME = "test-registry"; + const DATABASE_SYMBOL = "TREG"; + + before(async () => { + + builder = await DatabaseBuilderV1.new({ from: CHAINGEAR_OWNER }); + + chaingear = await Chaingear.new( + [accounts[5], accounts[6]], + [100, 100], + { from: CHAINGEAR_OWNER } + ); + + await builder.setChaingearAddress( + chaingear.address, { from: CHAINGEAR_OWNER } + ); + + await chaingear.addDatabaseBuilderVersion( + DATABASE_BUILDER_VERSION, + builder.address, + "", + "", + { from: CHAINGEAR_OWNER } + ).should.be.fulfilled; + + await chaingear.createDatabase( + DATABASE_BUILDER_VERSION, + [accounts[5], accounts[6]], + [100, 100], + DATABASE_NAME, + DATABASE_SYMBOL, + { + from: DATABASE_ADMIN, + value: CHAINGEAR_BUILDING_FEE + } + ).should.be.fulfilled; + + let databaseMeta = await chaingear.getDatabase(0); + database = await DatabaseV1.at(databaseMeta[2]); + + await database.initializeDatabase( + "", + Schema.bytecode, + { from: DATABASE_ADMIN } + ).should.be.fulfilled; + await database.unpause({ from: DATABASE_ADMIN }).should.be.fulfilled; + storage = await Schema.at(await database.getEntriesStorage()); + }) + + describe("when creating entries", () => { + it("should allow admin to add entries", async () => { + await database.createEntry({ from: DATABASE_ADMIN }).should.be.fulfilled; + await database.createEntry({ from: DATABASE_ADMIN }).should.be.fulfilled; + }); + }) + + describe("when editing entries", () => { + it("should correctly check uniq when update", async () => { + await storage.updateEntry(0, "Hello world", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 1, -1, { from: DATABASE_ADMIN }).should.be.fulfilled; + await storage.updateEntry(0, "Hello world", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 2, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 2, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 1, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 2, -1, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 2, -2, { from: DATABASE_ADMIN }).should.be.fulfilled; + await storage.updateEntry(0, "Hello world", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 2, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 2, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 1, -2, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "HelloWorld", "0x166029Ee722dDAD7279C8d61edD4986DA71d2C0F", 2, -1, { from: DATABASE_ADMIN }).should.be.rejected; + await storage.updateEntry(0, "Hello world", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 1, -1, { from: DATABASE_ADMIN }).should.be.fulfilled; + }); + }) + + describe("when deleting entries", () => { + it("should correctly clear uniq index when delete", async () => { + await storage.updateEntry(1, "Hello world", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 1, -1, { from: DATABASE_ADMIN }).should.be.rejected; + await database.deleteEntry(0, { from: DATABASE_ADMIN }).should.be.fulfilled; + await storage.updateEntry(1, "Hello world", "0xe96e14a641FF16024668018e5cc70A3bCF6b3631", 1, -1, { from: DATABASE_ADMIN }).should.be.fulfilled; + }); + }) +}) diff --git a/test/utils.js b/test/utils.js deleted file mode 100644 index 8533591e..00000000 --- a/test/utils.js +++ /dev/null @@ -1,8 +0,0 @@ -const BigNumber = require("bignumber.js") - -module.exports.weiUsedForGas = function(result) { - const tx = web3.eth.getTransaction(result.tx) - const price = new BigNumber(tx.gasPrice) - const gasUsed = new BigNumber(result.receipt.gasUsed) - return price.mul(gasUsed) -} diff --git a/tests.sh b/tests.sh deleted file mode 100755 index e02e5211..00000000 --- a/tests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -truffle compile -truffle test test/chaingear/ChaingearTests.js -truffle test test/registry/AllUsersRegistryEntryCrudTests.js -truffle test test/registry/OnlyAdminRegistryEntryCrudTests.js -truffle test test/registry/RegistryPermissionControlTests.js -truffle test test/registry/RegistryUpdateSettingsTests.js -truffle test test/registry/EntryCoreAuthTests.js -truffle test test/SplitPaymentChangeableTests.js -exit diff --git a/truffle-config.js b/truffle-config.js deleted file mode 100644 index a6330d6d..00000000 --- a/truffle-config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - // See - // to customize your Truffle configuration! -}; diff --git a/truffle.js b/truffle.js index 176b197f..a29a2f7b 100644 --- a/truffle.js +++ b/truffle.js @@ -1,62 +1,75 @@ const { toWei } = require('ethjs-unit'); const HDWalletProvider = require('truffle-hdwallet-provider'); - -const MNEMONIC = 'hockey wrong chase parade similar borrow laugh task miss magic tumble crack'; +const infuraConfigKovan = require('./infura_deploy_kovan.json'); +const infuraConfigRinkeby = require('./infura_deploy_rinkeby.json'); +const infuraConfigMainnet = require('./infura_deploy_mainnet.json'); module.exports = { - solc: { - optimizer: { - enabled: false, - runs: 200 + compilers: { + solc: { + version: "0.4.25", + settings: { + optimizer: { + enabled: true, + runs: 200 + } + } } }, - + mocha: { reporter: 'eth-gas-reporter', - reporterOptions : { + reporterOptions: { currency: 'USD', - gasPrice: 21 + gasPrice: 10 } }, - // See - // to customize your Truffle configuration! networks: { - // development: { - // host: "localhost", - // port: 8545, - // network_id: "*" // Match any network id - // }, - + kovan: { - // provider() { - // return new HDWalletProvider(MNEMONIC, 'https://kovan.infura.io/'); - // }, - host: "localhost", - port: 8545, - from: '0xf2492533F7d89DBfEd69757156c4B746839E59E8', - - network_id: 42, - gasPrice: toWei(10, 'gwei').toNumber(), - gas: toWei(7.9, 'mwei').toNumber(), + provider() { + return new HDWalletProvider(infuraConfigKovan.privateKey, infuraConfigKovan.infuraUrl); + }, + from: infuraConfigKovan.fromAddress, + network_id: 42, + gasPrice: toWei(10, 'gwei').toNumber(), + gas: toWei(7, 'mwei').toNumber(), + confirmations: 2, + skipDryRun: true }, - - // live: { - // host: "localhost", - // port: 8545, - // network_id: 1, - // gasPrice: 10000000000, - // from: "0x00b2266565a2dF4dF0Dd473281b7bB88A86b27dd" - // }, - + + rinkeby: { + provider() { + return new HDWalletProvider(infuraConfigRinkeby.privateKey, infuraConfigRinkeby.infuraUrl); + }, + from: infuraConfigRinkeby.fromAddress, + network_id: 4, + gasPrice: toWei(10, 'gwei').toNumber(), + gas: toWei(6.8, 'mwei').toNumber(), + confirmations: 2, + skipDryRun: true + }, + + mainnet: { + provider() { + return new HDWalletProvider(infuraConfigMainnet.privateKey, infuraConfigMainnet.infuraUrl); + }, + from: infuraConfigMainnet.fromAddress, + network_id: 1, + gasPrice: toWei(10, 'gwei').toNumber(), + gas: toWei(7, 'mwei').toNumber(), + confirmations: 2, + skipDryRun: true + }, + development: { - host: "127.0.0.1", - port: 7545, - network_id: "*", - gas: 79000000, - gasPrice: 100000000 + host: "127.0.0.1", + port: 8545, + network_id: "*", + websockets: true } } }; diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 70d63a62..00000000 --- a/webpack.config.js +++ /dev/null @@ -1,180 +0,0 @@ -const path = require("path"); -const webpack = require("webpack"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const autoprefixer = require("autoprefixer"); -const CopyWebpackPlugin = require('copy-webpack-plugin'); -const UglifyJsPlugin = require('uglifyjs-webpack-plugin') - -module.exports = function (options = {}) { - // Settings - // --env.NODE_ENV root --env.SOURCE_MAP source-map ... - const NODE_ENV = options.NODE_ENV || "development"; // "production" - const SOURCE_MAP = options.SOURCE_MAP || "eval";// "eval-source-map"; // "source-map" - const API_ROOT = options.API_ROOT || "http://search-api.cyber.fund"; // "http://cyber.fund/api/" - const APP_VERSION = options.APP_VERSION || "DEV"; - const CYBER_CHAINGEAR_API = process.env.CYBER_CHAINGEAR_API || 'localhost:8000'; - - //console.log(' process.env ', process.env.CYBER_CHAINGEAR_API); - -// console.log(` -// Build started with following configuration: -// =========================================== -// → API_ROOT: ${API_ROOT} -// → NODE_ENV: ${NODE_ENV} -// → SOURCE_MAP: ${SOURCE_MAP} -// → APP_VERSION: ${APP_VERSION} -// → CYBER_CHAINGEAR_API: ${CYBER_CHAINGEAR_API} -// `); - - return { - entry: { - vendor: [ - "babel-polyfill", - "react", - "react-dom", - ], - app: [ - path.resolve(__dirname, "app", "src", "main") - ] - }, - output: { - path: path.resolve(__dirname, "distribution"), - filename: "[name].js?[hash]", - publicPath: "" - }, - resolve: { - extensions: [".ts", ".tsx", ".js", ".jsx"], - }, - bail: false, - devtool: SOURCE_MAP, - externals: { - './config.js': "env" - }, - module: { - rules: [ -{ - test: /\.sol$/, - use: 'raw-loader' - }, - { - test: /\.jsx?$/, - exclude: /node_modules/, - // loader: "ts-loader" - loader: 'babel-loader', - options: { - presets: ['es2015', 'stage-2', 'react'], - plugins: ['transform-decorators-legacy', 'transform-class-properties'], - cacheDirectory: true, - }, - },{ - test: /\.less$/, - use: [{ - loader: "style-loader" - }, { - loader: "css-loader", - options: { - modules: true, - localIdentName: "[name]_[local]" - } - }, { - loader: "postcss-loader", - options: { - plugins: function () { - return [ - autoprefixer - ]; - } - } - }, { - loader: "less-loader" - }] - }, { - test: /\.s[ac]ss$/, - use: [{ - loader: "style-loader" - }, { - loader: "css-loader" - }, { - loader: "postcss-loader", - options: { - plugins: function () { - return [ - autoprefixer - ]; - } - } - }, { - loader: "sass-loader" - }] - }, { - test: /\.(png|jpg|gif|svg)$/, - loader: "url-loader", - options: { - limit: 32768 - } - }] - }, - plugins: createListOfPlugins({NODE_ENV, APP_VERSION, API_ROOT, CYBER_CHAINGEAR_API}), - devServer: { - port: 5600, - stats: { - chunkModules: false, - colors: true - }, - historyApiFallback: true, - inline: true, - hot: false, - proxy: { - "/api": { - target: "http://search-api.cyber.fund", - pathRewrite: {"^/api": ""} - } - } - } - } -}; - -function createListOfPlugins({NODE_ENV, APP_VERSION, API_ROOT, CYBER_CHAINGEAR_API}) { - const plugins = [ - new HtmlWebpackPlugin({ - template: path.resolve(__dirname, "app", "index.html"), - favicon: path.resolve(__dirname, "app", "favicon.ico"), - hash: true - }), - new webpack.DefinePlugin({ - "process.env": { - "NODE_ENV": JSON.stringify(NODE_ENV) - }, - dev: JSON.stringify(NODE_ENV) !== 'production', - _API_ROOT: JSON.stringify(API_ROOT), - _APP_VERSION: JSON.stringify(APP_VERSION), - _CYBER_CHAINGEAR_API: JSON.stringify(CYBER_CHAINGEAR_API) - }), - new CopyWebpackPlugin([ - // Copy directory contents to {output}/ - { from: 'config.js' }, - { from: 'app/browser-solc.min.js' }, - { from: 'icon.png' }, - { from: 'manifest.json' } - ]) - ]; - - plugins.push( - new webpack.optimize.CommonsChunkPlugin({ - name: "vendor", - minChunks: 2 - }) - ); - - if (NODE_ENV === "production") { - - - plugins.push( - new UglifyJsPlugin({ - test: /\.js($|\?)/i - }) - ) - } - - return plugins; -} diff --git a/whitepaper.md b/whitepaper.md new file mode 100644 index 00000000..b1350b3d --- /dev/null +++ b/whitepaper.md @@ -0,0 +1,104 @@ +# Chaingear + +## The consensus computer driven database framework +##### litvintech and xhipster, Developer's Board Members, cyber•Congress + +### Position +With the rising of decentralized computing and web3 becoming, we need fundamental peace of web3 infrastructure as decentralized databases. But as [web3](https://ipfs.io/ipfs/QmTptPmvDZ2xSwAPWTF5U1UM7uLbwWqkShHd8fDMKhnaro) different to web2 there are new approaches and challenges for their development and operating. +In this paper, we are describing principles of Chaingear and their Ethereum PoC - novel Ethereum's open-source framework for developing tokenized databases based on smart-contracts with custom data schema and CRUD+TF operations for interacting with. + +### Principles of Chaingear + +Chaingear is a set of smart contracts which operating in consensus computer with following principles: + +0. Databases creates by user createDatabase call for Chaingear witch mints database-linked NFT token for user and deploys database with support of CRUD+TF operations. Token controls adminship of database. +1. Admin initializes database with given table/tables data schema. +2. Database admin may set user permissions for entry creation and fee for adding. +3. Each entry in database linked to NFT token (primary key) which grants a set of rights for token-entry operation as UPDATE/DELETE and TRANSFER/FUND. +4. Chaingear for given platform acts as Consensus Computer Driven Database as a Service +5. Application specific business logic should be available to operate on top of database/databases. + + +### Chaingear on EVM, 0.1 Euler PoC + +### Chaingear +- Chaingear is database of database which allow deploy new databases from there and creates an associated token for adminship. +- Chaingear allow deploys different types of databases with defined functionality with connects with databases builders. +- Database Builder is a fabric of databases of given type. +- Databases may have their unique code base as an extension to the basic database. +- Database-token may be transferred, sold/traded alongside with their right adminship. +- Chaingear have fees for database creation. +- Chaingear have benefitiaries which may claim collected fees proportional to their shares. + +### Database +- A database is a smart contract which defines NFT tokens linked to entries. User creates database with given name and token symbol for entries. +- After deploy database admin initializes database with data schema table/tables and this allows them or/and other users to create a systematic collection of data, where rights to operations with entry defined by entry-token ownership. +- Entries data lives in Schema contract. +- Each entry may be publicly funded, an entry-token owner may claim collected funds. +- Database admin may set policy for entry creation: {OnlyAdmin, Whitelist, AllUsers} and fee for the entry-token creation and next claim fees. +- Also admin may set multiple database's beneficiaries which may claim collected fees proportional to their shares. + +#### Tokenization and CRUD+TF +0. Operation **CREATE** initialize empty entry and mints token. +1. **READ** are publicly available with token as primary key. +2. Each entry-token grants token-based access to **UPDATE**/**DELETE** operations on entry. **DELETE** operation burns token and deletes entry. +3. Each entry-token may be transferred with **TRANSFER** with rights to tokenized operations. +4. Each entry-token may be **FUND**. **CLAIM** operation for allocated funds available for token owner. + +#### Persistent sources and deterministic regeneration +For interaction with databases, we need ABI for contracts and source code for verification. ABIs and sources may be saved on some nodes and accessed with IPFS, but this access is not guaranteed. The Ethereum itself is persistent storage, and it's a point to save ABIs and source code which guarantees databases operation. +Our solution is save in database contract schema's definition which allow deterministically regenerate ABI and source code of schema. + +### Gas +| Operation | Gas | Cost ETH, 10 Gwei/gas | +|--------------------|-----|---------------| +| createDatabase (chg)|~3.5M|~0.035| +| initializeDatabase (db)|~2-3M|~0.02-0.03| +| createEntry (db+st)|~250-400K|~ 0.0025-0.004| +| readEntry* (st)|-/*|-/*| +| updateEntry (st)|~140-250K|~0.0014-0.0025| +| deleteEntry (db+st)|~180-250K|~ 0.0018-0.0025| +| transferFrom (db)|~100K|~0.001| + +### Workflows +#### Chaingear setup and Database creation/schema initialization pipeline +![general_pipeline](./docs/mermaid/pipelines-general_pipeline.svg) + +#### Database CRUD/Entry-token pipeline +![database_crud](./docs/mermaid/pipelines-database_crud.svg) + +#### Chaingear's Database-token pipeline +![chaingear_tokenized](./docs/mermaid/pipelines-chaingear_tokenized.svg) + +### Inheritance +#### Chaingear inheritance +![chaingear_inheritance](./docs/mermaid/contracts-chaingear_inheritance.svg) + +#### Database inheritance +![database_inheritance](./docs/mermaid/contracts-database_inheritance.svg) + +### web3 Application +#### General +| | | +|-|-| +|![chaingear-general](./docs/app/chaingear.png)|![database-token](./docs/app/database-token.png)| + +#### Database +| | | +|-|-| +|![database-admin](./docs/app/database-admin.png)|![entry-token](./docs/app/entry-token.png)| + +#### Database Deploy and Schema designer +| | | +|-|-| +|![database](./docs/app/database-deploy.png)| +![schema-gen](./docs/app/schema-gen.png)| + +### Future work and releases +- Design and architecture, security +- Optimization of data writes and reads, column storage +- Advanced indexes. +- Release on new virtual machine + +### Development +Maintainers: @litvintech, @xhipster, @pechalka \ No newline at end of file